/* EMSense redesign — cool mist / deep teal wellness editorial */
:root {
  --bg: #eef3f1;
  --bg-deep: #d9e6e2;
  --ink: #142325;
  --ink-soft: #3d4f52;
  --brand: #0a4d56;
  --brand-bright: #147a86;
  --accent: #1f7a5c;
  --cta: #c45d1a;
  --cta-hover: #a34b12;
  --line: rgba(10, 77, 86, 0.14);
  --paper: rgba(255, 255, 255, 0.72);
  --max: 720px;
  --wide: 1100px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(20, 122, 134, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(31, 122, 92, 0.12), transparent 50%),
    linear-gradient(180deg, #e8f1ef 0%, var(--bg) 35%, #f7faf9 100%);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-bright);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f4fbfa;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 22s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 32, 0.35) 0%, rgba(8, 28, 32, 0.28) 40%, rgba(8, 28, 32, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 77, 86, 0.45), transparent 55%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
  animation: rise 1s var(--ease) both;
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.65rem;
}

.hero__title {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(244, 251, 250, 0.88);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: var(--cta);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(196, 93, 26, 0.35);
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s ease;
  animation: cta-breathe 2.8s ease-in-out infinite;
}

.hero__cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(196, 93, 26, 0.42);
}

.hero__note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  opacity: 0.72;
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.25rem 0;
}

.section__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
}

.lead-block {
  margin: 2rem auto;
  width: min(100% - 2rem, var(--max));
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(8px);
}

.lead-block p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
}

.media-frame {
  width: min(100%, var(--wide));
  margin: 0 auto 1.75rem;
  overflow: hidden;
}

.media-frame--inset {
  width: min(100% - 2rem, var(--max));
  border-radius: 4px;
}

.media-frame video,
.media-frame img {
  width: 100%;
}

.media-frame video {
  background: #0a1f22;
}

/* —— Timeline —— */
.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.timeline__week {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
  padding-top: 0.15rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— Therapy trio —— */
.therapy {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.therapy article {
  padding: 0.2rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.therapy article:last-child {
  border-bottom: 0;
}

.therapy h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
}

.therapy p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— Quotes —— */
.quote {
  margin: 0 0 2rem;
}

.quote__photo {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 0.9rem;
  border-radius: 4px;
  overflow: hidden;
}

.quote__body {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0 0 0.25rem;
}

.quote blockquote {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 450;
  line-height: 1.55;
  color: var(--ink);
}

.quote cite {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.quote cite img {
  width: 100px;
  height: auto;
}

/* —— Offer band —— */
.offer {
  margin: 1rem 0 0;
  padding: 2.75rem 0;
  background:
    linear-gradient(135deg, rgba(10, 77, 86, 0.94), rgba(20, 90, 80, 0.92)),
    url("68acd6c6339b22-1024x640.webp") center / cover;
  color: #f4fbfa;
}

.offer .wrap {
  position: relative;
}

.offer h2,
.offer p,
.offer li {
  color: #f4fbfa;
}

.offer h2 {
  color: #fff;
}

.offer p {
  opacity: 0.92;
}

.offer__list {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.offer__list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 600;
}

.offer__list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: #8fd6c4;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: var(--cta);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  margin-top: 0.75rem;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.urgent {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  font-size: 0.95rem;
}

/* —— Sticky bar —— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(238, 243, 241, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.sticky-cta__copy {
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.sticky-cta__copy strong {
  display: block;
  color: var(--brand);
  font-size: 0.95rem;
}

.sticky-cta .btn {
  width: auto;
  min-width: 9.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

body {
  padding-bottom: 5.5rem;
}

/* —— Footer / legal —— */
.legal {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
}

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.legal__nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.legal p {
  margin: 0 0 0.85rem;
  text-align: center;
}

.legal a {
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(196, 93, 26, 0.32);
  }
  50% {
    box-shadow: 0 14px 36px rgba(196, 93, 26, 0.5);
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-bottom: 2.4rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .sticky-cta__inner {
    grid-template-columns: 1fr;
  }

  .sticky-cta__copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media video {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
