/* SpeechX — Calm Minimal (cursor.com / pi.dev language).
   Nền ấm #f7f7f4, blocks #f2f1ed, KHÔNG divider lines — phân tách bằng whitespace và nền.
   Accent = màu mực; xanh trạng thái chỉ cho dot "sống". */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f7f4;
  --surface: #e1e0db;
  --surface-2: #f2f1ed;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --ink: #111113;
  --ink-2: #55555e;
  --ink-3: #8b8b95;
  --accent: #111113;
  --accent-text: #111113;
  --accent-dim: rgba(0, 0, 0, 0.05);
  --ok: #111113;
  --warn: #b45309;
  --font-sans: "Inter", -apple-system, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(0, 0, 0, 0.12); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .accent-dot { color: var(--ink); }
.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  line-height: 1.65;
}
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 247, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand-x { color: var(--ink-3); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 140ms ease, background-color 140ms ease;
}
.header-nav a.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--surface-2);
}
.language-switch span[data-active="true"] { color: var(--ink); }
.header-cta {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 140ms ease;
}
.header-cta:hover { opacity: 0.84; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  transition: background-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
/* Nút primary render bởi site.js dùng class "btn primary buy-btn" — map cùng style */
.btn-primary, .btn.primary {
  background: var(--ink);
  color: #ffffff;
}
.btn-primary:hover, .btn.primary:hover { background: #2a2a30; }
.btn-primary[disabled], .btn.primary[disabled] { opacity: 0.5; cursor: wait; }
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: 0.5; cursor: wait; }
.btn .btn-sub {
  font-weight: 400;
  font-size: 12.5px;
  opacity: 0.72;
}
.play-icon { width: 14px; height: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 88px; position: relative; }
.hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { margin-bottom: 22px; display: flex; justify-content: center; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--ink);
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--ink-2);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-line {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.ok-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }

/* App mockup — cửa sổ app sáng, shadow thay viền */
.app-frame {
  margin: 64px auto 0;
  max-width: 880px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
}
.titlebar-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.12); }
.titlebar-name { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.app-body { padding: 28px 28px 24px; }
.app-target {
  border-radius: var(--radius);
  background: var(--bg);
  padding: 20px 22px;
  min-height: 132px;
}
.app-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.app-target-text { font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.type-caret {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  vertical-align: text-bottom;
  background: var(--ink);
  margin-left: 2px;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.app-status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.status-group { display: flex; align-items: center; gap: 18px; }
.status-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.status-item.is-live { color: var(--ink-2); }
.hotkey-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Sections — whitespace thay divider ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lede { margin-top: 14px; }

/* Fact strip — cells #f2f1ed, không viền */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fact-cell { background: var(--surface-2); border-radius: var(--radius-lg); padding: 22px 24px; }
.fact-cell strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.fact-cell span { font-size: 13px; color: var(--ink-3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 26px 26px 24px;
}
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.12em; }
.step-card h3 { margin: 14px 0 8px; }
.step-card p { font-size: 14.5px; color: var(--ink-2); }
.step-keys { margin-top: 16px; display: flex; align-items: center; gap: 6px; }

/* Demo — 3 video thật xen kẽ phải/trái (cursor.com feature blocks) */
.demo-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 28px;
  padding: 44px;
  margin-bottom: 24px;
}
.demo-row:last-child { margin-bottom: 0; }
.demo-row.is-flipped .demo-media { order: 2; }
.demo-row.is-flipped .demo-copy { order: 1; }
.demo-media video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}
.demo-copy .eyebrow { margin-bottom: 10px; }
.demo-copy h3 { font-size: 22px; margin-bottom: 10px; }
.demo-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--surface-2);
  border-radius: 28px;
  padding: 56px;
}
.privacy-flow { display: flex; flex-direction: column; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
}
.flow-node.is-accent { background: #ffffff; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1); }
.flow-node strong { font-size: 14.5px; }
.flow-node small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; }
.flow-node svg { width: 20px; height: 20px; flex: none; stroke: var(--ink-2); fill: none; stroke-width: 1.6; }
.flow-arrow-down {
  align-self: center;
  color: var(--ink-3);
  font-size: 15px;
  padding: 6px 0;
}
.privacy-facts { margin-top: 28px; display: grid; gap: 12px; }
.privacy-facts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }

/* Limits */
.limits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.limit-card { border-radius: var(--radius); background: var(--surface-2); padding: 20px; }
.limit-card h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.limit-card h3 svg { width: 14px; height: 14px; stroke: var(--warn); fill: none; stroke-width: 2; flex: none; }
.limit-card p { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* Pricing */
.pricing-escape { margin: 0 0 20px; font-size: 14px; }
.pricing-escape a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pricing-escape a:hover { color: var(--ink); }
.payment-route { margin-bottom: 24px; }
.payment-route-legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.payment-route-options { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-route-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.payment-route-option:hover { background: #edece7; }
.payment-route-option.is-selected { background: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--line); }
.payment-route-option input { accent-color: var(--ink); margin: 0; }
.payment-route-main { font-size: 14px; font-weight: 600; display: block; }
.payment-route-helper { display: block; font-size: 12px; color: var(--ink-3); }
.payment-route-note { margin-top: 12px; margin-bottom: 30px; font-size: 13px; color: var(--ink-3); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 42px 30px 38px;
}
.plan-card.plan-lifetime { background: var(--surface); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.09); }
.plan-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}
.plan-card h3 { font-size: 18px; }
.plan-tagline { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.plan-price { margin-top: 26px; font-size: 42px; font-weight: 650; letter-spacing: -0.03em; }
.plan-billing { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.plan-features { margin-top: 28px; display: grid; gap: 14px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan-features li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: 8px; flex: none; }
.plan-terms { margin-top: 26px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.plan-error { margin-top: 10px; font-size: 13px; color: #b91c1c; }
.plan-card .btn { margin-top: auto; padding-top: 15px; padding-bottom: 15px; width: 100%; }
.guarantee-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.guarantee-note svg { width: 18px; height: 18px; stroke: var(--ok); fill: none; stroke-width: 1.7; flex: none; }
#buy-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fbeae9;
  color: #b91c1c;
  font-size: 14px;
}
.tax-note { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* FAQ — 1 container bao ngoài cả list, rộng bằng wrap chung */
.faq-list { background: var(--surface-2); border-radius: 22px; padding: 8px 34px; }
.faq-item { padding: 19px 0; }
.faq-item:first-child { padding-top: 14px; }
.faq-item:last-child { padding-bottom: 14px; }
.faq-q { font-weight: 600; font-size: 15.5px; display: flex; gap: 12px; }
.faq-q .faq-index { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); padding-top: 2px; flex: none; }
.faq-a { margin-top: 8px; padding-left: 34px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* Final CTA */
.final { padding: 104px 0; text-align: center; }
.final .eyebrow { justify-content: center; display: flex; margin-bottom: 18px; }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); }
.final-actions { margin-top: 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.final-checks {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.final-checks li { display: flex; align-items: center; gap: 8px; }
.mobile-qr { margin: 44px auto 0; display: none; max-width: 320px; text-align: center; }
#qr-mount { display: flex; justify-content: center; }
#qr-mount svg { width: 156px; height: auto; }
.mobile-qr-url { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.qr-copy-btn { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mobile-qr-copy { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); max-width: 300px; }

/* Footer — block #f2f1ed */
.site-footer { padding: 44px 0 52px; background: var(--surface-2); margin-top: 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.brand-links { font-size: 12.5px; color: var(--ink-3); }
.brand-links a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.brand-sep { margin: 0 6px; }

/* ---------- Demo dialog ---------- */
.demo-dialog {
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  max-width: min(920px, calc(100vw - 32px));
  width: 100%;
}
.demo-dialog::backdrop { background: rgba(20, 20, 24, 0.4); backdrop-filter: blur(4px); }
.demo-dialog-panel { padding: 20px; }
.demo-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-dialog-head h2 { font-size: 16px; font-weight: 600; }
.dialog-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 18px;
  color: var(--ink-2);
  background: var(--surface-2);
}
.dialog-close:hover { color: var(--ink); background: #eae9e4; }
.demo-video { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.demo-video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Chat widget (calm light; selectors khớp chat-widget.js) ---------- */
#chat-fab[hidden], #chat-panel[hidden] { display: none !important; }
#chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition: background-color 140ms ease, transform 140ms ease;
}
#chat-fab:hover { background: var(--surface-2); transform: translateY(-1px); }
#chat-fab:focus { outline: none; }
#chat-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#chat-fab svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
#chat-fab .icon-close { display: none; }
#chat-fab.is-open .icon-open { display: none; }
#chat-fab.is-open .icon-close { display: block; }
#chat-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 9999;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, 72dvh);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}
#chat-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--surface); }

/* ---------- Subpages (policy / guide / changelog) ---------- */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.page-hero .lede { margin-top: 16px; max-width: 620px; }
.page-hero .page-meta { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.page-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 96px;
}
.page-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.page-toc p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.page-toc ul { display: grid; gap: 9px; }
.page-toc a { font-size: 13.5px; color: var(--ink-3); transition: color 140ms ease; }
.page-toc a:hover { color: var(--ink); }
.page-prose { max-width: 720px; }
.page-prose section { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.page-prose h2 { font-size: 22px; margin-bottom: 14px; }
.page-prose h3 { margin: 26px 0 8px; }
.page-prose p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.page-prose ul { display: grid; gap: 8px; margin: 12px 0 16px; }
.page-prose ul li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.page-prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.page-prose .callout {
  border-radius: 10px;
  background: var(--surface-2);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 16px 0;
}
.page-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
}
.prose-divider { border: 0; margin: 40px 0; }

/* Changelog */
.release { border-radius: var(--radius-lg); background: var(--surface-2); padding: 26px 28px; margin-bottom: 20px; }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.release-tag { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.release-name { font-size: 15px; font-weight: 600; }
.release-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.release ul { display: grid; gap: 8px; }
.release ul li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.release ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.release .release-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- Motion ---------- */
/* Chỉ ẩn khi JS đã chạy (html.js); no-JS thấy toàn bộ nội dung. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js [data-animate].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-animate] { opacity: 1; transform: none; transition: none; }
  .type-caret { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .limits-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .demo-row { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .demo-row.is-flipped .demo-media { order: 0; }
  .demo-row.is-flipped .demo-copy { order: 1; }
  .page-body { grid-template-columns: 1fr; gap: 32px; }
  .page-toc { position: static; }
}
@media (max-width: 860px) {
  .header-nav .nav-link { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; margin-top: 14px; }
  .plan-badge { position: static; display: inline-block; align-self: flex-start; margin: 0 0 12px; }
  .plan-card.plan-lifetime { order: -1; }
  .payment-route-options { flex-direction: column; }
  .payment-route-option { width: 100%; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .app-body { padding: 20px 16px 16px; }
  .app-status { justify-content: center; }
}
@media (max-width: 640px) {
  .fact-strip { grid-template-columns: 1fr; }
  .limits-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero-actions .btn { width: 100%; }
  .mobile-qr { display: block; }
  .final-checks { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; justify-content: center; }
  #chat-fab { right: 16px; bottom: 16px; }
  #chat-panel { right: 12px; left: 12px; bottom: 80px; width: auto; }
  .faq-list { padding: 6px 20px; }
  .faq-a { padding-left: 30px; }
}
