/* ==========================================================================
   Water — single-page site
   Design language shared with Strand: warm paper, black ink, one family of
   type, generous space, and graphics that explain rather than decorate.
   The accents and product details come from the Water app itself.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

:root {
  --bg: #FAFAF8;
  --ink: #0A0A0A;
  --muted: #6B6B6B;
  --hairline: #E6E6E6;
  --card: #FFFFFF;
  --surface: #F3F3F1;

  /* the four phases, sampled from the app's navigation accents */
  --m: #F6D3D0;          /* menstrual */
  --f: #D9EBE0;          /* follicular */
  --o: #D5E5F5;          /* ovulatory */
  --l: #F7EAC8;          /* luteal */

  --m-dot: #D5A19B;
  --f-dot: #9CC7AB;
  --o-dot: #9DBEDB;
  --l-dot: #E0C47A;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --wrap: 1180px;
  --radius: 24px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px; left: var(--pad);
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- labels ---------- */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem var(--pad);
  padding-top: calc(1rem + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--hairline);
}

.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* The mark is the app's cycle ring, set as the full stop. */
.nav__mark {
  display: block;
  width: 0.46rem;
  height: 0.46rem;
  flex: none;
  transform: translateY(-0.36em);
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: clamp(3.5rem, 8vw, 4.5rem);
  padding-top: calc(6rem + env(safe-area-inset-top));
  padding-bottom: 2rem;
  position: relative;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: none;
    gap: clamp(2.5rem, 4.5vw, 4.25rem);
    padding-top: calc(7rem + env(safe-area-inset-top));
    padding-bottom: 5.5rem;
  }
}

.hero__text { max-width: 34rem; }

.hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero__headline .story {
  position: relative;
  display: inline-block;
}
.hero__headline .story::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  margin-top: 0.18em;
  height: 0.1em;
  background: linear-gradient(90deg,
    var(--m) 0 25%,
    var(--f) 25% 50%,
    var(--o) 50% 75%,
    var(--l) 75% 100%);
  border-radius: 2px;
}

