/* MedFilesNow public site — brand v2 "Archive" theme, institutional layout */
@font-face { font-family: 'Instrument Sans'; src: url('../brand/fonts/InstrumentSans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../brand/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../brand/fonts/IBMPlexMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* Brand v2 "Archive" tokens (brand-v2/final/tokens.css) */
  --paper-2: #F0EEE9; --ink-2: #5C5D5B; --ink-3: #686761; --line: #DEDBD4; --line-2: #ABA89F; --ink-bg: #111213;
  --ink: #111213;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --g1: #DEDBD4;   /* hairline */
  --g2: #DEDBD4;   /* rule */
  --g3: #ABA89F;   /* strong rule */
  --muted: #5C5D5B;
  --muted-dark: #ABA89F; /* secondary text on ink */
  --green: #111213; /* no accent color in v2 */
  --err: #111213; /* errors stay ink + "ERROR /" word; no state color on the public site */
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wrap: 1328px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h3 { font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-ink :focus-visible, .band-ink :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; font-family: var(--mono); font-size: 13px; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.band-ink .label { color: var(--muted-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }
.head-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: var(--r); padding: 8px 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--ink); background: var(--paper); }
.mobile-nav a { display: block; padding: 14px var(--gut); border-bottom: 1px solid var(--g2); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.mobile-nav.open { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .24s cubic-bezier(.22,.61,.36,1), color .24s cubic-bezier(.22,.61,.36,1);
}
.btn:hover { background: #2A2B2C; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: var(--paper); }
.btn.ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost-light:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arr { font-family: var(--mono); font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }

/* ---------- Sections ---------- */
section { border-bottom: 1px solid var(--ink); }
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 40px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); max-width: 16ch; }
.sec-head p.lede { grid-column: 2; max-width: 60ch; color: var(--muted); font-size: 18px; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .sec-head p.lede { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.hero-copy { padding: clamp(40px, 6vw, 88px) clamp(20px, 3.5vw, 48px); border-right: 1px solid var(--ink); }
.hero h1 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -0.035em; line-height: .95; margin: 22px 0 28px; }
.hero h1 span { display: block; }
.hero .sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 44px 0 0; border-top: 1px solid var(--ink); }
.hero-meta dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-size: 15px; line-height: 1.35; }
.hero-meta dd b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hero-meta div { padding: 14px 12px 0 0; }
.hero-meta div + div { padding-left: 12px; border-left: 1px solid var(--g2); }
.hero-meta b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.hero-meta span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.sheet { background: var(--white); display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sheet-sub { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.sheet-sub div { padding: 14px 20px; }
.sheet-sub div + div { border-left: 1px solid var(--g2); }
.sheet-sub b { display: block; font-size: 15px; font-weight: 600; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 13px 20px; border-bottom: 1px solid var(--g1); vertical-align: top; }
.ledger td:last-child, .ledger th:last-child { text-align: right; }
.ledger .st { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); margin-right: 8px; vertical-align: 1px; }
.dot.on { background: var(--green); border-color: var(--green); }

.dot.full { background: var(--ink); }
.events { list-style: none; border-top: 1px solid var(--ink); margin-top: 24px; }
.events-h { padding: 10px 20px; border-bottom: 1px solid var(--g1); }
.events li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--g1); font-size: 14px; }
.events time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
@media (max-width: 560px) { .events li { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; } .events-h { padding: 10px 14px; } }
.sheet-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.step { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 24px 22px 28px; background: var(--paper); min-height: 260px; display: flex; flex-direction: column; }
.step .n { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 40px; }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }
.step .who { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.split > div { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 32px clamp(20px, 3vw, 40px) 36px; }
.split h3 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 14px; }
.split p.intro { color: var(--muted); max-width: 46ch; margin-bottom: 24px; }
.ticks { list-style: none; border-top: 1px solid var(--g2); margin-bottom: 28px; }
.ticks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--g2); position: relative; font-size: 16px; }
.ticks li::before { content: "—"; position: absolute; left: 0; font-family: var(--mono); }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid currentColor; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--g2); }
.band-ink .spec th, .band-ink .spec td { border-bottom-color: #2A2B2C; }
.spec th { width: 34%; font-weight: 600; font-size: 18px; }
.spec th .mono { display: block; font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.band-ink .spec th .mono { color: var(--muted-dark); }
.spec td { color: inherit; }
.band-ink .spec td { color: #DEDBD4; }

/* ---------- Pricing ---------- */
.price-wrap { border: 1px solid var(--ink); background: var(--white); overflow-x: auto; }
.price { width: 100%; border-collapse: collapse; min-width: 560px; }
.price caption { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.price th, .price td { padding: 18px 20px; border-bottom: 1px solid var(--g1); text-align: left; }
.price thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.price td.num, .price th.num { text-align: right; font-variant-numeric: tabular-nums; }
.price td.num b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.price tbody tr:last-child td, .price tbody tr:last-child th { border-bottom: 0; }
.price tr.pre { background: var(--paper); }
.price tbody th { font-weight: 600; font-size: 17px; }
.price .tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--ink); padding: 2px 6px; margin-left: 8px; white-space: nowrap; }
.price-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--ink); }
.price-notes p { padding: 16px 20px 0 0; font-size: 15px; color: var(--muted); }
.price-notes p + p { padding-left: 20px; border-left: 1px solid var(--g2); }
.price-notes b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 24px; gap: 12px; align-items: baseline; padding: 20px 0; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.faq summary .pm { font-family: var(--mono); font-weight: 400; text-align: right; }
.faq details[open] .pm::before { content: "−"; }
.faq details:not([open]) .pm::before { content: "+"; }
.faq .a { padding: 0 36px 24px 68px; color: var(--muted); max-width: 80ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--white); border-left: 1px solid var(--white); }
.contact > div { border-right: 1px solid var(--white); border-bottom: 1px solid var(--white); padding: 28px clamp(20px, 3vw, 36px); }
.contact a.mail { display: inline-block; font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; word-break: break-all; }
.contact p { color: var(--muted-dark); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0 32px; border-top: 1px solid #2A2B2C; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid img { height: 28px; width: auto; margin-bottom: 16px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 12px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; font-size: 15px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { color: var(--muted-dark); font-size: 14px; max-width: 34ch; }
.foot-base { margin-top: 36px; padding-top: 16px; border-top: 1px solid #2A2B2C; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- App shell (sign up / sign in) ---------- */
.app-main { padding: clamp(32px, 5vw, 64px) 0 80px; }
.app-grid { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--ink); background: var(--white); }
.app-side { border-right: 1px solid var(--ink); padding: 24px; background: var(--paper); }
.app-side h1 { font-size: 30px; margin: 12px 0 12px; }
.app-side p { font-size: 15px; color: var(--muted); }
.stepper { list-style: none; margin-top: 28px; border-top: 1px solid var(--ink); counter-reset: s; }
.stepper li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--g2); font-size: 15px; color: var(--muted); }
.stepper li .k { font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper li[aria-current="step"] .k::before { content: "■ "; }
.stepper li.done { color: var(--ink); }
.stepper li.done .k::before { content: "✓ "; }
.app-body { padding: clamp(20px, 4vw, 48px); min-width: 0; }
.app-body h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 10px 0 10px; }
.app-body .lede { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }
.proto {
  display: flex; gap: 10px; align-items: flex-start; border: 1px dashed var(--ink); padding: 10px 12px;
  font-size: 13px; line-height: 1.45; margin-top: 24px; background: var(--white);
}
.proto .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 1px 5px; white-space: nowrap; }
.proto code { font-family: var(--mono); font-size: 12px; background: var(--paper); padding: 1px 4px; }

