@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #F4EDDE;
  --paper: #FCF8EE;
  --ink: #26245A;
  --ink-deep: #201E4C;
  --violet: #4A478F;
  --amber: #F0A840;
  --sage: #8FAE94;
  --amber-tint: #F6E3BC;
  --sage-tint: #DEE7DC;
  --line: rgba(74, 71, 143, 0.28);
  --ink-soft: rgba(38, 36, 90, 0.78);
  --shadow-card: 0 18px 36px -22px rgba(38, 36, 90, 0.30);
  --shadow-phone: 0 40px 70px -30px rgba(38, 36, 90, 0.45);
  --radius-card: 26px;
  --radius-band: 44px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip on the root as a belt only (it creates no scroll
   container, so the sticky topbar is unaffected). The real containment
   lives on the sections themselves — see .hero. Body's overflow-x: hidden
   below stays as a second belt for older engines. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  /* Original paper grain (assets/art/grain.svg, a fractal-noise texture
     drawn for this site), soft-light blended into page and band
     backgrounds only — it sits behind content, never over it, and never
     over the app screenshots. */
  background-color: var(--cream);
  background-image: url("assets/art/grain.svg"), url("assets/art/grain-soft.svg");
  background-repeat: repeat;
  background-blend-mode: soft-light, soft-light;
  color: var(--ink);
  font-size: 1.075rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; }

h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.22rem; font-weight: 800; }

a { color: var(--violet); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- shared ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 27px; height: 12px; flex: none;
  background:
    radial-gradient(circle 5px at 6px 6px, var(--ink) 98%, transparent),
    radial-gradient(circle 3.5px at 21px 7px, var(--amber) 98%, transparent);
  background-repeat: no-repeat;
}
.eyebrow-amber { color: var(--amber); }
.eyebrow-amber::before {
  background:
    radial-gradient(circle 5px at 6px 6px, var(--cream) 98%, transparent),
    radial-gradient(circle 3.5px at 21px 7px, var(--amber) 98%, transparent);
  background-repeat: no-repeat;
}

.dots { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.dots i { border-radius: 50%; display: block; }
.dots i:first-child { width: 11px; height: 11px; background: var(--ink); }
.dots i:last-child { width: 7px; height: 7px; background: var(--amber); margin-top: 5px; }

.band-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-sub { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; }

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.2rem 1.5rem;
}

.band {
  position: relative;
  max-width: 1240px;
  margin: 1.2rem auto;
  border-radius: var(--radius-band);
  padding: 5.2rem clamp(1.5rem, 5vw, 4.5rem);
}

