/*
 * Cue Teleprompter site.
 *
 * Built from the app's own five brand colours (src/theme/colors.ts): deep plum
 * is the canvas, warm amber the one accent. Marketing and tool pages sit on
 * plum like the app's dark scheme; guides switch to the cool off-white "paper"
 * scheme because they are for reading. Archivo, at expanded widths, carries
 * the display type; Atkinson Hyperlegible Next, a face designed for legibility,
 * sets body copy and the teleprompter itself.
 */

:root {
  --plum: #1F0812;
  --plum-2: #2A0F1C;
  --plum-3: #3A1829;
  --plum-line: rgba(240, 247, 244, 0.13);
  --amber: #FFA552;
  --amber-hover: #FFB673;
  --burnt: #8A4506;
  --ink: #F0F7F4;
  --ink-2: rgba(240, 247, 244, 0.76);
  --ink-3: rgba(240, 247, 244, 0.6);
  --slate: #666A86;
  --steel: #788AA3;
  --paper: #F0F7F4;
  --on-paper: #1F0812;
  --on-paper-2: rgba(31, 8, 18, 0.76);
  --paper-line: rgba(31, 8, 18, 0.14);
  --rec: #E0344F;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
}

/* Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
body.is-plum {
  --bg: var(--plum); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --line: var(--plum-line); --link: var(--amber); --surface: var(--plum-2); --focus: var(--amber);
}
body.is-paper {
  --bg: var(--paper); --fg: var(--on-paper); --fg-2: var(--on-paper-2); --fg-3: rgba(31, 8, 18, 0.62);
  --line: var(--paper-line); --link: var(--burnt); --surface: #fff; --focus: var(--burnt);
}

img, video { max-width: 100%; height: auto; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }
@media (max-width: 780px) { [id] { scroll-margin-top: 118px; } }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--amber); color: var(--plum); border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(1400px + 2 * var(--gutter)); }
.wrap--read { max-width: calc(46rem + 2 * var(--gutter)); }

/* Type ----------------------------------------------------------------- */

.hero-title, .tool-title, .cta-title, .hub-title {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.hero-title { font-stretch: 112%; font-size: clamp(2.125rem, 1.1rem + 4.8vw, 4.75rem); line-height: 0.98; }
.tool-title { font-stretch: 112%; font-size: clamp(2.4rem, 1.3rem + 4vw, 4.25rem); line-height: 0.98; margin-bottom: 14px; }
.cta-title { font-stretch: 125%; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem); line-height: 0.95; }
.hub-title { font-stretch: 125%; font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 0.95; margin-bottom: 14px; }

.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-stretch: 106%; }

.lede, .section-lede {
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 1.4em;
  max-width: 38em;
}

.text-link { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

kbd {
  font: 700 0.85rem/1 var(--f-text); padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: inset 0 -2px 0 var(--line);
  white-space: nowrap;
}

/* Buttons and badges ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn--amber { background: var(--amber); color: var(--plum); }
.btn--amber:hover { background: var(--amber-hover); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--line); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/*
 * The official Google Play PNG carries its own transparent margin (41px of
 * 250). Scaling and pulling it back by that margin lines its artwork up with
 * Apple's badge at the same visual height, as both badge guidelines ask.
 */
.badges { --bh: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--bh) * 0.32); }
.badges--lg { --bh: 52px; }
.badges--sm { --bh: 38px; }
.badges--center { justify-content: center; }
.badge { display: block; line-height: 0; border-radius: 9px; }
.badge img { display: block; height: var(--bh); width: auto; max-width: none; }
.badge-play img { height: calc(var(--bh) * 1.488); margin: calc(var(--bh) * -0.244); }

