/* ------------------------------------------------------------------
   Nemo Clinic — section layouts
------------------------------------------------------------------- */

/* 1 · Hero — deep forest, soft organic color fields, editorial serif */
.hero {
  background: var(--forest);
  color: var(--cream);
  padding-top: clamp(6.5rem, 5rem + 6vw, 9.5rem);
  padding-bottom: 0;
  border-radius: 0 0 var(--r-section) var(--r-section);
  overflow: hidden;
}

/* Soft organic color fields — plain radial gradients; no filter:
   blur() here, huge blurred layers stall the compositor. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 44rem;
  height: 44rem;
  right: -16rem;
  top: -14rem;
  background: radial-gradient(circle, rgba(193, 80, 46, 0.3) 0%, rgba(193, 80, 46, 0.12) 40%, transparent 68%);
}

.hero::after {
  width: 34rem;
  height: 34rem;
  left: -14rem;
  bottom: -6rem;
  background: radial-gradient(circle, rgba(185, 130, 30, 0.18) 0%, rgba(185, 130, 30, 0.08) 40%, transparent 68%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6);
  align-items: center;
}

.hero .eyebrow {
  color: var(--mustard);
}

.hero h1 {
  color: var(--cream);
  font-size: var(--text-hero);
  font-weight: 480;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--fish-orange);
}

.hero__sub {
  margin-top: var(--s-3);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(251, 246, 236, 0.82);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: var(--s-3);
  font-size: 0.8rem;
  color: rgba(251, 246, 236, 0.6);
}

.hero__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__facts svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--mustard);
}

/* Device composition — phone leans, panel overlaps */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__visual .phone {
  transform: rotate(-3deg);
  will-change: transform;
}

.hero__visual .panel {
  position: absolute;
  bottom: 0;
  right: max(-2rem, -4vw);
  transform: rotate(2deg) translateY(22%);
  z-index: 2;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    padding-bottom: clamp(4.5rem, 12vw, 7rem);
    margin-top: var(--s-2);
  }

  .hero__visual .panel {
    right: 0;
    transform: rotate(2deg) translateY(28%);
  }
}

/* 2 · Platform strip — honest replacement for "As Seen In" */
.platforms {
  padding-block: var(--s-6);
}

.platforms p {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 640;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: none;
  margin-bottom: var(--s-3);
}

.platforms ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-6);
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
  color: var(--ink-faint);
  transition: color var(--dur-fast) ease;
}

.platforms li:hover {
  color: var(--forest);
}

.platforms svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* 3 · Problem — two-gap narrative */
.problem {
  background: var(--cream-warm);
  border-radius: var(--r-section);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.problem__card {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
}

.problem__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 620;
  color: var(--coral);
  display: block;
  margin-bottom: var(--s-2);
}

.problem__card h3 {
  margin-bottom: 0.7rem;
}

.problem__card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.problem__close {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

.problem__close p {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--forest);
  max-width: 30ch;
  line-height: 1.3;
}

/* 4 · Editorial statement — the one oversized sentence */
.statement {
  text-align: center;
  padding-block: clamp(6rem, 5rem + 8vw, 12rem);
}

.statement p {
  font-family: var(--font-display);
  font-weight: 470;
  font-size: var(--text-statement);
  line-height: 1.12;
  color: var(--forest);
  max-width: 18ch;
  margin-inline: auto;
  letter-spacing: -0.015em;
}

.statement em {
  font-style: italic;
  color: var(--coral);
}

.statement img {
  width: clamp(5.25rem, 9vw, 8.25rem);
  margin: 0 auto var(--s-3);
}

/* 5 · How it works — two-track toggle */
.how__head {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  background: rgba(30, 61, 52, 0.07);
  margin-top: var(--s-2);
}

.tabs button {
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 620;
  color: var(--ink-soft);
  transition: color var(--dur-fast) ease, background-color var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft);
}

.tabs button[aria-selected="true"] {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 8px 20px -8px rgba(22, 48, 41, 0.5);
}

.tabs button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.track-stack {
  display: grid;
}

.track {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-8);
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}

.track.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 60ms, 60ms, 0s;
}

.track__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 660;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s-2);
}

.track h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  margin-bottom: var(--s-2);
}

.track > div > p {
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.track__visual {
  display: flex;
  justify-content: center;
}

.track__note {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--s-4);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-lg);
  background: rgba(185, 130, 30, 0.08);
  border: 1px solid rgba(185, 130, 30, 0.25);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.track__note svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--mustard);
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .track {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .track__visual {
    order: -1;
  }
}

/* Category discipline — what Nemo is NOT */
.nots {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--s-2);
}

.nots div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: var(--s-3);
  border-radius: var(--r-lg);
  border: 1px dashed rgba(193, 80, 46, 0.35);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.nots svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--coral);
  margin-top: 0.15rem;
}

.nots strong {
  color: var(--forest);
  display: block;
}
