/* Paiban — the showcase site. Colours from app/lib/core/theme.dart. */

@font-face { font-family: Inter; src: url(assets/fonts/Inter-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-SemiBold.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-Bold.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAF6F3;
  --surface: #F4F4F4;
  --surface-2: #FFFFFF;
  --card: #F9F9F9;
  --ink: #0D0D0D;
  --ink-2: #5D5D5D;
  --ink-3: #8F8F8F;
  --line: #E5E5E5;
  --line-2: #D9D9D9;
  --accent: #F07855;
  --accent-hi: #F38D6E;
  --accent-ink: #B8472A;
  --on-accent: #1B1B1B;
  --glow: rgba(240, 120, 85, .24);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .14);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 40px 80px -32px rgba(90, 36, 16, .38);
  --bezel: #151515;
  --tile: var(--bg-alt);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.i.accent { color: var(--accent); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap.narrow { max-width: 860px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(240, 120, 85, .8); }
.btn.primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.big { height: 56px; padding: 0 22px; font-size: 16.5px; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .i { width: 20px; height: 20px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.brand-mark svg { width: 21px; height: 17px; }
.brand-zh { font-weight: 600; color: var(--ink-3); margin-left: 6px; font-size: 15px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn { all: unset; box-sizing: border-box; cursor: pointer; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn:focus-visible { outline: 3px solid var(--accent); }
.icon-btn .i { grid-area: 1 / 1; width: 19px; height: 19px; }

/* Type */
h1 { font-size: clamp(50px, 7.6vw, 108px); line-height: .96; letter-spacing: -.047em; font-weight: 800; margin: 18px 0 22px; }
h1 em { font-style: normal; display: block; color: var(--accent); }
h2 { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.03; letter-spacing: -.036em; font-weight: 800; margin: 10px 0 18px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: -.01em; line-height: 1.12; }
:lang(zh-Hans) h1 { font-size: clamp(46px, 6.2vw, 90px); }
:lang(zh-Hans) h1 em { white-space: nowrap; }
:lang(zh-Hans) h2 { font-size: clamp(30px, 3.7vw, 50px); word-break: keep-all; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.kicker { color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
:lang(zh-Hans) .kicker { letter-spacing: .02em; }
.label { font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto; }
.section-head .lead { margin: 0 auto; }

section { position: relative; }
.alt { background: var(--bg-alt); --tile: var(--bg); }
.try, .together, .you, .touches, .pricing, .faq { padding: clamp(88px, 12vw, 160px) 0; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* 1 · Hero */
.hero {
  min-height: 100svh; display: flex; align-items: center; padding: 96px 0 72px; overflow: clip;
  background:
    radial-gradient(52% 48% at 76% 46%, var(--glow), transparent 72%),
    radial-gradient(36% 40% at 4% 100%, rgba(240, 120, 85, .07), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: beat 2s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

.hero-stage { display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; width: min(580px, 100%); aspect-ratio: 1; touch-action: pan-y; }
.stage-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 120, 85, .38), transparent 66%); filter: blur(34px); transition: opacity .6s; opacity: .8; }
.stage[data-mood="listening"] .stage-glow { opacity: 1; }
.head { position: absolute; inset: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.head canvas { width: 100% !important; height: 100% !important; display: block; }
.stage.flat .head canvas { position: absolute; width: 57% !important; height: 57% !important; left: 21.5%; top: 21.5%; }
.flat-rings { display: none; }
.stage.flat .flat-rings { display: block; position: absolute; inset: 0; pointer-events: none; }
.flat-rings i { position: absolute; left: 50%; top: 50%; width: 57%; aspect-ratio: 1; border-radius: 50%; background: rgba(240, 120, 85, .16); transform: translate(-50%, -50%) scale(1.08); }
.stage.flat[data-mood="listening"] .flat-rings i:first-child { transform: translate(-50%, -50%) scale(calc(1.06 + var(--level, 0) * .35)); background: rgba(240, 120, 85, .3); }
.stage.flat[data-mood="listening"] .flat-rings i:nth-child(2),
.stage.flat[data-mood="listening"] .flat-rings i:nth-child(3) { animation: ripple 1.6s linear infinite; }
.stage.flat[data-mood="listening"] .flat-rings i:nth-child(3) { animation-delay: -.8s; }
.stage.flat:is([data-mood="thinking"], [data-mood="reading"]) .flat-rings i:first-child { background: none; border: 3px solid transparent; border-top-color: var(--accent); border-left-color: var(--accent); animation: spin 1s linear infinite; transform: translate(-50%, -50%) scale(1.12); }
.flat-rings i:nth-child(n+2) { background: transparent; }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(1); background: rgba(240, 120, 85, .35); } to { transform: translate(-50%, -50%) scale(1.6); background: rgba(240, 120, 85, 0); } }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }

.bubble {
  position: absolute; left: 50%; top: 3%; transform: translate(-50%, 8px); max-width: min(92%, 420px); width: max-content;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 10px 16px;
  font-size: 15px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; text-align: left;
}
.bubble.show { opacity: 1; transform: translate(-50%, 0); }
.bubble .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blinkc .8s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.stage-status { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-weight: 700; font-size: 18px; letter-spacing: -.01em; opacity: 0; transition: opacity .3s; }
.stage-status.show { opacity: 1; }
.hero-verdict {
  position: absolute; left: 50%; bottom: 1%; width: min(88%, 360px); transform: translate(-50%, 24px) scale(.96);
  opacity: 0; transition: opacity .35s, transform .5s cubic-bezier(.2, 1.3, .4, 1); pointer-events: none; text-align: left;
}
.hero-verdict.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.hero-verdict .vcard { box-shadow: var(--shadow-lg); background: var(--surface-2); }

.talk {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 28px 0 9px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 17px; cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); transition: transform .15s ease, box-shadow .2s;
}
.talk:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.talk:hover { transform: translateY(-1px); }
.talk.on { transform: scale(.96); }
.talk-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; transition: box-shadow .2s; }
.talk.on .talk-icon { animation: talkpulse 1s ease-out infinite; }
@keyframes talkpulse { 0% { box-shadow: 0 0 0 0 rgba(240, 120, 85, .7); } 100% { box-shadow: 0 0 0 16px rgba(240, 120, 85, 0); } }
.hint { margin-top: 12px; color: var(--ink-3); font-size: 14px; text-align: center; min-height: 1.6em; transition: color .2s; }
.hint.warn { color: var(--accent-ink); font-weight: 600; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-3); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 2 · The problem */
.problem { background: var(--bg-alt); color: var(--ink); }
.problem-sticky { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 120px 16px; overflow: clip; text-align: center; }
.problem-time { color: var(--ink-3); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.problem-lines { display: grid; gap: 18px; max-width: 900px; }
.pl { font-size: clamp(28px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.pl.strong { color: var(--accent); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.chip-f { display: inline-block; white-space: nowrap; }
.chip-f > span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: clamp(14px, 1.4vw, 18px);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); box-shadow: 0 6px 18px -10px rgba(90, 36, 16, .25);
}
.problem-card { width: min(340px, 86vw); }
.problem .vcard { --card: #FFFFFF; text-align: left; box-shadow: 0 30px 80px -20px rgba(240, 120, 85, .55); }

/* Scrubbed version: pinned while the dilemmas pile up, then collapse into one answer. */
.scrub .problem { height: 330vh; }
.scrub .problem-sticky { position: sticky; top: 0; height: 100svh; padding: 0; display: block; }
.scrub .problem-time { position: absolute; top: calc(64px + 3vh); left: 0; right: 0; }
.scrub .problem-lines { position: absolute; inset: 0; display: block; max-width: none; pointer-events: none; z-index: 2; }
.scrub .pl { position: absolute; left: 50%; top: 50%; width: min(900px, calc(100vw - 32px)); transform: translate(-50%, calc(-50% + var(--dy, 0px))); opacity: var(--o, 0); }
.scrub .cloud { position: absolute; inset: 0; display: block; max-width: none; }
.scrub .chip-f { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)); opacity: var(--o, 0); will-change: transform, opacity; }
.scrub .chip-f > span { animation: drift var(--d, 7s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes drift { from { transform: translate(-6px, 6px) rotate(-2.5deg); } to { transform: translate(8px, -10px) rotate(2.5deg); } }
.scrub .problem-card { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) scale(var(--cs, .6)) rotate(var(--cr, -6deg)); opacity: var(--co, 0); z-index: 3; }

/* Features with a phone */
.feature { padding: clamp(88px, 12vw, 160px) 0; }
.feature-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.feature.flip .feature-in { grid-template-columns: .9fr 1.1fr; }
.feature.flip .feature-copy { order: 2; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 8px; }
.step button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; position: relative; overflow: hidden;
  padding: 16px 20px 18px; border-radius: 18px; opacity: .5; transition: opacity .35s, background-color .35s, box-shadow .35s;
}
.step button:hover { opacity: .8; }
.step button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.step b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.step span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.step.on button { opacity: 1; background: var(--surface-2); box-shadow: var(--shadow); }
.alt .step.on button { background: var(--bg); }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--sp, 0) * 100%); background: var(--accent); }
.step:not(.on) .bar { width: 0; }

.phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }
.phone {
  position: relative; width: clamp(250px, 25vw, 330px); padding: 9px; border-radius: 46px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .09);
}
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .03); }
.phone video, .phone .screen { display: block; width: 100%; aspect-ratio: 720 / 1478; border-radius: 37px; background: #FCFCFC; object-fit: cover; }
.vtoggle { all: unset; position: absolute; right: -52px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow); opacity: .8; transition: opacity .2s; }
.vtoggle:hover { opacity: 1; }
.vtoggle:focus-visible { outline: 3px solid var(--accent); }
.vtoggle .i { grid-area: 1 / 1; width: 18px; height: 18px; }
.vtoggle .r, .phone.paused .vtoggle .p { display: none; }
.phone.paused .vtoggle .r { display: block; }
.phone-wrap figcaption { font-size: 13px; color: var(--ink-3); text-align: center; }

