/* AutoEdit — mobile-first styles. No build step. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #646a75;
  --line: #e2e2dc;
  --accent: #ffca57;
  --accent-ink: #1b1d22;
  --primary: #1a62d6;
  --primary-ink: #ffffff;
  --ok: #17732f;
  --ok-bg: #e6f4ea;
  --warn: #8a5c00;
  --warn-bg: #fff4d6;
  --bad: #c62828;
  --bad-bg: #fdecea;
  --busy: #1a62d6;
  --busy-bg: #e7f0ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
  --topbar: #14161c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b21;
    --text: #e8e9ec;
    --muted: #9aa1ad;
    --line: #2a2e36;
    --primary: #4c8dff;
    --primary-ink: #0b1220;
    --ok-bg: #12301c;
    --ok: #5fd07c;
    --warn-bg: #3a2e0c;
    --warn: #f2c14e;
    --bad-bg: #3a1414;
    --bad: #ff7a73;
    --busy-bg: #13243f;
    --busy: #7aa7ff;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
body.with-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: var(--primary); }
h1 { font-size: 1.5rem; line-height: 1.25; margin: .25rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
p { margin: .5rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--topbar); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 7px; }
.topnav { display: none; align-items: center; gap: 16px; }
.topnav a, .topnav .linklike { color: #d9dbe0; text-decoration: none; font-size: .95rem; }
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab { flex: 1; text-align: center; padding: 10px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 12px; }
.tab.primary { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 760px) {
  body.with-tabbar { padding-bottom: 0; }
  .topnav { display: flex; }
  .tabbar { display: none; }
}

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1, .page-head h2 { margin: 0; }
.crumbs { margin: 0 0 4px; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.filename { word-break: break-word; }

/* cards & text */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 420px; margin: 24px auto; }
.hint { color: var(--muted); font-size: .92rem; }
.small { font-size: .85rem; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.inline { display: inline; margin: 0; }
.list li, .prose li { margin: .35rem 0; }
.prose h2 { margin-top: 1.25rem; }
.prose a { overflow-wrap: anywhere; }
.big-number { font-size: 2rem; font-weight: 700; margin: 0; }

/* messages */
.flash, .msg { border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: .95rem; }
.msg.inline { display: inline-block; padding: 2px 8px; margin: 0 0 0 6px; }
.flash.ok, .msg.ok { background: var(--ok-bg); color: var(--ok); }
.flash.bad, .msg.bad { background: var(--bad-bg); color: var(--bad); }
.flash.warn, .msg.warn { background: var(--warn-bg); color: var(--warn); }
.flash.info { background: var(--busy-bg); color: var(--busy); }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
label.check, label.choice { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check input, label.choice input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choices.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.card-choice { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.card-choice:has(input:checked) { border-color: var(--primary); background: var(--busy-bg); }

/* buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* "Đăng nhập bằng Google" per Google's branding guidelines: light theme (#FFFFFF fill, 1px #747775 stroke, #1F1F1F
   text), dark theme in dark mode (#131314 / #8E918F / #E3E3E3); official multicolour G; Google Sans Medium 14/20 when
   the device has it (no web font is downloaded), else the system font. */
.gsi-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 1px solid #747775; border-radius: 999px; background: #fff; color: #1f1f1f;
  font: 500 14px/20px "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .25px;
  text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.gsi-btn:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.gsi-btn:active { background: #eeeeee; }
@media (prefers-color-scheme: dark) {
  .gsi-btn { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  .gsi-btn:hover { background: #1f1f20; box-shadow: none; }
  .gsi-btn:active { background: #2a2a2c; }
}
.gsi-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gsi-icon { display: inline-flex; flex: none; width: 20px; height: 20px; }
.gsi-text { overflow-wrap: anywhere; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-profile li span:last-child { overflow-wrap: anywhere; text-align: right; min-width: 0; }

/* chips & progress */
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--busy-bg); color: var(--busy); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.muted { background: var(--line); color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 12px 0 6px; }
.progress.big { height: 14px; }
.progress .bar { height: 100%; background: var(--primary); transition: width .4s ease; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub { color: var(--muted); font-size: .85rem; }
.numbers { font-variant-numeric: tabular-nums; }

/* job list */
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.job-link { display: flex; gap: 12px; text-decoration: none; color: inherit; align-items: center; }
.thumb { width: 54px; height: 96px; flex: none; border-radius: 8px; background: var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.meta .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.empty { text-align: center; }

/* review */
.player video { width: 100%; max-height: 70vh; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; display: block; margin: 0 auto; }
.sentences { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sentence { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.sentence .keep { flex-direction: column; align-items: center; gap: 2px; font-weight: 400; }
.sentence .keep input { width: 24px; height: 24px; accent-color: var(--ok); }
.sentence .time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sentence .words { margin: 0; line-height: 1.9; }
.sentence:has(.keep input:not(:checked)) { background: var(--bad-bg); }
.sentence:has(.keep input:not(:checked)) .words { text-decoration: line-through; opacity: .55; }
.word { background: none; border: 0; padding: 0 1px; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; text-decoration: inherit; }
.word:hover, .word:focus { background: var(--warn-bg); outline: none; }
.word.fixed { background: var(--ok-bg); color: var(--ok); }
.total { font-size: .95rem; }
.word-editor { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; border-color: var(--primary); }
.sticky-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 4; }
.sticky-actions .btn { box-shadow: 0 4px 14px rgba(0, 0, 0, .15); border-color: var(--primary); color: var(--primary); }
@media (min-width: 760px) { .word-editor, .sticky-actions { bottom: 12px; } }
.stars { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.stars legend { width: 100%; }
.star { flex-direction: row; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.star:has(input:checked) { border-color: var(--accent); background: var(--warn-bg); }

/* publish */
.platform textarea { font-size: .92rem; }

/* settings */
.logo-preview { background: repeating-conic-gradient(var(--line) 0% 25%, transparent 0% 50%) 50% / 16px 16px; border-radius: 10px; padding: 12px; display: inline-block; margin-bottom: 8px; }
.logo-preview img { max-width: 160px; max-height: 120px; display: block; }
.glossary { display: flex; flex-direction: column; gap: 8px; }
.g-head, .g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-head { font-weight: 600; font-size: .9rem; color: var(--muted); }

/* admin */
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.failure { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.error-tail { max-height: 220px; overflow: auto; background: var(--bg); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* ---------------------------------------------------------------- public site + app shell */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 20; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; }
.chip.accent { background: var(--accent); color: var(--accent-ink); }
.center { text-align: center; }

/* nav */
.topnav.public { display: flex; gap: 14px; }
.topnav .btn { color: var(--accent-ink); }
.topnav a:not(.btn):hover, .navmenu-panel a:hover { color: #fff; }
.hide-sm { display: none; }
.nav-credits { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255, 202, 87, .18); color: var(--accent); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mobile-nav { display: flex; align-items: center; gap: 10px; }
.navmenu { position: relative; }
.navmenu > summary { list-style: none; cursor: pointer; color: #d9dbe0; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; font-size: .9rem; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--topbar); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.navmenu-panel a, .navmenu-panel .linklike { display: block; width: 100%; text-align: left; padding: 10px 12px; color: #d9dbe0; text-decoration: none; border-radius: 8px; }
.navmenu-panel form { margin: 0; }
@media (min-width: 560px) { .hide-sm { display: inline; } }
@media (max-width: 399px) { .hide-xs { display: none; } .topnav.public { gap: 10px; } }
@media (min-width: 760px) { .mobile-nav { display: none; } }

/* wide pages */
.site { max-width: 1080px; margin: 0 auto; padding: 16px; }
.section { margin: 48px 0; }
.section-tight { margin: 24px 0; }
.section-title { font-size: 1.4rem; text-align: center; margin: 0 0 20px; }
.page-hero { text-align: center; margin: 16px 0 24px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 8px auto; }
.eyebrow { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--busy-bg); color: var(--busy); font-weight: 700; font-size: .85rem; }

/* hero */
.hero { display: grid; gap: 28px; align-items: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.hero .lead { margin: 0 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: 220px; aspect-ratio: 9 / 16; border-radius: 30px; padding: 8px; background: #0b0c10; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.phone-screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #6b7a99 0, #2c3446 45%, #141821 100%); }
.demo-hook { position: absolute; top: 14%; left: 10px; right: 10px; margin: 0; padding: 6px 8px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-transform: uppercase; text-align: center; font-size: .82rem; line-height: 1.25; border-radius: 6px; transform: rotate(-2deg); }
.karaoke { position: absolute; bottom: 20%; left: 8px; right: 8px; margin: 0; text-align: center; color: #fff; font-weight: 800; font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.karaoke span { animation: kara 3.6s infinite; }
.karaoke span:nth-child(2) { animation-delay: .6s; }
.karaoke span:nth-child(3) { animation-delay: 1.2s; }
.karaoke span:nth-child(4) { animation-delay: 1.8s; }
.karaoke span:nth-child(5) { animation-delay: 2.4s; }
.karaoke span:nth-child(6) { animation-delay: 3s; }
@keyframes kara { 0%, 16% { color: var(--accent); } 17%, 100% { color: #fff; } }
@media (prefers-reduced-motion: reduce) { .karaoke span { animation: none; } }
@media (min-width: 860px) { .hero { grid-template-columns: 1.3fr 1fr; padding-top: 48px; } .phone { width: 260px; } }

/* steps + features */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step, .feature, .plan-mini, .ba-card, .plan, .pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step h3, .feature h3 { margin: 6px 0; }
.step p, .feature p { margin: 0; color: var(--muted); }
.step-no { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature.soon { border-style: dashed; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } .features { grid-template-columns: repeat(4, 1fr); } }

/* before / after */
.ba { display: grid; gap: 14px; }
.ba-card { margin: 0; }
.ba-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ba-card.after { border-color: var(--ok); }
.timeline { display: flex; gap: 3px; height: 34px; }
.timeline.short { width: 55%; }
.seg { border-radius: 4px; background: var(--primary); }
.seg.gap, .dot.gap { background: repeating-linear-gradient(45deg, var(--bad) 0 4px, var(--bad-bg) 4px 8px); }
.seg.um, .dot.um { background: var(--warn); }
.seg.redo, .dot.redo { background: var(--bad); }
.seg.hook, .dot.hook { background: var(--accent); }
.dot.talk { background: var(--primary); }
.dot.zoom { background: var(--ok); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (min-width: 760px) { .ba { grid-template-columns: 1fr 1fr; } }
/* landing: real before/after demo clips */
.demo-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 14px; padding: 4px; width: fit-content; max-width: 100%; background: var(--line); border-radius: 999px; }
.demo-tab { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.demo-tab.on { background: var(--surface); box-shadow: var(--shadow); }
.demo-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.demo-pair .ba-card { display: flex; flex-direction: column; }
.demo-video { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.demo-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.demo-sound { position: absolute; right: 8px; bottom: 8px; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .62); cursor: pointer; }
.demo-sound[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.demo-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-pair .legend { justify-content: center; }
@media (min-width: 560px) { .demo-pair { grid-template-columns: 1fr 1fr; } }

/* plans */
.plan-minis, .plans, .packs { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.plan-mini h3, .plan h2, .pack h3 { margin: 4px 0; }
.plan-mini.highlight, .plan.highlight { border: 2px solid var(--accent); }
.price { margin: 4px 0; font-size: 1.05rem; }
.price b { font-size: 1.6rem; letter-spacing: -.01em; }
.per { color: var(--muted); }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plans { margin-top: 20px; }
.plan .badge { position: absolute; top: -12px; left: 16px; }
.plan-points { list-style: none; padding: 0; margin: 8px 0 14px; flex: 1; }
.plan-points li { padding: 5px 0 5px 22px; position: relative; }
.plan-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.cycle-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.cycle-toggle button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.cycle-toggle button[aria-pressed="true"] { background: var(--topbar); color: #fff; }
@media (min-width: 560px) { .plan-minis, .plans, .packs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .plan-minis, .plans { grid-template-columns: repeat(4, 1fr); } .packs { max-width: 680px; margin: 0 auto; } }
.matrix th, .matrix td { white-space: normal; min-width: 92px; }
.matrix tbody th { font-weight: 600; min-width: 150px; }
.matrix thead th.hl { background: var(--warn-bg); }
.matrix-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.matrix tr.soon td, .matrix tr.soon th { background: var(--bg); }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 10px 0 14px; }

/* call to action */
.cta-band { text-align: center; margin: 48px 0 16px; padding: 32px 20px; border-radius: var(--radius); background: var(--topbar); color: #fff; }
.cta-band p { color: #c9ccd3; }
.cta-band h2 { font-size: 1.4rem; margin: 0 0 6px; }

/* legal pages */
.legal h2 { scroll-margin-top: 72px; }
.toc { background: var(--bg); border-radius: 10px; padding: 8px 16px; margin: 12px 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; }
.seller-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; margin: 8px 0 12px; }
.seller-info dt { color: var(--muted); font-size: .9rem; }
.seller-info dd { margin: 0 0 8px; font-weight: 600; word-break: break-word; }
@media (min-width: 640px) { .seller-info { grid-template-columns: max-content 1fr; } .seller-info dd { margin: 0; } }
.formula { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.prose table { font-size: .9rem; }
.prose td { white-space: normal; min-width: 120px; vertical-align: top; }

/* footer */
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 16px; }
.footer-brand { font-weight: 800; color: var(--text); margin: 0; }
.footer-about p { margin: 2px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: flex-start; }
.site-footer a { color: var(--muted); }
.seller { font-style: normal; line-height: 1.6; word-break: break-word; }
.copyright { margin: 0; font-size: .8rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1.2fr 1.4fr; } .copyright { grid-column: 1 / -1; } }
@media print { .topbar, .tabbar, .site-footer, .toc, .skip-link { display: none; } .card { border: 0; box-shadow: none; } }
