/* ==========================================================================
   Fall Monitoring | bespoke landing page (fallmonitoring.com.au)
   Warm editorial register + scroll-driven "a day at Mum's" story.
   Distinct from the shared niche framework: serif display (Fraunces) + Inter,
   sticky phone scrollytelling, warm calm palette. No dashboard template.
   ========================================================================== */
:root{
  --bg:        oklch(0.987 0.008 78);
  --bg-2:      oklch(0.965 0.014 78);
  --paper:     oklch(1 0 0);
  --ink:       oklch(0.28 0.028 178);
  --ink-soft:  oklch(0.40 0.025 178);
  --muted:     oklch(0.50 0.022 178);
  --brand:     oklch(0.47 0.072 172);
  --brand-ink: oklch(0.40 0.072 172);
  --brand-deep:oklch(0.27 0.045 178);
  --night:     oklch(0.255 0.035 182);
  --accent:    oklch(0.64 0.142 38);
  --accent-ink:oklch(0.52 0.142 36);
  --peach:     oklch(0.91 0.05 62);
  --sage:      oklch(0.945 0.022 165);
  --line:      oklch(0.89 0.014 150);
  --on-dark:   oklch(0.97 0.012 80);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px; --radius-lg: 28px; --radius-sm: 12px;
  --shadow: 0 2px 6px oklch(0.3 0.04 178 / .05), 0 24px 60px -24px oklch(0.3 0.05 178 / .26);
  --shadow-sm: 0 1px 3px oklch(0.3 0.04 178 / .06), 0 10px 24px -16px oklch(0.3 0.05 178 / .2);

  --z-nav:200; --z-phone:5;
  --ease: cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans);
  font-size:clamp(1.02rem,.99rem + .18vw,1.14rem); line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:var(--brand-ink); }
::selection{ background:oklch(0.91 0.05 62 / .8); }

h1,h2,h3{ font-family:var(--serif); font-weight:480; line-height:1.04;
  letter-spacing:-0.018em; text-wrap:balance; margin:0; color:var(--ink);
  font-optical-sizing:auto; }
h1{ font-size:clamp(2.65rem,1.7rem + 4.2vw,5rem); }
h2{ font-size:clamp(2rem,1.4rem + 2.6vw,3.4rem); }
h3{ font-size:clamp(1.3rem,1.1rem + .9vw,1.7rem); }
p{ margin:0; text-wrap:pretty; }
.lead{ font-size:clamp(1.18rem,1.05rem + .6vw,1.5rem); line-height:1.5; color:var(--ink-soft); }

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.measure{ max-width:60ch; }
.skip{ position:absolute; left:-999px; }
.skip:focus{ left:1rem; top:1rem; z-index:999; background:var(--ink); color:#fff; padding:.7rem 1rem; border-radius:8px; }
:where(a,button,summary):focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--sans); font-weight:600; white-space:nowrap;
  font-size:1rem; line-height:1; padding:.95rem 1.5rem; border-radius:999px; border:1.5px solid transparent;
  text-decoration:none; cursor:pointer; transition:transform .4s var(--ease), background-color .25s, box-shadow .4s, border-color .25s; }
.btn--primary{ background:var(--accent); color:oklch(0.99 0.01 60); box-shadow:0 8px 24px -10px oklch(0.64 0.142 38 / .6); }
.btn--primary:hover{ background:var(--accent-ink); transform:translateY(-2px); box-shadow:0 14px 34px -10px oklch(0.64 0.142 38 / .7); }
.btn--ghost{ background:transparent; color:var(--brand-ink); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--brand); transform:translateY(-2px); }
.btn--lg{ padding:1.1rem 1.9rem; font-size:1.08rem; }
.btn--on-dark{ background:var(--on-dark); color:var(--brand-deep); }
.btn--on-dark:hover{ background:#fff; }
.textlink{ color:var(--brand-ink); font-weight:600; text-decoration:none; border-bottom:2px solid oklch(0.64 0.142 38 / .4); padding-bottom:1px; transition:border-color .25s; }
.textlink:hover{ border-color:var(--accent); }
@media (prefers-reduced-motion: reduce){ .btn:hover{ transform:none; } }

/* ---------- header ---------- */
.nav{ position:sticky; top:0; z-index:var(--z-nav); background:oklch(0.987 0.008 78 / .8); backdrop-filter:blur(12px) saturate(1.3);
  border-bottom:1px solid transparent; transition:border-color .3s, background-color .3s; }
.nav.is-stuck{ border-color:var(--line); }
.nav__in{ display:flex; align-items:center; justify-content:space-between; min-height:72px; gap:1rem; }
.brand{ display:inline-flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--ink); font-family:var(--serif); font-weight:500; font-size:1.3rem; letter-spacing:-0.02em; }
.brand svg{ width:30px; height:30px; flex:none; }
.nav__cta{ display:flex; align-items:center; gap:1.4rem; }
.nav__cta a:not(.btn){ color:var(--ink-soft); text-decoration:none; font-weight:500; font-size:.97rem; }
.nav__cta a:not(.btn):hover{ color:var(--brand-ink); }
@media (max-width:640px){ .nav__cta a:not(.btn){ display:none; } }

