:root {
  color-scheme: light;
  --paper: #edeae1;
  --paper-2: #e6e2d6;
  --surface: #f2efe7;
  --surface-strong: #f7f5ef;
  --ink: #23201a;
  --muted: #6a6454;
  --muted-2: #9b937f;
  --line: #ddd8ca;
  --line-strong: #d5cfbe;
  --brand-green: #2d5c47;
  --brand-green-dark: #1e3a2d;
  --brand-green-soft: #dce4dc;
  --green-deep: #1e3a2d;
  --green-deep-2: #234233;
  --green-deep-line: #2c4c3c;
  --logo-bg: #1e3a2d;
  --logo-glyph: #edeae1;
  --danger: #a4473d;
  --warning: #9a6a24;
  --success: #2d6a4e;
  --shadow: 0 20px 50px -30px rgba(35, 32, 26, .35);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #171b18;
  --paper-2: #1d231f;
  --surface: #202721;
  --surface-strong: #272f29;
  --ink: #eee9dc;
  --muted: #b3ad9d;
  --muted-2: #858174;
  --line: #363e37;
  --line-strong: #4c574d;
  --brand-green: #8ebba1;
  --brand-green-dark: #75a68a;
  --brand-green-soft: #263b30;
  --green-deep: #141f19;
  --green-deep-2: #1a2820;
  --green-deep-line: #29372e;
  --logo-bg: #8ebba1;
  --logo-glyph: #142019;
  --danger: #e28a7d;
  --warning: #dfb165;
  --success: #91c6a4;
  --shadow: 0 25px 70px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17.5px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand-green-soft); color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; }