/* Forms */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field > label, .legend { font-weight: 600; font-size: 15px; }
.field .opt { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.hint { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--white); border: 1px solid var(--ink);
  border-radius: var(--r); font-size: 16px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.input[aria-invalid="true"] { border-width: 2px; border-style: solid; background: #FFFFFF; }
.err { font-size: 13px; font-weight: 600; display: none; }
.err::before { content: "ERROR / "; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.err.show { display: block; }
.pw-wrap { display: flex; }
.pw-wrap .input { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pw-wrap button { flex: 0 0 auto; min-width: 72px; border: 1px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-radius: 0 var(--r) var(--r) 0; }
.pw-wrap button:hover { background: var(--ink); color: var(--white); }
.rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 13px; margin-top: 4px; }
.rules li { color: var(--muted); }
.rules li::before { content: "○ "; font-family: var(--mono); }
.rules li.ok { color: var(--ink); }
.rules li.ok::before { content: "● "; color: var(--ink); }

.choice { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.choice label { display: block; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 22px; cursor: pointer; position: relative; min-height: 170px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; }
.choice input:checked + .box::after { content: ""; position: absolute; inset: 4px; background: var(--ink); border-radius: 50%; }
.choice input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice label:has(input:checked) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.choice b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 14px 0 8px; }
.choice span.d { font-size: 15px; color: var(--muted); display: block; max-width: 34ch; }

.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--g2); border-left: 1px solid var(--g2); }
.checks label { display: flex; gap: 8px; align-items: center; padding: 10px 10px; border-right: 1px solid var(--g2); border-bottom: 1px solid var(--g2); font-size: 14px; cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checkline input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink); flex-wrap: wrap; }
.actions .right { display: flex; gap: 10px; margin-left: auto; }

/* Combobox */
.combo-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin-top: -1px; list-style: none; background: var(--white); border: 1px solid var(--ink); max-height: 260px; overflow-y: auto; }
.combo-list[hidden] { display: none; }
.combo-list li { padding: 10px 12px; border-bottom: 1px solid var(--g1); cursor: pointer; font-size: 15px; }
.combo-list li small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--ink); color: var(--white); }
.combo-list li[aria-selected="true"] small, .combo-list li:hover small { color: var(--muted-dark); }
.combo-list li.none { cursor: default; color: var(--muted); }
.combo-list li.none:hover { background: var(--white); color: var(--muted); }

/* Review */
.review { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); margin-bottom: 24px; }
.review caption { text-align: left; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 18px 0 8px; display: flex; justify-content: space-between; caption-side: top; }
.review th, .review td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--g1); font-size: 15px; }
.review th { width: 38%; font-weight: 500; color: var(--muted); }
.review td { word-break: break-word; }
.review-sec { margin-bottom: 8px; }
.review-sec .rh { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 8px; border-bottom: 1px solid var(--ink); }

/* Code entry */
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: .4em; text-align: center; max-width: 280px; }
.demo-code { font-family: var(--mono); font-size: 13px; }
.demo-code b { font-size: 16px; letter-spacing: .2em; }

.notice { border: 1px solid var(--ink); padding: 14px 16px; font-size: 15px; margin-bottom: 20px; background: var(--paper); }
.notice.alert { border-width: 2px; background: var(--white); }
.notice .mono { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.done-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.next-list { list-style: none; border-top: 1px solid var(--ink); margin: 24px 0 28px; counter-reset: n; }
.next-list li { padding: 14px 0 14px 44px; border-bottom: 1px solid var(--g2); position: relative; counter-increment: n; }
.next-list li::before { content: "0" counter(n); position: absolute; left: 0; font-family: var(--mono); font-size: 13px; top: 16px; }

/* sign-in */
.auth { max-width: 520px; margin: 0 auto; border: 1px solid var(--ink); background: var(--white); }
.auth-head { padding: 16px 24px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-body { padding: clamp(20px, 4vw, 36px); }
.auth-body h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.auth-body .lede { color: var(--muted); margin-bottom: 24px; }
.auth-body .field + .field { margin-top: 18px; }
.auth-foot { padding: 14px 24px; border-top: 1px solid var(--ink); font-size: 14px; background: var(--paper); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.attempts { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); margin: 14px 0 18px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--ink); }
.legal p, .legal li { color: #2A2B2C; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.draft { border: 2px solid var(--ink); padding: 12px 16px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 24px; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .head-cta { margin-left: 0; }
  .site-header .wrap { gap: 12px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p.lede { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--ink); }
  .stepper { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 12px; }
  .checks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .head-cta .btn.ghost { display: none; }
  .split, .contact, .choice { grid-template-columns: 1fr; }
  .price-notes { grid-template-columns: 1fr; }
  .price-notes p + p { padding-left: 0; border-left: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .spec th { width: auto; display: block; padding-bottom: 4px; border-bottom: 0; }
  .spec td { display: block; padding-top: 0; }
  .spec tr { display: block; }
  .faq summary { grid-template-columns: 36px 1fr 20px; font-size: 17px; }
  .faq .a { padding-left: 48px; padding-right: 0; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step .n { margin-bottom: 20px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--g2); }
  .hero-meta div { padding: 12px 0; }
  .ledger th, .ledger td { padding-left: 14px; padding-right: 14px; }
  .sheet-head, .sheet-sub div, .sheet-foot { padding-left: 14px; padding-right: 14px; }
  .brand img { height: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .actions .right { width: 100%; }
  .actions .right .btn { flex: 1; }
  .price { min-width: 0; }
  .price thead { display: none; }
  .price tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--g1); }
  .price th, .price td { border: 0; padding: 12px 16px; }
  .price td.desc { grid-column: 1 / -1; padding-top: 0; color: var(--muted); font-size: 14px; }
  .price td.total { grid-column: 1 / -1; padding-top: 0; text-align: left !important; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Agent application: document viewer ---------- */
.doc { border: 1px solid var(--ink); background: var(--paper); height: 420px; overflow-y: auto; padding: 20px clamp(14px, 3vw, 28px); font-size: 14px; line-height: 1.6; }
.doc h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.doc h4, .doc h5, .doc h6 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; padding-top: 10px; border-top: 1px solid var(--g2); letter-spacing: 0; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 10px; }
.doc blockquote { margin: 0 0 14px; border: 1px dashed var(--ink); padding: 10px 12px; background: var(--white); }
.doc blockquote p { margin: 0; }
.doc code { font-family: var(--mono); font-size: 12px; }
.doc hr { border: 0; border-top: 1px solid var(--ink); margin: 18px 0; }
.doc-table { overflow-x: auto; margin: 0 0 14px; }
.doc-table table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--white); }
.doc-table th, .doc-table td { border: 1px solid var(--g2); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-table th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.doc-end { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-align: center; color: var(--muted); margin-top: 24px !important; }
.struck { text-decoration: line-through; color: var(--muted); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.checks input[type=radio] { accent-color: var(--ink); }
.review td.mono, .review td code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
@media (max-width: 720px) { .doc { height: 360px; } }


/* ================= Review fixes (Oct 20) ================= */
main:focus { outline: none; }
.logo-mark { display: none; height: 32px; width: 32px; }
.show-sm { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.textlink { display: inline-flex; align-items: center; min-height: 24px; }
.btn.block { width: 100%; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 24px; }
.foot-legal { display: inline-flex; gap: 20px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 24px; }
.choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -5px; }
.checks label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -3px; }
.checkline:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* hero sheet */
.sheet-cov { padding: 12px 20px; border-top: 1px solid var(--ink); font-size: 14px; }
.sheet-cov .label { display: block; margin-bottom: 2px; }

/* process table */
.spec.proc thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); }
.spec.proc th[scope=row] { width: 24%; }
.spec.proc td:last-child { width: 28%; font-weight: 600; }

