/* NoPlan — public site and onboarding.
   Dark-first; light theme follows the system. Motion respects prefers-reduced-motion. */

@view-transition { navigation: auto; }

/* Self-hosted fonts (SIL OFL 1.1, licences alongside). Apple devices use SF first. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var-5.3.0.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic-5.3.0.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #06080c;
  --bg-2: #0b0e14;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-solid: #10141b;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2f4f7;
  --text-2: #c5cbd3;
  --muted: #8b939e;
  --accent: #5ef2c9;
  --accent-ink: #04261d;
  --violet: #9384ff;
  --pink: #ff7fd6;
  --danger: #ff7b7b;
  --aurora: linear-gradient(115deg, #5ef2c9 0%, #7bd3ff 35%, #9384ff 68%, #ff7fd6 100%);
  --btn-bg: #f4f6f8;
  --btn-ink: #06080c;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 10px 30px -10px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 40px -12px rgba(0, 0, 0, .55);
  --blob-a: rgba(46, 230, 175, .30);
  --blob-b: rgba(124, 104, 255, .28);
  --blob-c: rgba(255, 110, 200, .16);
  --grain-opacity: .05;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f6f8;
    --bg-2: #eceef2;
    --surface: rgba(255, 255, 255, .72);
    --surface-2: rgba(255, 255, 255, .95);
    --surface-solid: #ffffff;
    --line: rgba(12, 18, 28, .08);
    --line-2: rgba(12, 18, 28, .16);
    --text: #0b0e14;
    --text-2: #2f3640;
    --muted: #616a75;
    --accent: #0b9f78;
    --accent-ink: #ffffff;
    --violet: #5b4ae6;
    --pink: #d23a9f;
    --danger: #c43d3d;
    --aurora: linear-gradient(115deg, #10b98a 0%, #3aa0f0 38%, #6a5cff 70%, #e04bb0 100%);
    --btn-bg: #0b0e14;
    --btn-ink: #ffffff;
    --shadow-lg: 0 30px 80px -24px rgba(16, 24, 40, .22), 0 8px 24px -12px rgba(16, 24, 40, .12);
    --shadow-md: 0 12px 34px -14px rgba(16, 24, 40, .2);
    --blob-a: rgba(16, 200, 150, .20);
    --blob-b: rgba(106, 92, 255, .16);
    --blob-c: rgba(230, 80, 180, .10);
    --grain-opacity: .035;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Aurora: three slow-drifting blurred fields, plus film grain. GPU transforms only. */
.aurora {
  position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; overflow: hidden;
}
.aurora i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); will-change: transform; opacity: .9;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--blob-a), transparent 62%); left: 5%; top: -5%; animation: drift-a 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--blob-b), transparent 62%); right: -5%; top: 10%; animation: drift-b 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--blob-c), transparent 60%); left: 30%; bottom: -20%; animation: drift-c 38s ease-in-out infinite alternate; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-16vmax, 12vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -14vmax, 0) scale(1.2); } }

/* ------------------------------------------------------------------ type */

.display {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.display em, .title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.title {
  font-family: var(--font-display); font-weight: 640; letter-spacing: -.035em;
  line-height: 1.04; margin: 0; text-wrap: balance;
  font-size: clamp(34px, 5.2vw, 56px);
}
.lede { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.gradient-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ chrome */

.nav {
  position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  max-width: 1200px; margin: 0 auto;
}
.landing .nav { position: sticky; top: 0; }
.nav.blurred::before {
  content: ""; position: absolute; inset: 0 -100vw; z-index: -1;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; flex: none; view-transition-name: brand-mark; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14.5px; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface); }

/* ------------------------------------------------------------------ buttons */

.btn {
  --b: var(--btn-bg); --i: var(--btn-ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b); color: var(--i);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .3s var(--ease), opacity .2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 30px -10px color-mix(in srgb, var(--accent) 45%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-1px) scale(1.015); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); transition-duration: .15s; }
.btn .icon { transition: transform .4s var(--spring); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 17px; }
.btn-ghost {
  --b: var(--surface); --i: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface-2); }
.btn-ghost::after { display: none; }
.btn-quiet {
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 10px 6px;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 550; border-radius: 10px;
  transition: color .2s;
}
.btn-quiet:hover { color: var(--text); }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .7; }

/* ------------------------------------------------------------------ landing */

.landing main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px;
  min-height: min(860px, calc(100dvh - 70px)); padding: 40px 0 80px;
}
.hero .display { font-size: clamp(48px, 7.6vw, 98px); margin: 22px 0 26px; }
.hero .lede { max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-note .icon { width: 16px; height: 16px; color: var(--accent); }

.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Phone mock with a live-assembling calendar */
.device-wrap { position: relative; display: grid; place-items: center; perspective: 1600px; }
.device-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--aurora); filter: blur(90px); opacity: .35; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .5; } }
.device {
  position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 18.6; border-radius: 52px; padding: 12px;
  background: linear-gradient(160deg, #2a2f38, #0c0f14 40%, #1b1f27);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1.5deg);
  transition: transform 1.2s var(--ease);
}
.device-wrap:hover .device { transform: rotateY(-6deg) rotateX(3deg) rotateZ(.5deg); }
.screen {
  position: relative; height: 100%; border-radius: 41px; overflow: hidden;
  background: #fbfbfd; color: #0b0e14; padding: 54px 16px 16px;
  font-family: var(--font);
}
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #0b0e14; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.cal-head b { font-size: 26px; letter-spacing: -.03em; font-family: var(--font-display); }
.cal-head span { color: #e5484d; font-weight: 600; font-size: 14px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin: 12px 0 10px; font-size: 11px; color: #8a8f98; gap: 2px; }
.cal-week b { display: grid; place-items: center; margin: 4px auto 0; width: 30px; height: 30px; border-radius: 50%; color: #0b0e14; font-size: 15px; font-weight: 500; }
.cal-week b.today { background: #e5484d; color: #fff; font-weight: 650; }
.cal-list { display: grid; gap: 7px; }
.cal-event {
  display: grid; grid-template-columns: 4px 1fr; gap: 10px; align-items: stretch;
  padding: 9px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.3;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  transform-origin: top center;
  animation: drop-in .9s var(--spring) both;
}
.cal-event::before { content: ""; border-radius: 4px; background: var(--c); }
.cal-event b { display: block; font-weight: 600; color: #11151c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event small { color: #646b75; font-size: 11px; }
.cal-event.out { animation: fade-out .5s var(--ease) both; }
.cal-day { font-size: 11px; font-weight: 650; color: #8a8f98; text-transform: uppercase; letter-spacing: .06em; margin: 8px 4px 0; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-out { to { opacity: 0; transform: scale(.97); } }

.toast {
  position: absolute; left: -40px; top: 36%; z-index: 2;
  display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: 13.5px; max-width: 270px;
  animation: float 6s ease-in-out infinite;
}
.toast .badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--aurora); color: #06080c; flex: none; }
.toast b { display: block; font-weight: 600; }
.toast small { color: var(--muted); }
.toast.t2 { left: auto; right: -30px; top: auto; bottom: 18%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquee of real upcoming events */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-size: 14.5px;
}
.pill .date { display: grid; place-items: center; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 650; color: var(--text-2); }
.pill .icon { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 130px 0 40px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .title { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 34px 30px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); display: block; margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feature {
  position: relative; overflow: hidden; grid-column: span 4;
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  min-height: 300px; display: flex; flex-direction: column;
  transition: border-color .4s, transform .6s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature.wide { grid-column: span 8; }
.feature h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 620; }
.feature p { margin: 0; color: var(--muted); max-width: 42ch; }
.feature .art { flex: 1; min-height: 150px; display: grid; place-items: center; margin: -6px -6px 22px; }
.feature .glyph { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); }
.feature .glyph .icon { width: 34px; height: 34px; color: var(--accent); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 24px 30px; max-width: 560px; }
.chip-cloud span { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); animation: twinkle 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.chip-cloud span.hot { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
@keyframes twinkle { 50% { opacity: .55; } }

.rings { position: relative; width: 220px; height: 220px; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); animation: ripple 4s var(--ease) infinite; }
.rings i:nth-child(2) { animation-delay: 1.33s; }
.rings i:nth-child(3) { animation-delay: 2.66s; }
.rings b { position: absolute; inset: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 30px var(--accent); }
@keyframes ripple { from { transform: scale(.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }

.sync-line { display: flex; align-items: center; gap: 18px; }
.sync-line .node { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.sync-line .node .icon { width: 28px; height: 28px; }
.sync-line .wire { position: relative; width: 120px; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.sync-line .wire::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--aurora); animation: pulse-wire 2.2s var(--ease) infinite; }
@keyframes pulse-wire { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.step-card::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 44px; letter-spacing: .02em; }
.step-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.025em; font-weight: 620; }
.step-card p { margin: 0; color: var(--muted); }

.cta-band { position: relative; overflow: hidden; margin: 130px 0 60px; padding: 90px 40px; border-radius: 36px; text-align: center; border: 1px solid var(--line); background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%), var(--surface); }
.cta-band .title { max-width: 16ch; margin: 0 auto 18px; }
.cta-band .lede { max-width: 46ch; margin: 0 auto 36px; }
.footer { max-width: 1200px; margin: 0 auto; padding: 30px 20px 50px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ onboarding */

.ob { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.ob-main { position: relative; display: flex; flex-direction: column; min-height: 100dvh; padding: 0 clamp(20px, 5vw, 72px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.progress { position: relative; flex: 1; max-width: 360px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--aurora); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease); border-radius: 4px; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.ob-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

.ob-stage { position: relative; flex: 1; }
.step {
  position: absolute; top: 0; left: 0; width: 100%; max-width: 680px; padding: clamp(28px, 11vh, 130px) 0 140px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(36px); filter: blur(10px);
  transition: opacity .55s var(--ease), transform .8s var(--ease), filter .6s var(--ease), visibility 0s .8s;
}
.step.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none; transition-delay: .12s, .12s, .12s, 0s; }
.step.is-leaving { transform: translateY(-36px); }
.step.is-leaving.back { transform: translateY(36px); }
.step.from-back:not(.is-active) { transform: translateY(-36px); }
.step > * { transition: opacity .7s var(--ease), transform .9s var(--ease); }
.step.is-active > * { animation: rise .9s var(--ease) both; }
.step.is-active > *:nth-child(2) { animation-delay: .08s; }
.step.is-active > *:nth-child(3) { animation-delay: .16s; }
.step.is-active > *:nth-child(4) { animation-delay: .24s; }
.step.is-active > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.step .eyebrow { margin-bottom: 18px; }
.step .title { font-size: clamp(34px, 4.6vw, 54px); }
.step .lede { margin-top: 14px; max-width: 46ch; }
.step-body { margin-top: 36px; }

.ob-nav {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 40%);
}
.ob-nav .hint-key { color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.ob-nav .hint-key kbd { font: 600 11px var(--font); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); }
.ob-nav .right { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.field-error { min-height: 22px; margin-top: 14px; color: var(--danger); font-size: 14.5px; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); }
.field-error.show { opacity: 1; transform: none; }
.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* Big choice cards */
.choices { display: grid; gap: 12px; }
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-face {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--spring), border-color .3s, background .3s, box-shadow .4s;
}
.choice-face::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.choice:hover .choice-face { border-color: var(--line-2); background: var(--surface-2); }
.choice:active .choice-face { transform: scale(.98); }
.choice input:checked + .choice-face { background: var(--surface-2); box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--accent) 55%, transparent); }
.choice input:checked + .choice-face::before { opacity: 1; }
.choice input:focus-visible + .choice-face { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-face .glyph { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: .4s var(--ease); }
.choice-face .glyph .icon { width: 24px; height: 24px; }
.choice input:checked + .choice-face .glyph { background: var(--aurora); color: #06080c; border-color: transparent; transform: rotate(-6deg) scale(1.06); }
.choice-face > div { display: grid; gap: 6px; }
.choice-face b { font-size: 18px; font-weight: 620; letter-spacing: -.02em; }
.choice-face small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice-face .check { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); transition: .35s var(--spring); }
.choice-face .check .icon { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: .35s var(--spring); }
.choice input:checked + .choice-face .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:checked + .choice-face .check .icon { opacity: 1; transform: none; }

/* Kids */
.kids { display: grid; gap: 12px; }
.kid {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 16px 16px 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  animation: pop-in .6s var(--spring) both;
}
.kid.removing { animation: pop-out .35s var(--ease-in) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: scale(.94); } }
.kid-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-family: var(--font-display); font-size: 20px; color: #06080c; background: var(--aurora); background-size: 300% 100%; background-position: calc(var(--n, 0) * 33%) 0; }
.kid-fields { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.kid-fields .lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.stepper button:hover { background: var(--surface-2); }
.stepper button:active { transform: scale(.88); }
.stepper button .icon { width: 16px; height: 16px; }
.stepper input { width: 52px; text-align: center; border: 0; background: transparent; font-size: 20px; font-weight: 620; font-variant-numeric: tabular-nums; padding: 0; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input.bump { animation: bump .35s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25); } }
.stepper input[data-empty] { color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none; min-height: 46px; padding: 0 42px 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b939e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>") no-repeat right 16px center;
  border: 1px solid var(--line); font-weight: 550; outline: none; transition: border-color .2s;
}
.select:focus { border-color: var(--accent); }
.select option { background: var(--surface-solid); color: var(--text); }
.kid .remove { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.kid .remove:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.kid .remove .icon { width: 18px; height: 18px; }
.kids[data-single] .remove { visibility: hidden; }
.add-kid { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; cursor: pointer; color: var(--text-2); font-weight: 550; transition: .25s; }
.add-kid:hover { border-color: var(--accent); color: var(--text); border-style: solid; }
.add-kid .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--surface-2); }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 52ch; }
.privacy-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* Big text inputs */
.big-input {
  width: 100%; max-width: 560px; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; outline: none;
  font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 46px); font-weight: 560; letter-spacing: -.03em;
  padding: 10px 0 14px; transition: border-color .3s; border-radius: 0;
}
.big-input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.big-input:focus { border-bottom-color: var(--accent); }
.postcode { position: relative; display: inline-block; }
.postcode .big-input { width: calc(4ch + 1.7em); max-width: none; letter-spacing: .32em; font-variant-numeric: tabular-nums; padding-left: .1em; }
.place { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 14px 0 0; color: var(--text-2); font-size: 16px; opacity: 0; transition: opacity .3s; }
.place.show { opacity: 1; }
.place.show::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.place.place-in { animation: rise .6s var(--ease) both; }
.input-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 30px 0 4px; letter-spacing: .02em; }

