/* Shared by /screen-translator/ and /screen-translator/privacy/ - the same
   tokens and voice as the studio homepage (index.html): white stock, black
   ink, signal orange, Katagami Sans and Katagami Mono (/fonts/katagami.css). */
:root {
  --bg:     #ffffff;
  --bg2:    #f4f4f5;
  --ink:    #0b0b0c;
  --muted:  #56585e;
  --line:   #e4e4e7;
  --signal: #ff4800;
  --night:  #0b0b0c;
  --night2: #17171a;
  --night-line: #2a2a2e;
  --night-muted: #a1a1aa;

  /* names demo.css still uses */
  --slate: var(--muted);
  --paper: var(--bg);
  --paper2: var(--bg2);

  --sans: "Katagami Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Katagami Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Katagami Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }

kbd {
  font-family: var(--mono); font-size: 0.85em;
  border: 1px solid #c9c9cf; border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; background: var(--bg2);
  white-space: nowrap;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  font-weight: 600; font-size: 19px; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand .mark { width: 14px; height: 14px; background: var(--signal); flex: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links .nav-cta { color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 8px; }
.nav-links .nav-cta:hover { color: #fff; background: var(--signal); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-copy { max-width: 900px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-weight: 600; font-size: clamp(44px, 7.6vw, 104px);
  line-height: 0.96; letter-spacing: -0.035em; text-wrap: balance;
}
.hero-lede { margin-top: 26px; max-width: 54ch; font-size: clamp(18px, 2vw, 21px); color: #2b2c30; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  background: var(--signal); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 10px;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); }
.btn[aria-disabled="true"] { background: var(--ink); color: #fff; pointer-events: none; }
.hero-stat { font-size: 15px; color: var(--muted); }
.hero-stat b { color: var(--ink); font-weight: 700; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.band { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 112px); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-weight: 600; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04;
  letter-spacing: -0.035em; text-wrap: balance; margin-top: 10px; max-width: 20ch;
}

/* Steps - the homepage's line, first step to last */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--signal), var(--line)); }
.step { position: relative; padding-top: 38px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--signal); }
.step:last-child::before { background: var(--signal); }
.step .label { font-size: 14px; font-weight: 600; color: var(--signal); }
.step h3 { font-weight: 600; font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -0.03em; line-height: 1.12; margin-top: 6px; }
.step p { color: var(--muted); margin-top: 10px; }
@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; padding-left: 34px; gap: 8px; }
  .process::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(var(--signal), var(--line)); }
  .step { padding-top: 0; padding-bottom: 22px; }
  .step::before { left: -34px; top: 4px; }
}

/* Features - a grid of tiles */
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-row { background: var(--bg2); border-radius: 16px; padding: 24px 22px 26px; }
.svc-row .idx { display: none; }
.svc-row h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.025em; line-height: 1.15; }
.svc-row p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.svc-row:nth-child(1), .svc-row:nth-child(2) { grid-column: span 2; background: var(--night); color: #fff; padding: 30px 28px 32px; }
.svc-row:nth-child(1) h3, .svc-row:nth-child(2) h3 { font-size: clamp(22px, 2.4vw, 28px); }
.svc-row:nth-child(1) p, .svc-row:nth-child(2) p { color: #d4d4d8; font-size: 17px; max-width: 46ch; }
/* the last two close the grid as wide tiles */
.svc-row:nth-child(7), .svc-row:nth-child(8) { grid-column: span 2; }
@media (max-width: 960px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .svc-row:nth-child(7), .svc-row:nth-child(8) { grid-column: auto; } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } .svc-row:nth-child(1), .svc-row:nth-child(2) { grid-column: auto; } }

/* Requirements */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 920px; }
.facts > div { border-top: 3px solid var(--ink); padding: 16px 0 26px; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.facts dd { font-size: 18px; font-weight: 600; margin-top: 4px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 22px; min-height: 44px;
  font-weight: 600; font-size: clamp(18px, 2.2vw, 21px); letter-spacing: -0.02em;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--signal); font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); max-width: 64ch; padding-bottom: 22px; margin-top: -6px; }
.faq details p + p { margin-top: 0; }
.faq a { text-decoration-color: var(--signal); text-underline-offset: 3px; }

/* Support (black band) */
.contact { background: var(--night); color: #fff; border-top: none; }
.contact .eyebrow { color: var(--night-muted); }
.contact .section-head h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lede { color: #d4d4d8; max-width: 44ch; font-size: 18px; }
.contact-lede + .contact-lede { margin-top: 14px; }
.contact-direct a { color: #fff; text-decoration: none; display: block; }
.contact-direct .row { padding-block: 16px; border-top: 1px solid var(--night-line); }
.contact-direct .k { font-size: 13px; font-weight: 600; color: var(--night-muted); }
.contact-direct .v { font-size: 19px; font-weight: 600; margin-top: 2px; }
.contact-direct a:hover .v { color: var(--signal); }

/* ---------- Policy article ---------- */
.policy { padding-block: clamp(56px, 9vw, 104px); }
.policy article { max-width: 72ch; }
.policy h1 {
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(40px, 6vw, 72px); margin-top: 14px;
}
.policy .effective { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 18px; }
.policy .summary {
  margin-top: 36px; background: var(--bg2); border-radius: 16px; padding: 22px 24px;
  font-size: clamp(17px, 2vw, 20px); color: #2b2c30;
}
.policy h2 {
  font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(24px, 3vw, 32px); margin-top: 56px; padding-top: 24px; border-top: 3px solid var(--ink);
}
.policy h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin-top: 28px; }
.policy p, .policy li { color: #2b2c30; }
.policy p { margin-top: 12px; }
.policy ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.policy a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.policy a:hover { color: var(--signal); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--night-muted); padding-block: 40px 48px; border-top: 1px solid var(--night-line); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-legal { font-size: 14px; max-width: 50ch; }
.foot-legal strong { color: #fff; font-weight: 600; }
.foot-meta { font-size: 14px; text-align: right; line-height: 1.8; }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--signal); }
@media (max-width: 560px) { .foot-meta { text-align: left; } }

/* ---------- Headings in Katagami Serif, text in Katagami Sans ---------- */
h1, h2, h3:not(.st-screen h3) { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; }
.hero h1, .policy h1 { letter-spacing: -0.035em; }
