:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-elev: #ffffff;
  --text: #12131a;
  --text-2: #3b3f4e;
  --muted: #6a7084;
  --line: #e6e7ef;
  --line-strong: #d5d7e3;
  --accent: #5b4bf0;
  --accent-dark: #4334d6;
  --accent-soft: #f0eeff;
  --accent-2: #e5484d;
  --grad: linear-gradient(135deg, #5b4bf0 0%, #8b5cf6 50%, #e5484d 100%);
  --ok: #12a150;
  --err: #d92d20;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(18, 19, 26, .05);
  --shadow: 0 1px 2px rgba(18, 19, 26, .04), 0 6px 20px -4px rgba(18, 19, 26, .08);
  --shadow-lg: 0 2px 4px rgba(18, 19, 26, .04), 0 24px 48px -12px rgba(67, 52, 214, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c12; --bg-soft: #12141c; --bg-elev: #161823; --text: #eceef5; --text-2: #c4c8d6; --muted: #8e94a8;
    --line: #232634; --line-strong: #30344a;
    --accent: #8b80ff; --accent-dark: #a99fff; --accent-soft: #1b1a33; --accent-2: #ff6b6f;
    --grad: linear-gradient(135deg, #8b80ff 0%, #b48cff 50%, #ff6b6f 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -6px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 60px -12px rgba(0,0,0,.7);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin: .2em 0 .35em; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 2em 0 .6em; scroll-margin-top: 88px; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; letter-spacing: -.015em; }
p { color: var(--text-2); }
strong { color: var(--text); }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-soft); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; word-break: break-all; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand svg { filter: drop-shadow(0 4px 10px rgba(91, 75, 240, .35)); }
.nav nav { display: flex; gap: 4px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav nav a.nav-cta { background: var(--text); color: var(--bg); margin-left: 6px; font-weight: 600; }
.nav nav a.nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .nav nav a.nav-cta { display: none; } .brand { font-size: 1rem; } }
@media (max-width: 480px) { .nav nav a.nav-about { display: none; } .nav nav a { padding: 7px 10px; } .brand { font-size: .92rem; line-height: 1.2; gap: 8px; } .brand span { max-width: 190px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 56px 0 28px; background: var(--bg-soft); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid p { max-width: 380px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid li a { color: var(--muted); text-decoration: none; }
.footer-grid li a:hover { color: var(--text); }
.footer-title { font-weight: 700; margin: 0 0 12px; color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--accent); color: #fff; font: inherit; font-weight: 600; padding: 14px 24px; border-radius: 12px; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 10px 22px -6px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn svg { flex-shrink: 0; }
.btn.sm { padding: 8px 14px; font-size: .88rem; border-radius: 9px; box-shadow: none; }
.btn.ghost { background: var(--bg-elev); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--bg-soft); color: var(--text); border-color: var(--muted); }

/* Hero + tool */
.hero { position: relative; padding: 72px 0 8px; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(600px 320px at 15% 0%, color-mix(in srgb, #8b5cf6 22%, transparent), transparent 70%),
  radial-gradient(600px 320px at 85% 10%, color-mix(in srgb, #e5484d 14%, transparent), transparent 70%),
  radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--text-2); background: var(--bg-elev); border: 1px solid var(--line); padding: 6px 14px 6px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); }
.eyebrow .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); margin: 0 auto 1.8em; max-width: 640px; }
.tool { display: flex; align-items: center; gap: 8px; background: var(--bg-elev); padding: 8px 8px 8px 18px; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); transition: border-color .15s, box-shadow .15s; }
.tool:focus-within { border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.tool .tool-icon { color: var(--accent-2); flex-shrink: 0; display: flex; }
.tool input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; padding: 12px 6px; outline: none; }
.tool input::placeholder { color: var(--muted); opacity: .85; }
.tool .btn { padding: 15px 26px; border-radius: 12px; }
.tool-clear { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.tool-clear:hover { background: var(--bg-soft); color: var(--text); }
.tool-paste { flex-shrink: 0; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text-2); font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tool-paste:hover { color: var(--text); border-color: var(--muted); }
.btn.busy { cursor: wait; }
.btn.busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@media (max-width: 560px) {
  .tool { flex-wrap: wrap; padding: 8px; }
  .tool .tool-icon { margin-left: 10px; }
  .tool .btn { flex-basis: 100%; }
}
.try { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent-dark); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--ok); }
.status { min-height: 1.5em; margin: 16px 0 8px; font-weight: 500; }
.status.error { color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); border: 1px solid color-mix(in srgb, var(--err) 25%, transparent); padding: 10px 14px; border-radius: 10px; }
.status.loading { color: var(--text-2); }
.status.loading::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result panel */
.result { text-align: left; margin-top: 8px; display: grid; gap: 20px; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .result { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .r-media { position: sticky; top: 88px; }
}
.r-media, .r-panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.r-media { padding: 12px; }
.player-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.player-box img, .player-box iframe, .player-box #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.r-info { padding: 14px 6px 4px; }
.r-info p { margin: 0 0 4px; }
.v-title { font-weight: 700; line-height: 1.35; color: var(--text); font-size: 1.08rem; }
.r-tip { margin-top: 12px !important; padding: 10px 12px; background: var(--accent-soft); border-radius: 10px; color: var(--text-2); }

.r-panel { display: flex; flex-direction: column; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.panel-title { margin: 0; font-weight: 700; color: var(--text); }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.toolbar select { font: inherit; font-size: .88rem; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); max-width: 170px; }
.toggle { display: inline-flex; gap: 7px; align-items: center; font-size: .88rem; cursor: pointer; color: var(--text-2); font-weight: 500; user-select: none; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.seg-ctl { display: inline-flex; padding: 2px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 9px; }
.seg-ctl button { font: inherit; font-size: .84rem; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 4px 11px; border-radius: 7px; cursor: pointer; }
.seg-ctl button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.searchbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; border: 0; background: transparent; color: var(--text); padding: 6px 0; outline: none; }
.hits { font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hits.none { color: var(--err); }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text-2); cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--bg-soft); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.t-wrap { position: relative; }
.transcript { position: relative; height: min(66vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; font-size: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; transition: opacity .2s; }
@media (max-width: 959px) { .transcript { height: auto; min-height: 120px; max-height: 60vh; } }
@media (max-width: 560px) {
  .panel-head { padding: 12px; }
  .panel-title { display: none; }
  .panel-actions { width: 100%; flex-wrap: nowrap; }
  .panel-actions > .btn, .panel-actions > .menu { flex: 1; }
  .panel-actions .menu > .btn { width: 100%; }
  .toolbar, .searchbar { padding-left: 12px; padding-right: 12px; }
}
.transcript.refreshing { opacity: .45; pointer-events: none; }
.transcript .row { position: relative; display: flex; gap: 12px; padding: 6px 40px 6px 8px; border-radius: 10px; transition: background .15s; }
.transcript .row:hover { background: var(--bg-soft); }
.transcript .row.active { background: var(--accent-soft); }
.transcript .row p { margin: 0; flex: 1; min-width: 0; color: var(--text-2); }
.transcript .row.active p { color: var(--text); }
.view-para .row { padding-top: 12px; padding-bottom: 12px; }
.view-para .row p { line-height: 1.85; }
.transcript .t { font-family: var(--mono); font-size: .78rem; color: var(--accent); text-decoration: none; flex-shrink: 0; padding: 3px 7px; margin-top: 2px; min-width: 56px; text-align: center; background: var(--accent-soft); border-radius: 6px; height: fit-content; font-variant-numeric: tabular-nums; user-select: none; }
.transcript .t:hover, .transcript .row.active .t { background: var(--accent); color: #fff; }
.transcript.no-ts .t { display: none; }
.transcript .seg { border-radius: 4px; transition: background .15s; }
.transcript.can-seek .seg { cursor: pointer; }
.transcript.can-seek .seg:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; }
.view-para .seg.active { background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.view-para .row.active { background: transparent; }
.view-para .row.active:hover { background: var(--bg-soft); }
.transcript mark { background: #fde68a; color: #111; border-radius: 3px; padding: 0 1px; }
.transcript mark.current { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.row-copy { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.row:hover .row-copy, .row-copy:focus-visible { opacity: 1; }
.row-copy:hover { background: var(--bg-elev); color: var(--accent); box-shadow: var(--shadow-sm); }
.row-copy.done { opacity: 1; color: var(--ok); }
@media (hover: none) { .row-copy { opacity: .6; } }
.resync { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); animation: rise .2s ease-out; }
.resync:hover { background: var(--accent-dark); }

/* Loading skeleton */
.sk { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line) 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.v-title .sk { height: 18px; margin: 3px 0 8px; }
.sk-row { display: flex; gap: 12px; padding: 10px 8px; }
.sk-row .sk-t { width: 56px; flex-shrink: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Download menu */
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 210px; padding: 6px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--bg-soft); outline: none; }
.menu-list small { color: var(--muted); font-family: var(--mono); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--ok); flex-shrink: 0; }

/* Sections */
.content { padding-top: 16px; }
.section { padding: 64px 0 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { margin: .25em 0 .3em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 22px; box-shadow: var(--shadow-sm); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
.steps li strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.steps li span { color: var(--text-2); font-size: .98rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.features > div { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.features > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.features .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.features h3 { margin: 16px 0 6px; }
.features p { margin: 0; font-size: .97rem; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.audience li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); color: var(--text-2); font-size: .98rem; }
.audience li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4bf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Two-column info */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.split h2 { margin-top: 0; font-size: 1.45rem; }
.split ul { padding-left: 0; list-style: none; margin: 0; }
.split li { margin: 10px 0; }
.split p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 10px 0; background: var(--bg-elev); transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 52px 18px 20px; list-style: none; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 12px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--bg-elev); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .tag { align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.35; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0 0 6px; font-size: .95rem; }
.card .card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.card .card-foot .arrow { color: var(--accent); font-weight: 600; transition: transform .2s; }
.card:hover .card-foot .arrow { transform: translateX(4px); }
.more { text-align: center; margin-top: 28px; }

/* Definition block (homepage) */
.define { max-width: 820px; margin: 0 auto; text-align: center; }
.define h2 { margin-top: 0; }
.define-answer { font-size: 1.15rem; line-height: 1.75; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; text-align: left; }
.define p:last-child { color: var(--muted); }

/* Comparison table */
.compare { max-width: 900px; margin: 0 auto; }
.compare table { display: table; margin: 0; background: var(--bg-elev); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .compare table { display: block; } }
.compare th[scope="row"] { background: transparent; font-weight: 500; color: var(--text); }
.compare thead th:last-child { color: var(--accent); }
.compare td { min-width: 120px; }
.compare td.yes::before, .compare td.no::before, .compare td.part::before { display: inline-block; width: 1.3em; font-weight: 800; }
.compare td.yes::before { content: "✓"; color: var(--ok); }
.compare td.no::before { content: "✕"; color: var(--err); }
.compare td.part::before { content: "~"; color: #d97706; }
.compare td.no, .compare td.part { color: var(--muted); }

/* Keyword feature cards (homepage) */
.kw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .kw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kw-grid { grid-template-columns: 1fr; } }
.kw-grid > div { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; border-top: 3px solid var(--accent); transition: box-shadow .2s, transform .2s; }
.kw-grid > div:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kw-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.kw-grid p { margin: 0; font-size: .95rem; }
.kw-grid p a { white-space: nowrap; font-weight: 600; }
.kw-grid.compact > div { border-top-width: 1px; padding: 16px 18px; }
.kw-grid.compact h3 { font-size: 1rem; }
.center-note { text-align: center; max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: .95rem; }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.lang-list li { padding: 6px 14px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 500; color: var(--text-2); }
.lang-list li:last-child { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--text-2); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); font-size: .75rem; font-weight: 800; }

/* Text list of guides */
.guide-list { margin-top: 28px; padding: 22px 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guide-list-title { margin: 0 0 10px; font-weight: 700; color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.guide-list ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.guide-list li { break-inside: avoid; margin: 0 0 8px; font-size: .95rem; line-height: 1.5; }
.guide-list a { color: var(--text-2); text-decoration: none; }
.guide-list a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 720px) { .guide-list ul { columns: 1; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 32px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* Page header (blog index, simple pages) */
.page-head { padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .lead { margin-left: 0; }

/* Articles */
.article-wrap { max-width: 760px; }
.article header h1 { font-size: clamp(2rem, 4.8vw, 2.9rem); }
.article .lead { margin: 0 0 1em; max-width: none; color: var(--text-2); font-size: 1.2rem; }
.article .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9rem; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article .meta .avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; }
.article .meta strong { color: var(--text); font-weight: 600; }
.article p, .article li { font-size: 1.08rem; line-height: 1.8; }
.article li { margin: 8px 0; }
.article li::marker { color: var(--accent); }
.article h2 { margin-top: 2.2em; }
.article img { border-radius: var(--radius); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 24px; margin: 28px 0; }
.toc-title { font-weight: 700; margin: 0 0 8px; color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .97rem; margin: 5px 0; line-height: 1.5; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.note { border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.note p { margin: 0; color: var(--text); }
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 20px 0; font-size: .96rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-weight: 600; color: var(--text); }
.cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 30px 30px 28px; margin: 44px 0; box-shadow: var(--shadow-lg); }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-title { font-weight: 800; font-size: 1.35rem; margin: 0 0 6px; color: #fff; letter-spacing: -.02em; }
.cta p { margin: 0 0 18px; color: rgba(255,255,255,.88); position: relative; }
.cta a:not(.btn) { color: #fff; }
.cta .btn { background: #fff; color: #1a1458; position: relative; z-index: 1; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); }
.cta .btn:hover { background: #f1efff; color: #1a1458; }
.related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