/* audience cells: tighter */
.split h3 { margin: 12px 0 18px; }

/* pricing: full-width head */
.head-wide { border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-items: end; }
.head-wide .label { grid-column: 1 / -1; }
.head-wide h2 { font-size: clamp(36px, 5.2vw, 72px); letter-spacing: -0.03em; }
.head-wide .lede { color: var(--muted); font-size: 18px; max-width: 52ch; }
.price-foot { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* security facts grid */
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3A3B3C; border-left: 1px solid #3A3B3C; }
.facts li { border-right: 1px solid #3A3B3C; border-bottom: 1px solid #3A3B3C; padding: 20px; font-size: 15px; color: #DEDBD4; }
.facts b { display: block; color: var(--white); font-size: 17px; margin-bottom: 6px; }

/* FAQ with sticky left rail */
.faq-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.faq-rail { position: sticky; top: 96px; }
.faq-rail h2 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 14px; }
.faq-rail .lede { color: var(--muted); font-size: 15px; }

/* contact */
.contact-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 40px; align-items: start; }
.contact-row h2 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 12px; }
.contact-row .lede { color: var(--muted-dark); }
.contact > div { padding: 22px clamp(18px, 2.5vw, 28px); }
.contact a.mail { font-size: clamp(20px, 2.2vw, 28px); margin: 10px 0 0; }