h1 { margin-bottom: 0; }
h2 { font-size: clamp(2.3rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 400; letter-spacing: -.015em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: .65rem .9rem; transform: translateY(-160%); border-radius: 5px; background: var(--ink); color: var(--paper); font: 500 .78rem var(--mono); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.bookmark-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%; padding: 9px 56px; background: var(--green-deep); color: #cfd6c9; font-size: .85rem; text-align: center; }
.bookmark-bar p { margin: 0; }
.bookmark-bar button { position: absolute; top: 50%; right: max(18px, calc((100vw - 1140px) / 2)); transform: translateY(-50%); padding: 4px 8px; border: 0; background: transparent; color: #8ea394; font-size: 1.05rem; line-height: 1; }
.bookmark-bar button:hover { color: #e7e3d7; }
.kbd-invert { border-color: rgba(231, 227, 215, .4); color: #e7e3d7; }
.site-header { position: sticky; top: 0; z-index: 40; width: 100%; min-height: 64px; padding: 0 max(26px, calc((100vw - 1140px) / 2)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 1.22rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }
/* Caption-bar mark: two subtitle lines sitting low in the screen, like captions. */
.caption-mark { position: relative; display: inline-block; width: 27px; height: 27px; flex: 0 0 27px; overflow: hidden; border-radius: 4px 8px 8px 4px; background: var(--logo-bg); color: transparent; font-size: 0; }
.caption-mark::before, .caption-mark::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); height: 3px; border-radius: 2px; background: var(--logo-glyph); }
.caption-mark::before { width: 14px; bottom: 10px; }
.caption-mark::after { width: 9px; bottom: 5px; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: .94rem; }
.site-nav a, .site-footer a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'], .site-footer a:hover { color: var(--ink); }
.site-nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 1px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 14%, transparent); }
.theme-toggle { justify-self: end; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font: 500 .7rem var(--mono); }
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-icon { position: relative; display: block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.theme-icon::after { content: ''; position: absolute; width: 8px; height: 11px; right: -4px; top: -3px; border-radius: 50%; background: var(--paper); }
:root[data-theme='dark'] .theme-icon::after { display: none; }

/* ---------- Landing ---------- */
.hero, .demo-section, .how-section, .use-section, .cta-section, .stats-grid, .tools-inner { width: min(1140px, calc(100% - 52px)); margin-inline: auto; }
.hero { padding: clamp(56px, 7vw, 80px) 0 36px; }
.hero-kicker { margin: 0 0 18px; color: var(--brand-green); font: 500 .68rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 19ch; font-size: clamp(3.1rem, 6.9vw, 4.9rem); font-weight: 300; letter-spacing: -.028em; line-height: 1.02; margin-bottom: 22px; }
.hero h1 em { color: var(--brand-green); font-style: italic; font-weight: 300; }
.hero-copy { max-width: 52ch; margin: 0 0 34px; color: var(--muted); font-size: clamp(1.08rem, 1.9vw, 1.2rem); line-height: 1.55; }
.transcript-form { width: min(860px, 100%); }
.url-submit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.url-field { position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface-strong); }
.url-field:focus-within { border-color: var(--brand-green); }
.play-glyph { color: var(--muted-2); font: 400 .78rem var(--mono); }
.url-field input { flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 .95rem var(--mono); }
.url-field input::placeholder { color: var(--muted-2); opacity: 1; }
.primary-button, .secondary-button, .copy-button { border: 0; border-radius: 10px; background: var(--brand-green); color: #f2f4ed; font-family: var(--serif); font-size: 1rem; font-weight: 500; text-decoration: none; transition: background .16s ease, transform .16s ease; }
:root[data-theme='dark'] .primary-button, :root[data-theme='dark'] .secondary-button, :root[data-theme='dark'] .copy-button { background: #477a60; color: #fff; }
.primary-button { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.primary-button:hover, .secondary-button:hover, .copy-button:hover { background: var(--brand-green-dark); }
:root[data-theme='dark'] .primary-button:hover, :root[data-theme='dark'] .secondary-button:hover, :root[data-theme='dark'] .copy-button:hover { background: #5c9176; }
.primary-button:not(:disabled):active, .secondary-button:active, .copy-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .55; }
.input-meta { min-height: 26px; margin: 10px 2px 0; display: flex; justify-content: space-between; gap: 20px; }
.field-hint, .field-error, .detection-note, .challenge-note, .form-status, .copy-status { min-height: 1.25em; margin: 0; color: var(--muted); font: 400 .69rem/1.5 var(--mono); }
.detection-note { color: var(--success); text-align: right; }
.field-error { margin: 1px 2px 0; color: var(--danger); }
.quota-hint { margin: 4px 2px 0; color: var(--warning); font: 500 .69rem/1.5 var(--mono); }
.quota-hint:empty { display: none; }
.form-status { margin-top: 10px; text-align: left; }
.form-legal { margin: 10px 2px 0; color: var(--muted-2); font: 400 .62rem/1.5 var(--mono); }
.form-legal a { color: var(--muted); }
.form-legal a:hover { color: var(--ink); }
.options-panel { margin-top: 18px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.options-title { margin: 0 0 13px; color: var(--muted-2); font: 500 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: 1.08fr .96fr .96fr; gap: 12px; }
.field-group, .choice-group { min-width: 0; }
.field-group label, .choice-group legend { display: block; margin-bottom: 7px; color: var(--muted); font: 500 .65rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.choice-group { margin: 0; padding: 0; border: 0; }
.segmented-control { height: 43px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.segmented-control label { display: block; margin: 0; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { height: 100%; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font: 500 .68rem var(--mono); }
.segmented-control input:checked + span { background: var(--surface-strong); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 32, 26, .08); }
.segmented-control input:focus-visible + span { outline: 2px solid var(--brand-green); outline-offset: 1px; }
.choice-group.is-muted .segmented-control { opacity: .45; }
.choice-note { margin: 7px 0 0; color: var(--muted-2); font: 400 .63rem/1.4 var(--mono); }
.select-shell { position: relative; }
.select-shell::after { content: '↓'; position: absolute; top: 12px; right: 13px; pointer-events: none; color: var(--muted); font: 500 .75rem var(--mono); }
.select-shell select { width: 100%; height: 43px; padding: 0 34px 0 12px; appearance: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); color: var(--ink); font: 400 .72rem var(--mono); }
.select-shell:focus-within select { border-color: var(--brand-green); }
.fallback-toggle { display: flex; gap: 10px; align-items: flex-start; width: fit-content; margin-top: 14px; cursor: pointer; }
.fallback-toggle input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand-green); }
.fallback-toggle span { display: grid; }
.fallback-toggle strong { font-size: .82rem; font-weight: 500; }
.fallback-toggle small { color: var(--muted); font: .65rem var(--mono); }

.demo-section { padding: 26px 0 88px; }
.demo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); box-shadow: var(--shadow); }
.demo-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.demo-tag { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted-2); font: 500 .6rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.demo-title { margin-right: auto; font-size: .95rem; }
.demo-format-group { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--paper-2); }
.demo-format-group label { display: block; }
.demo-format-group input { position: absolute; opacity: 0; pointer-events: none; }
.demo-format-group span { display: block; padding: 6px 11px; border-radius: 6px; color: var(--muted); font: 400 .68rem var(--mono); }
.demo-format-group input:checked + span { background: var(--surface-strong); color: var(--ink); }
.demo-format-group input:focus-visible + span { outline: 2px solid var(--brand-green); outline-offset: 1px; }
.demo-copy { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-strong); color: var(--ink); font-size: .85rem; }
.demo-copy:hover { border-color: var(--brand-green); color: var(--brand-green); }
.demo-split { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 430px; }
.demo-reader { min-width: 0; border-right: 1px solid var(--line); }
.demo-search-row { display: flex; align-items: center; gap: 10px; padding: 11px 22px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.demo-search-row > span:first-child { font: 400 .75rem var(--mono); }
.demo-search-row input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .92rem; }
.demo-search-row input::placeholder { color: var(--muted-2); }
.demo-count { font: 400 .66rem var(--mono); white-space: nowrap; }
.demo-lines { max-height: 430px; padding: 10px 0 20px; overflow-y: auto; }
.demo-line { display: flex; gap: 18px; padding: 8px 22px; align-items: baseline; }
.demo-line:hover { background: var(--surface); }
.demo-line .stamp { flex: 0 0 auto; min-width: 44px; padding-top: 3px; color: var(--brand-green); font: 400 .7rem var(--mono); }
.demo-line .text { color: color-mix(in srgb, var(--ink) 92%, var(--muted)); font-size: 1rem; line-height: 1.6; }
.demo-empty { padding: 40px 22px; color: var(--muted-2); font-size: .88rem; text-align: center; }
.demo-paragraph { margin: 0; padding: 8px 22px; color: color-mix(in srgb, var(--ink) 92%, var(--muted)); font-size: 1rem; line-height: 1.68; }
.demo-aside { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); }
.demo-aside-kicker { margin: 0; color: var(--muted-2); font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.demo-tree { margin: 0; padding: 14px 15px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-strong); color: var(--ink); font: 400 .68rem/1.7 var(--mono); }
.demo-tree::selection, .demo-tree *::selection { background: var(--brand-green-soft); }
.demo-aside-note { margin: 0; margin-top: auto; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.demo-footnote { margin: 14px 4px 0; color: var(--muted-2); font: 400 .68rem var(--mono); }

.stats-strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 34px 0; }
.stats-grid p { margin: 0; display: grid; gap: 6px; align-content: start; }
.stats-grid strong { font-size: 2.5rem; font-weight: 300; line-height: 1; letter-spacing: -.025em; color: var(--ink); }
.stats-grid span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.how-section { padding: 92px 0; }
.how-section h2 { margin: 0 0 12px; }
.section-lede { max-width: 46ch; margin: 0 0 46px; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.step-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; list-style: none; background: var(--line); }
.step-grid li { padding: 34px 30px 38px; background: var(--surface-strong); }
.step-grid span { display: block; margin-bottom: 22px; color: var(--brand-green); font: 400 .68rem var(--mono); }
.step-grid h3 { margin: 0 0 8px; font-size: 1.4rem; }
.step-grid p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.tools-section { background: var(--green-deep); color: #e9e6da; }
.tools-inner { padding: 92px 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 58px); align-items: start; }
.tools-intro h2 { margin: 0 0 16px; color: #f4f2e8; }
.tools-intro > p { margin: 0 0 30px; color: #a8b7a9; font-size: 1.08rem; line-height: 1.6; }
.tools-intro em { color: #f4f2e8; font-style: italic; }
.export-list { display: flex; flex-direction: column; gap: 14px; }
.export-list div { display: flex; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--green-deep-line); }
.export-list span { flex: 0 0 84px; color: #9dbfa4; font: 400 .68rem var(--mono); }
.export-list p { margin: 0; color: #cdd5c6; font-size: .95rem; line-height: 1.5; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tools-grid article { padding: 22px 20px; border: 1px solid var(--green-deep-line); border-radius: 12px; background: var(--green-deep-2); }
.tools-grid h3 { margin: 0 0 6px; color: #f4f2e8; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.tools-grid p { margin: 0; color: #a3b3a4; font-size: .85rem; line-height: 1.55; }

.use-section { padding: 92px 0; }
.use-section h2 { margin: 0 0 42px; }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 20px); }
.use-grid > div { padding: clamp(18px, 2.5vw, 28px) clamp(16px, 2.3vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); }
.use-who { margin: 0 0 16px; color: var(--brand-green); font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.use-grid h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }
.use-grid > div > p:last-child { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

.cta-section { padding: 0 0 92px; }
.cta-panel { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; padding: clamp(38px, 6vw, 62px) clamp(28px, 5vw, 54px); border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-strong); }
.cta-panel > div { flex: 1 1 380px; }
.cta-panel h2 { margin: 0 0 14px; font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.05; }
.cta-panel p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.kbd { padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 5px; font: 400 .78rem var(--mono); }
.cta-button { flex: 0 0 auto; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); color: var(--muted); }
.footer-grid { width: min(1140px, calc(100% - 52px)); margin: 0 auto; padding: 54px 0 28px; display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1fr; gap: 30px; }
.footer-brand p { max-width: 32ch; margin: 12px 0 0; font-size: .88rem; line-height: 1.6; color: var(--muted-2); }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.footer-head { margin: 0 0 6px; color: var(--muted-2); font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.site-footer nav a { font-size: .88rem; }
.footer-line { width: min(1140px, calc(100% - 52px)); margin: 0 auto; padding: 20px 0 40px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted-2); }
/* Inner pages still use the old single-row footer markup (no .footer-grid) */
.site-footer:not(:has(.footer-grid)) { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1140px, calc(100% - 52px)); min-height: 96px; margin: 0 auto; padding: 25px 0; border-top: 0; background: transparent; font: 400 .7rem/1.5 var(--mono); }
.site-footer:not(:has(.footer-grid)) p { margin: 0; }
.site-footer:not(:has(.footer-grid)) nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }

/* ---------- Inner pages ---------- */
.subtitle-chip, .eyebrow { margin: 0; color: var(--brand-green); font: 500 .66rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.subtitle-chip { display: inline-block; margin-bottom: 20px; }
.page-main, .transcript-main, .job-main, .verify-main { width: min(1040px, calc(100% - 52px)); margin: 0 auto; padding: 58px 0 106px; }
.page-main.narrow { max-width: 800px; }
.page-hero { padding: 20px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1, .job-heading h1, .transcript-title-block h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.page-hero h1 span { color: var(--brand-green); font-style: italic; }
.page-hero p:last-child { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 1.1rem; }
.legal-date { color: var(--muted); font: 500 .7rem var(--mono); }
.prose { padding: 50px 0 10px; }
.prose h2 { margin: 2.25em 0 .65em; font-size: 1.9rem; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 84%, var(--muted)); }
.prose ul { margin: .8em 0 1.4em; padding-left: 1.4em; }
.prose code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 400 .78em var(--mono); }
.prose pre { margin: 1.4em 0; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.prose pre code { padding: 0; border: 0; background: transparent; font: 400 .78rem/1.7 var(--mono); }
.prose h2 a { color: inherit; font-weight: inherit; text-decoration: none; }
.prose h2 a:hover { color: var(--brand-green); }
.prose a { color: var(--brand-green); font-weight: 500; }
.prose li + li { margin-top: .45em; }
.prose-callout { margin: 35px 0; padding: 24px 27px; border-left: 4px solid var(--brand-green); border-radius: 0 10px 10px 0; background: var(--surface); }
.prose-callout p { margin: 0; }
.faq-list { margin: 42px 0 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 45px 23px 0; cursor: pointer; list-style: none; font-size: 1.16rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 21px; right: 6px; color: var(--brand-green); font: 400 1.25rem var(--mono); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 690px; margin: -3px 45px 24px 0; color: var(--muted); }

.back-nav { margin: 0 0 36px; color: var(--muted); font: 500 .72rem var(--mono); }
.back-nav a { text-decoration: none; }
.back-nav a:hover { color: var(--brand-green); }
.bookmark-banner { min-height: 40px; margin: 0 0 30px; padding: 9px 14px; display: flex; align-items: center; justify-content: center; gap: 11px; border-radius: 8px; background: var(--green-deep); color: #e7e3d7; }
.bookmark-banner p { margin: 0; font: 400 .72rem/1.4 var(--mono); }
.bookmark-banner strong { font-weight: 500; color: #fff; }
.bookmark-glyph { position: relative; width: 10px; height: 15px; flex: 0 0 10px; border: 1.5px solid currentColor; border-bottom: 0; }
.bookmark-glyph::after { content: ''; position: absolute; left: 1px; bottom: -3px; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.transcript-loading, .empty-state { min-height: 430px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.loading-caption { width: fit-content; margin: 0 auto; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--brand-green); font: 500 .68rem var(--mono); }
.transcript-loading p { font: .72rem var(--mono); }
.transcript-error, .error-panel { max-width: 740px; margin: 70px auto; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); box-shadow: var(--shadow); }
.transcript-error h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.transcript-error p:not(.subtitle-chip) { color: var(--muted); }
.secondary-button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; }
.transcript-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); box-shadow: var(--shadow); }
.transcript-header { padding: clamp(28px, 5vw, 50px); display: flex; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.transcript-title-block { min-width: 0; }
.transcript-title-block h1 { max-width: 850px; overflow-wrap: anywhere; }
.video-byline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; color: var(--muted); }
.copy-button { height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: .9rem; }
.copy-icon { width: 12px; height: 14px; border: 1.5px solid currentColor; border-radius: 1px; box-shadow: 4px -4px 0 -2px var(--brand-green), 4px -4px 0 -1px currentColor; }
.transcript-toolbar { min-height: 84px; padding: 16px clamp(28px, 5vw, 50px); display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.transcript-view-choice { width: min(390px, 100%); }
.copy-status { text-align: right; }
.transcript-text { max-height: 68vh; margin: 0; padding: clamp(30px, 5vw, 56px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-strong); color: var(--ink); font: 400 .87rem/1.9 var(--mono); tab-size: 2; }
.download-panel { padding: 30px clamp(28px, 5vw, 50px); display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
.download-panel .subtitle-chip { margin-bottom: 8px; }
.download-panel h2 { margin: 0; font-size: 1.65rem; }
.download-note { margin: 8px 0 0; color: var(--muted-2); font: 400 .68rem var(--mono); }
.download-grid { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.download-grid a, .row-download { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font: 500 .65rem var(--mono); text-decoration: none; }
.download-grid a:hover, .row-download:hover { border-color: var(--brand-green); background: var(--brand-green); color: #fff; }

.job-heading { margin: 0 0 30px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.job-heading .subtitle-chip { margin-bottom: 13px; }
.job-heading h1 { max-width: 760px; overflow-wrap: anywhere; }
.job-heading p { margin: 14px 0 0; color: var(--muted); }
.job-actions { flex: 0 0 auto; display: grid; gap: 8px; }
.job-actions .primary-button { min-width: 220px; }
.job-actions .next-batch, :root[data-theme='dark'] .job-actions .next-batch { margin-top: 4px; justify-content: center; gap: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: .92rem; }
.job-actions .next-batch:hover, :root[data-theme='dark'] .job-actions .next-batch:hover { border-color: var(--brand-green); background: transparent; color: var(--brand-green); }
.job-actions small { color: var(--muted); font: .64rem/1.4 var(--mono); text-align: center; }
.progress-shell { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-bar { width: 0; height: 100%; background: var(--brand-green); transition: width .35s ease; }
.progress-shell.is-indeterminate .progress-bar { width: 36% !important; animation: progress-scan 1.15s ease-in-out infinite; }
.counter-grid { margin: 21px 0 27px; display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; border-block: 1px solid var(--line); }
.counter { padding: 18px 14px; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter strong { display: block; color: var(--brand-green); font-size: 1.75rem; font-weight: 300; line-height: 1.15; }
.counter span { color: var(--muted); font: 500 .61rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.ticker-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ticker-header { padding: 16px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.ticker-header h2 { margin: 0; font-size: 1.35rem; }
.connection-state { color: var(--brand-green); font: 500 .63rem var(--mono); letter-spacing: .06em; }
.job-list { margin: 0; padding: 0; list-style: none; }
.job-row { min-height: 68px; padding: 11px 18px; display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); animation: tick-in .3s ease both; }
.job-row:last-child { border-bottom: 0; }
.row-status { width: max-content; padding: 4px 7px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 500 .58rem var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.row-status.cached, .row-status.fetched { background: var(--brand-green); color: #fff; }
.row-status.no_captions, .row-status.unavailable { background: var(--paper-2); color: var(--muted); }
.row-status.error { background: var(--danger); color: #fff; }
.row-title { min-width: 0; }
.row-title strong { display: block; overflow: hidden; color: var(--ink); font-size: .95rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.row-title small { display: block; overflow: hidden; color: var(--muted); font: .63rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.ticker-empty { padding: 72px 20px; color: var(--muted); font: .7rem var(--mono); text-align: center; }
.job-note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.all-done { animation: done-glow .8s ease; }

.health-banner { margin: 34px 0 30px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.health-banner[data-tone='good'] { border-left: 5px solid var(--success); }
.health-banner[data-tone='warn'] { border-left: 5px solid var(--warning); }
.health-banner[data-tone='bad'] { border-left: 5px solid var(--danger); }
.health-banner h2 { margin: 0 0 4px; font-size: 1.45rem; }
.health-banner p { margin: 0; color: var(--muted); }
.health-table { width: 100%; margin: 30px 0; border: 1px solid var(--line); border-collapse: collapse; background: var(--surface); }
.health-table th, .health-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.health-table th { color: var(--muted); font: 500 .63rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.health-table td { font-size: .87rem; }
.health-state { font-weight: 500; }
.health-state.good { color: var(--success); }
.health-state.warn { color: var(--warning); }
.health-state.bad { color: var(--danger); }

/* The verification document may be intentionally sparse; these rules only size its Cloudflare surface. */
.verify-main { min-height: calc(100vh - 75px); display: grid; place-items: center; }
.verify-card { width: min(420px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.verify-card h1 { font-size: 2rem; }
.verify-copy { color: var(--muted); }
.challenge-wrap { min-width: 0; min-height: 70px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.turnstile-slot, .cf-turnstile, #turnstileWidget { width: 100%; min-width: 0; max-width: 100%; }
.cf-turnstile iframe, #turnstileWidget iframe { display: block; width: 100% !important; max-width: 100%; }

@keyframes tick-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes done-glow { 50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--success) 20%, transparent)); } }
@keyframes progress-scan { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .demo-split { grid-template-columns: 1fr; }
  .demo-reader { border-right: 0; border-bottom: 1px solid var(--line); }
  .tools-inner { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid .choice-group { grid-column: 1 / -1; }
  .job-heading { align-items: stretch; flex-direction: column; }
  .job-actions { width: 100%; }
  .counter-grid { grid-template-columns: repeat(3, 1fr); }
  .counter:nth-child(3) { border-right: 0; }
  .counter:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .download-panel { align-items: flex-start; flex-direction: column; }
  .download-grid { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { min-height: 60px; padding-inline: 16px; }
  .brand { font-size: 1.05rem; }
  .caption-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .caption-mark::before { width: 12px; bottom: 9px; }
  .caption-mark::after { width: 8px; bottom: 4.5px; }
  .theme-label { display: none; }
  .hero, .demo-section, .how-section, .use-section, .cta-section, .stats-grid, .tools-inner, .footer-grid, .footer-line, .page-main, .transcript-main, .job-main, .verify-main, .site-footer:not(:has(.footer-grid)) { width: min(100% - 28px, 1140px); }
  .hero { padding: 54px 0 30px; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .hero-copy { margin-bottom: 26px; }
  .url-submit-row .primary-button { width: 100%; }
  .input-meta { display: block; }
  .detection-note { margin-top: 4px; text-align: left; }
  .options-panel { padding: 15px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid .choice-group { grid-column: auto; }
  .demo-section { padding-bottom: 64px; }
  .demo-title { flex: 1 1 100%; order: -1; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .stats-grid strong { font-size: 2.1rem; }
  .how-section, .use-section { padding-block: 68px; }
  .use-grid { grid-template-columns: 1fr; }
  .tools-inner { padding-block: 68px; }
  .tools-grid { grid-template-columns: 1fr; }
  .cta-section { padding-bottom: 68px; }
  .cta-panel { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 22px; }
  .site-footer:not(:has(.footer-grid)) { padding: 30px 0; align-items: flex-start; flex-direction: column; }
  .site-footer:not(:has(.footer-grid)) nav { justify-content: flex-start; }
  .page-main, .transcript-main, .job-main { padding: 38px 0 76px; }
  .page-hero { padding-bottom: 42px; }
  .page-hero h1, .job-heading h1, .transcript-title-block h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .bookmark-banner { align-items: flex-start; justify-content: flex-start; }
  .transcript-header { flex-direction: column; }
  .copy-button { align-self: flex-start; }
  .transcript-toolbar { align-items: stretch; flex-direction: column; }
  .copy-status { text-align: left; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(3) { border-right: 1px solid var(--line); }
  .counter:nth-child(2n) { border-right: 0; }
  .counter:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .job-row { grid-template-columns: 82px minmax(0, 1fr); }
  .row-download { grid-column: 2; width: fit-content; }
  .health-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .progress-shell.is-indeterminate .progress-bar { margin-left: 32%; animation: none !important; }
}