.band-indigo {
  background:
    url("assets/art/grain.svg") repeat,
    url("assets/art/grain-soft-dim.svg") repeat,
    radial-gradient(840px 430px at 88% -10%, rgba(74, 71, 143, 0.55), rgba(74, 71, 143, 0) 62%),
    linear-gradient(155deg, #2C2A66 0%, var(--ink) 55%, var(--ink-deep) 100%);
  background-blend-mode: soft-light, soft-light, normal, normal;
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.band-indigo h2 { color: var(--cream); }

.band-sage {
  background:
    url("assets/art/grain.svg") repeat,
    url("assets/art/grain-soft.svg") repeat,
    radial-gradient(660px 330px at 10% 0%, rgba(143, 174, 148, 0.38), rgba(143, 174, 148, 0) 60%),
    radial-gradient(740px 370px at 94% 108%, rgba(240, 168, 64, 0.13), rgba(240, 168, 64, 0) 62%),
    linear-gradient(160deg, #E9EDE0 0%, #DFE7D8 60%, #D8E2D2 100%);
  background-blend-mode: soft-light, soft-light, normal, normal, normal;
  box-shadow: var(--shadow-card);
}

/* Wide Lean arc sweep used as a quiet divider between sections. */
.sweep {
  display: block;
  width: min(540px, 74vw);
  height: 38px;
  margin: 0.4rem auto -0.4rem;
  color: var(--violet);
  opacity: 0.38;
  pointer-events: none;
}

/* Hand-drawn spot illustrations in the section heads (original site art). */
.head-spot {
  position: absolute;
  top: 3.4rem;
  right: clamp(1.5rem, 5vw, 4.5rem);
  width: 148px;
  height: auto;
  pointer-events: none;
}
.head-spot-moon { color: var(--cream); opacity: 0.92; }
.head-spot-fort { color: var(--ink); opacity: 0.88; top: 5.6rem; }
@media (max-width: 900px) {
  .head-spot { display: none; }
}

.panel-cap {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(244, 237, 222, 0.55);
  text-align: center;
}
.panel-cap-light { color: rgba(38, 36, 90, 0.5); }

/* Reveal is armed by JS only (see app.js): without JS, or if anything
   fails, every section is simply visible. */
.reveal.armed { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.armed.in { opacity: 1; transform: none; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1.1rem, 4vw, 2.5rem);
  background: rgba(244, 237, 222, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(74, 71, 143, 0.14);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 33px; color: var(--ink); }
.brand-word { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; }
.topbar-cta {
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.topbar-cta:hover { background: var(--violet); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 5.5rem;
  /* Contain the hero's absolutely-positioned art (.hero-arc bleeds
     right: -190px by design). Without this, the arc widened the page's
     scrollable area 190px past the viewport on phones and the page
     panned sideways. clip (not hidden) keeps overflow-y visible, so
     the phone's float animation is untouched. */
  overflow-x: clip;
}
.hero-arc {
  position: absolute;
  width: min(880px, 120vw);
  aspect-ratio: 4 / 3;
  right: -190px;
  top: -140px;
  color: var(--violet);
  opacity: 0.08;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.lockup { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.lockup-mark { width: clamp(76px, 9vw, 118px); aspect-ratio: 4 / 3; color: var(--ink); flex: none; }
.lockup-word {
  font-weight: 900;
  font-size: clamp(3.9rem, 9vw, 6.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.hero h1 { font-size: clamp(2.55rem, 5.6vw, 4.3rem); max-width: 12ch; text-wrap: balance; }
.calm { position: relative; white-space: nowrap; }
.calm-arc {
  position: absolute;
  left: 0; bottom: -0.14em;
  width: 100%; height: 0.2em;
}

.lede { margin-top: 1.4rem; font-size: 1.3rem; color: var(--violet); }
.hero-text { margin-top: 0.7rem; color: var(--ink-soft); max-width: 46ch; font-size: 1.13rem; }

.waitlist-card {
  margin-top: 2.2rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.7rem 1.4rem;
  max-width: 520px;
}
.waitlist-title { font-size: 1.3rem; }
.waitlist-sub { margin-top: 0.35rem; color: var(--ink-soft); font-size: 1rem; }

.waitlist-form { margin-top: 1.1rem; }
.field-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}
.field-row { display: flex; gap: 0.6rem; }
.field-row input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
}
.field-row input::placeholder { color: rgba(38, 36, 90, 0.38); }
.field-row button {
  flex: none;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.field-row button:hover { background: var(--violet); transform: translateY(-1px); }
.field-row button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { min-height: 1.5em; margin-top: 0.65rem; font-weight: 700; font-size: 0.98rem; }
.form-status.ok { color: #44684C; }
.form-status.bad { color: var(--violet); }

.privacy-line { margin-top: 0.55rem; font-size: 0.88rem; color: rgba(38, 36, 90, 0.55); font-weight: 600; }

/* phone frames */
.phone {
  background: var(--ink);
  border-radius: 48px;
  padding: 11px;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(244, 237, 222, 0.14);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }

.hero-phone { position: relative; justify-self: center; }
.phone-hero {
  width: min(330px, 80vw);
  transform: rotate(2deg);
  animation: floaty 9s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: rotate(2deg) translateY(0); }
  to { transform: rotate(2deg) translateY(-9px); }
}
.phone-arc {
  position: absolute;
  width: 300px;
  aspect-ratio: 4 / 3;
  left: -120px;
  top: -64px;
  color: var(--violet);
  opacity: 0.22;
  pointer-events: none;
}
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.62rem 1.05rem;
  z-index: 2;
}
.chip-a { left: -56px; top: 21%; transform: rotate(-2deg); }
.chip-b { right: -38px; bottom: 15%; transform: rotate(1.5deg); }

/* ---------- features ---------- */

.feature-list { display: flex; flex-direction: column; gap: 1.9rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .dots { margin-top: 0.52rem; }
.feature p { margin-top: 0.3rem; color: var(--ink-soft); max-width: 44ch; }
.feature-dark .dots i:first-child { background: var(--cream); }
.feature-dark p { color: rgba(244, 237, 222, 0.78); }
.feature-dark h3 { color: var(--cream); }

/* ---------- peace gauges ---------- */

.peace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.gauge-panel {
  background: rgba(244, 237, 222, 0.05);
  border: 1.5px solid rgba(244, 237, 222, 0.14);
  border-radius: 36px;
  padding: 2rem 2rem 1.5rem;
}
.gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
}
.gauge-eyebrow {
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--amber);
}
.gauge-duty { font-weight: 800; color: var(--cream); }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.gauge { text-align: center; }
.gauge svg { width: 100%; height: auto; display: block; }
.g-track { fill: none; stroke: rgba(244, 237, 222, 0.16); stroke-width: 11; stroke-linecap: round; }
.g-fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.g-pivot { fill: rgba(244, 237, 222, 0.45); }
.g-word { font-weight: 900; font-size: 1.25rem; color: var(--cream); margin-top: 0.15rem; }
.g-name { color: rgba(244, 237, 222, 0.6); font-weight: 700; font-size: 0.95rem; }
.gauge-line {
  margin-top: 1.7rem;
  padding-top: 1.3rem;
  border-top: 1.5px solid rgba(244, 237, 222, 0.14);
  font-size: 1.08rem;
  color: var(--cream);
  text-align: center;
}

/* ---------- time pairings ---------- */

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.pairing-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.pair-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem;
}
.pair-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.pair-name { font-weight: 900; font-size: 1.3rem; }
.pair-name span { color: rgba(38, 36, 90, 0.5); font-weight: 700; font-size: 1.05rem; }
.pair-stage {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
}
.pair-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.pair-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 16px;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.pair-chip svg { width: 21px; height: 21px; flex: none; }
.pair-chip strong { color: var(--ink); display: block; font-size: 0.98rem; }
.chip-due { background: var(--amber-tint); }
.chip-done { background: var(--sage-tint); }
.pair-due-card {
  background: linear-gradient(150deg, #F3E2C0, var(--amber-tint));
  border: 1.5px solid rgba(240, 168, 64, 0.45);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.6rem;
  text-align: left;
}
.pair-due-title { font-weight: 900; font-size: 1.45rem; }
.pair-due-sub { margin-top: 0.3rem; color: var(--ink-soft); }
.pair-due-btn {
  display: block;
  margin-top: 1.1rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  padding: 0.85rem 1rem;
}

/* ---------- ages ---------- */

.ages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.age-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.3rem;
}
.age-spot { width: 56px; height: 42px; color: var(--violet); margin-bottom: 0.9rem; display: block; }
.age-card h3 { font-size: 1.3rem; }
.age-stage {
  font-weight: 800;
  color: var(--violet);
  font-size: 0.98rem;
  margin: 0.15rem 0 0.6rem;
}
.age-card p:last-child { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- carers ---------- */

.carers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.carer-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.8rem;
}
.carer-spot { width: 52px; height: 39px; color: var(--violet); display: block; margin-bottom: 0.8rem; }
.carer-card h3 { margin-bottom: 0.45rem; font-size: 1.3rem; }
.carer-card p { color: var(--ink-soft); max-width: 48ch; }

.never-panel {
  margin-top: 1.1rem;
  background:
    url("assets/art/grain.svg") repeat,
    url("assets/art/grain-soft-dim.svg") repeat,
    linear-gradient(155deg, #2C2A66, var(--ink-deep));
  background-blend-mode: soft-light, soft-light, normal;
  color: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.1rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.never-mark { width: 74px; aspect-ratio: 4 / 3; color: var(--cream); flex: none; margin-top: 0.3rem; }
.never-panel h3 { font-size: 1.45rem; margin-bottom: 1.05rem; }
.never-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.never-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(244, 237, 222, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-weight: 700;
  font-size: 0.97rem;
}
.never-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- screenshots ---------- */

.shots-row {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot { flex: none; scroll-snap-align: start; text-align: center; }
.phone-small { width: 224px; border-radius: 38px; padding: 9px; }
.phone-small img { border-radius: 30px; }
/* The proof pictures always present at full strength: the screenshots
   section carries no reveal fade, and nothing may dim these images. */
.shot img { opacity: 1; filter: none; }
.shot figcaption { margin-top: 0.85rem; font-weight: 800; font-size: 1.02rem; }

/* ---------- pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.price-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.8rem;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.price-card p { color: var(--ink-soft); }
.pricing-note { margin-top: 1.6rem; text-align: center; font-weight: 700; color: var(--violet); font-size: 1.08rem; }

/* ---------- close + footer ---------- */

.close { text-align: center; }
.close-mark { width: 118px; aspect-ratio: 4 / 3; color: var(--cream); margin-bottom: 1.4rem; }
.close h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto; }
.close-sub { margin: 1.1rem auto 0; color: rgba(244, 237, 222, 0.8); max-width: 52ch; font-size: 1.13rem; }
.waitlist-form-dark { max-width: 520px; margin: 2rem auto 0; text-align: left; }
.waitlist-form-dark .field-label { color: var(--cream); }
.waitlist-form-dark input { background: var(--paper); }
.waitlist-form-dark button { background: var(--amber); color: var(--ink); }
.waitlist-form-dark button:hover { background: #F5B95C; }
.waitlist-form-dark .form-status.ok { color: var(--sage); }
.waitlist-form-dark .form-status.bad { color: var(--amber); }
.privacy-line-dark { color: rgba(244, 237, 222, 0.6); margin-top: 0.9rem; }

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 3.6rem;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.footer-line { color: var(--ink-soft); font-weight: 600; margin-top: 0.3rem; }
.footer-copy { margin-top: 1.1rem; color: rgba(38, 36, 90, 0.5); font-weight: 700; font-size: 0.92rem; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; }
  .hero-phone { margin-top: 1.2rem; }
  .phone-arc { display: none; }
  .peace-grid, .time-grid { grid-template-columns: 1fr; }
  .ages-grid { grid-template-columns: repeat(3, 1fr); }
  .age-card:last-child { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 680px) {
  .section { padding: 4.2rem 1.15rem; }
  .band { padding: 3.6rem 1.3rem; border-radius: 34px; margin: 0.8rem 0.6rem; }
  .hero { padding: 2rem 1.15rem 4rem; }
  .lockup-word { font-size: 3.6rem; }
  .lockup-mark { width: 68px; }
  .hero-chip { display: none; }
  .phone-arc { left: -70px; width: 210px; }
  .field-row { flex-direction: column; }
  .field-row button { width: 100%; }
  .ages-grid { grid-template-columns: 1fr 1fr; }
  .age-card:last-child { grid-column: span 2; }
  .carers-grid { grid-template-columns: 1fr; }
  .pair-chips { grid-template-columns: 1fr; }
  .never-panel { flex-direction: column; gap: 0.8rem; padding: 1.7rem 1.5rem; }
  .gauges { gap: 0.4rem; }
  .g-word { font-size: 1.05rem; }
  .g-name { font-size: 0.82rem; }
  .topbar-cta { font-size: 0.88rem; padding: 0.55rem 1rem; }
  .brand-word { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-hero { animation: none; }
  .reveal.armed { opacity: 1; transform: none; transition: none; }
  .topbar-cta, .field-row button { transition: none; }
}
