/* TalkingNote website — colours mirror the iOS app tokens (TnTheme.swift). */
:root {
  --paper: #ffffff;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --well: #eef1f6;
  --ink: #0e1a30;
  --ink-2: #44506a;
  --ink-3: #5d6882;
  --line: #e1e5ee;
  --brand: #2360e0;
  --brand-ink: #1b4fc0;
  --brand-soft: #e7eeff;
  --on-brand: #ffffff;
  --rec: #cf3d25;
  --rec-soft: #fce9e5;
  --ok: #18794e;
  --ok-soft: #ddf3e4;
  --spA: #1d4fc4; --spA-soft: #e3ecff; --spA-mid: #6e97f5;
  --spB: #ad1f7c; --spB-soft: #fce6f3; --spB-mid: #ee7cc6;
  --spC: #8a5a00; --spC-soft: #ffefcf; --spC-mid: #e9ae3c;
  --ai: #8c63ff;
  --shadow-1: 0 1px 2px rgba(14, 26, 48, .05), 0 8px 24px rgba(14, 26, 48, .07);
  --shadow-2: 0 24px 60px -12px rgba(14, 26, 48, .28), 0 8px 20px rgba(14, 26, 48, .08);
  --bezel: #0b1020;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans SC", "Noto Sans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c111d; --bg: #070b14; --surface: #121929; --well: #1b2336;
    --ink: #eef1f7; --ink-2: #b6bfd3; --ink-3: #8e98b0; --line: #243049;
    --brand: #7ba6ff; --brand-ink: #a9c4ff; --brand-soft: #1a2a52; --on-brand: #0c111d;
    --rec: #ff6b52; --rec-soft: #3b1912; --ok: #5fd39a; --ok-soft: #0f3323;
    --spA: #a3bfff; --spA-soft: #1a2b55; --spB: #f5a3d7; --spB-soft: #46163a; --spB-mid: #d95fae;
    --spC: #f2c464; --spC-soft: #3f2e08; --spC-mid: #c9922a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-2: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 8px 20px rgba(0, 0, 0, .4);
    --bezel: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c111d; --bg: #070b14; --surface: #121929; --well: #1b2336;
  --ink: #eef1f7; --ink-2: #b6bfd3; --ink-3: #8e98b0; --line: #243049;
  --brand: #7ba6ff; --brand-ink: #a9c4ff; --brand-soft: #1a2a52; --on-brand: #0c111d;
  --rec: #ff6b52; --rec-soft: #3b1912; --ok: #5fd39a; --ok-soft: #0f3323;
  --spA: #a3bfff; --spA-soft: #1a2b55; --spB: #f5a3d7; --spB-soft: #46163a; --spB-mid: #d95fae;
  --spC: #f2c464; --spC-soft: #3f2e08; --spC-mid: #c9922a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-2: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 8px 20px rgba(0, 0, 0, .4);
  --bezel: #000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-store { background: var(--ink); color: var(--paper); padding: 0 22px 0 18px; }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store .btn-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .72; letter-spacing: .02em; }
.btn-store b { font-size: 17px; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--brand-ink); padding: 0 8px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(14, 26, 48, .08); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang > button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14px; color: var(--ink-2);
}
.lang > button svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2);
  display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.lang-menu a:hover { background: var(--well); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--brand-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -160px; width: 600px; height: 600px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--spB-mid) 13%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--rec-soft); color: var(--rec); font-size: 14px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  margin: 22px 0 22px; font-size: clamp(44px, 6.6vw, 80px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 520px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }

.hero-visual { position: relative; display: flex; justify-content: flex-start; padding-left: 4%; min-height: 640px; }
.float-card {
  position: absolute; z-index: 3; width: 268px; padding: 16px 16px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.float-summary { right: 0; bottom: -22px; animation: floaty 7s ease-in-out infinite; }
.float-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.float-head .spark { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--ai) 14%, transparent); color: var(--ai); }
.float-head .spark svg { width: 14px; height: 14px; }
.float-card h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.float-card ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 7px; }
.float-card li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.float-card li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.float-card li.todo::before { width: 12px; height: 12px; margin-top: 3px; border-radius: 4px; background: none; border: 1.5px solid var(--ink-3); }
.ts { flex: none; margin-left: auto; align-self: flex-start; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-family: var(--mono); font-size: 11px; line-height: 18px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Phone ---------- */
.phone {
  position: relative; z-index: 2; width: 320px; height: 680px; flex: none;
  border-radius: 54px; padding: 11px; background: var(--bezel);
  box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 27px; transform: translateX(-50%);
  background: #000; border-radius: 20px; z-index: 5;
}
.screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; font-size: 14px; line-height: 1.45;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 6px 28px 0 34px; font-size: 14px; font-weight: 600; flex: none; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.statusbar .sb-icons i { display: block; background: var(--ink); border-radius: 2px; }

/* recording screen */
.rec-top { padding: 6px 20px 10px; flex: none; }
.rec-row { display: flex; justify-content: space-between; align-items: center; }
.rec-timer { font-family: var(--mono); font-feature-settings: "tnum"; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--rec-soft); color: var(--rec); font-size: 12px; font-weight: 600; }
.pill-live .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.ribbon { display: flex; align-items: center; gap: 2px; height: 34px; margin-top: 10px; overflow: hidden; }
.ribbon span { flex: 1 0 3px; max-width: 3px; border-radius: 2px; background: var(--line); transition: height .18s ease; }
.ribbon .a { background: var(--spA-mid); }
.ribbon .b { background: var(--spB-mid); }
.ribbon .c { background: var(--spC-mid); }
.rec-feed { position: relative; flex: 1; overflow: hidden; padding: 4px 20px 0; border-top: 1px solid var(--line); }
.rec-feed::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40px; background: linear-gradient(var(--paper), transparent); z-index: 2; pointer-events: none; }
.feed-inner { position: absolute; left: 20px; right: 20px; bottom: 10px; display: flex; flex-direction: column; gap: 14px; }
.blk { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; animation: rise .35s ease both; }
.blk .tile { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.blk .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.blk .who .mono { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.blk p { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.blk.a .tile { background: var(--spA-soft); color: var(--spA); } .blk.a .who { color: var(--spA); }
.blk.b .tile { background: var(--spB-soft); color: var(--spB); } .blk.b .who { color: var(--spB); }
.blk.c .tile { background: var(--spC-soft); color: var(--spC); } .blk.c .who { color: var(--spC); }
.blk p .partial { color: var(--ink-3); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rec-controls { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 14px 26px 30px; border-top: 1px solid var(--line); background: var(--paper); }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.ctl i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--well); color: var(--ink); }
.ctl i svg { width: 20px; height: 20px; }
.ctl.stop i { width: 62px; height: 62px; background: var(--rec); color: #fff; }
.ctl.stop i b { width: 20px; height: 20px; border-radius: 5px; background: #fff; }

/* home screen */
.screen.grouped { background: var(--bg); }
.home-head { padding: 8px 18px 0; flex: none; }
.home-head h5 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; }
.home-head .sub { font-size: 12px; color: var(--ink-3); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; margin: 12px 18px 0; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; flex: none; }
.search svg { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; padding: 12px 18px 4px; overflow: hidden; flex: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: .65; }
.month { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.list { margin: 0 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 11px 12px; align-items: center; }
.row + .row { position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.ricon { width: 38px; height: 38px; border-radius: 11px; background: var(--well); display: grid; place-items: center; color: var(--ink-3); }
.ricon svg { width: 18px; height: 18px; }
.row b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tabbar { margin-top: auto; flex: none; display: flex; justify-content: space-around; align-items: center; height: 82px; padding-bottom: 18px; background: var(--surface); border-top: 1px solid var(--line); position: relative; font-size: 10.5px; color: var(--ink-3); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tabbar span.on { color: var(--brand); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .recbtn { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; background: var(--rec); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--surface), 0 8px 20px rgba(207, 61, 37, .35); }
.tabbar .recbtn svg { width: 24px; height: 24px; }

/* summary screen */
.nav-mini { display: flex; align-items: center; gap: 10px; padding: 4px 16px 0; flex: none; color: var(--brand-ink); }
.nav-mini svg { width: 20px; height: 20px; }
.note-title { padding: 6px 18px 0; flex: none; }
.note-title h5 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.note-title .sub { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 18px 0; padding: 3px; border-radius: 11px; background: var(--well); font-size: 13px; text-align: center; flex: none; }
.seg span { padding: 6px; border-radius: 8px; color: var(--ink-2); }
.seg span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 26, 48, .1); }
.sum-chips { display: flex; gap: 6px; padding: 12px 18px 0; flex: none; }
.md { padding: 12px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.5; overflow: hidden; }
.md h6 { margin: 8px 0 2px; font-size: 14px; font-weight: 700; }
.md ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.md li { display: flex; gap: 8px; }
.md li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.md li.todo::before { width: 13px; height: 13px; margin-top: 3px; border-radius: 4px; background: none; border: 1.5px solid var(--ink-3); }
.md li strong { font-weight: 600; }
.md .gen { margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.composer { margin: auto 14px 26px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--ink-3); flex: none; }
.composer .send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--well); display: grid; place-items: center; }
.composer .send svg { width: 15px; height: 15px; }

/* ---------- Value strip ---------- */
.strip { padding: 28px 0 8px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.strip-item .ic svg { width: 20px; height: 20px; }
.strip-item b { display: block; font-size: 16px; }
.strip-item span { font-size: 14px; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 2px; }
.ic.rec { background: var(--rec-soft); color: var(--rec); }
.ic.ai { background: color-mix(in srgb, var(--ai) 14%, transparent); color: var(--ai); }
.ic.ok { background: var(--ok-soft); color: var(--ok); }
.ic.brand { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section.tint { background: var(--bg); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--brand); margin-bottom: 16px; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 600px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.feature.flip .feature-copy { order: 2; }
.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-visual::before { content: ""; position: absolute; inset: 10% 0; z-index: 0; border-radius: 40px; background: var(--well); }
.section.tint .feature-visual::before { background: var(--paper); }
.feature-visual .phone { transform: scale(.94); }
.checks { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.checks li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--brand); }
.tpl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tpl-row span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.tpl-row span.custom { border-style: dashed; color: var(--brand-ink); }

/* small features */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.mini { padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.mini .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.mini .ic svg { width: 21px; height: 21px; }
.mini b { display: block; font-size: 17px; margin-bottom: 6px; }
.mini p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand); }
.step b { display: block; margin: 14px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.step p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; margin-top: 56px; }
.plan { display: flex; flex-direction: column; padding: 34px 32px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--brand) 55%, transparent); position: relative; }
.plan-badge { position: absolute; top: -14px; left: 32px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.plan-name { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 54px; line-height: 1; letter-spacing: -.04em; font-weight: 800; font-feature-settings: "tnum"; }
.price span { font-size: 16px; color: var(--ink-3); }
.price-note { margin-top: 10px; min-height: 24px; font-size: 15px; color: var(--ok); font-weight: 600; }
.price-note.muted { color: var(--ink-3); font-weight: 400; }
.plan ul { margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 13px; }
.plan li { display: flex; gap: 11px; font-size: 15.5px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
.plan.pro li svg { color: var(--brand); }
.plan li.dim { color: var(--ink-3); }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--well); font-size: 13px; }
.toggle button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 26, 48, .12); }
.byok { max-width: 864px; margin: 26px auto 0; display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 20px; background: var(--brand-soft); color: var(--ink); }
.byok svg { flex: none; width: 24px; height: 24px; color: var(--brand-ink); margin-top: 2px; }
.byok b { display: block; margin-bottom: 4px; }
.byok p { font-size: 15px; color: var(--ink-2); }
.fineprint { max-width: 864px; margin: 18px auto 0; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.privacy-grid .mini { background: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--well); display: grid; place-items: center; transition: transform .2s ease; }
.faq summary i svg { width: 14px; height: 14px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 4px; color: var(--ink-2); font-size: 16px; }

