/* Landing page (/). Uses the tokens of theme.css; the app pages lock the body to the viewport, this page scrolls.
   Grid: 1200px container, 12-col feel via two-column splits (5/7). Vertical rhythm: sections 120 / 96 / 72px. Type: 13 14 16 18 20 24 + fluid h2/h1. */
html, body.lp { height:auto; overflow:auto; overscroll-behavior:auto; touch-action:auto; scroll-behavior:smooth; }
body.lp { --wrap:1200px; --gutter:32px; --fs-hero:clamp(36px, 4.4vw, 56px); --fs-h2:clamp(28px, 3.2vw, 44px); --line:color-mix(in srgb, var(--border) 80%, transparent); min-height:100%; }
@media (prefers-reduced-motion: reduce) { html, body.lp { scroll-behavior:auto; } }
.lp section[id] { scroll-margin-top:80px; }

.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter); }
.skip { position:absolute; left:16px; top:-60px; z-index:20; padding:10px 16px; border-radius:var(--r-md); background:var(--accent); color:var(--on-accent); font-weight:var(--fw-semibold); text-decoration:none; }
.skip:focus { top:12px; }

/* type */
.lp h1, .lp h2, .lp h3 { font-family:var(--font-display); font-weight:var(--fw-semibold); color:var(--text); letter-spacing:-.015em; }
.lp h1 { font-size:var(--fs-hero); padding-top:.04em; line-height:1.06; letter-spacing:-.03em; text-wrap:balance; }
.lp h1 .hl { color:var(--accent-hi); }
.lp h2 { font-size:var(--fs-h2); line-height:1.12; letter-spacing:-.025em; text-wrap:balance; }
.lp h3 { font-size:20px; line-height:1.3; }
.lp p { color:var(--text-2); }
.kicker { display:flex; align-items:center; gap:10px; margin-bottom:var(--s-4); color:var(--accent-hi) !important; font-size:var(--fs-sm); font-weight:var(--fw-semibold); }
.kicker::before { content:""; width:20px; height:2px; border-radius:2px; background:var(--accent); }
.lead { margin-top:var(--s-5); max-width:540px; font-size:var(--fs-lg); line-height:1.65; }

/* buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--s-2); min-height:var(--control); padding:0 var(--s-5); border:1px solid transparent; border-radius:var(--r-md);
  font:var(--fw-semibold) var(--fs-md)/1 var(--font); color:var(--text); text-decoration:none; white-space:nowrap; transition:background-color 160ms, box-shadow 160ms, transform 160ms, border-color 160ms; }
.btn-sm { min-height:44px; padding:0 var(--s-4); font-size:var(--fs-sm); }
.btn-lg { min-height:52px; padding:0 26px; }
.btn-primary { color:var(--on-accent); background:var(--accent); box-shadow:inset 0 1px 0 var(--accent-hi), var(--shadow-accent); }
.btn-primary:hover { background:var(--accent-hover); box-shadow:inset 0 1px 0 var(--accent-hi), var(--shadow-accent-hover); transform:translateY(-1px); }
.btn-primary:active { background:var(--accent-press); transform:translateY(1px); }
.btn-secondary { background:var(--surface-2); border-color:var(--border-strong); box-shadow:inset 0 1px 0 var(--hl); }
.btn-secondary:hover { background:var(--surface-3); }
@media (prefers-reduced-motion: reduce) { .btn { transition:none; } .btn:hover { transform:none; } }

/* nav */
.nav { position:sticky; top:0; z-index:10; padding-top:env(safe-area-inset-top); background:color-mix(in srgb, var(--bg) 80%, transparent); border-bottom:1px solid var(--line); backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%); }
.nav-in { display:flex; align-items:center; gap:var(--s-6); height:68px; }
.brand { display:inline-flex; align-items:center; gap:var(--s-3); min-height:44px; color:var(--text); text-decoration:none; font:var(--fw-semibold) 18px/1 var(--font-display); }
.brand img { height:28px; width:auto; }
.nav-links { display:flex; gap:var(--s-1); margin-left:auto; }
.nav-links a { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:var(--r-sm); color:var(--text-2); font-size:var(--fs-sm); font-weight:var(--fw-medium); text-decoration:none; transition:color 160ms; }
.nav-links a:hover { color:var(--text); }