/* Header and footer ---------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; }
.head-nav { display: flex; gap: 2px; margin-left: auto; }
.head-nav a {
  color: var(--fg-2); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.head-nav a:hover { color: var(--fg); background: var(--line); }
@media (max-width: 780px) {
  .head-row { flex-wrap: wrap; gap: 0 12px; padding-block: 8px 0; }
  .head-cta { margin-left: auto; }
  .head-nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 calc(var(--gutter) - 10px) 6px; overflow-x: auto; scrollbar-width: none; }
  .head-nav::-webkit-scrollbar { display: none; }
  .head-nav a { padding: 8px 10px; }
  /* Footer links get finger-sized rows instead of tightly stacked text. */
  .site-foot ul { gap: 0; }
  .site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .badges--sm { --bh: 44px; }
}
/* On the narrowest phones the brand name and "Get the app" cannot share a row;
   keep the icon and let the name stay readable to screen readers. */
@media (max-width: 359px) {
  .head-row .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.site-foot {
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --line: var(--plum-line); --link: var(--amber); --focus: var(--amber);
  background: var(--plum); color: var(--ink); border-top: 1px solid var(--line); padding-block: 56px 32px;
}
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 2.1fr 1fr 1.5fr 1.2fr; } }
.foot-brand p { color: var(--fg-2); max-width: 34ch; margin: 14px 0 16px; }
.foot-made { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 12px; color: var(--fg-3); font-size: 0.875rem; text-decoration: none; }
.foot-made img { display: block; height: 24px; width: auto; opacity: 0.88; transition: opacity 0.15s; }
.foot-made:hover img { opacity: 1; }
.foot-h { font: 700 0.95rem/1.2 var(--f-text); color: var(--fg-3); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot nav a { color: var(--fg-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { margin-top: 44px; }
.foot-legal p { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.85rem; }

/* Sections -------------------------------------------------------------- */

.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }

.crumbs ol { list-style: none; margin: -8px 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 0.9rem; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { display: inline-block; padding-block: 10px; color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
/* On phones the current page's name already sits right below as the heading. */
@media (max-width: 600px) { .crumbs li[aria-current] { display: none; } }

/* Hero */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "title" "tool" "copy"; }
.hero-title { grid-area: title; }
.hero-copy { grid-area: copy; }
.hero-tool { grid-area: tool; min-width: 0; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "title title" "copy tool"; column-gap: 48px; row-gap: 40px; }
  .hero-copy { padding-top: 6px; }
}
.hero-get { display: grid; gap: 20px; }
.app-id { display: flex; gap: 14px; align-items: center; }
.app-id img { border-radius: 13px; flex: none; }
.app-id p { margin: 0; display: grid; line-height: 1.3; }
.app-id span { color: var(--fg-3); font-size: 0.95rem; }
.noscript { padding: 24px; border-radius: var(--r-l); background: var(--plum-2); }

/* Download */
.download-head { display: flex; gap: 28px; align-items: center; margin-bottom: 40px; }
.download-head .section-lede { margin-bottom: 0; }
.download-icon { width: clamp(76px, 10vw, 112px); border-radius: 24%; flex: none; }
@media (max-width: 620px) { .download-head { flex-direction: column; align-items: flex-start; gap: 18px; } }

.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.compare-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
}
.compare-col--app { border-color: rgba(255, 165, 82, 0.5); }
.compare-h { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.compare-col .badges { margin-top: auto; padding-top: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.52em; width: 12px; height: 7px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg);
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts dt { color: var(--fg-3); font-size: 0.875rem; }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* How it works */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--line); }
.step-n { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 3.25rem; line-height: 1; color: var(--amber); }
.step-h { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.step p { margin: 0; color: var(--fg-2); }

/* Screenshots */
.shots-rail {
  list-style: none; margin: 40px 0 0; padding-block: 0 18px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 62vw, 272px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-color: var(--plum-3) transparent;
}
.shot { scroll-snap-align: start; }
.shot figure { margin: 0; }
.shot img { display: block; width: 100%; border-radius: var(--r-m); background: var(--plum-2); }
.shot figcaption { margin-top: 12px; color: var(--fg-2); font-size: 0.95rem; line-height: 1.4; }
.shot figcaption strong { color: var(--fg); }

/* Link lists */
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.link-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.link-list--two { column-gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.link-list a { display: grid; gap: 4px; height: 100%; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.ll-t { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.ll-d { color: var(--fg-2); font-size: 0.98rem; }
.link-list a:hover .ll-t { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 4px; }

/* FAQ */
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 920px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .faq-intro { position: sticky; top: 100px; align-self: start; }
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--amber), var(--amber)) center / 100% 2px no-repeat,
              linear-gradient(var(--amber), var(--amber)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-q { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.faq-a { padding: 0 0 12px; color: var(--fg-2); }
.faq-a p { margin: 0 0 2px; max-width: 62ch; }
.more { display: inline-block; padding-block: 10px; color: var(--link); font-weight: 700; text-underline-offset: 4px; }
.compare-col > .text-link, .split-head > .text-link, .band-actions > .text-link, .cta-inner > .text-link { padding-block: 10px; }

/* Closing CTA */
.section.cta { border-top: 0; padding-top: 0; }
.cta-inner {
  display: grid; justify-items: center; gap: 22px; text-align: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-l); background: var(--plum-2); border: 1px solid var(--line);
}
.cta-inner .section-lede { margin: 0 auto; }
.cta-lens { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 165, 82, 0.16), 0 0 44px rgba(255, 165, 82, 0.6); }

/* Tool pages */
.tool-hero { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.install-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 0; color: var(--fg-3); font-size: 0.95rem; }
.two-col { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.plain-steps { padding-left: 1.3em; margin: 0; }
.plain-steps li { margin-bottom: 0.8em; color: var(--fg-2); }
.plain-steps li::marker { color: var(--amber); font-weight: 700; }
.plain-steps strong { color: var(--fg); }
.note { color: var(--fg-3); font-size: 0.95rem; }
.download--tool .section-lede { margin-bottom: 32px; }
.share-inner { max-width: calc(46rem + 2 * var(--gutter)); }
.share-inner > p { color: var(--fg-2); }
.snippet { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.snippet code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 0.9rem/1.5 var(--f-mono); color: var(--fg-2); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.875rem; color: var(--fg-3); font-weight: 700; }
tbody th { font-weight: 700; }
table.keys, table.st-table { min-width: 0; }
table.data { min-width: 0; }
table.data th, table.data td { padding-right: 10px; }
table.data td { font-variant-numeric: tabular-nums; }

/* Speech length calculator */
.st { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-top: 8px; }
.st-input, .st-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 3vw, 28px); }
.st-label { display: block; font-weight: 700; margin-bottom: 8px; }
.st textarea {
  display: block; width: 100%; min-height: 230px; resize: vertical; padding: 14px 16px;
  background: var(--plum); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m);
  font: 400 1.0625rem/1.6 var(--f-text);
}
.st textarea::placeholder { color: var(--ink-3); }
.st-paces { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.st-paces legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.st-paces label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.st-paces label:has(input:checked) { border-color: var(--amber); background: rgba(255, 165, 82, 0.1); }
.st input[type="radio"], .st input[type="range"] { accent-color: var(--amber); }
.st input[type="radio"] { width: 20px; height: 20px; margin: 0; flex: none; }
.st input[type="range"] { height: 32px; margin: 0; }
.st-range { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; margin-top: 20px; }
.st-range span { grid-column: 1 / -1; font-weight: 700; }
.st-range input { width: 100%; }
.st-range output { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 5.5ch; text-align: right; }
.st-result { display: grid; align-content: start; gap: 8px; }
.st-result .table-wrap { margin: 8px 0 12px; }
.st-result .btn { justify-self: start; }
.st-time { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(4rem, 2rem + 8vw, 7rem); line-height: 0.9; margin: 0; color: var(--amber); font-variant-numeric: tabular-nums; }
.st-sub { margin: 0; color: var(--fg-2); }
.st-fit { margin: 6px 0 0; font-weight: 700; }

/* 404 */
.hub { padding-block: clamp(56px, 10vw, 120px); }

/* Guides (paper) --------------------------------------------------------- */

.guide-head { padding-block: clamp(28px, 5vw, 60px) 8px; }
.guide-title { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: clamp(2.1rem, 1.35rem + 3vw, 3.4rem); line-height: 1.03; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.guide-meta { color: var(--fg-3); font-size: 0.95rem; margin: 0 0 28px; }
.guide-lede { font-size: 1.2rem; color: var(--fg-2); margin: 0 0 12px; }
.answer { background: #FFF1E2; border-radius: var(--r-m); padding: 22px 24px; margin: 0 0 8px; }
.answer-h { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: 1rem; line-height: 1.2; margin: 0 0 8px; color: var(--burnt); }
.answer p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--fg); }

.guide-body { padding-bottom: clamp(48px, 6vw, 80px); display: flow-root; }
.guide-body h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; margin: 2em 0 0.6em; }
.guide-body p, .guide-body li { font-size: 1.125rem; line-height: 1.7; color: rgba(31, 8, 18, 0.88); }
.guide-body ol, .guide-body ul { padding-left: 1.4em; }
.guide-body li { margin-bottom: 0.5em; }
.guide-body li::marker { color: var(--burnt); font-weight: 700; }
.guide-body a { color: var(--burnt); text-underline-offset: 3px; }
.guide-body pre { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; overflow-x: auto; font: 0.95rem/1.55 var(--f-mono); }
.guide-body td { font-size: 1rem; }
.script-example { margin: 1.2em 0; padding: 22px 24px; border-radius: var(--r-m); background: var(--plum); }
.script-example p { color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.45; margin: 0 0 0.7em; }
.script-example p:last-child { margin: 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border: 2px solid var(--burnt); border-radius: 5px; }

.in-cue { margin-top: 2.6em; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); display: flow-root; }
.in-cue h2 { margin-top: 0; }
.in-cue > p:last-child { margin-bottom: 0; }
.guide-shot { float: right; width: min(38%, 220px); margin: 0 0 16px 24px; }
.guide-shot img { display: block; width: 100%; border-radius: 14px; }
.guide-shot figcaption { font-size: 0.85rem; line-height: 1.4; color: var(--fg-3); margin-top: 8px; }
@media (max-width: 620px) { .guide-shot { float: none; width: min(100%, 240px); margin: 0 auto 20px; } }

.band { background: var(--plum); color: var(--ink); padding-block: clamp(40px, 6vw, 72px); --focus: var(--amber); }
.band-inner { display: grid; gap: 20px 28px; align-items: center; grid-template-columns: auto 1fr; }
.band-icon { border-radius: 18px; width: clamp(60px, 8vw, 80px); }
.band-title { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.1; margin: 0 0 6px; }
.band-copy p:last-child { margin: 0; color: var(--ink-2); }
.band-actions { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.band .text-link { color: var(--amber); }
@media (min-width: 960px) {
  .band-inner { grid-template-columns: auto 1fr auto; }
  .band-actions { grid-column: auto; justify-items: end; }
}

.related { padding-block: clamp(48px, 6vw, 80px); }
.related-h, .hub-h { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: 1.6rem; line-height: 1.2; margin: 0; }
.hub-group { margin-top: 44px; }

/* Web teleprompter ----------------------------------------------------- */

.pr { --pr-size: 32px; --pr-line: 90px; display: grid; gap: 14px; color: var(--ink); --focus: var(--amber); }

.pr-stage {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(300px, 50vh, 500px);
  border-radius: var(--r-l);
  background: radial-gradient(120% 70% at 50% 0%, #3A1527 0%, #25091A 55%, #1C0610 100%);
  box-shadow: inset 0 0 0 1px var(--plum-line);
}
.pr--full .pr-stage { height: clamp(380px, calc(100svh - 300px), 860px); }
.pr-stage:has(.pr-viewport:focus-visible) { box-shadow: inset 0 0 0 3px var(--amber); }

.pr-lens {
  position: absolute; z-index: 4; top: 14px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 165, 82, 0.18), 0 0 26px rgba(255, 165, 82, 0.6);
}

.pr-viewport {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; outline: none;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.3) 0, rgba(0,0,0,.3) calc(var(--pr-line) - var(--pr-size) * 0.6), #000 calc(var(--pr-line) + 2px), #000 78%, rgba(0,0,0,.25) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.3) 0, rgba(0,0,0,.3) calc(var(--pr-line) - var(--pr-size) * 0.6), #000 calc(var(--pr-line) + 2px), #000 78%, rgba(0,0,0,.25) 100%);
}
.pr-viewport:active { cursor: grabbing; }
.pr-viewport.is-mirrored { transform: scaleX(-1); }

.pr-text {
  position: relative; will-change: transform;
  max-width: min(100%, 22em); margin-inline: auto;
  padding-inline: clamp(20px, 6%, 56px);
  font-family: var(--f-text); font-weight: 600; font-size: var(--pr-size); line-height: 1.38;
  overflow-wrap: break-word;
}
.pr-text p { margin: 0 0 0.75em; }
.pr-text .w { transition: color 0.25s; }
.pr-text .w.is-read { color: var(--ink-3); }

.pr-line { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--pr-line) + var(--pr-size) * 0.69); height: 0; pointer-events: none; }
.pr-line::before, .pr-line::after { content: ""; position: absolute; top: -7px; border: 7px solid transparent; }
.pr-line::before { left: 0; border-left-color: var(--amber); }
.pr-line::after { right: 0; border-right-color: var(--amber); }

.pr-cam { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pr.is-camera .pr-viewport {
  inset: 0 0 auto 0; height: 50%;
  background: rgba(31, 8, 18, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0, #000 calc(var(--pr-line) + 2px), #000 85%, rgba(0,0,0,.6) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0, #000 calc(var(--pr-line) + 2px), #000 85%, rgba(0,0,0,.6) 100%);
}
.pr.is-camera .pr-text { max-width: min(100%, 18em); }

.pr-editor-wrap { position: absolute; inset: 0; z-index: 5; display: block; padding: 40px clamp(16px, 4%, 40px) 16px; background: var(--plum-2); }
.pr-editor-wrap:focus-within { box-shadow: inset 0 0 0 3px var(--amber); border-radius: var(--r-l); }
.pr-editor { width: 100%; height: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); font: 500 1.125rem/1.6 var(--f-text); }
.pr-editor::placeholder { color: var(--ink-3); }

.pr-count {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(5rem, 16vw, 10rem);
  color: var(--amber); background: rgba(31, 8, 18, 0.45);
}
.pr-rec {
  position: absolute; z-index: 6; top: 10px; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; background: rgba(31, 8, 18, 0.7); font: 700 0.875rem/1 var(--f-text); font-variant-numeric: tabular-nums;
}
.pr-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: pr-blink 1.2s steps(2, start) infinite; }
@keyframes pr-blink { to { visibility: hidden; } }

