:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --text: #1d1d1f;
  --muted: #5f6368;
  --border: #e3e3e8;
  --accent: #3b5bdb;
  --accent-strong: #2f4ac0;
  --accent-soft: #edf1ff;
  --on-accent: #ffffff;
  --rec: #d6303a;
  --rec-soft: #fde7e8;
  --frame: #1d1d1f;
  --shadow: 0 1px 2px rgba(20, 22, 30, .06), 0 12px 32px rgba(20, 22, 30, .08);
  /* Speaker colours: text colour / soft background. */
  --s1: #2f4ac0; --s1-soft: #e7ecff;
  --s2: #b0275a; --s2-soft: #fde8ef;
  --s3: #22783a; --s3-soft: #e3f5e7;
  --s4: #a64b00; --s4-soft: #fdeedd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1b1c1f;
    --surface-2: #24262b;
    --text: #ececf0;
    --muted: #a0a3ab;
    --border: #2c2e33;
    --accent: #8ea3ff;
    --accent-strong: #b3c1ff;
    --accent-soft: #1f2540;
    --on-accent: #10131f;
    --rec: #ff6b72;
    --rec-soft: #3d1c1f;
    --frame: #3a3c42;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --s1: #a9b8ff; --s1-soft: #252d52;
    --s2: #f59ab9; --s2-soft: #44202d;
    --s3: #8fd9a2; --s3-soft: #1d3a25;
    --s4: #f6b26b; --s4-soft: #42301a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 24px; height: 24px; border-radius: 7px; background: var(--accent) url(/assets/icon.svg) center / cover no-repeat; display: inline-block; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: var(--text); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main { padding: 32px 0 64px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.lang-switch { font-size: 14px; margin-top: 8px; }
footer.site { border-top: 1px solid var(--border); padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); margin-right: 14px; display: inline-block; }
footer.site .copy { margin-top: 8px; }
footer.site .copy a { margin-right: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0 24px; }
@media (max-width: 520px) {
  h1 { font-size: 25px; }
  nav a { margin-left: 12px; }
}