/* hero */
.hero { position:relative; padding:64px 0 40px; overflow:hidden; isolation:isolate; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(38% 55% at 78% 38%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%), radial-gradient(30% 40% at 95% 85%, color-mix(in srgb, var(--voice-b) 10%, transparent), transparent 70%); }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background-image:linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size:64px 64px;
  -webkit-mask-image:radial-gradient(60% 70% at 70% 40%, #000, transparent 75%); mask-image:radial-gradient(60% 70% at 70% 40%, #000, transparent 75%); }
.hero-in { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr); align-items:center; gap:64px; }
.hero-copy h1 { max-width:20ch; }
.cta-row { display:flex; flex-wrap:wrap; gap:var(--s-3); margin-top:var(--s-6); }
.assure { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:var(--s-2) var(--s-5); margin-top:var(--s-5); font-size:var(--fs-sm); color:var(--text-2); }
.assure li { display:flex; align-items:center; gap:var(--s-2); }
.assure li::before { content:""; width:16px; height:16px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233dc58b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.illus { margin-top:var(--s-6); text-align:right; font-size:var(--fs-xs); color:var(--text-3) !important; }

/* hero product composite: call window + podcast mini player */
.stage { position:relative; padding:0 0 32px 0; }
.win { position:relative; border:1px solid var(--line); border-radius:20px; overflow:hidden;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  box-shadow:0 0 0 1px rgba(0,0,0,.3), 0 40px 90px -30px rgba(0,0,0,.8), inset 0 1px 0 var(--hl); }
.win-bar { display:flex; align-items:center; gap:var(--s-2); padding:14px 18px; border-bottom:1px solid var(--line); font-size:var(--fs-sm); color:var(--text-2); }
.win-bar .dot { width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.win-bar time { margin-left:auto; color:var(--text-3); }
.win-body { padding:var(--s-4) var(--s-5) var(--s-2); }
.win-ctl { padding-bottom:64px !important; }
.win-ctl, .ctl-row { display:flex; justify-content:center; gap:var(--s-4); padding:var(--s-4) 0 var(--s-5); }
.c { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--ctl); color:var(--text); border:1px solid color-mix(in srgb, var(--border-strong) 50%, transparent); box-shadow:var(--shadow-ctl); }
.c.end { width:52px; height:44px; border-radius:999px; background:var(--danger-solid); color:var(--on-danger); border-color:transparent; box-shadow:var(--shadow-danger); }
.c.off { background:var(--ctl-on); color:var(--ctl-on-ink); }
.c .ico { width:20px; height:20px; }


.log { list-style:none; padding:0; display:grid; gap:var(--s-3); }
.log li { max-width:86%; padding:10px 14px; border-radius:14px; font-size:15px; line-height:1.5; }
.log li p { color:var(--text); }
.who { display:block; margin-bottom:2px; font-size:var(--fs-xs); font-weight:var(--fw-semibold); color:var(--text-3); }
.log .ai { background:var(--surface-2); border:1px solid var(--line); border-top-left-radius:4px; }
.log .ai .who, .cap .who { color:var(--voice-a-2); }
.log .me { justify-self:end; background:var(--surface-3); border-top-right-radius:4px; }
.lp mark { background:var(--accent-soft); color:var(--text); border-radius:3px; box-shadow:0 0 0 2px var(--accent-soft); }
.tag { display:inline-block; margin-left:6px; vertical-align:1px; padding:1px 8px; border-radius:999px; background:var(--accent-soft); border:1px solid color-mix(in srgb, var(--accent) 45%, transparent); color:var(--accent-hi); font-size:12px; font-weight:var(--fw-semibold); }

.mini { position:absolute; left:-40px; bottom:0; width:min(340px, 80%); display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 14px; padding:14px 16px 16px;
  border:1px solid var(--line); border-radius:var(--r-lg); background:color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:0 24px 60px -20px rgba(0,0,0,.85), inset 0 1px 0 var(--hl); }
.mini-voices { display:flex; }
.mini-voices .v { width:28px; height:28px; border-radius:50%; border:2px solid var(--surface-2); background:var(--voice-a); }
.mini-voices .b { margin-left:-8px; background:var(--voice-b); }
.mini-txt { display:grid; font-size:var(--fs-xs); color:var(--text-2); line-height:1.4; }
.mini-txt b { font-size:var(--fs-sm); color:var(--text); font-weight:var(--fw-semibold); }
.mini-bar, .pod-prog { grid-column:1 / -1; display:block; height:4px; margin-top:10px; border-radius:4px; background:var(--surface-3); overflow:hidden; }
.mini-bar i, .pod-prog i { display:block; width:42%; height:100%; border-radius:4px; background:var(--accent); }

/* fact strip */
.specs-band { border-block:1px solid var(--line); background:color-mix(in srgb, var(--surface) 55%, transparent); }
.specs { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); }
.specs > div { padding:32px 28px; }
.specs > div + div { border-left:1px solid var(--line); }
.specs > div:first-child { padding-left:0; }
.specs dt { font-size:var(--fs-xs); color:var(--text-3); font-weight:var(--fw-medium); }
.specs dd { margin:6px 0 4px; font:var(--fw-semibold) 26px/1.15 var(--font-display); color:var(--text); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.specs p { font-size:var(--fs-sm); line-height:1.5; }

/* sections */
.section { padding:120px 0; }
.section.alt { background:color-mix(in srgb, var(--surface) 40%, transparent); border-block:1px solid var(--line); }
.sec-head { max-width:720px; margin:0 0 64px; }
.sec-head > p:not(.kicker):not(.note) { margin-top:var(--s-4); font-size:var(--fs-lg); line-height:1.6; }
.split { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:80px; align-items:start; }
.split .sec-head { margin:0; position:sticky; top:108px; }

/* feature rows (alternate) */
.feature { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:80px; align-items:center; }
.feature + .feature { margin-top:96px; padding-top:96px; border-top:1px solid var(--line); }
.feature.rev .f-copy { order:2; }
.f-tag { display:inline-flex; align-items:center; gap:var(--s-2); margin-bottom:var(--s-4); color:var(--accent-hi) !important; font-size:var(--fs-sm); font-weight:var(--fw-semibold); }
.f-tag.b { color:var(--voice-b-2) !important; }
.f-tag .ico { width:18px; height:18px; }
.feature h3 { font-size:clamp(24px, 2.4vw, 30px); line-height:1.2; letter-spacing:-.02em; }
.f-copy > p:not(.f-tag) { margin-top:var(--s-4); font-size:var(--fs-md); line-height:1.7; max-width:520px; }
.ticks { list-style:none; padding:0; margin:var(--s-5) 0 var(--s-6); display:grid; gap:var(--s-3); }
.ticks li { position:relative; padding-left:30px; color:var(--text); font-size:15px; line-height:1.55; }
.ticks li::before { content:""; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%; background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa94d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.more { display:inline-flex; align-items:center; gap:var(--s-2); min-height:44px; color:var(--text); font-weight:var(--fw-semibold); text-decoration:none; border-bottom:1px solid transparent; }
.more .ico { width:18px; height:18px; color:var(--accent-hover); transition:transform 160ms; }
.more:hover .ico { transform:translateX(3px); }
.more:hover { color:var(--accent-hi); }

.f-art { position:relative; display:grid; place-items:center; min-height:380px; padding:40px; border:1px solid var(--line); border-radius:24px; overflow:hidden;
  background:radial-gradient(70% 70% at 50% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface); }
.feature.rev .f-art { background:radial-gradient(70% 70% at 50% 30%, color-mix(in srgb, var(--voice-b) 12%, transparent), transparent 70%), var(--surface); }
.cap-card, .pod-card { width:100%; max-width:400px; padding:var(--s-5); border:1px solid var(--line); border-radius:var(--r-lg); background:color-mix(in srgb, var(--bg) 70%, transparent); box-shadow:0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 var(--hl); }
.cap-card { display:grid; justify-items:center; text-align:center; gap:var(--s-4); }
.cap { font-size:var(--fs-lg); line-height:1.5; color:var(--text) !important; }
.cap-card .ctl-row { padding:0; }
.pod-voices { display:flex; justify-content:center; gap:40px; }
.pod-voices > div { display:grid; justify-items:center; gap:var(--s-2); font-size:var(--fs-sm); color:var(--text-2); }
.pod-voices b { font-weight:var(--fw-medium); }
.pod-title { margin-top:var(--s-5); font:var(--fw-semibold) var(--fs-lg)/1.3 var(--font-display); color:var(--text) !important; }
.chapters { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:6px; margin-top:var(--s-4); }
.chapters li { padding:4px 10px; border-radius:999px; border:1px solid var(--line); font-size:var(--fs-xs); color:var(--text-2); }
.chapters .done { color:var(--text-3); }
.chapters .done::before { content:"✓ "; color:var(--ok); }
.chapters .now { border-color:color-mix(in srgb, var(--accent) 60%, transparent); background:var(--accent-soft); color:var(--accent-hi); }
.ask { display:flex; align-items:center; justify-content:space-between; margin-top:var(--s-5); padding:6px 6px 6px 14px; border:1px solid var(--border-strong); border-radius:var(--r-md); background:var(--surface-2); font-size:var(--fs-sm); color:var(--text-3); }
.ask .c { width:36px; height:36px; box-shadow:none; }

/* steps */
.steps { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; }
.steps li { padding:40px 36px; }
.steps li + li { border-left:1px solid var(--line); }
.steps .n { display:block; margin-bottom:40px; font:var(--fw-semibold) var(--fs-sm)/1 var(--font); color:var(--accent-hi); font-variant-numeric:tabular-nums; }
.steps p { margin-top:var(--s-2); line-height:1.65; }

/* uses */
.uses { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1px; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--line); }
.use { padding:32px; background:var(--bg); }
.u-icon { display:grid; place-items:center; width:40px; height:40px; margin-bottom:var(--s-5); border-radius:10px; background:var(--accent-soft); border:1px solid color-mix(in srgb, var(--accent) 30%, transparent); color:var(--accent-hover); }
.u-icon .ico { width:20px; height:20px; }
.use h3 { font-size:18px; }
.use p { margin-top:var(--s-2); font-size:15px; line-height:1.6; }

/* privacy */
.data { border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.data > div { display:grid; grid-template-columns:200px 1fr; gap:var(--s-5); padding:24px 28px; }
.data > div + div { border-top:1px solid var(--line); }
.data dt { display:flex; align-items:flex-start; gap:var(--s-3); color:var(--text); font-weight:var(--fw-semibold); }
.data dt .ico { color:var(--accent-hover); margin-top:2px; }
.data dd { margin:0; color:var(--text-2); line-height:1.65; }
.note { display:flex; gap:var(--s-3); margin-top:var(--s-6); padding:var(--s-4) var(--s-5); border-radius:var(--r-md); background:var(--warn-soft); border:1px solid color-mix(in srgb, var(--warn) 30%, transparent); color:var(--text) !important; font-size:15px; line-height:1.55; }
.note .ico { color:var(--warn); margin-top:2px; }

/* faq */
.faq { border-top:1px solid var(--line); }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { display:flex; align-items:center; justify-content:space-between; gap:var(--s-4); min-height:44px; padding:22px 4px; cursor:pointer; color:var(--text); font-size:var(--fs-lg); font-weight:var(--fw-medium); }
.faq summary::after { content:""; flex:none; width:10px; height:10px; border-right:2px solid var(--text-3); border-bottom:2px solid var(--text-3); transform:translateY(-3px) rotate(45deg); transition:transform 200ms; }
.faq details[open] summary::after { transform:translateY(3px) rotate(-135deg); }
.faq summary:hover { color:var(--accent-hi); }
.faq details p { padding:0 4px 24px; max-width:640px; line-height:1.7; }

/* closing CTA */
.cta-band { padding:0 0 120px; }
.cta-in { display:flex; align-items:center; justify-content:space-between; gap:var(--s-6); padding:56px; border-radius:24px; border:1px solid var(--line); overflow:hidden;
  background:radial-gradient(50% 140% at 100% 50%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--surface); box-shadow:inset 0 1px 0 var(--hl); }
.cta-in h2 { font-size:clamp(26px, 2.6vw, 34px); max-width:20ch; }
.cta-in p { margin-top:var(--s-3); }
.cta-in .cta-row { margin-top:0; flex:none; }

/* footer */
.foot { border-top:1px solid var(--line); padding:56px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display:grid; grid-template-columns:2fr 1fr 1fr; gap:var(--s-6); }
.foot-brand p { margin-top:var(--s-3); max-width:300px; font-size:var(--fs-sm); color:var(--text-3); }
.foot-col { display:grid; align-content:start; }
.foot-h { margin-bottom:var(--s-2); font-size:var(--fs-sm); font-weight:var(--fw-semibold); color:var(--text) !important; }
.foot-col a { display:flex; align-items:center; min-height:44px; color:var(--text-2); font-size:var(--fs-sm); text-decoration:none; }
.foot-col a:hover { color:var(--text); }
.foot .copy { grid-column:1 / -1; padding-top:var(--s-5); border-top:1px solid var(--line); font-size:var(--fs-sm); color:var(--text-3); }

/* laptop / tablet */
@media (max-width: 1100px) {
  .mini { position:relative; left:auto; bottom:auto; width:auto; margin:-20px 16px 0; }
  .stage { padding-bottom:0; }
  .win-ctl { padding-bottom:40px !important; }
  .split { gap:56px; }
  .feature { gap:56px; }
}
@media (max-width: 900px) {
  .hero { padding-top:64px; }
  .hero-in { grid-template-columns:1fr; gap:56px; }
  .hero-copy h1 { max-width:18ch; }
  .stage { max-width:560px; width:100%; margin:0 auto; }
  .mini { left:auto; right:-16px; }
  .illus { text-align:center; }
  .specs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .specs > div { padding:28px 24px 28px 0; }
  .specs > div:nth-child(even) { padding-left:24px; }
  .specs > div:nth-child(3) { border-left:0; }
  .specs > div:nth-child(n+3) { border-top:1px solid var(--line); }
  .section { padding:96px 0; }
  .split, .feature { grid-template-columns:1fr; gap:40px; }
  .split .sec-head { position:static; }
  .feature.rev .f-copy { order:0; }
  .feature + .feature { margin-top:72px; padding-top:72px; }
  .sec-head { margin-bottom:48px; }
  .cta-in { flex-direction:column; align-items:flex-start; }
}
/* phone */
@media (max-width: 640px) {
  body.lp { --gutter:16px; }
  .nav-in { height:60px; gap:var(--s-2); }
  .nav-links { display:none; }
  .hero { padding:40px 0 24px; }
  .hero::after { display:none; }
  .lead { margin-top:var(--s-4); font-size:var(--fs-md); }
  .cta-row .btn { flex:1 1 100%; }
  .assure { gap:var(--s-2) var(--s-4); }
  .stage { padding-bottom:0; }
  .win-body { padding:var(--s-3) var(--s-4) 0; }
  .win-ctl { padding-bottom:40px !important; }
  .log { margin-top:var(--s-2); }
  .mini { position:relative; left:auto; right:auto; width:auto; margin:-20px 12px 0; }
  .specs { grid-template-columns:1fr 1fr; }
  .specs > div, .specs > div:nth-child(even) { padding:20px 12px 20px 0; }
  .specs > div:nth-child(even) { padding-left:16px; }
  .specs dd { font-size:20px; }
  .section { padding:72px 0; }
  .sec-head { margin-bottom:36px; }
  .f-art { min-height:0; padding:24px 16px; border-radius:var(--r-lg); }
  .feature + .feature { margin-top:56px; padding-top:56px; }
  .steps { grid-template-columns:1fr; }
  .steps li { padding:24px; }
  .steps li + li { border-left:0; border-top:1px solid var(--line); }
  .steps .n { margin-bottom:var(--s-4); }
  .uses { grid-template-columns:1fr; }
  .use { padding:24px; }
  .data > div { grid-template-columns:1fr; gap:var(--s-2); padding:var(--s-4) var(--s-5); }
  .faq summary { font-size:var(--fs-md); padding:16px 2px; }
  .cta-band { padding-bottom:72px; }
  .cta-in { padding:32px 20px; }
  .cta-in .cta-row { width:100%; }
  .foot-in { grid-template-columns:1fr 1fr; }
  .foot-brand { grid-column:1 / -1; }
}

/* small phones: the three assurances stack instead of wrapping 2 + 1 */
@media (max-width: 420px) { .assure { flex-direction:column; gap:var(--s-2); } }
/* phones held sideways: keep the lead and both buttons in the first screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding:24px 0 32px; }
  .hero .kicker { display:none; }
  .lp h1 { font-size:clamp(28px, 5vh + 12px, 40px); }
  .lead { margin-top:var(--s-3); font-size:var(--fs-md); }
  .cta-row { margin-top:var(--s-4); }
  .cta-row .btn { flex:0 1 auto; }
  .assure { display:none; }
}

/* tablet portrait: three section links fit next to the button; five do not */
.steps h3 { text-wrap:balance; }
.faq-aside { margin-top:var(--s-4); color:var(--text-2); line-height:1.6; }
.faq-aside a { color:var(--accent-hi); }

/* product art for chat: the desktop chat panel with a question being typed (the hero already shows the voice call) */
.panel { width:100%; max-width:420px; border:1px solid var(--line); border-radius:var(--r-lg); background:color-mix(in srgb, var(--bg) 75%, transparent); box-shadow:0 30px 60px -30px rgba(0,0,0,.7); overflow:hidden; text-align:left; }
.panel-head { display:flex; align-items:center; gap:var(--s-2); padding:12px 16px; border-bottom:1px solid var(--line); font-size:var(--fs-sm); font-weight:var(--fw-semibold); color:var(--text); }
.panel-head .ico { width:18px; height:18px; color:var(--text-2); }
.panel-x { margin-left:auto; display:grid; }
.panel-log { display:grid; gap:var(--s-3); padding:var(--s-4); }
.pm { max-width:88%; padding:10px 14px; border-radius:14px; font-size:15px; line-height:1.5; }
.pm p { color:var(--text); }
.pm time { font-size:12px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.pm.me { justify-self:end; background:var(--surface-3); border-top-right-radius:4px; display:grid; justify-items:end; gap:2px; }
.pm.ai { background:var(--surface-2); border:1px solid var(--line); border-top-left-radius:4px; }
.pm.ai .who { color:var(--voice-a-2); }
.pm-tools { display:flex; align-items:center; gap:var(--s-2); margin-top:6px; color:var(--text-3); }
.pm-tools .ico { width:15px; height:15px; }
.panel-input { display:flex; align-items:center; gap:var(--s-2); margin:0 var(--s-4) var(--s-4); padding:8px 8px 8px 14px; border:1px solid var(--accent); border-radius:var(--r-md); background:var(--surface-2); box-shadow:var(--ring); }
.typed { flex:1; font-size:15px; color:var(--text); }
.caret { display:inline-block; width:2px; height:1.1em; margin-left:2px; vertical-align:-3px; background:var(--accent); animation:blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation:none; } }
.send { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:10px; background:var(--accent); color:var(--on-accent); }
.send .ico { width:18px; height:18px; }

/* section rhythm: short sections breathe less than the feature-heavy ones */
#cach-dung, #hoi-dap { padding:88px 0; }

/* phone menu (details/summary: works without script; landing.js closes it after a choice) */
.m-menu { display:none; position:relative; }
.m-menu summary { display:grid; place-items:center; width:44px; height:44px; border-radius:var(--r-md); cursor:pointer; list-style:none; color:var(--text); }
.m-menu summary::-webkit-details-marker { display:none; }
.m-menu summary:hover { background:var(--surface-2); }
.bars, .bars::before, .bars::after { display:block; width:18px; height:2px; border-radius:2px; background:currentColor; transition:transform 200ms, opacity 200ms; }
.bars { position:relative; }
.bars::before, .bars::after { content:""; position:absolute; left:0; }
.bars::before { top:-6px; } .bars::after { top:6px; }
.m-menu[open] .bars { background:transparent; }
.m-menu[open] .bars::before { transform:translateY(6px) rotate(45deg); }
.m-menu[open] .bars::after { transform:translateY(-6px) rotate(-45deg); }
.m-links { position:fixed; left:0; right:0; top:calc(60px + env(safe-area-inset-top)); display:grid; padding:var(--s-2) 16px var(--s-4); background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 24px 40px -20px rgba(0,0,0,.7); }
.m-links a { display:flex; align-items:center; min-height:48px; color:var(--text); font-size:var(--fs-md); font-weight:var(--fw-medium); text-decoration:none; border-bottom:1px solid var(--line); }
.m-links a:last-child { border-bottom:0; }
@media (max-width: 640px) {
  .m-menu { display:block; order:2; margin-left:var(--s-1); }
  .panel-input { margin:0 var(--s-3) var(--s-3); }
  #cach-dung, #hoi-dap { padding:64px 0; }
}
@media (prefers-reduced-motion: reduce) { .bars, .bars::before, .bars::after { transition:none; } }

/* round 6: hero says what it is in five seconds; podcast card tells the interruption story */
.paths { list-style:none; padding:0; display:grid; gap:10px; margin-top:var(--s-5); max-width:540px; }
.paths li { display:grid; grid-template-columns:auto auto 1fr; align-items:baseline; gap:10px; font-size:15px; color:var(--text-2); }
.paths b { color:var(--text); font-weight:var(--fw-semibold); }
.p-dot { align-self:center; width:10px; height:10px; border-radius:50%; background:var(--voice-a); }
.p-dot.b { background:var(--voice-b); }
.hero .cta-row { margin-top:var(--s-5); }
.mini-k { color:var(--voice-b-2); font-weight:var(--fw-medium); }
.pod-title { text-align:center; }
.pod-lines { list-style:none; padding:0; display:grid; gap:10px; margin-top:var(--s-4); }
.pod-lines li { padding:10px 12px; border-radius:12px; background:var(--surface-2); border:1px solid var(--line); font-size:14px; line-height:1.5; color:var(--text); }
.pod-lines span { display:block; margin-bottom:2px; font-size:var(--fs-xs); font-weight:var(--fw-semibold); color:var(--text-3); }
.pod-lines .h span { color:var(--voice-a-2); }
.pod-lines .e span { color:var(--voice-b-2); }
.pod-lines .e { border-color:color-mix(in srgb, var(--voice-b) 40%, transparent); }
.pod-lines .u { margin-left:24px; background:var(--surface-3); }
.pod-lines em { font-style:normal; }
.faq-aside a { display:inline-block; padding:12px 0; margin:-12px 0; }
.feature h3, .sec-head h2 { text-wrap:balance; }
@media (orientation: landscape) and (max-height: 500px) { .paths { display:none; } }

/* round 7: review fixes */
.nw { white-space:nowrap; }
.lp h1, .lp h2, .lp h3 { text-wrap:balance; }
.brand { padding:4px 8px; margin-left:-8px; border-radius:var(--r-sm); }
.brand:focus-visible { outline-offset:4px; }
/* call mockup: controls clear of the floating podcast card; quiet end button */
.win-ctl { padding-bottom:128px !important; }
.c.end { box-shadow:none; background:color-mix(in srgb, var(--danger-solid) 82%, var(--surface)); }
/* chat panel: listening state instead of typing */
.panel-input.listen { gap:12px; }
.panel-input.listen .typed { color:var(--text-2); }
.lv { display:flex; align-items:center; gap:3px; height:20px; margin-right:6px; }
.lv i { width:3px; height:8px; border-radius:2px; background:var(--accent); animation:lv 1s ease-in-out infinite; }
.lv i:nth-child(2) { height:16px; animation-delay:.15s; } .lv i:nth-child(3) { height:12px; animation-delay:.3s; } .lv i:nth-child(4) { animation-delay:.45s; }
@keyframes lv { 50% { transform:scaleY(.5); } }
@media (prefers-reduced-motion: reduce) { .lv i { animation:none; } }
/* rhythm: alt sections read as a distinct surface; split heads stay in view */
.section.alt { background:var(--surface); border-block:1px solid var(--border); }
.split .sec-head { top:96px; align-self:start; }
/* phone menu: scrim, shadow, both entry points */
.m-menu[open]::before { content:""; position:fixed; inset:calc(var(--nav-h, 68px) + env(safe-area-inset-top)) 0 0 0; background:rgb(0 0 0 / .55); }
.m-links { top:calc(var(--nav-h, 68px) + env(safe-area-inset-top)); z-index:1; box-shadow:0 24px 48px -12px rgba(0,0,0,.8); }
.m-ctas { display:grid; grid-template-columns:1fr 1fr; gap:var(--s-3); padding-top:var(--s-4); }
.m-ctas .btn { border-bottom:1px solid transparent; }
.m-ctas .btn-secondary { border-color:var(--border-strong); }
.m-links a.btn { justify-content:center; min-height:48px; font-size:var(--fs-sm); }
.m-links .btn-primary { color:var(--on-accent); }
@media (max-width: 900px) {
  .nav-links { display:none; }
  .m-menu { display:block; margin-left:auto; }
}
@media (max-width: 640px) { body.lp { --nav-h:60px; } .lp h1 { font-size:32px; } }
@media (max-width: 400px) { .m-ctas { grid-template-columns:1fr; } }
/* footer note */
.foot .copy { display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--s-2) var(--s-5); }
/* hero paths: compact on phones */
@media (max-width: 640px) {
  .paths { gap:8px; margin-top:var(--s-4); }
  .paths li { grid-template-columns:auto 1fr; gap:2px 10px; font-size:14px; }
  .paths li > span:last-child { grid-column:2; }
  .hero .cta-row { margin-top:var(--s-4); }
  .hero { padding-top:28px; }
}
/* phone landscape: copy uses the full width */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-copy h1, .lead { max-width:none; }
  .lead { max-width:80ch; }
}
/* solid header: no glass; fixed menu and scrim then measure from the viewport */
.nav { background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; }

