/* Izaya Family website: family-friendly, interactive layer.
   Stars, floating chips, scroll reveals, the try-it demo, the "only Izaya Family" showcase,
   the day scrubber, the build tracker and confetti. Every animation has a reduced-motion fallback. */

/* Nav links */
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--fg-brand-lavender-ink); text-decoration: none; font: 600 15px/1 var(--fg-font); padding: 12px 14px; border-radius: 10px;
  transition: background var(--fg-dur-pop) var(--fg-ease-out), color var(--fg-dur-pop) var(--fg-ease-out); }
.nav-links a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }

/* Twinkling night sky (stars are placed by app.js) */
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.25; animation: twinkle var(--tw, 4s) ease-in-out var(--td, 0s) infinite; }
.star.big { width: 3px; height: 3px; box-shadow: 0 0 6px 1px rgb(255 255 255 / 0.5); }
@keyframes twinkle { 0%, 100% { opacity: 0.18; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.15); } }
.shooting { position: absolute; top: 14%; left: 62%; width: 120px; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(-24deg);
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.9)); animation: shoot 9s ease-out 2.5s infinite; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 3% { opacity: 1; } 9% { opacity: 0; translate: -260px 116px; } 100% { opacity: 0; translate: -260px 116px; } }

/* Hero extras */
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--fg-radius-pill);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); color: var(--fg-brand-lavender-ink); font: var(--fg-type-label); }
.badge-new { flex: none; white-space: nowrap; padding: 4px 10px; border-radius: var(--fg-radius-pill); background: #fff; color: var(--fg-brand-violet-deep); font: 800 12px/1 var(--fg-font); letter-spacing: 0.02em; }
h1 { position: relative; z-index: 0; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.06em; height: 0.16em; border-radius: 99px; z-index: -1;
  background: linear-gradient(90deg, #C4B5FD, #F0ABFC); transform-origin: left; transform: scaleX(0); animation: underline 700ms var(--fg-ease-out) 700ms forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-scroll { display: flex; align-items: center; gap: 10px; color: var(--fg-brand-lavender); font: 600 13px/1 var(--fg-font); padding-top: 40px; }
.mouse { width: 20px; height: 30px; border: 2px solid currentColor; border-radius: 12px; display: grid; justify-items: center; padding-top: 5px; }
.mouse span { width: 3px; height: 6px; border-radius: 2px; background: currentColor; animation: wheel 1.6s var(--fg-ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* Floating notification chips around the hero phone */
/* Chips are placed against the phone column, which ends at the page's content edge. --room is how far past that edge a
   chip may stick out and still stay on screen (centering margin of the 1160px .wrap + its 20px padding, less 28px for
   the scrollbar and a little air). Each chip asks for --out, but never gets more than --room, so it is never cut off. */
.hero-phone { position: relative; --room: calc(max(0px, (100vw - 1160px) / 2) + 20px - 28px); }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgb(255 255 255 / 0.96); box-shadow: 0 18px 40px -12px rgb(11 10 36 / 0.55); font: 500 12px/16px var(--fg-font); color: #5B5876;
  animation: bob 6s ease-in-out infinite; }
.float-chip b { display: block; font: 800 14px/18px var(--fg-font); color: #14122B; }
.chip-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.chip-ic .ic { width: 18px; height: 18px; }
.chip-green { background: #DCFCE7; color: #15803D; }
.chip-blue { background: #DBEAFE; color: #1D4ED8; }
.chip-pink { background: #FCE7F3; color: #BE185D; }
.chip-a { left: -150px; top: 70px; animation-delay: -1s; }
.chip-b { --out: 140px; right: max(calc(-1 * var(--out)), calc(-1 * var(--room))); top: 250px; animation-delay: -3s; }
.chip-c { --out: 70px; right: max(calc(-1 * var(--out)), calc(-1 * var(--room))); bottom: 120px; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Scroll reveal (only when JS is running, so the page never hides content without it) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--fg-ease-out), transform 700ms var(--fg-ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.section-head .lede { margin-top: 14px; }
.section-tight { padding-top: 72px; }

/* ---------- Try it yourself ---------- */
.try { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: center;
  padding: 32px; border-radius: 28px; background: var(--fg-surface); box-shadow: var(--fg-elev-raised); }
.try-controls { display: grid; gap: 26px; }
.ctrl-label { color: var(--fg-ink); font: 800 16px/22px var(--fg-font); margin-bottom: 10px; }
.ctrl-hint { margin-left: 6px; color: var(--fg-ink-muted); font: 500 13px/1 var(--fg-font); }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fg-surface-sunken); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-ink-body); font: 700 15px/1 var(--fg-font); cursor: pointer;
  transition: background var(--fg-dur-pop) var(--fg-ease-out), color var(--fg-dur-pop) var(--fg-ease-out), transform var(--fg-dur-press) var(--fg-ease-out); }
.seg button[aria-checked="true"] { background: var(--fg-surface); color: var(--fg-primary-text); box-shadow: var(--fg-elev-rest); }
.switch3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.switch3 button { display: grid; justify-items: start; gap: 2px; padding: 14px; min-height: 76px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--fg-border); border-radius: 14px; background: var(--fg-surface); color: var(--fg-ink-muted); font: 500 13px/18px var(--fg-font);
  transition: border-color var(--fg-dur-pop) var(--fg-ease-out), background var(--fg-dur-pop) var(--fg-ease-out), transform var(--fg-dur-press) var(--fg-ease-out); }
.switch3 button b { color: var(--fg-ink); font: 800 16px/20px var(--fg-font); }
.switch3 .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 4px; }
.s-green .dot { background: var(--fg-success); }
.s-yellow .dot { background: #F59E0B; }
.s-red .dot { background: var(--fg-danger); }
.switch3 button:active, .seg button:active { transform: scale(var(--fg-press-scale)); }
.s-green[aria-checked="true"] { border-color: var(--fg-success); background: var(--fg-success-bg); }
.s-yellow[aria-checked="true"] { border-color: #F59E0B; background: var(--fg-warning-bg); }
.s-red[aria-checked="true"] { border-color: var(--fg-danger); background: var(--fg-danger-bg); }
.chores { display: grid; gap: 10px; }
.chore { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  background: var(--fg-surface-sunken); color: var(--fg-ink); font: 700 15px/1 var(--fg-font);
  transition: background var(--fg-dur-pop) var(--fg-ease-out), transform var(--fg-dur-press) var(--fg-ease-out); }
.chore:active { transform: scale(var(--fg-press-scale)); }
.chore input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chore-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--fg-border-strong); display: grid; place-items: center; background: var(--fg-surface);
  transition: background var(--fg-dur-pop) var(--fg-ease-out), border-color var(--fg-dur-pop) var(--fg-ease-out); }
.chore-box .ic { width: 16px; height: 16px; stroke-width: 3; color: #fff; transform: scale(0); transition: transform var(--fg-dur-pop) var(--fg-ease-out); }
.chore input:checked + .chore-box { background: var(--fg-success); border-color: var(--fg-success); }
.chore input:checked + .chore-box .ic { transform: scale(1); }
.chore:has(input:checked) { background: var(--fg-success-bg); }
.chore input:focus-visible + .chore-box { outline: 3px solid var(--fg-ring); outline-offset: 2px; }
.try-phone { display: flex; justify-content: center; }
.phone-kid { transform: none; width: 100%; max-width: 320px; }
.try > * { min-width: 0; }
.kid-mode { margin: 2px 6px 0; }
.pill-warning { background: #2D2410; color: #FCD34D; }
.pill-danger { background: #341428; color: #FDA4AF; }
.kid-ring-wrap { display: grid; place-items: center; padding: 22px 0 14px; }
.ring-kid { --fill: 55%; width: 176px; height: 176px; animation: none; transition: --fill 600ms var(--fg-ease-out); }
.ring-inner-lg { width: 140px; height: 140px; }
.ring-inner-lg b { font-size: 34px; }
.ring-kid.bump { animation: bump 420ms var(--fg-ease-out); }
@keyframes bump { 40% { transform: scale(1.06); } }
.kid-msg { margin: 0 6px; min-height: 64px; display: grid; place-items: center; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.07);
  color: #E4DEFF; font: 600 14px/20px var(--fg-font); text-align: center; }
.kid-breakdown { display: grid; gap: 8px; margin-top: 12px; padding: 0 8px; }
.kid-breakdown div { display: flex; justify-content: space-between; font: 500 13px/18px var(--fg-font); color: var(--fg-panel-ink-muted); }
.kid-breakdown b { color: #fff; font-weight: 800; }

/* ---------- Only Izaya Family does this ---------- */
.firsts { margin-top: 36px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.first { grid-column: span 2; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; background: var(--fg-surface); box-shadow: var(--fg-elev-rest); }
.first.wide { grid-column: span 3; }
.first-stage { position: relative; height: 210px; overflow: hidden; background: var(--fg-gradient-panel); color: #fff; display: grid; place-items: center; }
.first-copy { padding: 20px 22px 24px; }
.first-tag { display: inline-block; padding: 4px 10px; border-radius: var(--fg-radius-pill); background: var(--fg-primary-tint); color: var(--fg-primary-text); font: 800 11px/1 var(--fg-font); letter-spacing: 0.1em; text-transform: uppercase; }
.first h3 { margin-top: 12px; color: var(--fg-ink); font: 800 20px/26px var(--fg-font); letter-spacing: -0.02em; }
.first p { margin-top: 6px; color: var(--fg-ink-muted); }

/* 1. One pool, every screen */
.pool { display: grid; grid-template-columns: auto auto auto; align-items: end; gap: 18px; }
.dev { border: 2px solid rgb(255 255 255 / 0.5); border-radius: 12px; display: grid; place-items: center; color: #C9C3EE; font: 700 11px/1 var(--fg-font); }
.dev-phone { width: 52px; height: 92px; }
.dev-tab { width: 96px; height: 72px; }
.dev.active { border-color: #fff; color: #fff; box-shadow: 0 0 0 6px rgb(196 181 253 / 0.18); }
.tank { width: 70px; height: 120px; border-radius: 16px; border: 2px solid rgb(255 255 255 / 0.5); position: relative; overflow: hidden; display: grid; place-items: center; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl, 80%); background: linear-gradient(180deg, #A78BFA, #7C3AED); transition: height 900ms var(--fg-ease-out); }
.water::before { content: ""; position: absolute; left: -50%; top: -8px; width: 200%; height: 16px; border-radius: 40%; background: #A78BFA; animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(25%); } }
.tank b { position: relative; font: 900 18px/1 var(--fg-font); }

/* 2. Prove-it chores */
.proveit { display: grid; justify-items: center; gap: 12px; text-align: center; }
.challenge { display: grid; justify-items: center; gap: 2px; }
.challenge small { color: #C9C3EE; font: 700 11px/1 var(--fg-font); letter-spacing: 0.12em; text-transform: uppercase; }
.challenge b { font: 900 22px/28px var(--fg-font); letter-spacing: -0.02em; }
.pose { font-size: 44px; line-height: 1; transition: transform var(--fg-dur-pop) var(--fg-ease-out); }
.snap { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--fg-radius-pill); cursor: pointer;
  background: #fff; color: var(--fg-brand-violet-deep); font: 800 14px/1 var(--fg-font); transition: transform var(--fg-dur-press) var(--fg-ease-out); }
.snap:active { transform: scale(var(--fg-press-scale)); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash 420ms ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.earned { position: absolute; top: 18px; right: 18px; padding: 6px 12px; border-radius: var(--fg-radius-pill); background: #6EE7B7; color: #064E3B; font: 900 14px/1 var(--fg-font);
  opacity: 0; transform: translateY(10px) scale(0.8); }
.earned.go { animation: earned 1600ms var(--fg-ease-out); }
@keyframes earned { 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-14px); } }

/* 3. Whole-home Wi-Fi filter */
.wifi { position: relative; width: 220px; height: 170px; }
.house { position: absolute; left: 50%; bottom: 6px; width: 84px; height: 70px; transform: translateX(-50%); color: #fff; }
.house svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dome { position: absolute; left: 50%; bottom: 0; width: 196px; height: 150px; transform: translateX(-50%); border-radius: 98px 98px 12px 12px;
  border: 2px solid rgb(110 231 183 / 0.75); background: radial-gradient(ellipse at 50% 100%, rgb(110 231 183 / 0.16), rgb(110 231 183 / 0) 70%); animation: dome 2.4s ease-in-out infinite; }
@keyframes dome { 50% { box-shadow: 0 0 24px 2px rgb(110 231 183 / 0.35); } }
.threat { position: absolute; top: -6px; padding: 4px 8px; border-radius: 8px; background: #FDA4AF; color: #4C0519; font: 800 10px/1 var(--fg-font); animation: bounceoff 3.6s ease-in infinite; }
.threat.t1 { left: 18px; } .threat.t2 { left: 120px; animation-delay: -1.2s; } .threat.t3 { left: 70px; animation-delay: -2.4s; }
@keyframes bounceoff { 0% { transform: translateY(-20px); opacity: 0; } 15% { opacity: 1; } 45% { transform: translateY(26px); } 70% { transform: translate(var(--bx, 30px), -30px) rotate(20deg); opacity: 0; } 100% { opacity: 0; } }
.threat.t1 { --bx: -40px; } .threat.t3 { --bx: 10px; }

/* 4. Bedtime contacts */
.calls { display: grid; gap: 10px; width: 230px; }
.call { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / 0.08); font: 700 14px/1 var(--fg-font); }
.call .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 13px/1 var(--fg-font); }
.call.ok .av { background: #6EE7B7; color: #064E3B; }
.call.no .av { background: rgb(255 255 255 / 0.16); color: #fff; }
.call em { margin-left: auto; font-style: normal; font: 800 11px/1 var(--fg-font); padding: 5px 8px; border-radius: 99px; }
.call.ok em { background: rgb(110 231 183 / 0.18); color: #A7F3D0; }
.call.no em { background: rgb(253 164 175 / 0.18); color: #FDA4AF; }
.call.ok { animation: ring 2.8s ease-in-out infinite; }
.call.no { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgb(253 164 175 / 0.7); }
@keyframes ring { 0%, 70%, 100% { transform: none; } 74% { transform: rotate(-1.5deg); } 78% { transform: rotate(1.5deg); } 82% { transform: rotate(-1deg); } 86% { transform: none; } }
.moonlet { position: absolute; top: 18px; right: 22px; width: 26px; height: 26px; border-radius: 50%; box-shadow: -7px 4px 0 0 #FFE7A8; transform: rotate(-20deg); }

/* 5. Homework is free */
.hw { display: grid; justify-items: center; gap: 12px; }
.hw-clock { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 0.6); position: relative; }
.hw-clock::before, .hw-clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 3px; border-radius: 3px; background: #fff; transform-origin: bottom; }
.hw-clock::before { height: 28px; transform: translateX(-50%) rotate(40deg); }
.hw-clock::after { height: 36px; transform: translateX(-50%) rotate(var(--h, 0deg)); background: #C4B5FD; }
.hw-sites { display: flex; gap: 8px; }
.hw-sites span { padding: 6px 10px; border-radius: 10px; background: rgb(255 255 255 / 0.1); font: 700 12px/1 var(--fg-font); color: #E4DEFF; }
.hw-sites span.on { background: #DBEAFE; color: #1D4ED8; }
.hw-note { color: #A7F3D0; font: 800 13px/1 var(--fg-font); }

/* ---------- Day scrubber ---------- */
.daypanel { position: relative; overflow: hidden; isolation: isolate; margin-top: 72px; padding: 36px; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, #1E3A8A 0%, #4F46E5 55%, #F0ABFC 120%); transition: background 900ms var(--fg-ease-out); }
.daypanel[data-sky="day"] { background: linear-gradient(160deg, #1D4ED8 0%, #4F46E5 60%, #8B5CF6 100%); }
.daypanel[data-sky="evening"] { background: linear-gradient(160deg, #2E1F7A 0%, #6D28D9 55%, #DB2777 125%); }
.daypanel[data-sky="night"] { background: var(--fg-gradient-cover); }
.day-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun, .moon { position: absolute; left: 50%; top: 30%; width: 90px; height: 90px; border-radius: 50%; transition: opacity 900ms var(--fg-ease-out), transform 900ms var(--fg-ease-out); }
.sun { background: radial-gradient(circle, #FFE7A8 0%, #FFC24B 55%, rgb(255 194 75 / 0) 72%); }
.moon { background: radial-gradient(circle at 35% 35%, #F4F2FF 0%, #C4B5FD 60%, rgb(196 181 253 / 0) 72%); opacity: 0; transform: translateY(40px); }
.daypanel[data-sky="evening"] .sun { opacity: 0.6; transform: translateY(60px); }
.daypanel[data-sky="night"] .sun { opacity: 0; transform: translateY(120px); }
.daypanel[data-sky="night"] .moon { opacity: 1; transform: none; }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.daypanel .eyebrow { color: #E4DEFF; }
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border-radius: var(--fg-radius-pill); cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.14); color: #fff; font: 800 15px/1 var(--fg-font);
  transition: background var(--fg-dur-pop) var(--fg-ease-out), transform var(--fg-dur-press) var(--fg-ease-out); }
.play:hover { background: rgb(255 255 255 / 0.22); }
.play:active { transform: scale(var(--fg-press-scale)); }
.play .ic { width: 18px; height: 18px; }
.play .ic-play { fill: currentColor; stroke: none; }
.play .ic-pause, .play[aria-pressed="true"] .ic-play { display: none; }
.play[aria-pressed="true"] .ic-pause { display: block; stroke-width: 3; }
.day-body { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.day-card { min-height: 150px; }
.day-card time { display: block; font: 900 clamp(44px, 7vw, 72px)/1 var(--fg-font); letter-spacing: -0.04em; }
.day-card h3 { margin-top: 12px; font: 800 24px/30px var(--fg-font); letter-spacing: -0.02em; }
.day-card p { margin-top: 4px; color: #E4DEFF; font-size: 17px; }
.day-card.swap h3, .day-card.swap p { animation: swapin 360ms var(--fg-ease-out); }
@keyframes swapin { from { opacity: 0; transform: translateY(8px); } }
.mini-phone { width: 210px; min-height: 230px; border-radius: 30px; padding: 26px 18px; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  background: rgb(11 10 36 / 0.72); border: 1px solid rgb(255 255 255 / 0.16); box-shadow: 0 0 0 8px rgb(11 10 36 / 0.35); }
.mini-phone b { font: 800 17px/22px var(--fg-font); }
.mini-phone > span:last-child { color: var(--fg-panel-ink-muted); font: 500 13px/18px var(--fg-font); }
.mini-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); color: #fff; }
.mini-icon .ic { width: 28px; height: 28px; }
.scrub { margin-top: 30px; }
.scrub input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p, 0%), rgb(255 255 255 / 0.25) var(--p, 0%)); }
.scrub input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgb(255 255 255 / 0.25); }
.scrub input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: #fff; }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgb(11 10 36 / 0.45), 0 0 0 6px rgb(255 255 255 / 0.25); }
.scrub input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgb(11 10 36 / 0.45), 0 0 0 6px rgb(255 255 255 / 0.25); }
.scrub input[type="range"]:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 99px; }
.scrub-marks { display: flex; justify-content: space-between; padding: 0 2px; color: #E4DEFF; font: 600 12px/1 var(--fg-font); }

/* ---------- Build tracker + CTA ---------- */
.coming { position: relative; overflow: hidden; isolation: isolate; margin-top: 88px; padding: 44px; border-radius: 28px; background: var(--fg-gradient-cover); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.coming .glow-coral { right: -300px; top: -380px; }
.coming-copy p:not(.eyebrow) { margin-top: 14px; color: #E4DEFF; font-size: 17px; line-height: 1.55; max-width: 30em; }
.btn-light { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--fg-radius-control);
  background: #fff; color: var(--fg-brand-violet-deep); font: 800 16px/1 var(--fg-font); text-decoration: none; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
  transition: transform var(--fg-dur-press) var(--fg-ease-out), box-shadow var(--fg-dur-pop) var(--fg-ease-out); }
.btn-light:hover { box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.6); }
.btn-light:active { transform: scale(var(--fg-press-scale)); }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; }
.tracker li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.tracker li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 46px; bottom: -12px; width: 2px; background: rgb(255 255 255 / 0.16); }
.tracker li.done:not(:last-child)::after { background: #6EE7B7; }
.tracker b { display: block; font: 800 16px/20px var(--fg-font); }
.tracker div span { display: block; color: var(--fg-panel-ink-muted); font: 500 13px/18px var(--fg-font); }
.t-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 0.25); background: rgb(11 10 36 / 0.4); }
.t-dot .ic { width: 16px; height: 16px; stroke-width: 3; }
.done .t-dot { background: #6EE7B7; border-color: #6EE7B7; color: #064E3B; }
.now .t-dot { border-color: #C4B5FD; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #C4B5FD; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(196 181 253 / 0.7); } 100% { box-shadow: 0 0 0 14px rgb(196 181 253 / 0); } }
.t-tag { padding: 5px 10px; border-radius: var(--fg-radius-pill); font: 800 11px/1 var(--fg-font); font-style: normal; letter-spacing: 0.04em; background: rgb(255 255 255 / 0.1); color: #E4DEFF; }
.done .t-tag { background: rgb(110 231 183 / 0.16); color: #A7F3D0; }
.now .t-tag { background: #fff; color: var(--fg-brand-violet-deep); }

/* Confetti */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* Reduced motion: stillness, with every state still shown */
@media (prefers-reduced-motion: reduce) {
  .star, .shooting, .float-chip, .mouse span, .pulse, .water::before, .dome, .threat, .call.ok, .ring-kid.bump { animation: none !important; }
  .hl::after { animation: none; transform: scaleX(1); }
  .threat { opacity: 1; transform: none; }
  .threat.t1 { top: 8px; } .threat.t2 { top: 30px; } .threat.t3 { top: 4px; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .daypanel, .sun, .moon, .ring-kid, .water { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .chip-a { left: -60px; } .chip-b { --out: 50px; } .chip-c { --out: 20px; }
  .first, .first.wide { grid-column: span 3; }
}
@media (max-width: 900px) {
  .try, .coming { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .float-chip, .hero-scroll, .day-phone { display: none; }
  .firsts { grid-template-columns: 1fr; }
  .first, .first.wide { grid-column: auto; }
  .try, .daypanel, .coming { padding: 22px 18px; border-radius: 22px; }
  .switch3 { gap: 8px; }
  .switch3 button { padding: 12px 10px; }
  .day-body { grid-template-columns: 1fr; }
  .sun, .moon { width: 64px; height: 64px; left: auto; right: 6%; top: 10%; }
  .ring-kid { width: 160px; height: 160px; }
  .ring-inner-lg { width: 126px; height: 126px; }
  .ring-inner-lg b { font-size: 30px; }
}

/* Real phone proportions for the mock phones (about 9:19), with the app's tab bar pinned to the bottom */
.phone { display: flex; flex-direction: column; aspect-ratio: 9 / 18.6; }
.hero-phone .phone { width: 330px; }
.ph-request, .ph-request b { color: #14122B; }
.ph-tabs { margin: auto -6px 0; padding: 12px 4px 2px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgb(255 255 255 / 0.1); }
.ph-tabs span { position: relative; display: grid; justify-items: center; gap: 4px; color: #A5A1C8; font: 600 11px/1 var(--fg-font); }
.ph-tabs .ic { width: 20px; height: 20px; }
.ph-tabs .on { color: #C4B5FD; }
.ph-tabs i { position: absolute; top: -6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #FB7185; color: #fff; font: 800 10px/16px var(--fg-font); font-style: normal; text-align: center; }
.phone-kid .kid-breakdown { margin-top: auto; padding-bottom: 6px; }
@media (max-width: 1360px) {
  .chip-a { left: -110px; }
  .chip-b { --out: 70px; }
  .chip-c { --out: 50px; }
}
@media (max-width: 1020px) {
  .chip-a { left: -40px; } .chip-b { --out: 30px; } .chip-c { --out: 20px; }
}

/* ---------- Pinned top bar (stays visible while scrolling) ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; padding-top: env(safe-area-inset-top);
  transition: background var(--fg-dur-push) var(--fg-ease-out), box-shadow var(--fg-dur-push) var(--fg-ease-out); }
.topbar .nav { gap: 16px; padding-block: 18px; transition: padding var(--fg-dur-push) var(--fg-ease-out); }
.topbar .brand img { transition: height var(--fg-dur-push) var(--fg-ease-out); }
.topbar.scrolled { background: rgb(11 10 36 / 0.97); box-shadow: 0 1px 0 rgb(255 255 255 / 0.08), 0 12px 30px -14px rgb(0 0 0 / 0.6); }
.topbar.scrolled .nav { padding-block: 10px; }
.topbar.scrolled .brand img { height: 42px; }
.hero { padding-top: 84px; }
.nav-links a.active { color: #fff; background: rgb(255 255 255 / 0.12); box-shadow: inset 0 -2px 0 #C4B5FD; }
.nav-cta { display: none; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--fg-radius-control); white-space: nowrap;
  background: #fff; color: var(--fg-brand-violet-deep); font: 800 14px/1 var(--fg-font); text-decoration: none;
  transition: transform var(--fg-dur-press) var(--fg-ease-out); }
.nav-cta:active { transform: scale(var(--fg-press-scale)); }
.topbar.scrolled .nav-cta { display: inline-flex; }
.topbar.scrolled .nav-pill { display: none; }
section[id] { scroll-margin-top: 84px; }
#join { scroll-margin-top: 100px; }

@media (max-width: 1020px) {
  .topbar .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { display: flex; order: 3; flex: 1 0 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 4px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; white-space: nowrap; padding: 10px 14px; font-size: 14px; background: rgb(255 255 255 / 0.07); }
  .hero { padding-top: 128px; }
  section[id] { scroll-margin-top: 124px; }
  #join { scroll-margin-top: 136px; }
}
@media (max-width: 640px) {
  .topbar .nav { padding-block: 12px; }
  .topbar.scrolled .nav { padding-block: 8px; }
  .topbar.scrolled .nav-cta { display: none; } /* phones use the bottom sign-up bar */
  .hero { padding-top: 118px; }
}
@media (prefers-reduced-motion: reduce) { .topbar, .topbar .nav, .topbar .brand img { transition: none; } }