/* Verdict card (a replica of the app's) */
.vcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 16px; color: var(--ink); }
.vcard.decided { border: 2px solid var(--accent); padding: 15px 17px; }
.vhead { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.vface {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 44%, #1B1B1B 0 13%, transparent 15%), radial-gradient(circle at 66% 44%, #1B1B1B 0 13%, transparent 15%), var(--accent);
}
.vname { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 6px 96px 4px 0; overflow-wrap: anywhere; }
.vsub { color: var(--ink-2); font-size: 15px; }
.vwhy { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.vfacts { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.vsources { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; color: var(--ink-3); }
.vsources .i { width: 16px; height: 16px; }
.src { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--ink); }
.vmem { margin-top: 10px; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.stamp {
  position: absolute; top: 12px; right: 12px; transform: rotate(-8deg); border: 2px solid var(--ink); border-radius: 10px;
  padding: 5px 9px 3px; font-weight: 800; font-size: 22px; line-height: 1; text-align: center; background: var(--card); font-variant-numeric: tabular-nums;
}
.stamp small { display: block; font-size: 10px; font-weight: 600; margin-top: 1px; }
.stamp.is-decided { font-size: 14px; padding: 7px 10px; transform: rotate(-11deg); }
.stamp.hit { animation: stamp .55s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes stamp { 0% { opacity: 0; scale: 2.3; } 55% { opacity: 1; scale: .9; } 100% { scale: 1; } }
.vcard.mini .vname { font-size: 34px; }
.vcard.small .vname { font-size: 24px; margin-right: 84px; }
.vcard.small .stamp { font-size: 18px; }
.pop { animation: pop .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* 4 · Try it */
.demo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 56px; }
.demo-pick { min-width: 0; }
.demo-chips { display: flex; flex-direction: column; gap: 10px; }
.dchip {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 18px;
  background: var(--tile); border: 1.5px solid var(--line); font-weight: 600; transition: transform .2s, border-color .2s, background-color .2s;
}
.dchip:hover { transform: translateX(4px); border-color: var(--line-2); }
.dchip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dchip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--tile)); }
.dchip .n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; background: var(--surface); color: var(--ink-2); }
.dchip[aria-pressed="true"] .n { background: var(--accent); color: var(--on-accent); }
.demo-app {
  width: 100%; max-width: 460px; justify-self: center; min-height: 600px; padding: 0 18px 22px; border-radius: 32px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.app-bar { display: flex; justify-content: space-between; align-items: center; height: 60px; font-size: 18px; }
.app-bar .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
.demo-q { color: var(--ink-2); font-size: 15px; margin: 4px 0 14px; }
.demo-think { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 0 40px; }
.demo-think[hidden] { display: none; }
.mini-face { width: 120px; height: 120px; }
.demo-status { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.surer { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.surer small { color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.surer p { font-weight: 600; margin: 3px 0 10px; font-size: 15px; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { all: unset; cursor: pointer; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.achip:hover { border-color: var(--ink); }
.achip:focus-visible { outline: 3px solid var(--accent); }
.achip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.achip:disabled, .achip[aria-disabled="true"] { opacity: .45; cursor: default; }
.vact { display: grid; gap: 10px; margin-top: 14px; }
.vact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vact .btn { height: 46px; font-size: 15px; }
.vact .btn.ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.settled { text-align: center; font-weight: 600; margin-top: 14px; }
.bars { margin-top: 18px; display: grid; gap: 8px; }
.barrow { display: grid; grid-template-columns: 1fr 96px 44px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.barrow:first-child { color: var(--ink); font-weight: 700; }
.track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--ink-3); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.barrow:first-child .track i { background: var(--accent); }
.barrow span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* 6 · Together */
.together-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 56px; }
.steps.center { margin: 0; }
.browser { margin: 0; width: clamp(270px, 24vw, 320px); border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; justify-self: center; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { flex: 1; margin-left: 6px; font-size: 11px; color: var(--ink-3); background: var(--bg); border-radius: 999px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote { padding: 18px 16px 16px; font-size: 14px; min-height: 420px; }
.vote .vbrand { color: #B8472A; font-weight: 800; letter-spacing: .5px; font-size: 13px; }
.vote h4 { margin: 4px 0 2px; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.vote .m { color: var(--ink-3); font-size: 12px; margin-bottom: 8px; }
.vote .opt { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--line); font-size: 15px; transition: border-color .25s, background-color .25s; }
.vote .opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vote .opt b { margin-left: auto; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.vote .field { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; margin: 6px 0; color: var(--ink-3); min-height: 34px; font-size: 13px; }
.vote .field.typed { color: var(--ink); }
.vote .go { margin-top: 8px; padding: 10px; border-radius: 12px; background: #B8472A; color: #fff; text-align: center; font-weight: 700; transition: transform .15s; }
.vote .go.press { transform: scale(.96); }
.vote .said { margin-top: 10px; color: var(--ink-3); font-size: 12px; }
.vote .verdict { font-size: 30px; font-weight: 800; margin: 6px 0; color: var(--ink); }
.tapdot { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(240, 120, 85, .45); pointer-events: none; animation: tap .5s ease-out forwards; }
@keyframes tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.browser .tag { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.browser .tag .i { width: 18px; height: 18px; }

/* 7 · Knows you */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-top: 56px; }
.tile { background: var(--tile); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.tile h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tile.about { grid-row: span 2; display: flex; flex-direction: column; }
.tile.nudges { grid-column: 2 / span 2; }
.prefs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.pref { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.pref::before { content: "+"; font-weight: 700; color: var(--ink-3); }
.pref[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pref[aria-pressed="true"]::before { content: "✓"; color: var(--on-accent); }
.pref:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.about-q { margin-top: auto; background: var(--bg); border-radius: 20px; padding: 16px; }
.alt .about-q { background: var(--bg-alt); }
.about-q .vcard { background: var(--card); }
.learned-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.learned-list li { display: grid; gap: 4px; font-weight: 600; }
.learned-list em { font-style: normal; width: fit-content; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; padding: 2px 9px; }
.ring { position: relative; width: 116px; height: 116px; margin: 16px auto 12px; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke: var(--line); stroke-width: 11; }
.ring .fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1) .2s; }
.in .ring .fill, .reduced .ring .fill, html:not(.js) .ring .fill { stroke-dashoffset: calc(314.16 * (1 - var(--p))); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.record-hero { text-align: center; font-weight: 700; margin-bottom: 6px; }
.tile.record .muted { text-align: center; font-size: 15px; }
.nudge-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); padding: 14px 18px; border-radius: 18px; margin: 16px 0 12px; }
.nudge-row p { color: var(--ink-2); margin-top: 2px; }
.switch { all: unset; cursor: pointer; position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2, 1.3, .4, 1), background-color .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { transform: translateX(22px); background: #1B1B1B; }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 8 · Everyday touches */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.grid3 .tile { display: flex; flex-direction: column; gap: 6px; }
.grid3 .tile .btn { align-self: flex-start; margin-top: 10px; }
.art { position: relative; height: 164px; border-radius: 20px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.alt .art { background: var(--bg-alt); }
.talkback { display: flex; gap: 18px; justify-content: center; align-items: center; }
.talkback .mini-face { width: 92px; height: 92px; }
.wave { display: flex; gap: 5px; align-items: center; height: 60px; }
.wave i { width: 6px; height: 14px; border-radius: 3px; background: var(--accent); opacity: .5; transition: height .2s; }
.talkback.speaking .wave i { opacity: 1; animation: wave .9s ease-in-out infinite alternate; }
.talkback.speaking .wave i:nth-child(2) { animation-delay: -.2s; }
.talkback.speaking .wave i:nth-child(3) { animation-delay: -.5s; }
.talkback.speaking .wave i:nth-child(4) { animation-delay: -.1s; }
.talkback.speaking .wave i:nth-child(5) { animation-delay: -.7s; }
@keyframes wave { from { height: 10px; } to { height: 54px; } }
.wallpaper { background: linear-gradient(145deg, #FFB199 0%, #F07855 45%, #8E5CC2 100%) !important; }
.widget { cursor: pointer; margin-bottom: 44px; width: 84px; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); font-size: 11px; font-weight: 700; color: #1B1B1B; }
.widget .mini-face { width: 50px; height: 50px; }
.wallpaper .apps { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.wallpaper .apps i { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.notif { display: flex; align-items: center; gap: 12px; width: 86%; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--shadow); text-align: left; font-size: 14px; }
.notif b { font-size: 13px; }
.notif p { color: var(--ink-2); }
.notif small { margin-left: auto; align-self: flex-start; color: var(--ink-3); font-size: 11px; }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.notif-icon svg { width: 20px; height: 16px; }
.js .notif-art .notif { transform: translateY(-120%); opacity: 0; transition: transform .7s cubic-bezier(.2, 1.2, .4, 1) .3s, opacity .4s .3s; }
.js .in .notif-art .notif, .reduced .notif-art .notif { transform: none; opacity: 1; }
.coin-art { perspective: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.coin { all: unset; cursor: pointer; position: relative; width: 96px; height: 96px; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.2, .7, .15, 1); }
.coin:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 50%; }
.coin .side {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font-weight: 800; font-size: 15px; color: #3A1A0E; background: radial-gradient(circle at 34% 28%, #FFE0C9, #F4926F 45%, #C85A3C 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .28), inset 0 -6px 12px rgba(0, 0, 0, .15), 0 8px 18px -8px rgba(0, 0, 0, .4);
}
.coin .side.b { transform: rotateY(180deg); }
.gut { font-size: 13px; text-align: center; min-height: 20px; }
.gut .gbtns { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.gut button { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); }
.gut button:focus-visible { outline: 3px solid var(--accent); }
.coin-art { height: 164px; padding-top: 6px; }
.say-bubble { white-space: nowrap; font-size: 19px; font-weight: 700; letter-spacing: -.01em; padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: var(--surface-2); box-shadow: var(--shadow); }
.lock-art .i.big { width: 64px; height: 64px; color: var(--accent); }

/* 9 · Pricing */
.seg { display: inline-flex; gap: 2px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { all: unset; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.seg button:focus-visible { outline: 3px solid var(--accent); }
.seg em { font-style: normal; font-size: 12px; color: var(--accent-ink); margin-left: 4px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 44px auto 0; }
.plan { border: 1px solid var(--line); border-radius: 30px; padding: 34px; background: var(--bg-alt); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan .price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: clamp(40px, 5vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan .price span { opacity: .65; font-weight: 500; }
.plan .per-month { margin-top: 6px; opacity: .7; font-size: 15px; min-height: 1.6em; }
.plan .trial { align-self: flex-start; margin-top: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 13px; }
.plan li { position: relative; padding-left: 32px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 21px; height: 21px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.plan li::after { content: ""; position: absolute; left: 6.5px; top: .52em; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan.pro { background: var(--surface-2); border: 2px solid var(--accent); box-shadow: 0 30px 70px -30px rgba(240, 120, 85, .55); }
.plan.pro .btn { margin-top: auto; }
.pricing .note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 26px; }

/* 10 · FAQ */
.faq-list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-75%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.faq details p { color: var(--ink-2); padding: 0 44px 24px 0; }

/* 11 · End + footer */
.end { padding: clamp(100px, 14vw, 190px) 0; text-align: center; background: radial-gradient(46% 60% at 50% 34%, var(--glow), transparent 72%); overflow: clip; }
.end-in { display: flex; flex-direction: column; align-items: center; }
.end-face { width: 150px; height: 150px; margin-bottom: 18px; cursor: pointer; }
.end .lead { margin: 0 auto 30px; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Tablet */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .hero { padding-top: 88px; }
  .hero-in { display: flex; flex-direction: column; text-align: center; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; align-self: center; }
  .hero-copy h1 { order: 2; }
  .hero-stage { order: 3; width: 100%; }
  .hero-copy .lead { order: 4; margin: 28px auto 0; }
  .hero-copy .ctas { order: 5; justify-content: center; }
  .hero-copy .trust { order: 6; }
  .scroll-cue { display: none; }
  .feature-in, .feature.flip .feature-in { display: flex; flex-direction: column; gap: 0; }
  .feature-copy { display: contents; }
  .feature-copy .kicker, .feature-copy h2, .feature-copy .lead { align-self: stretch; text-align: center; }
  .feature-copy .lead { margin: 0 auto; }
  .feature .phone-wrap { margin-top: 40px; }
  .feature .steps { order: 5; width: 100%; max-width: 560px; margin: 28px auto 0; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-chips { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 4px clamp(16px, 4vw, 40px) 10px; scrollbar-width: none; }
  .demo-chips::-webkit-scrollbar { display: none; }
  .dchip { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .dchip:hover { transform: none; }
  .demo-pick .label { text-align: center; }
  .together-in { grid-template-columns: 1fr 1fr; justify-items: center; }
  .together-in .steps { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.about { grid-column: 1 / -1; grid-row: auto; }
  .tile.nudges { grid-column: 1 / -1; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-zh { display: none; }
  .nav .btn.small { padding: 0 14px; }
  .hero-copy h1 { margin-bottom: 8px; }
  .ctas .btn { width: 100%; }
  .together-in { grid-template-columns: 1fr; }
  .together-in .steps { grid-row: auto; }
  .bento, .grid3, .plans { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .plan { padding: 26px; }
  .vname { font-size: 26px; }
  .demo-app { min-height: 560px; padding: 0 14px 18px; }
  .barrow { grid-template-columns: 1fr 72px 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .chip-f > span { padding: 7px 13px; font-size: 13.5px; }
}