/* ---------- hero ---------- */
.hero{ position:relative; padding:clamp(3.5rem,3rem + 6vw,8rem) 0 clamp(3rem,2rem + 5vw,6rem); overflow:hidden; }
.hero::before{ content:""; position:absolute; inset:-30% -10% auto -10%; height:90%; z-index:-1;
  background:radial-gradient(60% 70% at 72% 18%, oklch(0.91 0.05 62 / .85), transparent 70%),
             radial-gradient(50% 60% at 12% 0%, oklch(0.945 0.022 165 / .8), transparent 65%);
  filter:blur(8px); }
.hero__in{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,4vw,5rem); align-items:center; }
@media (max-width:900px){ .hero__in{ grid-template-columns:1fr; } }
.hero h1{ margin-bottom:1.3rem; }
.hero h1 em{ font-style:italic; color:var(--accent-ink); font-weight:480; }
.hero .lead{ max-width:34ch; margin-bottom:2rem; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:1rem; align-items:center; }
.hero__reassure{ margin-top:2rem; display:flex; flex-wrap:wrap; gap:.55rem 1.4rem; color:var(--muted); font-size:.96rem; font-weight:500; }
.hero__reassure span{ display:inline-flex; align-items:center; gap:.45rem; }
.hero__reassure svg{ width:18px; height:18px; color:var(--brand); flex:none; }

/* hero art: a calm "presence" (a quiet nod to radar sensing) + one reassurance note */
.hero__art{ position:relative; justify-self:center; width:min(100%,440px); aspect-ratio:1; }
.presence{ position:absolute; inset:0; display:grid; place-items:center; }
.presence::before{ content:""; position:absolute; width:80%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle at 50% 45%, oklch(0.97 0.03 70), oklch(0.945 0.022 165 / .55) 58%, transparent 72%); }
.presence__ring{ position:absolute; border-radius:50%; border:1.5px solid oklch(0.47 0.072 172 / .22); }
.presence__ring.r1{ width:90%; aspect-ratio:1; animation:ping 5s var(--ease) infinite; }
.presence__ring.r2{ width:62%; aspect-ratio:1; animation:ping 5s var(--ease) infinite .9s; }
.presence__ring.r3{ width:38%; aspect-ratio:1; border-color:oklch(0.47 0.072 172 / .38); }
@keyframes ping{ 0%{ transform:scale(.9); opacity:.7; } 70%{ opacity:.14; } 100%{ transform:scale(1.14); opacity:0; } }
.presence__core{ position:relative; width:21%; aspect-ratio:1; border-radius:50%; background:var(--brand); color:var(--on-dark);
  display:grid; place-items:center; box-shadow:0 14px 32px -8px oklch(0.47 0.072 172 / .6); }
.presence__core svg{ width:46%; height:46%; }
.hero__note{ position:absolute; top:6%; right:-4%; background:var(--paper); border-radius:16px; box-shadow:var(--shadow);
  padding:.8rem 1rem .8rem .8rem; display:flex; gap:.6rem; align-items:center; max-width:212px; }
.hero__note .dot{ width:36px; height:36px; flex:none; border-radius:11px; background:var(--sage); display:grid; place-items:center; color:var(--brand); }
.hero__note .dot svg{ width:19px; height:19px; }
.hero__note b{ font-family:var(--sans); font-weight:600; font-size:.9rem; display:block; color:var(--ink); }
.hero__note small{ color:var(--muted); font-size:.78rem; }
.hero__pill{ position:absolute; left:-3%; bottom:12%; background:var(--paper); box-shadow:var(--shadow-sm);
  border-radius:999px; padding:.5rem .95rem; display:inline-flex; gap:.45rem; align-items:center; font-size:.85rem; font-weight:600; color:var(--brand-ink); white-space:nowrap; }
.hero__pill svg{ width:16px; height:16px; color:var(--brand); flex:none; }
@media (prefers-reduced-motion: reduce){ .presence__ring{ animation:none; } }
@media (max-width:900px){ .hero__art{ width:min(78%,300px); margin-top:.5rem; } }

/* ---------- section rhythm ---------- */
.section{ padding:clamp(4rem,3rem + 5vw,8rem) 0; }
.section__lead{ max-width:38ch; }
.section__lead h2{ margin-bottom:1rem; }
.section__lead p{ color:var(--ink-soft); font-size:1.18rem; }

/* ---------- story: sticky phone + scrolling beats ---------- */
.story{ background:var(--night); color:var(--on-dark); position:relative; }
.story::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(40% 30% at 80% 8%, oklch(0.64 0.142 38 / .22), transparent 70%),
             radial-gradient(45% 35% at 10% 96%, oklch(0.47 0.072 172 / .35), transparent 70%); }
.story .wrap{ position:relative; z-index:1; }
.story__intro{ max-width:40ch; padding-bottom:clamp(1rem,2vw,2.5rem); }
.story__intro h2{ color:var(--on-dark); margin-bottom:.9rem; }
.story__intro p{ color:oklch(0.86 0.02 80); font-size:1.18rem; }
.story__intro .tag{ font-family:var(--sans); font-weight:600; letter-spacing:.02em; color:var(--peach); font-size:.9rem; margin-bottom:1rem; display:inline-flex; gap:.5rem; align-items:center; }

.story__cols{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(2rem,5vw,6rem); align-items:start; }
.story__stage{ position:sticky; top:0; height:100vh; display:flex; align-items:center; justify-content:center; }
.beats{ padding:4vh 0 8vh; }
.beat{ min-height:64vh; display:flex; flex-direction:column; justify-content:center; max-width:30ch; }
.beat__time{ font-family:var(--sans); font-weight:700; font-size:.92rem; letter-spacing:.04em; color:var(--peach); margin-bottom:.7rem; }
.beat h3{ color:var(--on-dark); font-size:clamp(1.6rem,1.2rem + 1.8vw,2.5rem); margin-bottom:.8rem; }
.beat p{ color:oklch(0.84 0.02 80); font-size:1.1rem; }
.beat.is-alert .beat__time{ color:var(--accent); }

