@font-face{font-family:"Bricolage Grotesque";src:url(../fonts/bricolage.woff2) format("woff2");font-weight:500 800;font-display:swap}
body{margin:0}
/* Layout: phone walkthrough on the left, the ordered journey on the right; stacks on phones. */
:root {
  --bg: #F5F4F9; --fg: #17143A; --muted: #5B5873; --line: #E2E0EC; --card: #FFFFFF;
  --accent: #3B2F8F; --accent-soft: #E4E0F7; --done: #0B5A55;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E0C24; --fg: #F2F0FA; --muted: #A9A6C4; --line: #2E2B52; --card: #17143A;
  --accent: #C3B8FA; --accent-soft: #2A2550; --done: #7FD1C8; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0E0C24; --fg: #F2F0FA; --muted: #A9A6C4; --line: #2E2B52; --card: #17143A;
  --accent: #C3B8FA; --accent-soft: #2A2550; --done: #7FD1C8; color-scheme: dark }

body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1040px; margin: 0 auto; padding-block: 40px 56px; display: flex; flex-direction: column; gap: 32px; }
header { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.5px; text-wrap: balance; }
header p { margin: 0; color: var(--muted); }
.stage { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; } .side { width: 100%; } }

/* Phone */
.phone { width: 320px; height: 640px; box-sizing: border-box; border: 10px solid #0E0C24; border-radius: 46px; background: #0E0C24;
  box-shadow: 0 24px 60px rgba(23, 20, 58, 0.22); position: relative; overflow: hidden;
  --a-bg: #F5F4F9; --a-fg: #17143A; --a-muted: #5B5873; --a-line: #E2E0EC; --a-card: #FFFFFF; --a-lav: #E4E0F7; --a-violet: #3B2F8F;
  --a-teal: #0B5A55; --a-teal-soft: #DCEFEC; --a-amber: #6B3D05; --a-amber-soft: #FBF1DE; --a-amber-line: #E8CF9C;
  --a-red: #F0644E; --a-night: #0E0C24; --a-night2: #22203F; --a-night3: #3A3762; --a-soft: #C9C5E6; }
@media (max-width: 360px) { .phone { transform: scale(0.9); transform-origin: top center; margin-bottom: -64px; } }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #0E0C24; z-index: 5; }
.screen { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: var(--a-bg); color: var(--a-fg); font-family: var(--body); font-size: 13px; line-height: 1.4; }
.scr { position: absolute; inset: 0; padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 11px; animation: enter .45s ease both; }
.scr.night { background: var(--a-night); color: #FFFFFF; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.brand { font-family: var(--display); font-size: 17px; font-weight: 700; }
.h { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.sub { color: var(--a-muted); font-size: 12.5px; }
.night .sub { color: var(--a-soft); }
.card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.field { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 12px; padding: 7px 12px; display: flex; flex-direction: column; font-size: 13.5px; }
.field span { font-size: 11px; color: var(--a-muted); }
.btn { min-height: 42px; border-radius: 12px; background: var(--a-fg); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.btn.light { background: #FFFFFF; color: var(--a-fg); }
.offer { background: var(--a-fg); color: #FFFFFF; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.offer ul { margin: 0; padding-left: 16px; color: var(--a-soft); font-size: 12.5px; }
.toast { position: absolute; left: 14px; right: 14px; bottom: 16px; background: var(--a-teal-soft); color: var(--a-teal); border-radius: 14px; padding: 11px 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.pill { align-self: flex-start; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--a-lav); color: var(--a-violet); }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tick { width: 18px; height: 18px; border-radius: 9px; background: var(--a-teal); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.digits { display: flex; gap: 6px; }
.digit { width: 36px; height: 44px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; }
.chips { display: flex; gap: 8px; }
.chip { flex: 1; min-height: 36px; border: 1px solid var(--a-line); border-radius: 18px; background: var(--a-card); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.prompt { background: var(--a-fg); color: #FFFFFF; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.prompt .q { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 12px; padding: 8px 10px; }
.stat b { display: block; font-family: var(--display); font-size: 18px; }
.stat span { font-size: 11px; color: var(--a-muted); }
.cam { flex: 1; overflow: hidden; border-radius: 20px; background: var(--a-night2); position: relative; display: flex; align-items: center; justify-content: center; color: #A9A6C4; font-size: 12px; }
.camimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; border-radius: inherit; }
.rec { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--a-night); color: #FFFFFF; font-size: 11.5px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--a-red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.nudge { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--a-night); border: 1px solid var(--a-night3); border-radius: 14px; padding: 10px 12px; color: #FFFFFF; font-size: 12px; }
.bar { height: 6px; border-radius: 3px; background: #2E2B52; overflow: hidden; }
.bar.light { background: var(--a-line); }
.bar i { display: block; height: 100%; width: 0; background: #F3C77A; animation: fill var(--t, 3.6s) linear var(--d, 0s) forwards; }
.bar.light i { background: var(--a-teal); }
@keyframes fill { to { width: var(--to, 100%); } }
.times { display: flex; justify-content: space-between; color: var(--a-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt { border: 1.5px solid var(--a-line); background: var(--a-card); border-radius: 13px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; }
.opt b { font-size: 13.5px; }
.opt span { font-size: 11.5px; color: var(--a-muted); }
.opt.pick, .chip.pick { animation: pick .3s ease var(--d, 1.2s) forwards; }
@keyframes pick { to { border-color: var(--a-violet); background: var(--a-lav); } }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.out { animation: out .3s ease var(--d) forwards; }
@keyframes out { to { opacity: 0; visibility: hidden; } }
.banner { border-radius: 13px; padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.banner.wait { background: var(--a-amber-soft); border: 1px solid var(--a-amber-line); color: var(--a-amber); }
.banner.ok { background: var(--a-teal-soft); color: var(--a-teal); }
.nightcard { background: var(--a-fg); color: #FFFFFF; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tl { display: flex; flex-direction: column; gap: 9px; }
.tl .row { align-items: flex-start; }
.tl .grow b { font-size: 13px; }
.tl .grow span { font-size: 11.5px; color: var(--a-muted); }
.sms { background: rgba(255, 255, 255, 0.94); color: var(--a-fg); border-radius: 18px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; animation: drop .5s ease var(--d, .3s) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.sms small { color: var(--a-muted); font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.video { overflow: hidden; border-radius: 18px; background: var(--a-night2); aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.play { position: relative; width: 54px; height: 54px; border-radius: 27px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.clock { font-family: var(--display); font-size: 44px; font-weight: 700; text-align: center; letter-spacing: -1px; margin-top: 8px; }

/* Entrances inside a scene */
.a { animation: rise .45s ease var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tap { animation: tap .35s ease var(--d, 0s) both; }
@keyframes tap { 50% { transform: scale(0.95); filter: brightness(1.25); } }

/* Side panel */
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.now { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.now .group { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.now h2 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.15; text-wrap: balance; }
.now p { margin: 0; color: var(--muted); max-width: 60ch; }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.controls button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.controls button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.controls .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
button:focus-visible, .steps button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps .label { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.steps button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 9px 12px; border: none; border-radius: 12px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.steps button:hover { background: var(--accent-soft); }
.steps button[aria-current="step"] { background: var(--accent-soft); font-weight: 600; }
.steps .n { width: 26px; height: 26px; border-radius: 13px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.steps button[aria-current="step"] .n { border-color: var(--accent); background: var(--accent); color: var(--card); }
.steps button.seen .n { border-color: var(--done); color: var(--done); }
.note { font-size: 13px; color: var(--muted); max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
  .phone *, .phone *::before { animation-duration: 0.01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