/* stepper collapse helpers */
.step-line { display: none; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.progress { display: none; height: 3px; background: var(--g1); margin-top: 10px; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .24s cubic-bezier(.22,.61,.36,1); }
.proto-slim { display: none; }

/* agreement tokens */
.doc .fill { background: var(--white); border-bottom: 1px solid var(--ink); padding: 0 3px; font-weight: 600; }
.doc .fill:not(.filled) { color: var(--muted); font-weight: 400; font-style: italic; }
.doc .tbc { background: #F0EEE9; color: #5C5D5B; padding: 0 4px; font-family: var(--mono); font-size: 12px; white-space: normal; }
.doc .cbx { font-size: 15px; }

@media (max-width: 1080px) {
  .head-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
  .faq-rail { position: static; }
  .contact-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .head-cta .btn.ghost { display: inline-flex; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .head-wide { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .spec.proc thead { display: none; }
  .spec.proc tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--g2); }
  .spec.proc th[scope=row], .spec.proc td { display: block; width: auto !important; border: 0; padding: 2px 0; }
  .spec.proc td:last-child { margin-top: 6px; font-size: 14px; }
  .spec.proc td:last-child::before { content: "You get: "; font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  /* collapsed steppers: first field above the fold */
  .app-main { padding-top: 16px; }
  .app-side { padding: 14px 16px; }
  .app-side h1 { font-size: 20px; margin: 4px 0 0; }
  .app-side > .label, .app-side .side-intro, .app-side .stepper, .app-side .proto { display: none; }
  .step-line, .progress { display: block; }
  .app-body { padding: 18px 16px 24px; }
  .app-body h2 { font-size: 26px; margin-top: 4px; }
  .app-body .lede { margin-bottom: 18px; }
  .proto-slim { display: flex; margin-top: 24px; }
  .choice label { min-height: 0; padding: 16px 18px; }
  .choice b { font-size: 20px; margin: 6px 0 4px; }
  .linkbtn, .textlink { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-grid li a, .foot-legal a { min-height: 44px; }
  .foot-grid li { margin-bottom: 0; }
  .nav a { min-height: 44px; }
}
@media (max-width: 560px) {
  .logo-full { display: none; }
  .logo-mark { display: block; }
  .site-header .wrap { gap: 8px; }
  .head-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; min-height: 36px; }
  .hero-meta dd b { display: inline; font-size: 22px; margin-right: 6px; }
}
@media (max-width: 560px) {
  /* compact pricing rows: quantity + price on one line, total beneath */
  .price tr { grid-template-columns: 1fr auto; grid-template-areas: "q p" "t t"; align-items: baseline; }
  .price tbody th { grid-area: q; padding: 14px 0 2px 16px; font-size: 16px; }
  .price td.num:not(.total) { grid-area: p; padding: 14px 16px 2px 8px; }
  .price td.num b { font-size: 22px; }
  .price td.total { grid-area: t; padding: 0 16px 12px; color: var(--muted); }
  .price td.desc { display: none; }
  .price tr:first-child td.total { display: none; }
  .price tr:first-child th { padding-bottom: 14px; }
  /* hero sheet: drop the event log on phones */
  .hero .events { display: none; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 560px) { .hero h1 span { display: inline; } .hero h1 span::after { content: " "; } .hero h1 { font-size: 34px; } }
.coverage { margin-top: 18px; font-size: 15px; max-width: 54ch; }
.coverage .label { display: block; margin-bottom: 4px; }
.mail-addr { font-style: normal; font-size: 17px; line-height: 1.45; margin-top: 10px; color: inherit; }
.foot-addr { color: var(--muted-dark); font-size: 14px; line-height: 1.5; margin-top: 6px; }
.contact { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }
.contact a.mail { font-size: clamp(17px, 1.5vw, 21px); word-break: normal; overflow-wrap: normal; white-space: nowrap; }
.contact-row { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 1080px) { .contact-row { grid-template-columns: 1fr; } }
.coverage + .cta-row { margin-top: 24px; }
@media (max-width: 560px) {
  .sec { padding-top: 44px; padding-bottom: 44px; }
  .split > div { padding: 24px 18px; }
  .split .ticks li { padding: 8px 0; }
  .facts li { padding: 14px 16px; }
  .head-wide { margin-bottom: 22px; }
}
button.textlink { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: not-allowed; }

/* ================= Brand v2: Archive theme + institutional graphics scheme ================= */
body { font-size: 17px; line-height: 1.6; }
.label, .eyebrow { font-family: var(--f-mono, var(--mono)); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.band-2 { background: var(--paper-2); }
.lede { color: var(--ink-2); font-size: clamp(1.1rem, 1rem + .35vw, 1.35rem); line-height: 1.5; }
/* masthead */
.site-header.masthead { background: var(--paper); border-bottom: 0; }
.masthead .wrap { height: 80px; gap: 28px; }
.masthead .brand img.logo-full { height: 28px; width: auto; }
.masthead .nav { gap: 28px; }
.masthead .nav a { font-family: var(--font); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.masthead .nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.masthead .head-cta { align-items: center; gap: 20px; }
.textaction { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 6px; }
.masthead .btn.sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.mobile-nav { border-top: 1px solid var(--line); }
.mobile-nav a { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 16px; }
.menu-btn { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 15px; min-height: 44px; }
/* buttons + links */
.btn { border-radius: 0; font-weight: 500; font-size: 16px; }
.btn.ghost { border: 1px solid var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding-bottom: 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); font-size: 15px; }
.arrow-link:hover { border-bottom-width: 2px; padding-bottom: 1px; }
.arrow-link.big { font-size: clamp(19px, 1.6vw, 24px); }
/* opening register + thesis */
.opening { padding-top: 12px; }
.register { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.register span:nth-child(2) { text-align: center; }
.register span:nth-child(3) { text-align: right; }
.thesis { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px 64px; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); align-items: start; }
.thesis h1 { font-size: clamp(2.75rem, 5.6vw, 5.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; max-width: 12ch; }
.thesis-side { padding-top: 10px; display: grid; gap: 16px; }
.thesis-side .cat { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.thesis-side p { color: var(--ink-2); font-size: 16px; }
.thesis-side .cta-row { margin-top: 8px; }
.thesis-side .links { display: flex; gap: 24px; flex-wrap: wrap; }
/* plates */
.plate { margin: 0; }
.plate img { width: 100%; height: auto; display: block; background: var(--paper-2); }
.opening .plate img { aspect-ratio: 16 / 7; object-fit: cover; }
.plate figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px var(--gut) 0; font-size: 13px; color: var(--ink-3); }
.plate.inset figcaption { padding: 10px 0 0; }
.plate.inset img { aspect-ratio: 3 / 2; object-fit: cover; }
.plate.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.opening .plate { padding-bottom: 8px; }
/* two-column sections + ledgers */
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.col-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.06; margin: 16px 0 18px; max-width: 14ch; }
.col-head .lede { max-width: 40ch; }
.col-head.wide { margin-bottom: 40px; }
.col-head.wide h2 { max-width: 22ch; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: end; }
.split-head .eyebrow { grid-column: 1 / -1; }
.ledger-list { list-style: none; border-top: 1px solid var(--ink); }
.ledger-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ledger-list .n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 6px; }
.ledger-list h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.75rem); font-weight: 500; margin-bottom: 6px; }
.ledger-list p { color: var(--ink-2); max-width: 56ch; }
/* sample sheet on paper-2 */
#deliverables .sheet { margin-top: 32px; border: 1px solid var(--ink); }
.dot.on { background: var(--ink); border-color: var(--ink); }
/* audiences */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 4vw, 64px); }
.audiences h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.75rem); font-weight: 500; margin: 28px 0 16px; max-width: 24ch; }
.audiences .ticks { border-top-color: var(--line); }
.audiences .ticks li { border-bottom-color: var(--line); }
/* pricing on paper-2 */
#pricing .price-wrap { border-color: var(--ink); }
.price tr.pre { background: var(--paper-2); }
.price-foot { color: var(--ink-2); max-width: 90ch; }
/* faq */
.faq { border-top-color: var(--ink); }
.faq details { border-bottom-color: var(--line-2); }
.faq summary { font-weight: 500; }
.faq .a { color: var(--ink-2); }
/* contact */
.contact-list { list-style: none; margin: 32px 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list address { font-style: normal; font-size: 17px; }
/* footer pattern (paper) */
.site-footer { background: var(--paper); color: var(--ink); border-top: 0; padding: 0 0 32px; }
.site-footer .wrap { border-top: 1px solid var(--ink); }
.foot-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.foot-top img { height: 26px; width: auto; }
.foot-tag { font-size: 18px; text-align: center; }
.foot-top .textlink { justify-self: end; font-size: 14px; text-decoration: none; }
.site-footer .foot-grid { grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
.site-footer .foot-grid h4 { color: var(--ink-3); }
.site-footer .foot-addr { color: var(--ink-2); }
.site-footer .foot-base { margin-top: 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-family: var(--font); text-transform: none; letter-spacing: 0; }
.site-footer .foot-base a { text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--ink); }
/* app shells (sign-up, apply, sign-in) inherit tokens; soften heavy black frames to ink 1px */
.app-side { background: var(--paper-2); }
.field input, .field select, .field textarea { border-color: var(--line-2); border-radius: 0; background: var(--white); }
.proto { border-color: var(--line-2); }

@media (max-width: 1080px) {
  .masthead .nav { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .thesis { grid-template-columns: 1fr; }
  .thesis h1 { max-width: 14ch; }
  .split-head { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .register { grid-template-columns: 1fr; gap: 6px; }
  .register span:nth-child(2), .register span:nth-child(3) { text-align: left; }
  .register span:nth-child(2) { display: none; }
  .masthead .wrap { height: 64px; gap: 12px; }
  .masthead .head-cta { gap: 12px; }
  .opening .plate img { aspect-ratio: 4 / 3; }
  .plate figcaption { flex-direction: column; gap: 2px; font-size: 12px; }
  .foot-top { grid-template-columns: 1fr; justify-items: start; }
  .foot-tag { text-align: left; }
  .foot-top .textlink { justify-self: start; }
  .ledger-list li { grid-template-columns: 40px 1fr; padding: 18px 0; }
  .site-footer .foot-base { flex-direction: column; }
}
@media (max-width: 560px) {
  .thesis h1 { font-size: 2.5rem; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .masthead .btn.sm { padding: 8px 14px; }
}
.textaction { gap: 5px; }
@media (max-width: 560px) { #deliverables .events { display: none; } }
.who-line { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3) !important; }
@media (max-width: 720px) { .contact-v2 .plate { display: none; } }
@media (max-width: 560px) { #deliverables .sheet { display: none; } .ledger-list p { font-size: 16px; } .sec { padding-top: 48px; padding-bottom: 48px; } }

/* ===== v2 UX re-check fixes ===== */
:root { --control: #686761; } /* brand-v2 tokens.css: input, checkbox, select borders (5.4:1) */
.field input, .field select, .field textarea, .combo input { border: 1px solid var(--control); }
.choice label { border-color: var(--control); }
.choice .box { border-color: var(--control); }
.checks input, .checkline input { accent-color: var(--ink); outline: 1px solid var(--control); outline-offset: -1px; }
.checks input:focus-visible, .checkline input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* disabled portal controls: legible, clearly inactive */
.btn[disabled], button.btn:disabled { opacity: 1; background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--control); cursor: not-allowed; }
.btn[disabled]:hover { background: var(--paper-2); color: var(--ink-3); }
.disabled-note { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* 44px link targets in contact + footer */
.contact-list .arrow-link, .faq-rail .arrow-link, .col-head .lede .arrow-link { min-height: 44px; }
.site-footer .foot-grid li a, .foot-base a, .foot-top .textlink { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .foot-grid li { margin-bottom: 0; }
/* clients: stacked audiences */
.audiences.stacked { grid-template-columns: 1fr; gap: 40px; }
.audiences.stacked h3 { margin-top: 0; }
.audiences.stacked article + article { border-top: 1px solid var(--ink); padding-top: 32px; }
#clients .plate { margin-top: 32px; }
.opening .plate img { aspect-ratio: 16 / 6; }
.sec { padding: clamp(56px, 6.5vw, 96px) 0; }
.ledger-list li { padding: 20px 0; }
/* mobile header: full wordmark + Menu; actions move to the top of the menu */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .desk-only { display: none; }
  .masthead .head-cta { display: none; }
  .masthead .menu-btn { margin-left: auto; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px var(--gut); border-bottom: 1px solid var(--line); }
  .mobile-cta .btn { min-height: 48px; justify-content: center; }
  .mobile-nav .mobile-cta a { border-bottom: 1px solid var(--ink); padding: 10px 12px; }
  .opening .plate img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .logo-full { display: block !important; height: 24px !important; }
  .logo-mark { display: none !important; }
}
.sec { padding: clamp(48px, 5.5vw, 80px) 0; }
.contact-v2 .plate.tall img { aspect-ratio: 1 / 1; }
.thesis { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 72px); }
.col-head h2 { margin: 12px 0 14px; }
@media (max-width: 720px) {
  .thesis-side .detail { display: none; }
  .ledger-list li { padding: 16px 0; }
  .contact-list li { padding: 10px 0; }
  .faq summary { padding-top: 14px; padding-bottom: 14px; }
}
.opening .plate img { aspect-ratio: 16 / 5; }
#pricing .split-head { margin-bottom: 28px; }
#pricing .split-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.contact-list address { color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) {
  .opening .plate img { aspect-ratio: 4 / 3; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 8px 16px; padding: 20px 0; }
  .site-footer .foot-grid h4 { margin-bottom: 0; }
  .foot-top { padding: 20px 0; gap: 4px; }
  .site-footer .foot-base { gap: 4px; padding-top: 12px; }
}
.audiences .ticks { margin-bottom: 18px; }
.audiences .ticks li { padding: 9px 0 9px 28px; }
.audiences.stacked { gap: 28px; }
.audiences.stacked article + article { padding-top: 24px; }
.input, select.input, textarea.input { border: 1px solid var(--control); border-radius: 0; background: var(--white); }
.input[aria-invalid="true"] { border: 2px solid var(--ink); }

/* ===== Agent invitation: /agents/join/ + gate ===== */
.join-main .register { margin-bottom: 28px; }
.join-checking { padding: 40px 0; color: var(--ink-3); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.join-grid { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; gap: 0 clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 24px; }
.join-top { grid-column: 1; grid-row: 1; }
.join-ledger { grid-column: 1; grid-row: 2; margin-top: 32px; }
.join-body { grid-column: 2; grid-row: 1 / 3; background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.join-top h1 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.06; margin: 14px 0 16px; max-width: 16ch; }
.invite-line { font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--ink-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 12px 0; }
.join-ledger .ledger-list h3 { font-size: 1.25rem; }
.join-ledger .ledger-list p { font-size: 15px; }
.lock-wrap { display: flex; gap: 8px; align-items: stretch; }
.lock-wrap .input { flex: 1; }
.lock-wrap .input[readonly] { background: var(--paper-2); color: var(--ink); }
.lock-wrap .linkbtn { min-height: 44px; padding: 0 12px; border: 1px solid var(--control); background: var(--white); text-decoration: none; }
.invite-strip:not(:empty) { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.gate { padding: 8px 0 40px; }
.gate-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.gate-copy h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.03; margin: 14px 0 16px; }
.gate-copy .lede { margin-bottom: 14px; }
.gate-note { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; max-width: 46ch; }
.gate-form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.gate-form h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 6px; }
.req-done h2 { margin: 10px 0 12px; }
.req-done p { margin-bottom: 12px; }
.invite-cta { align-items: center; gap: 16px; flex-wrap: wrap; }
.invite-only { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.invite-have { margin-top: 10px; }
.req-alt { margin-top: 10px; font-size: 15px; }
.req-alt a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 24px; }
.gate-jump { margin-bottom: 12px; }
@media (max-width: 900px) {
  .join-grid, .gate-grid { grid-template-columns: 1fr; }
  .join-top, .join-body, .join-ledger { grid-column: 1; grid-row: auto; }
  .join-body { padding: 18px 16px; }
  .join-top h1 { font-size: 1.9rem; margin: 8px 0 10px; }
  .join-main .register { margin-bottom: 16px; }
  .join-main .register span:nth-child(2) { display: none; }
  .invite-line { font-size: 12px; padding: 8px 0; margin-bottom: 16px; }
  .gate-copy h1 { font-size: 2.2rem; }
  .gate-form { padding: 18px 16px; }
}
.gate h1:focus, .join-top h1:focus { outline: none; }
.gate-grid { border-bottom: 0; }
@media (max-width: 480px) {
  .lock-wrap { flex-wrap: wrap; }
  .lock-wrap .input { flex: 1 1 100%; }
}

/* ===== Truth-sheet rewrite: What you get + What to expect ===== */
#deliverables .col-head { position: static; }
.ledger-list.compact { margin-top: 28px; }
.ledger-list.compact li { padding: 16px 0; }
.ledger-list.compact h3 { font-size: 1.25rem; }
.ledger-list.compact p { font-size: 15px; }
.expect { background: var(--white); border: 1px solid var(--ink); padding: clamp(20px, 2.6vw, 32px); align-self: start; }
.expect h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); margin: 8px 0 14px; }
.expect-list { border-top: 1px solid var(--ink); }
.expect-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.expect-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.expect-list dd { color: var(--ink-2); font-size: 15px; }
.expect-list a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .expect-list > div { grid-template-columns: 1fr; gap: 2px; } }
.price-foot + .price-foot { margin-top: 12px; }

/* ===== Pull-model review fixes (Oct 20, 2026) ===== */
.thesis-side .timing { font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 4px 0 16px; }
.thesis-side .timing a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.faq-more { padding-top: 18px; }
.faq-more .arrow-link { min-height: 44px; }
.faq-group { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 28px 0 10px; border-bottom: 1px solid var(--ink); }
.faq-group:first-child { padding-top: 0; }
.page-h { font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.03; margin: 12px 0 14px; }
.contact-side .contact-list { margin-top: 0; }
@media (max-width: 720px) {
  /* mobile header: wordmark + compact Sign up + Menu; Sign in leads the menu */
  .masthead .head-cta { display: flex; margin-left: auto; gap: 8px; }
  .masthead .head-cta .textaction { display: none; }
  .masthead .head-cta .btn.sm { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  .masthead .menu-btn { margin-left: 0; padding: 8px 10px; }
  .masthead .wrap { gap: 8px; }
  .opening .thesis h1 { margin-bottom: 14px; }
  .thesis-side .timing { font-size: 12px; margin: 0 0 12px; }
}
@media (max-width: 400px) {
  .logo-full { height: 21px !important; }
}
.audiences.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.audiences.pair article { border-top: 1px solid var(--ink); padding-top: 20px; }
.spec-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.spec-grid li { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.spec-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-grid li:nth-child(even) { padding-left: 24px; padding-right: 0; }
.spec-grid h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 6px; }
.spec-grid p { color: var(--ink-2); font-size: 15px; }
.opening .plate img { aspect-ratio: 16 / 4.2; }
@media (max-width: 900px) { .audiences.pair { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 720px) {
  .sec { padding-top: 36px; padding-bottom: 36px; }
  .opening .plate img { aspect-ratio: 16 / 9; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid li, .spec-grid li:nth-child(even) { padding: 14px 0; border-right: 0; }
  .expect-list > div { grid-template-columns: 104px 1fr; gap: 10px; padding: 10px 0; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 8px 16px !important; }
}
@media (max-width: 720px) {
  .expect { padding: 16px; }
  .expect h3 { margin: 4px 0 10px; }
  .expect-list > div { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .expect-list dd { font-size: 14px; line-height: 1.5; }
  .ledger-list p, .spec-grid p { font-size: 15px; line-height: 1.5; }
  .ledger-list li { padding: 12px 0; }
  .ledger-list h3, .spec-grid h3 { font-size: 1.15rem; margin-bottom: 4px; }
  .opening .thesis-side .links { display: none; }
  .audiences h3 { margin: 8px 0 10px; font-size: 1.2rem; }
  .price-foot { font-size: 14px; }
}
.ledger-list li { padding: 16px 0; }
.price th, .price td { padding-top: 14px; padding-bottom: 14px; }
.opening .plate img { aspect-ratio: 16 / 3.8; }
@media (max-width: 720px) {
  .sec { padding-top: 32px; padding-bottom: 32px; }
  .opening .plate img { aspect-ratio: 16 / 7; }
  .contact-head .cta-row { display: none; }
  .site-footer .foot-grid > div:first-child { display: none; }
  .ledger-list li { padding: 12px 0; }
}
@media (max-width: 720px) {
  .price td.total:not(.keep) { display: none; }
  .price td.total.keep a { display: inline-flex; min-height: 32px; align-items: center; }
  #process .col-head .lede { display: none; }
}
@media (max-width: 720px) {
  .ticks li { padding-top: 8px; padding-bottom: 8px; }
  .two-col { gap: 24px; }
  .audiences.pair article { padding-top: 14px; }
}
@media (max-width: 720px) { .thesis { gap: 16px; } }
@media (max-width: 720px) { .price tr.rush td.desc { display: block; } }
@media (max-width: 720px) {
  .price tr.rush { grid-template-areas: "q p" "d d" "t t"; }
  .price tr.rush td.desc { grid-area: d; padding: 2px 16px 4px; font-size: 14px; color: var(--ink-2); }
}

/* Browser-autofill hook: forms.js listens for this animation to format and validate autofilled values. */
@keyframes mfnAutofill { from { opacity: 1; } to { opacity: 1; } }
input:-webkit-autofill, select:-webkit-autofill { animation-name: mfnAutofill; animation-duration: 1ms; }
input:autofill, select:autofill { animation-name: mfnAutofill; animation-duration: 1ms; }
.lookup-status { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); min-height: 0; margin: 0; }
.lookup-status.on { margin-top: 2px; }
.lookup-status.on::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 1.5px solid var(--ink-2); border-top-color: transparent; border-radius: 50%; animation: mfnSpin .8s linear infinite; vertical-align: -1px; }
@keyframes mfnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lookup-status.on::before { animation: none; } }

/* ---- Header quick links (logo home, section links, sticky rule) ---- */
.site-header.masthead { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .24s cubic-bezier(.22,.61,.36,1); }
.site-header.masthead.scrolled { border-bottom-color: var(--ink); }
.masthead .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mobile-nav a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
.masthead .head-cta .btn[aria-current] { outline: 2px solid var(--ink); outline-offset: 2px; }
html { scroll-padding-top: 88px; }
@media (max-width: 1280px) { .masthead .nav { gap: 18px; } .masthead .nav a { font-size: 14px; } .masthead .wrap { gap: 20px; } .masthead .head-cta { gap: 14px; } }
@media (max-width: 1080px) { html { scroll-padding-top: 72px; } .mobile-nav { max-height: calc(100vh - 64px); overflow-y: auto; } }

/* ---- Business Associate Agreement (separate document in agent signing) ---- */
.baa-sec { margin-top: 28px; border: 1px solid var(--ink); padding: 20px; background: var(--paper); }
.baa-sec h3 { font-size: 22px; margin: 4px 0 4px; }
.baa-sub { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.baa-doc { height: 280px; margin-top: 12px; }
.baa-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 10px; }
.baa-result { border: 1px solid var(--ink); padding: 16px 20px; margin: 24px 0; }
.baa-result p { margin: 0 0 8px; }
.baa-result #baa-status.warn { font-weight: 600; }
@media (max-width: 720px) { .baa-sec { padding: 14px; } .baa-sec h3 { font-size: 19px; } }

/* ======================= Visual kit v1 (brand-v2/visual-kit) ======================= */
:root { --f-mono: var(--mono); --f-sans: var(--font); --t-label: 12px; }
/* Section numbers */
.sec-n .sn { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; margin-right: 10px; padding-right: 10px; border-right: 1px solid currentColor; }
/* Bars: desktop-only variants, headline-only bar, never behind tables/forms */
.ht-bar.ht-head-only { bottom: auto; height: 60%; }
.ht-bar img { background: transparent; }
.ht-host table, .ht-host .faq-list, .ht-host .expect, .ht-host .spec-grid, .ht-host .contact-card, .ht-host form { position: relative; z-index: 1; }
.ht-host table { background: var(--white); }
@media (max-width: 760px) { .ht-bar.ht-nomob { display: none; } }
@media (max-width: 1099px) { .ht-bar.ht-desk { display: none; } }
/* Kit plates inside our layout */
.kplate .plate__frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.kplate figcaption { padding: 10px 0 0; font-size: 12px; }
.opening .hero-plate { padding: 0 var(--gut) 8px; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; }
.opening .hero-plate .plate__frame img { aspect-ratio: 16 / 7; }
.aud-plate { margin: 0 0 18px; }
.aud-plate .plate__frame img { aspect-ratio: 16 / 9; }
.plate-break { padding: 0 var(--gut); max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-top: clamp(40px, 6vw, 72px); }
.plate-break .wide-plate .plate__frame img { aspect-ratio: 21 / 8; }
/* Hero */
.opening.ht-host { overflow: hidden; }
.thesis-main { display: flex; flex-direction: column; gap: 28px; }
.hero-pull { max-width: 460px; }
.pull__head, .pull__count dt, .pull__note { font-size: 12px; }
.pull__row { font-size: 12px; }
.pull__count dd { font-size: 26px; }
/* Ink band (Deliverables) */
.band-ink { background: var(--ink-bg); color: var(--paper); }
.band-ink h2, .band-ink h3, .band-ink .eyebrow, .band-ink b, .band-ink strong { color: var(--paper); }
.band-ink p, .band-ink li, .band-ink .lede, .band-ink .ledger-list span, .band-ink dd, .band-ink dt { color: #D9D7D1; }
.band-ink .ledger-list li, .band-ink .ledger-list { border-color: #3A3B3C; }
.band-ink a:not(.btn) { color: var(--paper); }
.band-ink a:focus-visible, .band-ink button:focus-visible { outline-color: var(--paper); }
.band-ink .expect { background: var(--paper); color: var(--ink); }
.band-ink .expect p, .band-ink .expect li, .band-ink .expect h3, .band-ink .expect b, .band-ink .expect dt, .band-ink .expect dd, .band-ink .expect span, .band-ink .expect a { color: var(--ink); }
.band-ink .expect .muted, .band-ink .expect .hint { color: var(--ink-2); }
/* Mobile: hero band image above the fold; contact band */
@media (max-width: 760px) {
  .opening.ht-host .hero-bar { --ht-band: 190px; }
  .opening.ht-host > .wrap { padding-top: 132px; }
  .hero-pull { display: none; }
  .contact-sec.ht-host { padding-top: 120px; }
  .plate-break .wide-plate .plate__frame img { aspect-ratio: 16 / 9; }
  .aud-plate .plate__frame img { aspect-ratio: 2 / 1; }
}
/* Reveals: content is visible without JS; motion only when .mfn-m is set by motion.js */
@media print { .hero-pull { display: none; } }
.plate-break .wide-plate .plate__frame img { aspect-ratio: 21 / 7; }
@media (min-width: 1081px) { .opening .thesis { padding-bottom: 40px; } .opening .hero-plate .plate__frame img { aspect-ratio: 16 / 6; } .opening .hero-pull .pull__stack { height: 34px; margin: 10px 0 8px; } }
@media (max-width: 760px) {
  .opening.ht-host .hero-bar { --ht-band: 176px; }
  .opening.ht-host > .wrap { padding-top: 112px; }
  .contact-sec.ht-host { padding-top: 96px; }
  .plate-break .wide-plate .plate__frame img { aspect-ratio: 2 / 1; }
  .aud-plate .plate__frame img { aspect-ratio: 5 / 2; }
}
/* Secondary pages */
.faq-plate { margin-top: 28px; }
.faq-plate .plate__frame img { aspect-ratio: 4 / 3; }
.side-art .side-bar { --ht-pos: 50% 30%; height: 220px; }
.side-pull { margin: 18px 0; }
@media (max-width: 1080px) { .side-pull, .side-art .side-bar { display: none; } }
.ht-bar--light { opacity: .09; }
@media (max-width: 760px) { .faq-plate .plate__frame img { aspect-ratio: 5 / 2; } }
.side-pull .pull__head { flex-wrap: wrap; gap: 4px 12px; }
.side-pull .pull__counts { gap: 8px; }

/* ===== Post-visual review fixes (Oct 21) ===== */
/* Static bars are backgrounds; canvas bars draw dots. Both get: full section height with a 120px
   dot falloff top and bottom (no hard square cuts) and a scrim toward the text side
   (outer edge clear -> ~88% paper under the text column), so ink text stays >= 7:1. */
.ht-bar .ht-img { position: absolute; inset: 0; display: block; background-size: cover; background-position: var(--ht-pos, 50% 50%); background-repeat: no-repeat; }
.ht-bar .ht-img--band { display: none; }
.ht-bar .ht-img, .ht-bar > canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%), linear-gradient(var(--ht-scrim-dir, to left), #000 0%, #000 28%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.12) 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%), linear-gradient(var(--ht-scrim-dir, to left), #000 0%, #000 28%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.12) 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ht-bar--right { --ht-scrim-dir: to left; }
.ht-bar--left { --ht-scrim-dir: to right; }
.ht-bar.ht-head-only { height: 75%; }
/* Text over any halftone is ink (paper on the ink band), never grey */
.ht-host > .wrap :is(p, li, .lede, .hint, .muted, .side-intro, .register span):not(.btn):not(figcaption *):not(.pull *):not(.expect *) { color: var(--ink); }
.band-ink.ht-host > .wrap :is(p, li, .lede):not(.expect *) { color: var(--paper); }
.ht-host .spec-grid > *, .ht-host .sec-card, .ht-host .card { background: var(--paper); position: relative; z-index: 1; }
/* Hero: a readable picture -- coarse, sharper cells, higher contrast on the outer side */
.opening .hero-bar { --ht-o: .34; }
@media (max-width: 760px) {
  .ht-bar .ht-img--desk { display: none; } .ht-bar .ht-img--band { display: block; }
  .ht-bar .ht-img, .ht-bar > canvas { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
  .opening.ht-host .hero-bar { --ht-band: 110px; --ht-o: .3; }
  .opening.ht-host > .wrap { padding-top: 72px; }
}
/* Full-width plates: one treatment everywhere (same inset as the page grid, no extra frame) */
.opening .hero-plate, .plate-break .wide-plate { margin: 0 auto; padding: 0; max-width: var(--wrap); width: calc(100% - 2 * var(--gut)); border: 0; }
.plate-break { padding: clamp(40px, 6vw, 72px) 0 0; max-width: none; }
.opening .hero-plate .plate__frame img, .plate-break .wide-plate .plate__frame img { aspect-ratio: 21 / 8; width: 100%; }
@media (max-width: 760px) { .opening .hero-plate .plate__frame img, .plate-break .wide-plate .plate__frame img { aspect-ratio: 2 / 1; } }
/* Photo-pair captions: two short lines max */
.aud-plate figcaption { display: block; }
.aud-plate figcaption span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Process steps stamp in sequence (motion allowed only) */
.mfn-m .ledger-list.stamp > li { opacity: 0; transform: scale(1.02) translateY(14px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.mfn-m .ledger-list.stamp.stamped > li { opacity: 1; transform: none; }
.ledger-list.stamp > li .n, .ledger-list.stamp > li .k { transition: background-color .32s cubic-bezier(.22,.61,.36,1), color .32s cubic-bezier(.22,.61,.36,1); }
/* Pricing: selected example row inverts to ink */
#pricing tbody tr[tabindex] { cursor: default; transition: background-color .24s cubic-bezier(.22,.61,.36,1), color .24s cubic-bezier(.22,.61,.36,1); }
#pricing tbody tr[tabindex] > *, #pricing tbody tr[tabindex] * { transition: color .24s cubic-bezier(.22,.61,.36,1), border-color .24s cubic-bezier(.22,.61,.36,1); }
#pricing tbody tr[tabindex]:hover, #pricing tbody tr[tabindex]:focus-visible { background: var(--ink); }
#pricing tbody tr[tabindex]:hover > *, #pricing tbody tr[tabindex]:focus-visible > *, #pricing tbody tr[tabindex]:hover * , #pricing tbody tr[tabindex]:focus-visible * { color: var(--paper) !important; border-color: var(--ink); }
#pricing tbody tr[tabindex]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#pricing tbody tr[tabindex]:hover .tag, #pricing tbody tr[tabindex]:focus-visible .tag { border-color: var(--paper); }
/* Consent / document scroll boxes: focusable, visible ring, scroll cue */
.doc:focus, .doc:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.doc-wrap { position: relative; }
.doc-wrap::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 44px; pointer-events: none; background: linear-gradient(to bottom, rgba(250,249,246,0), var(--paper)); transition: opacity .2s; }
.doc-wrap.at-end::after { opacity: 0; }
.scroll-cue { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; margin: 6px 0 0; color: var(--ink); }
.doc-wrap.at-end + .scroll-cue { visibility: hidden; }
.two-docs { border-left: 3px solid var(--ink); padding: 8px 0 8px 14px; margin: 0 0 18px; font-weight: 500; }

.side-art :is(p, li, span, .label, .side-intro, .step-line) { color: var(--ink); }
.band-ink.ht-host > .wrap :is(p, li, .lede, .hint, .muted, span, .eyebrow):not(.expect *):not(.btn):not(.btn *) { color: #E9E7E1 !important; }
.band-ink.ht-host > .wrap :is(h2, h3, b, strong):not(.expect *) { color: var(--paper) !important; }
.sec-report { margin: 20px 0 0; font-size: 15px; color: var(--ink); position: relative; z-index: 1; }
.sec-report a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1081px) { .contact-v2 .contact-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (max-width: 760px) {
  .contact-sec.ht-host { padding-top: 64px; }
  .plate-break { padding-top: 20px; }
  .opening.ht-host > .wrap { padding-top: 64px; }
  .aud-plate { margin-bottom: 12px; }
  .aud-plate .plate__frame img { aspect-ratio: 3 / 1; }
  .sec-report { margin-top: 14px; }
}

/* ===== Visual round 3 (Oct 21): hero film, soft transitions (kit v1.1, VISUAL-SPEC section 8) ===== */
/* Hero film replaces the hero plate. Cropped to the old plate height band so the page budget holds. */
.opening .hero-film { margin: 0 auto; padding: 0; max-width: var(--wrap); width: calc(100% - 2 * var(--gut)); }
.opening .hero-film .film__frame { aspect-ratio: 21 / 9; background-color: var(--paper-2); }
@media (max-width: 760px) { .opening .hero-film .film__frame { aspect-ratio: 4 / 3; } }
.hero-film .film__toggle { right: 12px; bottom: 12px; min-width: 64px; font-size: 12px; }
.hero-film .film__toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink-bg); }
.hero-film .film__toggle:hover { background: var(--ink-bg); }
.hero-film figcaption { font-family: var(--mono); }
@media (forced-colors: active) { .film__frame video { display: none; } }
@media print { .film__frame video, .film__toggle { display: none !important; } }
/* Ink -> paper blends need room so the first line of text never sits on the blend. */
.band-ink.feather { --sec: 0px; }
.feather.from-ink { padding-top: max(var(--sec-pt, 0px), calc(var(--feather) + 16px)); }
@media (max-width: 760px) {
  .band-ink.feather { --feather: 80px; }
  .feather.from-ink { --feather: 64px; }
  .feather-160:not(.band-ink) { --feather: 120px; }
}
/* Inset plates: paper vignette on the section surface */
#clients .plate--vignette { --plate-bg: var(--paper); }
.faq-plate.plate--vignette { --plate-bg: var(--paper); }
.plate--vignette .plate__frame { position: relative; }
/* Reduced motion kills animations in .soft-ui; keep the 1 ms autofill hook that forms.js listens for. */
@media (prefers-reduced-motion: reduce) {
  .soft-ui input:-webkit-autofill, .soft-ui select:-webkit-autofill { animation: mfnAutofill 1ms !important; }
  .soft-ui input:autofill, .soft-ui select:autofill { animation: mfnAutofill 1ms !important; }
}
/* No hard full-bleed rule where a section blends into the next one (or under the hero film's own caption rule). */
main > :has(+ .feather), main > .opening:has(.hero-film) { border-bottom-color: transparent; }
/* Equal photo-pair columns (nowrap captions must not widen a column) */
@media (min-width: 901px) { .audiences.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