/* round 8 (independent review 2) */
/* the 128px clearance only matters where the podcast card floats over the window (>1100px); below that the card sits under it */
@media (max-width: 1100px) { .win-ctl { padding-bottom:36px !important; } }
/* the three assurances stay on one row at laptop-tablet widths */
@media (max-width: 1100px) and (min-width: 641px) { .assure { gap:var(--s-2) var(--s-4); } .assure li { font-size:13px; } }
/* no single-word last lines in paragraphs */
.lead, .sec-head p, .specs p, .note span, .f-copy > p, .faq details p { text-wrap:pretty; }
/* the menu lines up with the page gutter; on tablets it is a panel on the right, not a full-width sheet */
.m-links { padding-inline:var(--gutter); }
@media (min-width: 641px) { .m-links { left:auto; width:min(420px, 100%); border-left:1px solid var(--line); border-bottom-left-radius:var(--r-lg); } }
/* phones: the two path lines already say what each product is, so the lead stays short */
.lead-short { display:none; }
@media (max-width: 600px) { .lead-long { display:none; } .lead-short { display:inline; } }

/* round 9 (polish after PASS) */
@media (max-width: 374px) { .lp h1 { font-size:28px; } .lp h1 .hl { display:block; white-space:nowrap; } }
.steps p { text-wrap:pretty; }
.cta-band { padding-bottom:72px; }
@media (max-width: 640px) { .cta-band { padding-bottom:48px; } }
/* the window scrolls, not the body: a scrolling body would stop the section headings from sticking */
body.lp { overflow:visible; }