.hero__support {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ---------- hero art (the cycle, drawn) ---------- */
.hero__art {
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  position: relative;
}
@media (min-width: 900px) {
  .hero__art { width: 440px; margin-inline: 0; justify-self: end; }
}
.wheel {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.wheel__phases circle {
  transform-origin: 240px 240px;
  animation: wheelDraw 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wheel__phases circle:nth-child(1) { animation-delay: 0.10s; }
.wheel__phases circle:nth-child(2) { animation-delay: 0.22s; }
.wheel__phases circle:nth-child(3) { animation-delay: 0.34s; }
.wheel__phases circle:nth-child(4) { animation-delay: 0.46s; }
@keyframes wheelDraw {
  from { stroke-dashoffset: 1043; opacity: 0; }
  to   { opacity: 1; }
}
.wheel__ticks line {
  animation: tickIn 0.6s ease both;
}
@keyframes tickIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.wheel__wave,
.wheel__wave--two {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: waveDraw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
.wheel__wave-fill {
  opacity: 0;
  animation: waveFill 1.2s ease 1.3s forwards;
}
@keyframes waveDraw { to { stroke-dashoffset: 0; } }
@keyframes waveFill { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .wheel__phases circle,
  .wheel__ticks line,
  .wheel__wave,
  .wheel__wave--two,
  .wheel__wave-fill { animation: none !important; opacity: 1; }
  .wheel__wave, .wheel__wave--two { stroke-dashoffset: 0; }
}

/* ---------- phone ---------- */
.phone {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 40px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.18),
              0 12px 24px -8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 14px 12px 12px;
}
@media (min-width: 900px) {
  .phone { width: 320px; margin-inline: 0; justify-self: end; }
}

.phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 6px;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.08;
}

.phone__screen {
  position: relative;
  height: 100%;
  background: #FFFFFF;
  border-radius: 30px;
  padding: 1.25rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The screen is a scroll position, not a whole page: content runs to the
   bottom edge and fades, the way it does behind the app's floating nav. */
.phone__screen::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 72%);
  pointer-events: none;
}

.phone__hello {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.phone__date {
  margin-top: 0.25rem;
  font-size: 0.56rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.phone__ring {
  position: relative;
  width: 86%;
  max-width: 248px;
  margin: 2.4rem auto 0;
  aspect-ratio: 1 / 1;
}
.phone__ring svg { width: 100%; height: 100%; display: block; }

.ring-arc {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ringDraw 1.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.ring-arc--progress { animation-delay: 0.6s; }
.ring-dot { opacity: 0; animation: dotIn 0.4s ease 1.55s forwards; }

@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }

.ring-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0.2rem;
}
.ring-day {
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}
.ring-day sup {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 0.9em;
}
.ring-label {
  margin-top: 0.2rem;
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--muted);
}
.ring-phase {
  margin-top: 0.2rem;
  font-size: 0.56rem;
  color: var(--ink);
}

.phone__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 2.2rem;
}
.pstat {
  border: 0.8px solid var(--hairline);
  border-radius: 8px;
  padding: 0.5rem 0.15rem;
  text-align: center;
  min-width: 0;
}
.pstat__l {
  display: block;
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pstat__v {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone__qa {
  margin-top: 2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.phone__body {
  margin-top: 0.32rem;
  font-size: 0.6rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- philosophy ---------- */
.phil {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.phil__inner {
  max-width: 34rem;
  margin-inline: 0;
}

.phil__lead {
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.phil__prose {
  font-weight: 400;
  font-size: clamp(0.92rem, 2.4vw, 1rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 32rem;
}

.phil__return {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1rem, 2.5vw, 1.35rem);
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22rem;
}

/* ---------- section head ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.section--tight {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head .label { margin-bottom: 1rem; }
.section__head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* ---------- how it works (vertical numbered timeline) ---------- */
.how {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  --step-gap: clamp(2rem, 4vw, 2.75rem);
  --marker: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--step-gap);
}
.how__step {
  display: grid;
  grid-template-columns: var(--marker) minmax(0, 1fr);
  column-gap: clamp(1rem, 4vw, 1.5rem);
  position: relative;
}
.how__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--marker) / 2);
  top: calc(var(--marker) / 2);
  bottom: calc(-1 * (var(--step-gap) + var(--marker) / 2));
  width: 1px;
  margin-left: -0.5px;
  background: var(--hairline);
}
.how__marker {
  width: var(--marker);
  height: var(--marker);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.how__content { padding-top: 0.4rem; }
.how__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.how__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 26rem;
}

/* ---------- feature blocks ---------- */
.feat-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .feat-block { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); }
  .feat-block--reverse .feat-block__text { order: 2; }
  .feat-block--reverse .feat-block__visual { order: 1; }
}

.feat-block__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.feat-block__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 22rem;
}
.feat-block__body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 30rem;
}

.feat-block__visual { position: relative; }

/* ---------- shared card bits ---------- */
.map-card,
.report-card,
.archive-card,
.obs-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.12);
  margin-inline: auto;
}
.map-card { max-width: 400px; }
.report-card { max-width: 420px; }
.archive-card { max-width: 420px; }
.obs-card { max-width: 420px; }

