/* SecretBar: the page is a redacted document. Paper, ink, one correction-pen accent. */
:root {
  --paper: #f3efe6;
  --sheet: #faf8f2;
  --ink: #171614;
  --muted: #6d675c;
  --rule: #d8d0bf;
  --accent: #c2410c;
  --serif: "Instrument Serif", "PT Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --w: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151412; --sheet: #1c1b18; --ink: #ebe6da; --muted: #9c968a; --rule: #34302a; --accent: #f97316; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { font: 400 0.88em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 0.08em 0.32em; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--ink); color: var(--paper); }

/* Redaction bar. The text is there for layout and screen readers; the eye sees ink. */
.rx { position: relative; display: inline-block; line-height: 0.82; color: transparent; background: var(--ink); border-radius: 2px; padding: 0 0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; user-select: none; }
.rx-hero { cursor: help; outline: none; }
.rx-hero::after { content: attr(data-hint); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  font: 500 13px/1 var(--mono); letter-spacing: 0.02em; color: var(--paper); background: var(--accent); padding: 8px 10px; border-radius: 3px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.rx-hero:hover::after, .rx-hero:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.js .rx-hero { background: linear-gradient(var(--ink), var(--ink)) no-repeat left / 0% 100%; transition: background-size 0.7s cubic-bezier(.7,0,.2,1) 0.35s; }
.js .rx-hero.on { background-size: 100% 100%; }
.js .rx-hero:not(.on) { color: var(--ink); }
.rx-mark { margin-left: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; max-width: var(--w); margin: 0 auto;
  padding: 18px 24px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.mark { text-decoration: none; font: 400 28px/1 var(--serif); letter-spacing: -0.01em; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }
.top-end { display: flex; align-items: center; gap: 16px; }
.lang select { appearance: none; -webkit-appearance: none; font: 400 14px var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--rule); border-radius: 3px; padding: 5px 10px; cursor: pointer; }
.lang select:hover { color: var(--ink); border-color: var(--ink); }
.gh { font-size: 15px; text-decoration: none; }

main, .foot { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.kicker { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.display { font: 400 clamp(44px, 7.6vw, 104px)/0.98 var(--serif); letter-spacing: -0.015em; margin: 0 0 56px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.lede { font-size: 20px; line-height: 1.55; margin: 0 0 28px; max-width: 34ch; }
.arrow { display: inline-block; margin-top: 22px; font: 500 15px var(--mono); text-decoration: none; border-bottom: 1px solid var(--ink); }

.cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ink); border-radius: 3px;
  padding: 12px 12px 12px 16px; background: var(--sheet); max-width: 100%; }
.cmd code { background: none; padding: 0; font-size: 15px; overflow-x: auto; white-space: nowrap; }
.pr { color: var(--accent); }
.copy { flex: none; font: 16px/1 var(--mono); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.copy:hover, .copy.done { color: var(--accent); }

/* The transcript */
.doc { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(0,0,0,.35); }
.doc-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule);
  font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc-body { padding: 18px 18px 6px; font: 400 14px/1.75 var(--mono); overflow-x: auto; }
.line { margin: 0; white-space: pre; }
.line.out { color: var(--muted); }
.line.agent { white-space: normal; font-family: var(--sans); font-size: 15px; margin-bottom: 8px; }
.who { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.doc sup { color: var(--accent); font: 600 11px var(--mono); margin-left: 2px; }
.doc b { color: var(--ink); }
.notes { margin: 0; padding: 12px 18px 16px 40px; border-top: 1px dashed var(--rule); font-size: 14px; line-height: 1.5; color: var(--muted); }
.notes li { margin: 4px 0; }
.notes li::marker { color: var(--accent); font: 600 12px var(--mono); }

/* Sections */
.sec { padding: 96px 0 24px; border-top: 1px solid var(--rule); margin-top: 72px; }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.display2 { font: 400 clamp(36px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -0.01em; margin: 0; }
.sub { font-size: 18px; color: var(--muted); margin: 16px 0 0; max-width: 56ch; }

.clauses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.clauses li { border-top: 1px solid var(--ink); padding: 18px 0 34px; }
.clauses .no { font: 500 13px var(--mono); color: var(--accent); }
.clauses h3 { font: 400 32px/1.1 var(--serif); margin: 8px 0 10px; }
.clauses p { margin: 0; font-size: 16px; }

.appendix { margin-top: 28px; border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; }
.appendix h3 { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.appendix ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.appendix li { break-inside: avoid; margin: 0 0 14px; font-size: 15.5px; }
.appendix b { font-weight: 600; }

.app-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.fig { margin: 0; }
.fig img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 6px; }
.fig figcaption { font: 400 13px var(--mono); color: var(--muted); margin-top: 10px; }
.app-text p { margin: 0 0 18px; font-size: 18px; }
.dash { list-style: none; margin: 0; padding: 0; }
.dash li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.dash li::before { content: "— "; color: var(--accent); }

.table-wrap { overflow-x: auto; }
.threats { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.threats th, .threats td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: 1px solid var(--rule); }
.threats thead th { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); }
.threats tbody th { font: 400 22px/1.2 var(--serif); width: 28%; }
.threats td:last-child { color: var(--muted); }

.faq { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq div { border-top: 1px solid var(--rule); padding: 18px 0 22px; }
.faq dt { font: 400 24px/1.2 var(--serif); margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: 820px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; margin-bottom: 22px; }
.steps li::before { content: counter(s); grid-row: span 2; font: 400 34px/1 var(--serif); color: var(--accent); }
.steps .note { font-size: 14.5px; color: var(--muted); }
.sign { display: flex; align-items: flex-end; gap: 14px; max-width: 520px; margin: 48px 0 10px 58px; }
.sign-line { flex: 1; border-bottom: 1px solid var(--ink); height: 28px; position: relative; }
.sign-line::before { content: "×"; position: absolute; left: 0; bottom: 2px; font: 400 22px var(--serif); }
.sign-label { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fine { margin: 26px 0 0 58px; font-size: 14px; color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; margin-top: 72px;
  border-top: 1px solid var(--rule); font: 400 13px var(--mono); color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: var(--paper);
  font: 500 13px var(--mono); padding: 10px 14px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .links { display: none; }
  .top-end { margin-left: auto; }
  .hero-grid, .app-grid { grid-template-columns: 1fr; gap: 36px; }
  .clauses { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cmd code { font-size: 12.5px; }
  .doc-head { flex-direction: column; gap: 2px; }
  .top { padding: 14px 16px; gap: 12px; }
  main, .foot { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .display { margin-bottom: 36px; }
  .clauses { grid-template-columns: 1fr; }
  .appendix ul { columns: 1; }
  .threats thead { display: none; }
  .threats tr { display: block; border-top: 1px solid var(--rule); padding: 12px 0; }
  .threats th, .threats td { display: block; border: 0; padding: 4px 0; width: auto; }
  .sign, .fine { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rx-hero { transition: none; }
  html { scroll-behavior: auto; }
}
.hero-grid > *, .app-grid > * { min-width: 0; }