/* ===== Product DNA upgrade (see DESIGN.md "Product DNA & brand rules") =====
   The real orb (orb.js) is drawn on one fixed, click-through canvas over the page, bound to .o-space elements, exactly as /chat and /podcast do.
   It sits under the header (z 10) so it never paints over navigation. Without script the .o-space shows a flat voice-coloured disc. */
.lp-scene { position:fixed; inset:0; width:100%; height:100%; z-index:5; pointer-events:none; display:block; }
.o-space { display:block; width:128px; height:128px; margin:0 auto; position:relative; }
.o-space::before { content:""; position:absolute; inset:30%; border-radius:50%; background:var(--voice-a); opacity:.85; }
.o-space.b::before { background:var(--voice-b); }
.orbs-live .o-space::before { display:none; }
.o-space.sm { width:88px; height:88px; }
.presence { display:grid; justify-items:center; gap:2px; margin:0 auto var(--s-3); }
/* SpeakerState line: shape mark + words, same vocabulary as the app header chip (speaking = diamond, listening = ring with dot) */
.o-state { display:flex; align-items:center; gap:8px; min-height:24px; font-size:var(--fs-sm); color:var(--text-2) !important; }
.o-state > span:not(.mk) { display:none; }
.win[data-s="speaking"] .s-speaking, .win[data-s="listening"] .s-listening { display:inline; }
.mk { flex:none; display:inline-block; width:10px; height:10px; border-radius:50%; border:2px solid var(--voice-a); box-sizing:border-box; }
.mk.listening, .win[data-s="listening"] .o-state .mk { background:radial-gradient(circle, var(--voice-a) 0 2px, transparent 2.5px); }
.mk.cut, .win[data-s="speaking"] .o-state .mk { border-radius:2px; transform:rotate(45deg) scale(.85); background:var(--voice-a); }
.mk.cut { background:transparent; border-style:solid; }
/* ConversationTurn: the turn that is live gets its speaker's colour on the leading edge; the others rest */
.turn-a, .turn-u { transition:opacity 240ms, box-shadow 240ms; }
.win[data-s="listening"] .turn-a, .win[data-s="speaking"] .turn-u { opacity:.72; }
.win[data-s="speaking"] .turn-a { box-shadow:inset 2px 0 0 var(--voice-a); }
.win[data-s="listening"] .turn-u { box-shadow:inset -2px 0 0 var(--text-2); }
/* CaptionSegment: the sentence being spoken is underlined in the speaker's voice colour, not highlighted like a search hit; when interrupted it stops mid-line */
.lp mark { background:none; box-shadow:none; color:var(--text); text-decoration:underline 2px var(--voice-a); text-underline-offset:4px; text-decoration-skip-ink:none; }
.win[data-s="listening"] .turn-a mark { text-decoration-color:var(--text-3); text-decoration-style:dashed; color:var(--text-2); }
.tag { background:color-mix(in srgb, var(--voice-a) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .turn-a, .turn-u { transition:none; } }
/* SpeakerPresence on the podcast card: name brightens while that voice is live */
.pod-voices .spk { display:grid; justify-items:center; gap:var(--s-1); }
.pod-voices .spk b { color:var(--text-3); transition:color 240ms; }
.pod-card[data-s="host"] .spk.a b { color:var(--voice-a-2); }
.pod-card[data-s="expert"] .spk.b b { color:var(--voice-b-2); }
.pod-lines li { transition:opacity 240ms, box-shadow 240ms; }
.pod-card[data-s="host"] .pod-lines li:not(.h), .pod-card[data-s="you"] .pod-lines li:not(.u), .pod-card[data-s="expert"] .pod-lines li:not(.e) { opacity:.72; }
.pod-card[data-s="host"] .pod-lines .h { box-shadow:inset 2px 0 0 var(--voice-a); }
.pod-card[data-s="expert"] .pod-lines .e { box-shadow:inset 2px 0 0 var(--voice-b); }
.pod-card[data-s="you"] .pod-lines .u { box-shadow:inset 2px 0 0 var(--text-2); }
.pod-card { padding-top:var(--s-3); }
.pod-voices { gap:24px; }
/* hero: the orb is the window's subject, as in /chat */
.win-body { padding-top:var(--s-3); }
.mini-voices .v { width:14px; height:14px; border:0; }
.mini-voices .b { margin-left:4px; }
/* state track (Cách dùng): each step is labelled with the state the product is in, using the app's marks */
.steps .n { display:flex; align-items:center; gap:10px; color:var(--text-2); font-weight:var(--fw-medium); }
.steps .n .mk { width:12px; height:12px; }
/* Ứng dụng: each use is a ConversationTurn sample: what you would actually say, tagged with where you say it */
.use { display:flex; flex-direction:column; }
.use .q { margin-top:auto; padding-top:var(--s-5); color:var(--text) !important; font-size:15px; line-height:1.5; }
.use .q::before { content:""; display:block; height:1px; margin-bottom:var(--s-4); background:var(--line); }
.q-who { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-size:var(--fs-xs); font-weight:var(--fw-semibold); color:var(--voice-a-2); }
.q.b .q-who { color:var(--voice-b-2); }
.q-who .p-dot { width:8px; height:8px; }
@media (max-width: 640px) { .o-space { width:104px; height:104px; } .o-space.sm { width:72px; height:72px; } }
@media (orientation: landscape) and (max-height: 500px) { .presence { display:none; } }
@media (min-width: 641px) { .o-space:not(.sm) { width:152px; height:152px; } }

/* round 10: the voice orb closes the page too, and the two voices differ by shape, not only hue (grayscale test) */
.cta-head { display:flex; align-items:center; gap:var(--s-3); margin-bottom:var(--s-3); }
.cta-orb { flex:none; width:64px !important; height:64px !important; margin:0 0 0 -10px; }
.cta-state { display:flex; align-items:center; gap:8px; margin-top:4px; font-size:var(--fs-sm); color:var(--text-2) !important; }
.mini-voices .v.b { background:transparent; box-shadow:inset 0 0 0 3px var(--voice-b); }

/* round 11: trust = privacy facts + FAQ side by side, one section instead of two "heading left, grid right" blocks */
.trust { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:56px; align-items:start; }
.trust-col { scroll-margin-top:96px; }
.trust-col > h3 { margin-bottom:var(--s-5); font-size:20px; }
.trust .data > div { grid-template-columns:1fr; gap:var(--s-2); padding:20px 24px; }
.trust .note { margin-top:var(--s-5); }
@media (max-width: 900px) { .trust { grid-template-columns:1fr; gap:48px; } }

/* the product name is "Digimate Live": "Live" is set lighter, in the logo's orange, so the wordmark reads as one name */
.brand .live { margin-left:.28em; color:var(--accent-hi); font-weight:var(--fw-medium); }

/* English speaking remains one compact entry alongside existing apps. */
.paths .speaking-path { display:inline-flex; align-items:center; min-height:44px; color:var(--text); font-weight:var(--fw-semibold); text-decoration:underline; text-underline-offset:4px; }
.paths .speaking-path:hover { color:var(--accent); }
.paths .speaking-path:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media (orientation:landscape) and (max-height:500px) {
  .paths { display:grid; }
  .paths li:not(:last-child) { display:none; }
}
