/* The home page: Liquid Glass and the aurora orb (the app's voice), on a quiet cool-white page.
   One memorable thing (the orb), one orchestrated scroll moment (the story), everything else still.
   Motion runs on transform and opacity only, and stops for Reduce Motion (home.js). */

:root {
  --paper: #f5f5f8;
  --paper-2: #ececf2;
  --ink: #15151c;
  --ink-2: #5d5d6b;
  --hair: rgb(21 21 28 / 0.08);
  --glass: rgb(255 255 255 / 0.62);
  --glass-edge: rgb(255 255 255 / 0.9);
  --glass-shade: rgb(21 21 28 / 0.06);
  --aurora-1: #2e7cf6;
  --aurora-2: #7b61ff;
  --aurora-3: #c04df2;
  --aurora-4: #f2416b;
  --aurora-5: #f7a21b;
  --aurora-6: #5ac8fa;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0c11;
    --paper-2: #14141b;
    --ink: #f3f3f7;
    --ink-2: #a2a2b0;
    --hair: rgb(255 255 255 / 0.09);
    --glass: rgb(30 30 40 / 0.55);
    --glass-edge: rgb(255 255 255 / 0.14);
    --glass-shade: rgb(0 0 0 / 0.4);
  }
}

.home-page { background: var(--paper); color: var(--ink); overflow-x: clip; }
.home-page ::selection { background: rgb(123 97 255 / 0.25); }

/* ── Floating island navigation ─────────────────────────── */
.home-page .site-header {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 760px);
  border: 1px solid var(--glass-edge); border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 10px 30px -12px var(--glass-shade);
}
.home-page .site-header .inner { padding: 8px 8px 8px 18px; gap: 16px; }
.home-page .site-nav a:not(.button) { color: var(--ink-2); }
.home-page .site-nav a:not(.button):hover { color: var(--ink); }

/* ── Glass: a double edge, like a pane sitting in a tray ── */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 30px 60px -30px var(--glass-shade), 0 0 0 6px rgb(255 255 255 / 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
@media (prefers-color-scheme: dark) {
  .glass { box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 30px 60px -30px var(--glass-shade), 0 0 0 6px rgb(255 255 255 / 0.03); }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero2 {
  position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 120px 24px 72px;
}
.hero2 h1 {
  margin: 0 0 24px; font: 640 clamp(44px, 6.2vw, 92px)/0.98 var(--font-display); letter-spacing: -0.055em;
}
.hero2 h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero2 h1 .line > span { display: inline-block; }
.hero2 .lead { color: var(--ink-2); font-size: clamp(18px, 1.7vw, 21px); max-width: 30em; margin: 0 0 36px; }
.hero2 .waitlist { max-width: 480px; }
.hero2 .form-note { max-width: 480px; }

/* The orb: two blurred aurora layers turning against each other inside a glass sphere. */
.orb-stage { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.orb {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #f1efff 60%, #e3e0fb 100%);
  box-shadow: 0 50px 90px -30px rgb(123 97 255 / 0.55), 0 20px 40px -20px rgb(46 124 246 / 0.4), inset 0 -18px 40px rgb(123 97 255 / 0.18);
}
@media (prefers-color-scheme: dark) {
  .orb { background: radial-gradient(circle at 50% 55%, #24213d 0%, #15142a 70%, #0f0e1f 100%); box-shadow: 0 50px 110px -30px rgb(123 97 255 / 0.6), inset 0 -18px 40px rgb(123 97 255 / 0.25); }
}
/* No blur filters anywhere in the orb: iOS Safari cuts a blurred, turning layer off at its box
   (flat edges). Every layer is a circle the orb's size with soft gradients only, turning in place. */
.orb .aurora {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0.95;
  background: conic-gradient(from 0deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-4), var(--aurora-5), var(--aurora-6), var(--aurora-1));
  animation: orb-turn 16s linear infinite;
}
.orb .aurora.b {
  opacity: 0.85; mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at 28% 30%, rgb(255 255 255 / 0.85), transparent 38%),
    radial-gradient(circle at 75% 70%, var(--aurora-6), transparent 45%),
    radial-gradient(circle at 70% 22%, var(--aurora-4), transparent 40%);
  animation-duration: 11s; animation-direction: reverse;
}
.orb .core {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.6) 35%, rgb(255 255 255 / 0.15) 62%, transparent 72%);
  animation: orb-breathe 6s var(--ease-out) infinite alternate;
}
@media (prefers-color-scheme: dark) { .orb .core { background: radial-gradient(circle, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.2) 55%, transparent 72%); } }
.orb .sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(120% 80% at 30% 12%, rgb(255 255 255 / 0.7), transparent 40%), radial-gradient(90% 60% at 70% 105%, rgb(255 255 255 / 0.25), transparent 60%);
}
/* Listening rings, sent out now and then (home.js adds .ping). */
.orb-ring { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgb(123 97 255 / 0.35); opacity: 0; pointer-events: none; }
.orb-ring.ping { animation: orb-ping 2.4s var(--ease-out); }
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-breathe { from { transform: scale(0.92); opacity: 0.85; } to { transform: scale(1.06); opacity: 1; } }
@keyframes orb-ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }

/* Memories floating around the orb. */
.memory {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px;
  border-radius: 16px; font-size: 14px; line-height: 1.25; white-space: nowrap;
  animation: drift 7s ease-in-out infinite alternate;
}
.memory strong { display: block; font-weight: 600; }
.memory span.sub { color: var(--ink-2); font-size: 12.5px; }
.memory .tile { width: 30px; height: 30px; border-radius: 9px; }
.memory .tile .icon { width: 16px; height: 16px; }
.memory.m1 { top: 6%; left: -4%; }
.memory.m2 { top: 20%; right: -1%; animation-delay: -2s; }
.memory.m3 { bottom: 16%; left: -2%; animation-delay: -4s; }
.memory.m4 { bottom: 4%; right: -2%; animation-delay: -1s; }
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; color: var(--ink-2); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--ink-2), transparent); transform-origin: top; animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 104px; min-height: auto; gap: 56px; }
  .orb-stage { width: min(100%, 380px); }
  .memory { font-size: 13px; }
  .memory.m1 { left: -2%; } .memory.m2 { right: -2%; } .memory.m3 { left: 0; } .memory.m4 { right: 0; }
  .scroll-cue { display: none; }
}

/* ── The story: one pinned scene, played by scrolling ── */
.story { position: relative; }
.story-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.story-steps { position: relative; list-style: none; margin: 0; padding: 0; }
.step { padding: 18px 0 18px 28px; border-left: 2px solid var(--hair); transition: border-color 400ms var(--ease-out); }
.step h3 { margin: 0 0 6px; font: 600 clamp(26px, 3vw, 38px)/1.1 var(--font-display); letter-spacing: -0.035em; color: var(--ink-2); transition: color 400ms var(--ease-out); }
.step p { margin: 0; color: var(--ink-2); max-width: 26em; }
.step.is-active { border-left-color: var(--accent); }
.step.is-active h3 { color: var(--ink); }
.story-title { margin: 0 0 28px; font: 640 clamp(34px, 4.6vw, 60px)/1 var(--font-display); letter-spacing: -0.045em; max-width: 12ch; }

.phone { width: min(100%, 420px); justify-self: center; padding: 20px 16px 22px; border-radius: 40px; }
.phone .bubble { background: var(--accent); }
.chat-item { margin-bottom: 12px; }
.receipt-thumb { display: grid; gap: 5px; width: 92px; padding: 10px; margin: 0 0 8px auto; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.35); transform: rotate(3deg); }
.receipt-thumb i { display: block; height: 4px; border-radius: 2px; background: #d9d9e3; }
.receipt-thumb i:nth-child(odd) { width: 70%; }
.receipt-thumb b { display: block; height: 6px; width: 50%; border-radius: 2px; background: #7b61ff; margin-top: 2px; }
.phone .card { background: var(--surface); }
.fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 14px; }
.fields dt { color: var(--secondary); }
.fields dd { margin: 0; font-variant-numeric: tabular-nums; }
.total { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; padding-bottom: 72px; gap: 40px; }
}