/* Interest chips: tap = like, tap again = love, tap again = clear */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 520; user-select: none; -webkit-user-select: none;
  transition: transform .45s var(--spring), background .25s, border-color .25s, color .25s, box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .icon { width: 18px; height: 18px; color: var(--muted); transition: color .25s, transform .45s var(--spring); }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip:active { transform: scale(.94); }
.chip[data-state="like"], .chip:has(input:checked):not([data-tri]) { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.chip[data-state="like"] .icon, .chip:has(input:checked):not([data-tri]) .icon { color: var(--accent); }
.chip[data-state="love"] { background: var(--aurora); border-color: transparent; color: #06080c; font-weight: 600; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--violet) 70%, transparent); }
.chip[data-state="love"] .icon { color: #06080c; transform: rotate(-8deg) scale(1.1); }
.chip .love-badge { display: none; width: 18px; height: 18px; margin-right: -4px; }
.chip[data-state="love"] .love-badge { display: block; animation: star .6s var(--spring) both; }
@keyframes star { from { transform: scale(0) rotate(-90deg); } }
.chip.pop { animation: chip-pop .5s var(--spring); }
@keyframes chip-pop { 30% { transform: scale(1.08); } }
.chip.exclude:has(input:checked) { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--text); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.chip.exclude:has(input:checked) .icon { color: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.legend i.like { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.legend i.love { background: var(--aurora); border: 0; }

/* Weekdays */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 620px; }
.day { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.15; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; transition: transform .45s var(--spring), background .25s, border-color .25s, color .25s;
}
.day span small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.day:active span { transform: scale(.92); }
.day input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; transform: translateY(-3px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.day input:checked + span small { color: inherit; opacity: .6; }
.day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.preset { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--text-2); transition: .25s; }
.preset:hover { border-color: var(--line-2); color: var(--text); }
.preset.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Segmented slider (radio group rendered as a track with a sliding thumb) */
.slider { position: relative; max-width: 620px; }
.slider-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.slider-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n)); border-radius: 999px; background: var(--btn-bg); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .65s var(--spring); }
.slider label { position: relative; z-index: 1; cursor: pointer; text-align: center; padding: 13px 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.slider label input { position: absolute; opacity: 0; pointer-events: none; }
.slider label:has(input:checked) { color: var(--btn-ink); }
.slider label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.slider-caption { margin-top: 18px; min-height: 48px; font-size: 16px; color: var(--text-2); }
.slider-caption b { color: var(--text); font-weight: 620; }

.viz { position: relative; height: 200px; margin: 0 0 30px; max-width: 620px; display: grid; place-items: center; }
.radar { position: relative; width: 200px; height: 200px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); transition: transform .9s var(--spring), border-color .5s, background .5s; }
.radar i:nth-child(1) { transform: scale(.25); }
.radar i:nth-child(2) { transform: scale(.5); }
.radar i:nth-child(3) { transform: scale(.75); }
.radar i.on { border-style: solid; border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.radar .home { position: absolute; inset: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 24px var(--accent); }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 25%); animation: sweep 4s linear infinite; mask: radial-gradient(circle, #000 0 calc(var(--r, .5) * 50%), transparent calc(var(--r, .5) * 50% + 1px)); -webkit-mask: radial-gradient(circle, #000 0 calc(var(--r, .5) * 50%), transparent calc(var(--r, .5) * 50% + 1px)); transition: --r .8s; }
.radar .pin { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--text-2); opacity: .25; transition: opacity .5s, transform .6s var(--spring), background .4s; }
.radar .pin.on { opacity: 1; background: var(--accent); transform: scale(1.3); }
.radar .pin.star.on { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
@keyframes sweep { to { transform: rotate(360deg); } }
@property --r { syntax: "<number>"; inherits: true; initial-value: .5; }

.density { display: grid; grid-template-columns: repeat(7, 22px); gap: 7px; }
.density i { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); transition: background .5s var(--ease), transform .6s var(--spring), border-color .5s; transition-delay: calc(var(--k) * 12ms); }
.density i.on { background: var(--aurora); background-size: 700% 100%; background-position: calc(var(--k) * 3%) 0; border-color: transparent; transform: scale(1.05); }

.toggle { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; max-width: 620px; padding: 18px 20px; margin-top: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.toggle b { display: block; font-weight: 600; letter-spacing: -.01em; }
.toggle small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line-2); transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .5s var(--spring); }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Live preview panel */
.ob-side { position: sticky; top: 0; height: 100dvh; padding: 20px 20px 20px 0; }
.panel {
  height: 100%; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow: var(--shadow-lg);
}
.panel-head { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.panel-head .eyebrow { margin-bottom: 12px; }
.count-line { display: flex; align-items: baseline; gap: 10px; }
.count-num { font-family: var(--font-display); font-size: 56px; font-weight: 620; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.count-line > span:not(.count-num) { color: var(--muted); font-size: 15px; }
.count-delta { display: inline-block; font-size: 13px; font-weight: 650; padding: 3px 8px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.count-delta.show { opacity: 1; transform: none; }
.count-delta.up { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.count-delta.down { color: var(--muted); background: var(--surface-2); }
.panel-list { position: relative; flex: 1; overflow: auto; padding: 14px; display: grid; align-content: start; gap: 8px; scrollbar-width: thin; }
.panel-empty { padding: 30px 14px; text-align: center; color: var(--muted); font-size: 14.5px; }
.panel-empty .icon { width: 32px; height: 32px; margin: 0 auto 12px; color: var(--accent); }
.ev {
  display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  animation: ev-in .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.ev.out { animation: ev-out .3s var(--ease-in) both; }
@keyframes ev-in { from { opacity: 0; transform: translateX(24px) scale(.97); filter: blur(4px); } }
@keyframes ev-out { to { opacity: 0; transform: translateX(-16px) scale(.97); } }
.ev-date { display: grid; place-items: center; height: 54px; border-radius: 12px; background: var(--surface-2); line-height: 1; }
.ev-date small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.ev-date b { font-family: var(--font-display); font-size: 21px; font-weight: 620; letter-spacing: -.03em; margin-top: -6px; }
.ev-body { min-width: 0; }
.ev-body b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-body small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-body .why { display: inline-flex; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.panel-foot { padding: 14px 24px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.panel-foot .icon { width: 16px; height: 16px; color: var(--accent); }
.panel.loading .count-num { opacity: .6; }
.shimmer { height: 74px; border-radius: 16px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mobile preview pill + sheet */
.peek { display: none; }

/* Building overlay shown while the calendar is created */
.building {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.building.show { opacity: 1; pointer-events: auto; }
.building .orb { width: 120px; height: 120px; margin: 0 auto 30px; border-radius: 50%; background: conic-gradient(from 0deg, #5ef2c9, #7bd3ff, #9384ff, #ff7fd6, #5ef2c9); filter: blur(1px); animation: spin 2.4s linear infinite; mask: radial-gradient(circle, transparent 52%, #000 54%); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); }
.building p { color: var(--muted); margin: 10px 0 0; min-height: 24px; transition: opacity .3s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ ready */

.ready { max-width: 760px; margin: 0 auto; padding: 30px 20px 80px; text-align: center; }
.seal { position: relative; width: 120px; height: 120px; margin: 40px auto 36px; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .ring { fill: none; stroke: url(#aurora-g); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.2s var(--ease) .2s forwards; transform-origin: center; transform: rotate(-90deg); }
.seal .tick { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .6s var(--ease) 1.05s forwards; }
.seal .halo { position: absolute; inset: -30%; border-radius: 50%; background: var(--aurora); filter: blur(40px); opacity: 0; animation: halo 1.8s var(--ease) .9s forwards; z-index: -1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes halo { 40% { opacity: .55; } to { opacity: .25; } }
.ready .display { font-size: clamp(42px, 6.5vw, 76px); }
.ready .lede { margin: 20px auto 0; max-width: 40ch; }
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 440px; margin: 40px auto 0; }
.subscribe .btn { width: 100%; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.copy-row .btn { width: auto; }
.copy-row .btn.copied { --b: var(--accent); --i: var(--accent-ink); }
.first-up { margin: 70px auto 0; text-align: left; }
.first-up h2 { font-size: 15px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; text-align: center; }
.first-up .list { display: grid; gap: 8px; }
.keep-card { margin: 50px auto 0; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.keep-card .glyph { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.keep-card .glyph .icon { color: var(--accent); }
.keep-card b { display: block; font-weight: 620; }
.keep-card small { color: var(--muted); font-size: 14px; }
.how-to { margin-top: 18px; font-size: 14px; color: var(--muted); }
.how-to summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.how-to p { text-align: left; max-width: 52ch; margin: 12px auto 0; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ------------------------------------------------------------------ messages & profile */

.message { max-width: 620px; margin: 0 auto; padding: 14vh 20px 80px; }
.message .title { margin: 18px 0 16px; }
.message .btn { margin-top: 32px; }

.settings { max-width: 1200px; margin: 0 auto; padding: 10px 20px 140px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.settings-head { grid-column: 1 / -1; padding: 30px 0 10px; }
.settings-head .title { margin-top: 14px; }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.settings-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: .2s; }
.settings-nav a:hover { border-color: var(--line-2); color: var(--text); }
.group { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.group:first-child { border-top: 0; padding-top: 10px; }
.group h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em; font-weight: 620; }
.group > p { margin: 0 0 24px; color: var(--muted); }
.settings .panel { height: auto; max-height: calc(100dvh - 40px); }
.settings aside { position: sticky; top: 20px; }
.savebar {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; translate: -50% 0;
  display: flex; gap: 16px; align-items: center; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .7s var(--spring);
}
.savebar.show { transform: none; }
.savebar span { font-size: 14.5px; color: var(--text-2); white-space: nowrap; }
.banner { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; font-size: 15px; animation: rise .8s var(--ease) both; }
.banner .icon { width: 20px; height: 20px; }
.banner.ok { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.banner.ok .icon { color: var(--accent); }
.banner.err { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.banner.err .icon { color: var(--danger); }

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

@media (max-width: 1100px) {
  .ob { grid-template-columns: minmax(0, 1fr) 360px; }
  .settings { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 30px; padding-top: 20px; min-height: 0; }
  .device-wrap { margin-top: 20px; }
  .toast { left: 0; }
  .toast.t2 { right: 0; }
  .features .feature, .features .feature.wide { grid-column: span 12; }
  .steps, .stats { grid-template-columns: 1fr; }
  .section { padding-top: 90px; }

  .ob { grid-template-columns: 1fr; }
  .ob-side { display: none; }
  .settings { grid-template-columns: 1fr; }
  .settings aside { display: none; }
  .peek {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer; flex: none;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 550;
    transition: transform .5s var(--spring), opacity .3s;
  }
  .peek.hidden { opacity: 0; transform: scale(.9); pointer-events: none; }
  .ob-count { display: none; }
  .peek b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--aurora); color: #06080c; font-variant-numeric: tabular-nums; font-weight: 700; }
  .peek.bump b { animation: bump .45s var(--spring); }
  .ob-side.sheet-open { display: block; position: fixed; inset: auto 0 0 0; height: 78dvh; z-index: 90; padding: 0; animation: sheet-up .6s var(--spring) both; }
  .ob-side.sheet-open .panel { border-radius: 28px 28px 0 0; background: var(--surface-solid); }
  .scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero .display { font-size: clamp(44px, 13vw, 64px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .device { transform: none; width: min(300px, 78vw); }
  .toast { display: none; }
  .choices.cols-3, .choices.cols-2 { grid-template-columns: 1fr; }
  .choice-face { flex-direction: row; align-items: center; padding: 16px 52px 16px 16px; }
  .choice-face .check { top: 50%; translate: 0 -50%; }
  .step { padding-bottom: 170px; }
  .step-body { margin-top: 26px; }
  .kid { grid-template-columns: auto 1fr; }
  .kid .remove { grid-column: 2; justify-self: end; grid-row: 1; }
  .kid-fields { grid-column: 1 / -1; }
  .days { gap: 6px; }
  .day span { border-radius: 14px; font-size: 14px; }
  .slider label { font-size: 13px; padding: 12px 2px; }
  .ob-nav .hint-key { display: none; }
  .ob-nav .right { flex: 1; }
  .ob-nav .right .btn { flex: 1; }
  .keep-card { grid-template-columns: auto 1fr; }
  .keep-card .btn { grid-column: 1 / -1; }
  .cta-band { padding: 64px 22px; border-radius: 28px; }
  .stat { padding: 26px 22px; }
  .savebar { left: 12px; right: 12px; translate: none; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .aurora i { animation: none; }
}

/* Settings page uses the preview panel inline rather than full-height. */
.settings .ob-side { position: sticky; top: 20px; height: auto; padding: 0; }
.settings .panel { max-height: calc(100dvh - 40px); }
.settings .panel-list { max-height: 52dvh; }