/* the phone */
.phone{ width:min(290px,72vw); aspect-ratio:9/19; background:#0d1513; border-radius:38px; padding:11px;
  box-shadow:0 0 0 2px oklch(0.5 0.05 178 / .35), 0 40px 80px -30px #000; position:relative; }
.phone::before{ content:""; position:absolute; top:16px; left:50%; transform:translateX(-50%); width:34%; height:7px; border-radius:99px; background:#000; z-index:3; }
.screen{ position:relative; width:100%; height:100%; border-radius:28px; overflow:hidden;
  background:linear-gradient(180deg, oklch(0.5 0.07 178), oklch(0.34 0.06 182)); }
.scene{ position:absolute; inset:0; padding:2.4rem 1.3rem 1.3rem; display:flex; flex-direction:column;
  opacity:0; transform:scale(1.02); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.scene.is-active{ opacity:1; transform:none; }
.scene__top{ text-align:center; color:oklch(0.97 0.01 80); margin-bottom:auto; }
.scene__top .clock{ font-family:var(--serif); font-size:2.6rem; line-height:1; font-weight:430; }
.scene__top .day{ font-size:.82rem; opacity:.8; margin-top:.25rem; }
.scene__card{ background:oklch(1 0 0 / .14); backdrop-filter:blur(6px); border:1px solid oklch(1 0 0 / .18);
  border-radius:18px; padding:.95rem 1rem; display:flex; gap:.7rem; align-items:center; color:#fff; }
.scene__card .ic{ width:40px; height:40px; flex:none; border-radius:12px; background:oklch(1 0 0 / .2); display:grid; place-items:center; }
.scene__card .ic svg{ width:22px; height:22px; }
.scene__card b{ font-size:.95rem; font-weight:600; display:block; font-family:var(--sans); }
.scene__card small{ font-size:.8rem; opacity:.82; }
.scene__app{ text-align:center; font-size:.72rem; letter-spacing:.06em; opacity:.7; margin-bottom:.4rem; font-family:var(--sans); text-transform:uppercase; }
.scene--alert .screen,.scene--alert{ }
.scene--alert .scene__card{ background:oklch(0.64 0.142 38 / .9); border-color:oklch(0.8 0.1 50 / .6); }

@media (max-width:880px){
  .story__cols{ grid-template-columns:1fr; }
  .story__stage{ height:auto; position:sticky; top:60px; padding:1rem 0 1.5rem; }
  .phone{ width:min(208px,55vw); }
  .beats{ padding:2vh 0 0; }
  .beat{ min-height:56vh; }
}

/* ---------- steps (a real 3-step sequence) ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1.5rem,3vw,3rem); margin-top:clamp(2rem,4vw,3.5rem); counter-reset:s; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; gap:0; } }
.step{ counter-increment:s; position:relative; padding-top:1.6rem; border-top:2px solid var(--line); }
@media (max-width:820px){ .step{ padding:1.6rem 0; } .step + .step{ border-top:1px solid var(--line); } }
.step::before{ content:counter(s); font-family:var(--serif); font-size:1.5rem; color:var(--accent-ink); position:absolute; top:1.4rem; right:0; }
.step h3{ font-size:1.3rem; margin:.2rem 0 .5rem; }
.step p{ color:var(--ink-soft); }

/* ---------- "what it isn't" reassurance ---------- */
.isnt{ background:var(--sage); }
.isnt__grid{ display:grid; gap:clamp(1.5rem,4vw,3.5rem); margin-top:2.5rem; }
.isnt__row{ display:grid; grid-template-columns:auto 1fr; gap:1.4rem; align-items:start; padding-bottom:clamp(1.5rem,3vw,2.5rem); border-bottom:1px solid oklch(0.82 0.02 160); }
.isnt__row:last-child{ border-bottom:0; padding-bottom:0; }
.isnt__row .mark{ width:54px; height:54px; flex:none; border-radius:50%; background:var(--paper); display:grid; place-items:center; color:var(--brand); box-shadow:var(--shadow-sm); }
.isnt__row .mark svg{ width:26px; height:26px; }
.isnt__row h3{ font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); margin-bottom:.35rem; }
.isnt__row p{ color:var(--ink-soft); max-width:48ch; }

/* ---------- funding band ---------- */
.fund{ background:linear-gradient(135deg, oklch(0.47 0.072 172), oklch(0.34 0.055 178)); color:var(--on-dark); border-radius:var(--radius-lg); padding:clamp(2.4rem,2rem + 4vw,4.5rem); }
.fund h2{ color:var(--on-dark); max-width:18ch; margin-bottom:1rem; }
.fund p{ color:oklch(0.9 0.02 80); max-width:52ch; font-size:1.15rem; }
.fund__chips{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.8rem; }
.fund__chips span{ background:oklch(1 0 0 / .14); border:1px solid oklch(1 0 0 / .22); border-radius:999px; padding:.5rem 1rem; font-size:.92rem; font-weight:500; }
.fund__diff{ margin-top:1.8rem; padding-top:1.4rem; border-top:1px solid oklch(1 0 0 / .18); color:oklch(0.92 0.02 80); font-size:1.02rem; max-width:56ch; }

/* ---------- faq ---------- */
.faq{ max-width:760px; margin-top:2.5rem; }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{ list-style:none; cursor:pointer; padding:1.4rem 2.5rem 1.4rem 0; position:relative; font-family:var(--serif); font-weight:500; font-size:1.22rem; color:var(--ink); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:""; position:absolute; right:.3rem; top:50%; width:13px; height:13px; margin-top:-7px;
  border-right:2px solid var(--accent); border-bottom:2px solid var(--accent); transform:rotate(45deg); transition:transform .3s var(--ease); }
.faq details[open] summary::after{ transform:rotate(225deg); }
.faq p{ color:var(--ink-soft); padding-bottom:1.4rem; max-width:64ch; }

/* ---------- closing CTA ---------- */
.close{ text-align:center; position:relative; overflow:hidden; }
.close::before{ content:""; position:absolute; inset:auto -10% -40% -10%; height:70%; z-index:-1;
  background:radial-gradient(50% 100% at 50% 100%, oklch(0.91 0.05 62 / .7), transparent 72%); }
.close h2{ max-width:18ch; margin:0 auto 1.2rem; }
.close p{ max-width:46ch; margin:0 auto 2rem; color:var(--ink-soft); font-size:1.18rem; }
.close__cta{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.close__sib{ margin-top:2.2rem; color:var(--muted); font-size:.98rem; }

/* ---------- footer ---------- */
.foot{ background:var(--brand-deep); color:oklch(0.85 0.02 80); padding:clamp(3rem,2rem + 3vw,4.5rem) 0 2.5rem; }
.foot a{ color:oklch(0.92 0.02 80); }
.foot__top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:2.5rem; }
.foot__brand{ max-width:30ch; }
.foot__brand .brand{ color:var(--on-dark); }
.foot__brand p{ margin-top:.9rem; color:oklch(0.8 0.02 80); font-size:.96rem; }
.foot__cols{ display:flex; flex-wrap:wrap; gap:2.5rem 3.5rem; }
.foot__col h4{ font-family:var(--sans); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--peach); margin:0 0 .9rem; }
.foot__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.foot__col a{ text-decoration:none; font-size:.96rem; }
.foot__col a:hover{ color:#fff; }
.foot__bottom{ border-top:1px solid oklch(1 0 0 / .12); margin-top:2.8rem; padding-top:1.6rem; display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; justify-content:space-between; color:oklch(0.72 0.02 80); font-size:.86rem; }
.foot__bottom a{ color:oklch(0.82 0.02 80); }

/* ---------- reveal motion (visible by default; JS hides only below-fold, then animates in) ---------- */
.reveal{ transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-pending{ opacity:0; transform:translateY(22px); }
@media (prefers-reduced-motion: reduce){ .reveal.is-pending{ opacity:1; transform:none; } .scene{ transition:none; } }
