/* USGScribe website. Product first: white, black type, one accent (recording red).
   Funnel Display for headings, Funnel Sans for everything else. */
:root {
  --white: #ffffff;
  --ink: #000000;
  --ink-2: #3a3a3a;
  --muted: #6f6f6c;
  --line: #e4e4e1;
  --line-strong: #cfcfcb;
  --tint: #f3f3f1;
  --rec: #e5322d;
  --sans: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
kbd { font: 600 0.85em/1 var(--sans); padding: 3px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--white); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e6; border-color: #e9e9e6; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { font-size: 14px; color: var(--muted); }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.015em; }
.logo-mark { width: 26px; height: 26px; }
.site-head nav { margin-left: auto; }
.site-head nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-head nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .site-head nav { display: none; } .head-row > .btn { margin-left: auto; } }

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14.5px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap; }
.foot-row .logo { color: var(--ink); font-size: 16px; }
.foot-row .logo-mark { width: 22px; height: 22px; }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.foot-row ul a { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(3rem, 1.6rem + 6.4vw, 7.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: clamp(24px, 3.5vw, 40px); }
.hero-sub .fine { grid-column: 1 / -1; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; }
@media (max-width: 820px) { .hero-sub { grid-template-columns: minmax(0, 1fr); } }

.film { margin-top: clamp(36px, 5vw, 64px); }
.film-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--tint); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.film-frame video { width: 100%; }
.film-meta { display: flex; gap: 14px; align-items: flex-start; }
.film-toggle {
  flex: none; height: 32px; min-width: 64px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--white); color: var(--ink); font: 600 13.5px/1 var(--sans); cursor: pointer;
}
.film-toggle:hover { border-color: var(--ink); }
.film figcaption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 12px 40px; margin-top: 16px; align-items: start; }
.said { min-height: 3em; font-size: 1.15rem; line-height: 1.45; font-style: italic; color: var(--ink); }
.said:not(:empty)::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--rec); vertical-align: 0.1em; }
.film-note { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .film figcaption { grid-template-columns: minmax(0, 1fr); } .said { min-height: 0; } }

/* ---------- speaking vs typing ---------- */
.rate { padding: clamp(48px, 7vw, 96px) 0; background: var(--ink); color: #fff; }
.rate-line { font: 700 clamp(2rem, 1.1rem + 3.6vw, 4.2rem)/1.08 var(--display); letter-spacing: -0.035em; max-width: 18ch; }
.rate-line .num { font-weight: 800; color: #fff; }
.rate-line .num:last-child { color: #8f8f8b; }
.source { margin-top: 22px; font-size: 14px; color: #a9a9a5; max-width: 60ch; }
.source a { color: #d8d8d5; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-line { border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-intro h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.section-intro p { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
@media (max-width: 820px) { .section-intro { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li { display: flex; gap: 14px; align-items: baseline; }
.step-n { flex: none; font: 700 15px/1 var(--display); color: var(--muted); }
.steps p { font-size: 1.05rem; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.shot { margin: 0; }
.shot-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line-strong); border-radius: 11px; }
.shot-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: 600 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.shot-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.details { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.details th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 24px 10px 0; border-bottom: 1px solid var(--ink); }
.details td { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.details td:first-child { width: 42%; color: var(--muted); font-style: italic; }
.details td:last-child { font-weight: 500; }
@media (max-width: 640px) {
  .details thead { display: none; }
  .details tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .details td { display: block; border: 0; padding: 2px 0; width: auto !important; }
}

.format-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.format-links li { border-bottom: 1px solid var(--line); }
.format-links li:nth-child(odd) { border-right: 1px solid var(--line); }
.format-links a { display: flex; justify-content: space-between; padding: 18px 20px 18px 0; font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.format-links li:nth-child(even) a { padding-left: 20px; }
.format-links a:hover { text-decoration: underline; }
@media (max-width: 640px) { .format-links { grid-template-columns: minmax(0, 1fr); } .format-links li:nth-child(odd) { border-right: 0; } .format-links li:nth-child(even) a { padding-left: 0; } }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.faq-wrap h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

.closing { padding: clamp(64px, 9vw, 128px) 0; background: var(--ink); color: #fff; }
.closing-line { font: 800 clamp(2.4rem, 1.4rem + 4.4vw, 5.5rem)/0.98 var(--display); letter-spacing: -0.04em; margin-bottom: 32px; }

/* ---------- report format pages ---------- */
.band { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-top h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.section-lede { font-size: 1.12rem; color: var(--ink-2); margin-top: 16px; max-width: 60ch; }
.narrow > * { max-width: 820px; }
.format-index { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.format-index li { border-bottom: 1px solid var(--line); }
.format-index a { display: block; padding: 22px 0; text-decoration: none; }
.format-index h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.format-index a:hover h2 { text-decoration: underline; }
.format-index p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.format-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.crumbs { font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.sheet { background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: clamp(24px, 4vw, 48px); font: 400 16px/1.6 Calibri, Carlito, Arial, sans-serif; color: #111; }
.sheet-static { margin: 28px 0 20px; }
.sheet p + p { margin-top: 8px; }
.sheet-title { text-align: center; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; letter-spacing: 0.03em; margin-bottom: 14px !important; }
.sheet-static table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 15px; }
.sheet-static td, .sheet-static th { border: 1px solid #9a9a96; padding: 4px 10px; text-align: left; }
.sheet-static th { background: var(--tint); }
.sheet-static td p, .sheet-static th p { margin: 0; }
.sheet-static h3 { font: 700 16px/1.3 Calibri, Carlito, Arial, sans-serif; letter-spacing: 0.03em; margin: 16px 0 6px; }
.sheet .finding { position: relative; padding-left: 190px; }
.sheet .impression { margin-top: 16px !important; font-weight: 700; }
.sheet .impression .f-label { text-decoration: underline; text-underline-offset: 3px; }
.sheet .f-label { position: absolute; left: 0; top: 0; width: 184px; }
@media (max-width: 640px) { .sheet .finding { padding-left: 0; } .sheet .f-label { position: static; display: block; width: auto; } }
.blank { color: var(--muted); background: var(--tint); padding: 0 3px; border-radius: 2px; }
.format-main .fine { margin-top: 14px; }
.format-side { position: sticky; top: 88px; border-top: 1px solid var(--ink); padding-top: 16px; }
.format-side h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.format-side h2 + p, .format-side ul { margin-top: 8px; }
.format-side p { color: var(--ink-2); font-size: 15.5px; }
.format-side h2:not(:first-child) { margin-top: 28px; }
.format-side ul { list-style: none; padding: 0; display: grid; gap: 7px; }
@media (max-width: 920px) { .format-grid { grid-template-columns: minmax(0, 1fr); } .format-side { position: static; } }

.prose h2 { font-size: 1.5rem; margin-top: 36px; }
.prose p { margin-top: 10px; max-width: 68ch; color: var(--ink-2); }
.prose .section-lede { color: var(--ink-2); }

@media print {
  .site-head, .site-foot, .cta-row, .format-side, .crumbs { display: none; }
  .sheet { border: 0; padding: 0; }
}