/* ───────────── Landing page (body.home) ───────────── */
.home .wrap { max-width: 1120px; }
.home main { padding: 0; }
.home header.site { position: sticky; top: 0; z-index: 10; }
html:has(body.home) { scroll-padding-top: 72px; }
.home h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
.home h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.home section { padding: 72px 0; }
.home section + section { border-top: 1px solid var(--border); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.section-head { max-width: 680px; margin-bottom: 40px; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.pill .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.btn { display: inline-block; padding: 12px 20px; border-radius: 11px; font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 50px; line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 18px; }
.hero h1 .hl { color: var(--accent); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.platforms li { font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; background: var(--surface); }
.soon { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Device frames */
.window { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.window-bar .tl { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.window-bar .title { margin-left: 8px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window-bar .rec { margin-left: auto; }
.window-body { padding: 16px; }
.phone { width: 270px; max-width: 100%; border: 9px solid var(--frame); border-radius: 36px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.phone-notch { width: 84px; height: 20px; margin: 0 auto; background: var(--frame); border-radius: 0 0 12px 12px; }

.rec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rec); background: var(--rec-soft); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }

/* Chat-style transcript */
.chat { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.who { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.who time { font-weight: 400; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.bubble { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 8px 12px; font-size: 14.5px; line-height: 1.5; margin: 0; }
.orig { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-style: italic; }
.orig b { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .04em; margin-right: 4px; }
.typing { color: var(--muted); }
.typing::after { content: "▍"; color: var(--accent); margin-left: 2px; }
.sp1 .av { background: var(--s1-soft); color: var(--s1); } .sp1 .who { color: var(--s1); }
.sp2 .av { background: var(--s2-soft); color: var(--s2); } .sp2 .who { color: var(--s2); }
.sp3 .av { background: var(--s3-soft); color: var(--s3); } .sp3 .who { color: var(--s3); }
.sp4 .av { background: var(--s4-soft); color: var(--s4); } .sp4 .who { color: var(--s4); }

/* Name prompt */
.prompt { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.prompt-q { font-size: 14.5px; font-weight: 600; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip.add { border-style: dashed; background: transparent; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.hero-visual { position: relative; }
.hero-visual { padding-bottom: 40px; }
.hero-visual .prompt { position: absolute; right: -18px; bottom: 0; width: 340px; max-width: 85%; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 80px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.step-text p { color: var(--muted); margin: 0 0 10px; }
.step-text p.note-line { font-size: 14.5px; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin: 6px 0; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.step-visual { display: flex; justify-content: center; }
.step-visual > * { width: 100%; max-width: 460px; }
.step-visual > .phone { width: 290px; }

kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 7px; background: var(--surface); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--text); text-align: center; }

/* Step 1: recorder */
.recorder { text-align: center; padding: 32px 20px; }
.rec-btn { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--rec-soft); }
.rec-btn span { width: 30px; height: 30px; border-radius: 8px; background: var(--rec); }
.timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 16px 0 2px; letter-spacing: .02em; }
.recorder .muted { font-size: 14px; margin: 0; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin: 18px 0 16px; }
.wave i { width: 4px; border-radius: 2px; background: var(--accent); opacity: .75; }
.wave .h1 { height: 10px; } .wave .h2 { height: 18px; } .wave .h3 { height: 28px; } .wave .h4 { height: 38px; } .wave .h5 { height: 44px; }
.shortcut { font-size: 14px; color: var(--muted); margin: 0; }

/* Step 2: speaker separation */
.track { display: flex; gap: 3px; height: 30px; border-radius: 8px; overflow: hidden; margin: 4px 0 14px; }
.track span { display: block; }
.track .g1 { flex: 1; } .track .g2 { flex: 2; } .track .g3 { flex: 3; } .track .g4 { flex: 4; }
.track .t1 { background: var(--s1); } .track .t2 { background: var(--s2); } .track .t3 { background: var(--s3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.legend .l1 { color: var(--s1); } .legend .l2 { color: var(--s2); } .legend .l3 { color: var(--s3); }
.legend span { color: var(--muted); }

/* Step 3: merge row */
.merge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tag { font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.tag.sp1 { background: var(--s1-soft); color: var(--s1); } .tag.sp2 { background: var(--s2-soft); color: var(--s2); } .tag.sp3 { background: var(--s3-soft); color: var(--s3); } .tag.sp4 { background: var(--s4-soft); color: var(--s4); }
.merge .arrow { color: var(--muted); }

/* Step 5: minutes */
.minutes h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.minutes h4:first-of-type { margin-top: 12px; }
.minutes p, .minutes li { font-size: 14.5px; line-height: 1.5; margin: 0; }
.minutes ul { margin: 0; padding-left: 18px; }
.minutes li + li { margin-top: 4px; }
.minutes-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; }
.minutes-meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.ai-badge { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-bottom: 8px; }
.todo { list-style: none; padding: 0 !important; }
.todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.todo li:last-child { border-bottom: 0; }
.todo .due { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.end-btn { display: inline-block; font-size: 13px; font-weight: 600; color: var(--on-accent); background: var(--rec); border-radius: 8px; padding: 3px 10px; margin-left: auto; }

/* Step 6: send dialog */
.send-list { list-style: none; margin: 0 0 14px; padding: 0; }
.send-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.send-list .box { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); position: relative; }
.send-list .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 4px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.send-list .mail { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.send-opts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.send-opts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.send-opts li.on { border-color: var(--accent); background: var(--accent-soft); }
.send-opts .radio { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--muted); }
.send-opts li.on .radio { border: 5px solid var(--accent); }
.send-opts small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.send-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.send-foot span { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 6px 14px; }
.send-foot .cancel { color: var(--muted); }
.send-foot .go { background: var(--accent); color: var(--on-accent); }

/* Bilingual */
.bilingual { background: var(--surface); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.langs li { font-size: 15px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }
.langs li.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.bi-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; align-items: center; margin-top: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > div { padding: 14px 16px; min-width: 0; }
.split > div + div { border-left: 1px solid var(--border); }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.split-head .code { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; }
.split .chat { gap: 10px; }
.split .bubble { font-size: 14px; }
.kind { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.kind.src { color: var(--accent-strong); }
.split.stacked { grid-template-columns: 1fr; }
.split.stacked > div { padding: 10px 12px; }
.split.stacked > div + div { border-left: 0; border-top: 2px solid var(--accent); }
.split.stacked .bubble { font-size: 13px; padding: 6px 10px; }
.split.stacked .split-head { margin-bottom: 8px; }
.split.stacked .msg { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.split.stacked .av { width: 24px; height: 24px; font-size: 11px; }
.caption { font-size: 13.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.facts h3 { font-size: 17px; margin: 14px 0 6px; }
.facts p { color: var(--muted); font-size: 15px; margin: 0; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.ico svg { width: 22px; height: 22px; }

/* Closing CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .platforms { justify-content: center; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero-visual { max-width: 560px; }
  .hero-visual .prompt { right: 12px; }
  .bi-grid { grid-template-columns: 1fr; justify-items: center; }
  .bi-grid > div:first-child { width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home section { padding: 56px 0; }
  .home h2 { font-size: 26px; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
  .steps { gap: 56px; }
}
@media (max-width: 520px) {
  .home nav .wide-only { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .hero-visual { padding-bottom: 0; }
  .hero-visual .prompt { position: static; width: auto; max-width: none; margin-top: 14px; }
  .split > div { padding: 12px 10px; }
  .split .bubble { font-size: 13px; padding: 6px 9px; }
  .split .msg, .split.stacked .msg { grid-template-columns: 1fr; gap: 4px; }
  .split .av { display: none; }
  .facts { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Download */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px auto 0; padding: 0; list-style: none; max-width: 900px; text-align: left; }
.dl { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dl-plat { display: flex; align-items: center; gap: 12px; }
.dl-plat strong { display: block; font-size: 16px; }
.dl-plat span { display: block; font-size: 13.5px; color: var(--muted); }
.dl-plat .ico { display: grid; flex: none; }
.store-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 11px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
a.store-btn:hover { background: var(--accent-strong); }
.store-btn.is-soon { background: var(--surface-2); color: var(--muted); border-color: var(--border); border-style: dashed; cursor: not-allowed; }
.store-btn .soon-tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--bg); border: 1px solid var(--border); }
.notify { font-size: 15px; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 760px) {
  .downloads { grid-template-columns: 1fr; max-width: 420px; }
}