/* ── Feature bento ─────────────────────────────────────── */
.bento-wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px 120px; }
.bento-wrap > h2, .uses-wrap > h2, .faq-wrap > h2 { margin: 0 0 14px; font: 640 clamp(34px, 4.6vw, 60px)/1 var(--font-display); letter-spacing: -0.045em; max-width: 14ch; }
.bento-wrap > .lead { color: var(--ink-2); margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile-card { padding: 28px; border-radius: 30px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; overflow: hidden; }
.tile-card h3 { margin: 6px 0 0; font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.tile-card p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 34em; }
.tile-card .art { margin-top: auto; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .span-7, .span-5 { grid-column: auto; } }

.big-number { font: 640 clamp(44px, 6vw, 72px)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.big-number small { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.mini-rows { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; }
.mini-rows li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--hair); }
.mini-rows li span:last-child { font-variant-numeric: tabular-nums; }
.mini-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.mini-checks li { display: flex; align-items: center; gap: 12px; }
.mini-checks .box { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--tertiary); display: grid; place-items: center; transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out); }
.mini-checks .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transform: scale(0.4); transition: opacity 200ms var(--ease-out), transform 350ms var(--ease-spring); }
.mini-checks li.done .box { background: var(--list); border-color: var(--list); }
.mini-checks li.done .box svg { opacity: 1; transform: scale(1); }
.mini-checks li.done .txt { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--tertiary); }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--surface); font-size: 14px; box-shadow: 0 10px 30px -18px var(--glass-shade); }
.notif .tile { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif strong { display: block; }
.notif .when { margin-left: auto; color: var(--secondary); font-size: 12px; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; background: linear-gradient(135deg, #ff6b8a, #ff2d55); }

/* ── Breadth: everything Doosi can keep, drifting past ── */
.breadth { position: relative; color: #f3f3f7; background: #101017; overflow: hidden; padding: 130px 0 140px; }
.breadth::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% -5%, rgb(123 97 255 / 0.45), transparent 70%), radial-gradient(40% 40% at 80% 10%, rgb(46 124 246 / 0.3), transparent 70%);
}
.breadth-head { position: relative; max-width: 1200px; margin: 0 auto 64px; padding: 0 24px; }
.breadth h2 { margin: 0 0 18px; font: 640 clamp(40px, 6vw, 80px)/0.98 var(--font-display); letter-spacing: -0.05em; max-width: 13ch; }
.breadth .lead { color: #b4b4c3; max-width: 32em; }
.marquee {
  position: relative; display: flex; gap: 14px; overflow: hidden; padding: 7px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; flex: none; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }
.say {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 18px; white-space: nowrap; font-size: 16px; color: #ececf2;
  background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.1); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.say .tile { width: 30px; height: 30px; border-radius: 9px; }
.say .tile .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 24px; }
  .marquee-track { animation: none; flex-wrap: wrap; flex: 1; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .say { white-space: normal; }
}

/* ── FAQ and close ─────────────────────────────────────── */
.faq-wrap { max-width: 1200px; margin: 0 auto; padding: 120px 24px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-wrap .faq { margin-top: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

.close { position: relative; text-align: center; padding: 140px 24px 160px; overflow: hidden; }
.close .orb-stage { width: 220px; margin: 0 auto 36px; }
.close h2 { margin: 0 auto 16px; font: 640 clamp(40px, 6vw, 84px)/0.98 var(--font-display); letter-spacing: -0.05em; max-width: 12ch; }
.close .lead { margin: 0 auto 36px; color: var(--ink-2); }
.close .waitlist, .close .form-note { margin-left: auto; margin-right: auto; justify-content: center; }

.home-page .site-footer { border-top-color: var(--hair); }

/* Before home.js runs, nothing is hidden; it marks the page "js" and sets starting states itself. */
@media (prefers-reduced-motion: reduce) {
  .orb .aurora, .orb .core, .memory, .scroll-cue i { animation: none !important; }
}

/* Off screen, the orb rests (home.js marks it). */
.orb-stage.is-offscreen * { animation-play-state: paused !important; }

/* ── Feature card details ─────────────────────────────── */
.tile-card .qa .bubble { margin: 0 0 10px auto; font-size: 15px; color: #fff; max-width: 85%; }
.tile-card .qa .reply { margin: 0; font-size: 15px; color: var(--ink); }
.tile-card .qa .card { background: var(--surface); margin-top: 0; }
.trend { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.trend td { padding: 9px 0; border-top: 1px solid var(--hair); }
.trend td:last-child { text-align: right; }
.trend tr:first-child td { border-top: 0; }
.plain-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plain-checks li { display: flex; gap: 10px; align-items: center; }
.plain-checks .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }
