/* telep.app — site styles (owner generator-dev). Dark-first navy, yellow accent + blue links, system fonts, no CDNs.
   Partials (prompter.css, tools.css) may use these tokens. */
:root, [data-theme="dark"] {
  /* Navy / yellow / blue — final tokens: research/recorder-spec.md §1 (WCAG AA checked). Partials read the same names.
     --accent = yellow FILL (buttons, active chips, slider fill); --accent-text = yellow-family TEXT; --accent-2 = blue links. */
  --bg: #070B1A;
  --bg-2: #0A1124;
  --surface: #0E1630;
  --surface-2: #16213F;
  --border: #24314F;
  --border-strong: #5A6A92;   /* inputs, slider tracks, chip outlines: 3.33:1 */
  --text: #EEF2FF;
  --muted: #9AA6C4;
  --accent: #FFC53D;          /* 12.4:1 on bg */
  --accent-strong: #FFD56E;
  --accent-text: #FFC53D;
  --accent-ink: #070B1A;      /* text on accent fill */
  --accent-soft: rgba(255, 197, 61, .12);
  --accent-2: #6FA3FF;        /* links: 6.3:1 on surface-2 */
  --accent-2-strong: #9DC0FF;
  --accent-2-soft: rgba(111, 163, 255, .14);
  --btn-bg: var(--accent); --btn-bg-hover: var(--accent-strong); --btn-ink: var(--accent-ink); --btn-border: transparent;
  --rec: #F04438;             /* icon/UI only */
  --rec-strong: #D92D20;      /* filled pills with white text: 4.83:1 */
  --ok: #3CCB7F;
  --warn-bg: #3A2C07; --warn-ink: #FFD777;
  --panel-bg: rgba(7, 11, 26, .72);
  --focus: #FFC53D;
  --glow-1: rgba(111, 163, 255, .18);
  --glow-2: rgba(255, 197, 61, .10);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --warn: #FFD777;
  /* aliases read by the tool partials (tools.css) */
  --ink: var(--text); --line: var(--border); --card: var(--surface); --paper: var(--bg); --sans: var(--font);
  /* fixed stage colors for the always-dark recorder (prompter.css); not redefined by the light theme */
  --navy: #070B1A; --yellow: #FFC53D; --blue: #6FA3FF;
  color-scheme: dark;
}
[data-theme="light"] {
  /* clean neutral-cool light theme (Anatoli 2026-11-26: "less yellow"); yellow only on buttons, sliders, stars, ticks */
  --bg: #FFFFFF;
  --bg-2: #F5F7FB;            /* alternating section bands */
  --surface: #FFFFFF;
  --surface-2: #F3F5F9;       /* inputs, textareas */
  --border: #E3E7EF;
  --border-strong: #8790A3;   /* 3.4:1 on white */
  --text: #0B1433;
  --muted: #4A5675;           /* 7.4:1 white, 6.8:1 on --bg-2 */
  --accent: #F5B524;          /* fill only; buttons get a 1px --accent-text border */
  --accent-strong: #F0A800;
  --accent-text: #8A5A00;     /* 5.9:1 on white, 5.5:1 on --bg-2 */
  --accent-ink: #0B1433;
  --accent-soft: rgba(245, 181, 36, .16);
  --accent-2: #1F5FD6;        /* 5.7:1 on white, 5.3:1 on --bg-2 */
  --accent-2-strong: #174AA8;
  --accent-2-soft: rgba(31, 95, 214, .08);
  --btn-border: #8A5A00;
  --rec: #D92D20; --rec-strong: #B42318;
  --warn-bg: #FFF4D6; --warn-ink: #5C3B00;
  --focus: #1F5FD6;
  --glow-1: rgba(31, 95, 214, .07);
  --glow-2: rgba(31, 95, 214, .04);
  --shadow: 0 8px 24px rgba(11, 20, 51, .07);
  --warn: #8A5A00;
  --ink: var(--text); --line: var(--border); --card: var(--surface); --paper: var(--bg); --sans: var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent-2-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-display); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 750; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 760px; }
.muted { color: var(--muted); }
.fine { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; line-height: 1.5; text-wrap: balance; font-weight: 700; color: var(--accent-text); margin-bottom: .6em; }
.kicker a { text-decoration: none; }
.lead { font-size: clamp(1.06rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.lead-sm { color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: block; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-border); }
.btn-accent:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--text); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.btn-lg { min-height: 52px; padding: 12px 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1em 0; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { width: 150px; height: 50px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; flex-shrink: 0; }
.logo img { border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.main-nav > a:not(.btn), .nav-icon { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 9px; border-radius: 8px; }
.main-nav > a:not(.btn):hover, .nav-icon:hover { color: var(--text); background: var(--surface); }
.main-nav > a[aria-current="page"] { color: var(--text); }
.nav-icon { display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; min-width: 40px; min-height: 40px; justify-content: center; }
.nav-cta { margin-left: 6px; }
.show-sm { display: none; }
@media (max-width: 639px) { .hide-sm { display: none !important; } .show-sm { display: block; } .nav-cta { display: none; } .main-nav > a:not(.btn) { padding: 8px 6px; font-size: .9rem; } .nav-icon { min-width: 36px; } .crumbs li:last-child { display: none; } .crumbs li:nth-last-child(2)::after { content: ""; } }
@media (max-width: 639px) { .site-header .logo span { display: none; } }
@media (max-width: 359px) { .logo { gap: 8px; font-size: 1.05rem; } .logo img { width: 28px; height: 28px; } .main-nav > a:not(.btn) { padding: 8px 5px; font-size: .86rem; } .nav-icon { min-width: 32px; padding: 6px; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 20px 0 8px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-head { margin: 8px 0 28px; }
.page-head h1 { margin-bottom: .3em; }

/* hero */
.hero { padding: 40px 0 28px; background:
  radial-gradient(1000px 420px at 85% -10%, var(--glow-1), transparent 70%),
  radial-gradient(700px 360px at -10% 10%, var(--glow-2), transparent 70%); }
.hero h1 { max-width: 16ch; }
.hero-points { margin-top: 1.2em; color: var(--muted); }
@media (max-width: 1099px) { .hero .hero-points, .hero-copy .hero-more { display: none; } }
@media (min-width: 1100px) { .hero-more-sm { display: none; } }
@media (min-width: 1100px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .hero-grid .hero-prompter { margin-top: 0; }
  .hero { padding: 56px 0 44px; }
}
.hero-prompter { margin-top: 26px; border-radius: var(--radius); }
.hero-more { margin-top: 14px; }
.section { padding: 28px 0; }
.section > .wrap > h2:first-child { margin-top: 0; }

/* app band */
.app-band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; margin: 20px 0; }
.app-band h2 { margin-top: 0; }
.app-band-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .app-band-grid { grid-template-columns: 1fr auto; } }
.ticks { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg); }
.rating { margin: .4em 0 .8em; font-size: .95rem; }
.stars { color: #ffc94d; letter-spacing: 1px; }

/* grids + cards */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); }
.card > a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; color: var(--text); text-decoration: none; position: relative; }
.gc-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); font-weight: 700; }
.gc-title, .tc-name { font-weight: 650; line-height: 1.35; }
.gc-hook, .tc-blurb { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.gc-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-row { margin-top: 18px; }
.narrow-left { max-width: 760px; }
.guide-group { margin-top: 12px; }
.footer-theme { margin-top: 18px; }
.tc-go { position: absolute; right: 18px; top: 16px; color: var(--accent-text); font-weight: 700; }
.tool-card .tc-name { padding-right: 24px; }
.tool-card-main { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); }
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tools-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tools-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hub-row { margin-top: 22px; }
.hub-about { margin: 28px 0 0; color: var(--muted); }
.embed-box { margin: 24px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; }
.embed-box summary { cursor: pointer; font-weight: 600; }
.prose pre.embed-code code { font: .82rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.hub-row h3 a { color: var(--text); text-decoration: none; }
.hub-row h3 a:hover { color: var(--accent-2); }
.feature h3 { margin: 0 0 .3em; }
.feature { padding: 18px 20px; }
.feature-app { background: linear-gradient(135deg, var(--accent-soft), transparent 75%), var(--surface); }
.feature-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.app-h1 { margin-top: 8px; max-width: 24ch; }
.shots { list-style: none; padding: 0; margin: 28px 0 8px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { width: 220px; height: auto; border-radius: 18px; border: 1px solid var(--border); display: block; }
@media (min-width: 900px) { .shots img { width: 260px; } }
.feature p { margin: 0; }
.empty { padding: 18px 0; }

/* QR */
.qr-box { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px 14px 14px; max-width: 360px; }
.qr-code { flex: 0 0 112px; width: 112px; height: 112px; background: #fff; border-radius: 10px; padding: 4px; line-height: 0; }
.qr-code svg { width: 100%; height: 100%; }
.qr-h { font-weight: 650; margin: 0 0 .2em; }
.qr-box p { margin: 0; font-size: .9rem; }

/* prompter + tool stages (the partials style their own insides) */
.prompter-stage { margin: 0 auto 10px; max-width: 1280px; padding: 0 12px; }
.tool-stage { margin-bottom: 20px; }
.tool-embed { margin: 22px 0; }
.prompter-placeholder { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px; }
.prompter-placeholder textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font: inherit; }

/* guide */
.guide-layout { display: grid; gap: 40px; }
@media (min-width: 1040px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 280px; } .related { position: sticky; top: 84px; align-self: start; margin-top: 60px; } }
.guide { max-width: 760px; min-width: 0; }
.guide-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.meta { font-size: .88rem; }
.answer { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent); border-left: 4px solid var(--accent-text); border-radius: var(--radius-sm); padding: 16px 20px; margin: 18px 0 22px; font-size: 1.06rem; }
.answer p { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; margin: 22px 0; }
.toc-h { font-weight: 700; margin: 0 0 .3em; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 2px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-2); }
.prose { min-width: 0; }
.prose h2 { scroll-margin-top: 80px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--accent-text); color: var(--muted); }
.prose code { font: .9em var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-text); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.2em 0; }
.prose pre code { background: none; padding: 0; font: .95rem/1.7 var(--font); white-space: pre-wrap; color: var(--text); }
.prose pre code[class*="language-"] { font-family: var(--mono); font-size: .88rem; white-space: pre; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li.task { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.checklist li.task:last-child { border-bottom: 0; }
.checklist li.task > p { margin: 0; }
.task-box { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .22em; accent-color: var(--accent-text); cursor: pointer; }
.task-box:checked + * , li.task:has(.task-box:checked) { color: var(--muted); }
.steps { counter-reset: s; }
.steps li { margin: .6em 0; }
.tp-launcher { background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.tpl-head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 10px; }
.tpl-ico { display: inline-flex; color: var(--accent-text); }  /* no red dot: red = REC */
.tpl-h { font-weight: 700; margin: 0; }
.tpl-sub { grid-column: 2; margin: 0; font-size: .9rem; }
.tp-launcher textarea { width: 100%; min-height: 96px; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font: 1rem/1.55 var(--font); }
.tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { background: var(--surface); font-weight: 650; }
.table-wrap tr:last-child td { border-bottom: 0; }
.script-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 22px 0; overflow: hidden; }
.script-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.script-head h2 { margin: 0; font-size: 1.05rem; }
.script-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.script-text { margin: 0; padding: 16px 18px; white-space: pre-wrap; font: 1rem/1.7 var(--font); max-height: 360px; overflow: auto; }
.inline-cta { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 28px 0; }
.inline-cta img { border-radius: 11px; }
.inline-cta p { margin: 0; }
.inline-cta .muted { font-size: .92rem; }
.inline-cta-h { font-weight: 650; }
.inline-cta .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 560px) { .inline-cta { grid-template-columns: auto 1fr auto; } .inline-cta .btn { grid-column: auto; } }
.app-cta { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start; background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 36px 0; }
.app-cta-icon { border-radius: 14px; }
.app-cta-h { font-weight: 700; font-size: 1.15rem; margin: 0 0 .2em; }
.app-cta-body p { margin-bottom: .4em; }
.app-cta-actions { margin-top: 8px; }
.app-cta-qr { grid-column: 1 / -1; }
@media (min-width: 900px) { .app-cta { grid-template-columns: auto 1fr auto; } .app-cta-qr { grid-column: auto; } .app-cta-qr .qr-box { background: transparent; border: 0; padding: 0; flex-direction: column; text-align: center; max-width: 160px; } }
.faq { margin: 36px 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 28px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-a { color: var(--muted); padding-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.sources ol { font-size: .92rem; color: var(--muted); padding-left: 1.3em; }
.byline { font-size: .88rem; }
.related h2 { font-size: 1rem; margin-top: 0; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { border-bottom: 1px solid var(--border); }
.related li a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 550; line-height: 1.4; }
.related li a:hover { color: var(--accent-2); }
.related-tools { margin-top: 14px; font-weight: 600; }
.related-tools a { text-decoration: none; }
.guide-group h2 a { color: var(--text); text-decoration: none; }
.guide-list { padding-left: 1.2em; }
.guide-list li { margin: 6px 0; }

/* app page */
.app-hero { display: grid; gap: 22px; align-items: center; margin: 10px 0 20px; }
.app-hero-icon { border-radius: 28px; box-shadow: var(--shadow); width: 104px; height: 104px; }
.app-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
@media (min-width: 760px) { .app-hero { grid-template-columns: auto 1fr; } .app-hero-icon { width: 128px; height: 128px; } }
@media (min-width: 1000px) { .app-hero { grid-template-columns: auto 1fr auto; } }

/* sticky mobile CTA (guides) */
.sticky-cta { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow); }
.sticky-cta[hidden] { display: none; }
.sticky-cta img { border-radius: 8px; flex-shrink: 0; }
.sticky-cta span { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; min-width: 36px; min-height: 36px; cursor: pointer; border-radius: 8px; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* search */
.search-form { display: flex; gap: 8px; margin-bottom: 10px; }
.search-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-results a { font-weight: 650; text-decoration: none; }
.search-results .muted { display: block; font-size: .9rem; }

/* footer */
.site-footer { margin-top: 60px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand p { color: var(--muted); }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent-2); }
.footer-fine { color: var(--muted); font-size: .82rem; margin-top: 28px; }
.page-404 { padding: 40px 20px; }

/* consent (only rendered when analytics is configured) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 560px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 240px; }
.consent div { display: flex; gap: 8px; }

@media (max-width: 380px) { .wrap { padding: 0 14px; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .sticky-cta, .app-cta, .inline-cta { display: none; } }

/* /embed/<tool>/ (framed on other sites) */
.embed-body { background: var(--bg); }
.embed-main { padding: 12px; max-width: 760px; margin: 0 auto; }
.embed-main .tool-embed { margin: 0; }
.embed-credit { font-size: .82rem; color: var(--muted); margin: 10px 2px 0; }
.embed-h { font-size: 1.05rem; margin: 0 2px 10px; letter-spacing: 0; }

/* ---- UX round 1g ---- */
/* reading measure: text blocks ≤68ch; tables, tools and script boxes keep the full column */
.prose p, .prose li, .prose blockquote, .answer p { max-width: 36em; }   /* ≈70 characters per line (ch = width of "0", too wide for prose) */
/* tables: ≥4 columns stack into label/value cards on phones; scrollers get a right-edge fade */
.table-wrap.is-overflowing:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (max-width: 640px) {
  .table-wrap:has(.t-stack) { border: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .t-stack, .t-stack tbody { display: block; }
  .t-stack thead { display: none; }
  .t-stack tr { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px; background: var(--surface); }
  .t-stack td { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 6px 0; border: 0; }
  .t-stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; font-weight: 600; }
  .t-stack td:first-child { font-weight: 700; grid-template-columns: 1fr; }
  .t-stack td:first-child::before { display: none; }
}
/* TOC as collapsible details */
.toc details > summary { cursor: pointer; list-style: none; }
.toc details > summary::-webkit-details-marker { display: none; }
.toc details > summary::after { content: "+"; color: var(--accent-text); margin-left: auto; padding-left: 12px; font-size: 1.1rem; }
.toc details[open] > summary::after { content: "−"; }
.toc details[open] > summary { margin-bottom: .4em; }
/* script box */
.script-meta { margin: 2px 0 0; font-size: .85rem; }
.script-body { position: relative; }
.script-body.is-collapsed .script-text { max-height: 300px; overflow: hidden; }
.script-body.is-collapsed.has-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.script-body:not(.is-collapsed) .script-text { max-height: none; }
.script-more { display: block; width: 100%; background: var(--surface-2); color: var(--accent-2); border: 0; border-top: 1px solid var(--border); font: 600 15px/1 var(--font); padding: 14px; cursor: pointer; }
.script-more[hidden] { display: none; }
mark.ph { background: color-mix(in srgb, var(--warn, #d48a00) 22%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
/* sticky CTA */
.sticky-cta span { font-size: 15px; overflow: visible; text-overflow: clip; }
body.has-sticky { padding-bottom: 84px; }
/* related rail */
.related li a { font-size: 15px; font-weight: 600; line-height: 1.35; }
.rel-tools-h { margin-top: 24px !important; }
.rel-tools { list-style: none; padding: 0; margin: 0; }
/* /app/ */
.shots-wrap { overflow-x: auto; border-radius: 12px; margin: 28px 0 8px; }
.shots-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shots-wrap .shots { margin: 0; overflow: visible; }
.app-close { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 8px 0 20px; }
.app-close .qr-box { background: transparent; border: 0; padding: 0; }
/* /tools/ icons + 3-up grid */
.tc-icon { color: var(--accent-text); margin-bottom: 4px; }
@media (min-width: 900px) { .tools-index { grid-template-columns: repeat(3, 1fr); } }
.prose .script-box pre.script-text { border: 0; border-radius: 0; margin: 0; background: none; padding: 16px 18px; }
@media (max-width: 380px) { .sticky-cta { gap: 8px; padding-left: 8px; } .sticky-cta span { font-size: 14px; } .sticky-cta img { width: 28px; height: 28px; } }
@media (max-width: 639px) { .crumbs-short { display: none; } }
.script-box-title { font: 650 15px/1.3 var(--font); color: var(--muted); margin: 0; }
.tpl-tip { font-size: .88rem; margin: 10px 0 0; }
/* qa-mobile: 44px tap targets */
.tap, .hero-more a, .cta-row .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.logo { min-height: 44px; padding: 6px 4px 6px 0; }
.nav-icon { min-height: 44px; min-width: 44px; }
.sticky-x { min-width: 44px; min-height: 44px; }
.toc details > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-lang { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .06em; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; margin: 0 4px; min-height: 32px; display: inline-flex; align-items: center; }
.nav-lang:hover { color: var(--text); border-color: var(--accent-text); }
.footer-lang { margin-top: 18px; }
.footer-lang a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
@media (max-width: 359px) { .main-nav > a:not(.btn) { padding: 8px 4px; font-size: .82rem; } .nav-icon { min-width: 40px; } }
@media (max-width: 339px) { .nav-search { display: none; } }
.st-sm { display: none; }
@media (max-width: 430px) { .st-lg { display: none; } .st-sm { display: inline; } }
.main-nav > a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.script-box { scroll-margin-top: 76px; }
@media (max-width: 339px) { .main-nav > a.nav-search { display: none; } }
.footer-lang { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; font-size: .875rem; }
.footer-lang span[aria-current] { color: var(--muted); font-weight: 600; }
@media (max-width: 1023px) { .main-nav > .nav-lang { display: none; } } @media (max-width: 899px) { .main-nav > .nav-cta { display: none; } }
/* tool grids: balanced columns for 6 tools in every language (3×2 / 2×3 / 1×6) */
.tools-grid, .tools-grid-sm { grid-template-columns: 1fr; }
@media (min-width: 560px) { .tools-grid, .tools-grid-sm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tools-grid, .tools-grid-sm { grid-template-columns: repeat(3, 1fr); } }
/* header language menu (≥640px; phones use the footer list) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; gap: 4px; padding: 0 8px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lm-caret { font-size: .7rem; opacity: .7; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; list-style: none; margin: 0; padding: 6px; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.lang-list li > * { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 550; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface); color: var(--accent-2); }
.lang-list span[aria-current] { color: var(--muted); }
.lang-list span[aria-current]::after { content: "✓"; margin-left: auto; color: var(--accent-text); }
.editor-stage { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; }
/* App Store reviews (home + /app/) */
.rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.rev-head h2 { margin: 0 0 .3em; }
.rev-summary { margin: 0; }
.rev-all { min-height: 44px; display: inline-flex; align-items: center; }
.rev-scroll { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 4px 0 8px; }
.rev-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 14px; }
.rev-card { scroll-snap-align: start; background: linear-gradient(160deg, var(--accent-2-soft), transparent 55%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; }
.rev-label { margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rev-stars { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: 2px; line-height: 1; }
.rev-stars .on { color: #FFC53D; }
.rev-stars .off { color: var(--border-strong); }
[data-theme="light"] .rev-stars .on, [data-theme="light"] .stars { color: #B7791F; }   /* amber: 3.6:1 on white (non-text contrast) */
.rev-title { margin: 0 0 6px; font-size: 1.05rem; }
.rev-text { margin: 0 0 14px; flex: 1; font-size: 1rem; line-height: 1.55; }
.rev-text::before { content: "“"; } .rev-text::after { content: "”"; }
.rev-meta { margin: 0; font-size: .85rem; }
@media (min-width: 760px) { .rev-scroll { overflow: visible; margin: 0; padding: 0; } .rev-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } }
/* big statement band */
.stat-band { padding: 72px 0; text-align: center; background: radial-gradient(800px 300px at 50% 0%, var(--glow-1), transparent 70%); }
.stat-h { font: 800 clamp(40px, 6vw, 88px)/1.05 var(--font-display); letter-spacing: -.035em; margin: 0 auto .35em; max-width: 16ch; text-wrap: balance; }
.stat-num { color: var(--accent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; margin: 0 auto; }
/* app feature rows */
.feats-h { margin-top: 0; }
.feat-row { display: grid; gap: 28px; align-items: center; padding: 36px 0; border-top: 1px solid var(--border); }
.feat-row:first-of-type { border-top: 0; }
.feat-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
.feat-copy .ticks { margin: 1em 0 1.4em; }
@media (min-width: 900px) {
  .feat-row { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
  .feat-row.is-flip .feat-copy { order: 2; }
}
.feat-collage { position: relative; background: #0E1630; border-radius: 24px; padding: 36px 24px; display: flex; justify-content: center; gap: 16px; overflow: hidden; min-height: 320px; }
[data-theme="light"] .feat-collage { background: #0B1433; }
.fc-block { position: absolute; background: #FFC53D; border-radius: 24px; }
.fc-b1 { width: 46%; height: 42%; left: -8%; top: -10%; transform: rotate(-8deg); }
.fc-b2 { width: 34%; height: 30%; right: -6%; bottom: -8%; transform: rotate(10deg); background: #6FA3FF; }
.phone { position: relative; z-index: 1; width: min(265px, 62%); border-radius: 30px; padding: 7px; background: #070B1A; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.feat-collage.is-two .phone { width: min(220px, 46%); }
.feat-collage.is-two .phone + .phone { margin-top: 40px; }
.phone img, .phone svg { display: block; width: 100%; height: auto; border-radius: 24px; }
.fc-pill { position: absolute; z-index: 2; background: #FFFFFF; color: #0B1433; font: 700 .9rem/1 var(--font); padding: 10px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); white-space: nowrap; }
/* pills sit in the middle band of the phone, clear of the captions baked into the store screenshots (top/bottom ~20%) */
.fc-p1 { left: 4%; top: 36%; }
.fc-p2 { right: 4%; top: 58%; }
@media (max-width: 420px) { .fc-pill { font-size: .8rem; padding: 8px 11px; } .fc-p1 { left: 2%; } .fc-p2 { right: 2%; } }
/* guide cards: text-only (even grids); photos only as guide heroes and site images */
.gc-body { display: flex; flex-direction: column; gap: 6px; }
.gc-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.gc-pill { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.related li a { display: flex; gap: 12px; align-items: flex-start; }
.guide-hero { position: relative; margin: 4px 0 22px; }
.guide-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.hero-credit { margin-top: 6px; font-size: .78rem; color: var(--muted); }
.hero-credit a { color: var(--muted); }
.guide-grid { align-items: stretch; }
.guide-grid > .guide-card { display: flex; }
.guide-grid > .guide-card > a { flex: 1; }
/* site photos (config site_images; responsive webp, 16:9, width/height set → no CLS) */
.site-photo { margin: 0 0 24px; }
.site-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.head-split .site-photo { margin: 18px 0 0; }
@media (min-width: 900px) {
  .head-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .head-split .site-photo { margin: 0; }
  .app-band-grid:has(.app-band-photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
.app-band-photo { margin: 0; }
.app-band-qr { margin-top: 20px; }
.faq-split .faq-photo { margin: 8px 0 0; max-width: 760px; }
@media (min-width: 1000px) {
  .faq-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .faq-split .faq-photo { margin-top: 64px; position: sticky; top: 96px; }
}
.prose .site-photo { margin: 8px 0 24px; }
.app-photo { max-width: 760px; margin: 36px 0 8px; }
/* /app/ feature cards: keep titles aligned when only some cards carry the "Only in the app" eyebrow */
.feature .gc-kicker { display: block; }
.feature-grid:has(.feature-app) > .feature:not(.feature-app)::before { content: "\00a0"; display: block; font-size: .74rem; }
/* touch: 44px tap targets for footer, breadcrumbs, related links, logo and nav (qa-phone #4) */
@media (pointer: coarse) {
  .site-footer li { margin: 0; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs ol { margin: 10px 0 0; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .related li a { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
  .logo { min-width: 44px; }
  .main-nav > a:not(.btn) { min-width: 44px; justify-content: center; }
}
/* review strip: fill the row whatever the count (EN has 2 English reviews) */
@media (min-width: 760px) { .rev-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
/* guide sections with exactly 4 cards: 2 × 2 instead of 3 + 1 orphan */
@media (min-width: 900px) { .guide-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---- Apple-style polish (designer, 2026-11-26): hairlines, layered soft shadows, calmer states, no bent side borders ---- */
:root, [data-theme="dark"] {
  --hairline: color-mix(in srgb, var(--border) 82%, transparent);
  --shadow: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 28px rgba(0, 0, 0, .34);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 4px 14px rgba(0, 0, 0, .22);
  --ease: cubic-bezier(.25, .1, .25, 1);
}
[data-theme="light"] {
  --btn-border: rgba(138, 90, 0, .22);     /* was solid #8A5A00: heavy brown outline; dark ink label keeps 9:1 on the fill */
  --shadow: 0 1px 2px rgba(11, 20, 51, .05), 0 8px 24px rgba(11, 20, 51, .07);
  --shadow-sm: 0 1px 2px rgba(11, 20, 51, .04), 0 4px 12px rgba(11, 20, 51, .06);
}
/* buttons: quick press feedback, calmer ghost hover (fill, not a yellow outline) */
.btn { transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); letter-spacing: -.005em; }
.btn:active { transform: scale(.98); }
.btn-accent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--text) 5%, transparent); }
/* header: lighter hairline, rounder hover pill, current page reads as selected */
.site-header { border-bottom-color: var(--hairline); }
.main-nav > a:not(.btn), .nav-icon { border-radius: 10px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.main-nav > a[aria-current="page"] { font-weight: 650; }
/* cards: hairline border, neutral hover lift + soft shadow instead of a yellow outline; press settles */
.card { border-color: var(--hairline); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.card:active { transform: translateY(0); box-shadow: none; }
.tc-go { transition: transform .2s var(--ease); }
.card:hover .tc-go { transform: translateX(2px); }
/* rounded boxes no longer carry a thick side border (it bends around the corner): tint + hairline instead */
.answer { border-left-width: 1px; border-color: color-mix(in srgb, var(--accent-text) 28%, transparent); }
.prose pre { border-left-width: 1px; }
/* one radius scale: 10 (controls) / 14 (cards, panels) */
.lang-list, .sticky-cta { border-radius: var(--radius); }
.search-form input, .prompter-placeholder textarea, .tp-launcher textarea { border-radius: var(--radius-sm); }
.lang-list { border-color: var(--hairline); }
.search-form input:focus-visible, .tp-launcher textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
/* panels + surfaces: hairline borders */
.toc, .embed-box, .table-wrap, .qr-box, .inline-cta, .app-cta, .app-close, .script-box, .tp-launcher, .rev-card { border-color: var(--hairline); }
.consent, .sticky-cta, .lang-list { box-shadow: var(--shadow); }
/* type: tighter display tracking, tabular numbers in stats */
h2 { letter-spacing: -.02em; }
.lead { letter-spacing: -.005em; }
.faq summary { transition: color .15s var(--ease); }
.faq summary:hover { color: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { .card:hover, .btn:active, .card:hover .tc-go { transform: none; } }
/* guide cards, blog style (designer 2026-11-26, ref teleprompter.com/blog in our colours):
   16:9 hero thumb (same /img/guides/<slug>-800|1600.webp as the guide hero) · date + cluster pill · big title · 3-line hook · publisher byline.
   1 column on phones, 2 from 700px. Guides without a hero keep the same card minus the image. */
.guide-grid, .guide-grid:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .guide-grid, .guide-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.guide-card { overflow: hidden; border-radius: 18px; }
.guide-card > a { padding: 0; gap: 0; }
.gc-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--hairline); }
.gc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.guide-card:hover .gc-thumb img { transform: scale(1.03); }
.guide-card .gc-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 20px; }
.guide-card .gc-meta { justify-content: space-between; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-card .gc-pill { white-space: nowrap; }
.guide-card .gc-title { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.6rem)/1.22 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.guide-card .gc-desc { font-size: 1.0625rem; line-height: 1.55; -webkit-line-clamp: 3; line-clamp: 3; }
.gc-by { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
.gc-by img, .gh-by img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
@media (prefers-reduced-motion: reduce) { .guide-card:hover .gc-thumb img { transform: none; } }
/* guide page byline under the H1 */
.gh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gh-by { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; text-decoration: none; min-height: 44px; }
.gh-by:hover { color: var(--accent-2); }
/* quick-answer box: label + larger comfortable type, tinted (navy / warm), hairline + soft shadow; width = article text measure */
.answer { font-size: inherit; max-width: 36em; padding: 24px 28px; border-radius: 14px; border: 1px solid var(--hairline);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 7%, var(--surface)), var(--surface)); box-shadow: var(--shadow-sm); }
[data-theme="light"] .answer { background: linear-gradient(180deg, #FFF7E3, #FFFBF2); border-color: color-mix(in srgb, var(--accent-text) 18%, transparent); }
.answer p { max-width: none; font-size: clamp(1.125rem, 1.05rem + .25vw, 1.1875rem); line-height: 1.6; color: var(--text); }
.answer p.answer-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 .75rem/1.4 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.answer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
@media (max-width: 480px) { .answer { padding: 20px; } }
/* guide without a hero yet: quiet branded 16:9 placeholder (CSS only, no text) so rows stay even */
.gc-thumb-empty { position: relative; background:
  radial-gradient(60% 80% at 15% 10%, var(--glow-2), transparent 70%),
  radial-gradient(70% 90% at 90% 100%, var(--glow-1), transparent 70%), var(--surface-2); }
.gc-thumb-empty::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 12px; background: url("../img/app-icon-64.webp") center / cover; opacity: .5; filter: saturate(.7); }
/* qa-pages pass 1: 44px tap targets on touch (TOC rows, kicker above H1, tool "open full" link) */
@media (pointer: coarse) {
  .toc li { margin: 0; }
  .toc li a { display: block; padding: 11px 0; min-height: 44px; }
  .guide-head .kicker a, .tl-more a { display: inline-flex; align-items: center; min-height: 44px; }
  .guide-head .kicker { margin-bottom: 0; }
}
/* /app/ desktop (product-pm P1): screenshot row centred across the column; photo spans the full column as a wide band */
@media (min-width: 900px) {
  .shots-wrap .shots { justify-content: center; gap: 32px; }
  .shots-wrap .shots img { width: 280px; border-radius: 22px; box-shadow: var(--shadow); }
  .app-photo { max-width: none; }
  .app-photo img { aspect-ratio: 21 / 9; }
}
/* phones (<640px): the header gets the language menu as one 44px icon in place of the search icon; theme + search sit at the
   top of that menu (QA P3: no theme/lang switch in the mobile header). Desktop is unchanged. */
.lm-sm { display: none; }
@media (max-width: 639px) {
  .main-nav:has(> .lang-menu) > .nav-search { display: none; }
  .lang-menu > summary { padding: 0; min-width: 44px; justify-content: center; }
  .lang-menu .lm-code, .lang-menu .lm-caret { display: none; }
  .lm-sm { display: block; }
  .lang-list { right: -6px; min-width: 220px; }
  .lang-list .lm-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
    color: var(--text); font: 550 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: left; }
  .lang-list .lm-row:hover, .lang-list .lm-row:focus-visible { background: var(--surface); color: var(--accent-2); }
  .lang-list .lm-row svg { color: var(--muted); flex: none; }
  .lm-sep { height: 1px; min-height: 0 !important; margin: 6px 8px; background: var(--hairline); }
}
/* 404: popular guides as cards */
.page-404 .nf-grid { margin-top: 12px; max-width: none; }
.wrap.narrow.page-404 > .nf-grid { max-width: none; }