.pr-bar { display: grid; gap: 8px; }
.pr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pr-row--quiet { gap: 2px 4px; }

.pr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--plum-line); background: var(--plum-2); color: var(--ink);
  font: 700 0.9375rem/1 var(--f-text); cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pr-btn:hover { background: var(--plum-3); }
.pr-btn[aria-pressed="true"] { background: rgba(255, 165, 82, 0.16); border-color: rgba(255, 165, 82, 0.65); color: var(--amber); }
.pr-btn--primary, .pr-btn--primary[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--plum); min-width: 112px; }
.pr-btn--primary:hover { background: var(--amber-hover); }
.pr-btn--rec { background: var(--rec); border-color: var(--rec); color: #fff; }
.pr-btn--rec:hover { background: #C92A43; }
.pr-btn--icon { width: 44px; padding: 0; font-size: 1.35rem; }
.pr-btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); min-height: 40px; padding: 0 10px; font-weight: 600; }
.pr-btn--quiet:hover { background: var(--plum-2); color: var(--ink); }
.pr-btn--quiet[aria-pressed="true"] { background: transparent; border-color: transparent; }
.pr-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.pr-a { font-weight: 800; line-height: 1; }
.pr-a--s { font-size: 0.85rem; }
.pr-a--l { font-size: 1.3rem; }