/* ---------- CTA + footer ---------- */
.cta-band { padding: 0 0 120px; }
.cta-card {
  position: relative; overflow: hidden; padding: 84px 32px; border-radius: 36px; text-align: center;
  background: #0e1a30; color: #eef1f7;
}
.cta-card::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(35, 96, 224, .55), transparent 70%); }
.cta-card > * { position: relative; }
.cta-card img { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cta-card .h2 { color: #fff; }
.cta-card p { margin: 18px auto 0; max-width: 520px; color: #b6bfd3; font-size: 18px; }
.cta-card .btn-store { margin-top: 34px; background: #fff; color: #0e1a30; }

footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* dialog */
dialog { border: 0; padding: 32px 28px 26px; border-radius: 26px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); text-align: center; }
dialog::backdrop { background: rgba(14, 26, 48, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog img { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 16px; }
dialog h3 { font-size: 22px; margin-bottom: 8px; }
dialog p { color: var(--ink-2); font-size: 15px; }
dialog .btn { width: 100%; margin-top: 22px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 56px; }
  .feature.flip .feature-copy { order: 0; }
  .hero { padding-top: 48px; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { justify-content: center; padding-left: 0; text-align: left; }
  .float-summary { right: calc(50% - 330px); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 96px 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-inner { height: 58px; gap: 12px; }
  .nav-end .btn-small { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-visual { min-height: 0; padding-bottom: 120px; }
  .phone { width: 290px; height: 616px; border-radius: 50px; }
  .screen { border-radius: 40px; }
  .float-summary { right: auto; left: 50%; bottom: 0; transform: translateX(-30%); width: 250px; animation: none; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .strip-item { padding: 20px 4px; }
  .steps, .privacy-grid, .mini-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .plan { padding: 30px 22px 26px; }
  .feature-visual .phone { transform: none; }
  .section { padding: 80px 0; }
  .faq summary { font-size: 16.5px; padding: 20px 2px; }
  .faq details p { padding-right: 8px; }
  .cta-card { padding: 64px 20px; border-radius: 28px; }
  .cta-band { padding-bottom: 80px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Avoid one-character orphan lines in CJK copy */
.h2, .hero h1, .section-lead, .hero .lead, .cta-card p, .step p, .mini p { text-wrap: pretty; }
.center .section-lead, .cta-card p { text-wrap: balance; }

/* ---------- Legal documents ---------- */
.legal-switch { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 0 10px; }
.legal-switch:hover { color: var(--ink); }
.legal-doc { padding: 64px 0 96px; }
.legal-doc article { max-width: 760px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 0 0 28px; }
.legal-doc h2 { font-size: 21px; line-height: 1.4; font-weight: 700; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-doc h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 8px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--brand-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-doc h1 + p { font-size: 18px; color: var(--ink); }
.legal-updated { margin-top: 48px !important; font-size: 14px !important; color: var(--ink-3) !important; }
@media (max-width: 720px) {
  .legal-doc { padding: 40px 0 72px; }
  .legal-switch { padding: 0 4px; }
}

/* ---------- Live translation demo ---------- */
.pill-live.tr-pill { background: var(--brand-soft); color: var(--brand-ink); }
.feed-static { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 0 20px 12px; border-top: 1px solid var(--line); }
.feed-static::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 56px; background: linear-gradient(var(--paper), transparent); z-index: 2; pointer-events: none; }
.feed-static .blk { flex: none; }
.blk .tr { grid-column: 2; display: flex; gap: 7px; align-items: flex-start; margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; line-height: 1.45; }
.blk .tr svg { flex: none; width: 13px; height: 13px; margin-top: 3px; }
.lang-chips { margin-top: 28px; gap: 6px; }
.lang-chips span { height: 30px; padding: 0 11px; font-size: 13px; }