@media (min-width: 900px) {
  .map-card, .report-card, .archive-card, .obs-card { margin-inline: 0; }
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.card-head .t {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.card-head .d { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.card-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- rhythm card: the cycle map ---------- */
.map__track {
  position: relative;
  margin-top: 2.3rem;
}
.map__today {
  position: absolute;
  left: 48.214%;   /* centre of day 14: (13.5 / 28) */
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 2;
}
.map__pill {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -0.4rem);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.map__rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5px;
  width: 1px;
  background: var(--ink);
  opacity: 0.5;
}
.map__band {
  display: flex;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
}
.map__seg {
  display: block;
  height: 100%;
  box-sizing: border-box;
  transform-origin: left center;
}
.map__seg.m { background: var(--m); }
.map__seg.f { background: var(--f); }
.map__seg.o { background: var(--o); }
.map__seg.l { background: var(--l); }
.map__seg.m,
.map__seg.f,
.map__seg.o { border-right: 2px solid var(--card); }

.reveal.in .map__seg,
.reveal.in .meter span {
  animation: growX 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal.in .map__seg:nth-child(1) { animation-delay: 0.10s; }
.reveal.in .map__seg:nth-child(2) { animation-delay: 0.20s; }
.reveal.in .map__seg:nth-child(3) { animation-delay: 0.30s; }
.reveal.in .map__seg:nth-child(4) { animation-delay: 0.40s; }

@keyframes growX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.map__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  color: var(--muted);
}

.map__rows {
  margin-top: 1.15rem;
  border-top: 1px solid var(--hairline);
}
.map__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.82rem;
}
.map__row .name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.map__row .range {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.dot.m { background: var(--m-dot); }
.dot.f { background: var(--f-dot); }
.dot.o { background: var(--o-dot); }
.dot.l { background: var(--l-dot); }

/* ---------- insights card ---------- */
.report { margin-bottom: 1rem; }
.report__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.22rem;
}
.report__body {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.meter {
  height: 3px;
  background: var(--hairline);
  margin-top: 0.7rem;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left center;
}

.stat-label {
  margin-top: 1.35rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.stat-list { margin-top: 0.4rem; border-top: 1px solid var(--hairline); }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row b { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ---------- archive card ---------- */
.archive__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.archive__summary span {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.archive__summary b {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.archive__list { margin-top: 0.35rem; }
.rhythm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.rhythm-row b {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}
.rhythm-row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.rhythm-row i {
  font-style: normal;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.archive__label {
  margin-top: 1.25rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.spark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 70;
  margin-top: 0.55rem;
}
.spark__line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.reveal.in .spark__line {
  animation: sparkDraw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.spark__axis {
  display: flex;
  justify-content: space-between;
  padding-inline: 2.9%;
  font-size: 0.6rem;
  color: var(--muted);
}

/* ---------- observations card ---------- */
.obs__field {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0.45rem;
}
.obs__field--recent { margin-top: 1.15rem; }

.segmented { display: flex; }
.segmented span {
  flex: 1;
  text-align: center;
  border: 1px solid var(--hairline);
  border-right: 0;
  padding: 0.5rem 0.1rem;
  font-size: 0.66rem;
  color: var(--ink);
  background: var(--card);
}
.segmented span:first-child { border-radius: 2px 0 0 2px; }
.segmented span:last-child { border-right: 1px solid var(--hairline); border-radius: 0 2px 2px 0; }
.segmented span.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips span {
  border: 1px solid var(--hairline);
  padding: 0.38rem 0.58rem;
  font-size: 0.63rem;
  color: var(--ink);
  background: var(--card);
}
.chips span.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.save {
  margin-top: 1.15rem;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 0.75rem 0;
}

.recent-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--hairline);
}
.recent-row:last-child { border-bottom: 0; }

/* ---------- privacy band ---------- */
.privacy {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
}
.privacy .label { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.privacy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 1rem 0 2.5rem;
  max-width: 30rem;
  color: var(--bg);
}
.privacy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 60rem;
}
@media (min-width: 900px) {
  .privacy__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.privacy__grid p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  margin: 0;
}
.privacy__grid strong {
  display: block;
  color: var(--bg);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* ---------- final cta ---------- */
.final {
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.final h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.final .sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2.2rem;
  max-width: 32rem;
  margin-inline: auto;
  text-wrap: balance;
}
.final .quiet {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 2rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.foot__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}
.foot__disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.5;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal__form[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: var(--bg);
  padding: 2rem;
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 0.75rem; right: 1rem;
  background: none; border: 0;
  font-size: 1.5rem; line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.modal__close:hover { color: var(--ink); }
.modal__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}
.modal__form { display: grid; gap: 0.75rem; }
.modal__form input[type="email"] {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}
.modal__form input[type="email"]:focus { border-color: var(--ink); }
.modal__submit {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  padding: 1rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal__submit:hover { background: #2a2a2a; }
.modal__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.modal__msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.modal__msg[data-state="ok"] { color: var(--ink); }

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- small screens ---------- */
@media (max-width: 360px) {
  .phone { border-radius: 32px; }
  .phone__screen { border-radius: 24px; }
  .pstat__l { font-size: 0.38rem; letter-spacing: 0.04em; }
  .pstat__v { font-size: 0.54rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ring-arc { animation: none; stroke-dashoffset: 0; }
  .ring-dot { animation: none; opacity: 1; }
  .reveal.in .map__seg,
  .reveal.in .meter span,
  .reveal.in .spark__line { animation: none; }
  .map__seg { transform: none; }
  .spark__line { stroke-dashoffset: 0; }
  .modal__card { animation: none; }
  * { transition: none !important; }
}