.pr-group { display: inline-flex; align-items: center; border: 1px solid var(--plum-line); background: var(--plum-2); border-radius: 999px; }
.pr-group .pr-btn { border-color: transparent; background: transparent; }
.pr-group .pr-btn:hover { background: var(--plum-3); }
.pr-out { display: inline-flex; align-items: baseline; justify-content: center; gap: 5px; min-width: 76px; font: 700 0.9375rem/1 var(--f-text); font-variant-numeric: tabular-nums; cursor: text; }
.pr-wpm {
  width: 3.6ch; padding: 6px 0 4px; border: 0; border-bottom: 1px dashed var(--ink-3); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 1rem; text-align: right;
  -moz-appearance: textfield; appearance: textfield;
}
.pr-wpm::-webkit-outer-spin-button, .pr-wpm::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-wpm:focus, .pr-wpm:focus-visible { outline: none; border-bottom: 2px solid var(--amber); padding-bottom: 3px; }

.pr-lang { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-3); font-size: 0.875rem; }
.pr-lang select {
  min-height: 44px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--plum-line);
  background: var(--plum-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23F0F7F4'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font: 600 1rem var(--f-text); -webkit-appearance: none; appearance: none;
}

.pr-meta { margin: 0; font-size: 0.9rem; color: var(--ink-3); }
.pr-status { color: var(--amber); }

.pr-after {
  display: grid; gap: 10px; justify-items: start; padding: 20px 22px; border-radius: var(--r-m);
  background: var(--plum-2); border: 1px solid rgba(255, 165, 82, 0.45);
}
.pr-after p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.pr-after .pr-after-title { color: var(--ink); font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: 1.25rem; }
.pr-after .badges { --bh: 40px; margin-top: 4px; }

@media (max-width: 560px) {
  .pr { --pr-size: 26px; }
  .pr-lang { margin-left: 0; }
  .pr-lang-lbl { display: none; }
  .pr-btn { padding: 0 14px; }
}

.pr:fullscreen, .pr.is-max {
  position: fixed; inset: 0; z-index: 1000; margin: 0; overflow: auto;
  display: flex; flex-direction: column; gap: 10px; background: var(--plum);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.pr:fullscreen .pr-stage, .pr.is-max .pr-stage { flex: 1; height: auto; min-height: 240px; }
.pr:fullscreen .pr-text, .pr.is-max .pr-text { max-width: min(100%, 26em); }
html.pr-locked { overflow: hidden; }

/* Phones held sideways: a sticky header would take a fifth of the height, and
   the prompter should fit the screen when scrolled to. */
@media (max-height: 500px) and (orientation: landscape) {
  .site-head { position: static; }
  [id] { scroll-margin-top: 12px; }
  .pr--hero .pr-stage, .pr--full .pr-stage { height: calc(100svh - 24px); min-height: 220px; }
  .pr:fullscreen, .pr.is-max { gap: 6px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .pr:fullscreen .pr-stage, .pr.is-max .pr-stage { min-height: 180px; }
  .pr:fullscreen .pr-bar, .pr.is-max .pr-bar { gap: 4px; }
}
