/* Content pages: how it works, artwork, FAQ, contact, terms, privacy, 404 */

/* ---------- page hero ---------- */
.page-hero { position: relative; background: var(--photo-bg); overflow: hidden; }
.page-hero .container { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.page-hero-inner { max-width: 780px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-500); }
.crumbs a { color: var(--ink-600); display: inline-block; padding-block: 4px; margin-block: -4px; } /* 24px+ tap target, same layout */
.crumbs a:hover { color: var(--brand-600); }
.crumbs .sep { color: var(--ink-300); }
.page-hero .eyebrow { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; }
.page-hero .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-600); box-shadow: 0 0 0 3px rgba(35, 67, 240, 0.14); }
.page-title { margin-top: 14px; font-size: clamp(38px, 5.2vw, 64px); font-weight: 900; font-stretch: 106%; line-height: 1; letter-spacing: -0.035em; word-spacing: 0.04em; overflow-wrap: break-word; }
/* Small phones: scale the title with the screen so a long single word ("Accessibility.") still fits. */
@media (max-width: 400px) { .page-title { font-size: clamp(28px, 10vw, 38px); } }
.page-lead { margin-top: 18px; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--ink-600); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-meta { margin-top: 18px; font-size: 14px; color: var(--ink-500); }
/* registration marks, a quiet nod to print proofs */
.page-hero .container::before, .page-hero .container::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(var(--ink-400), var(--ink-400)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink-400), var(--ink-400)) center / 100% 1px no-repeat;
}
.page-hero .container::before { right: var(--gutter); top: 28px; }
.page-hero .container::after { right: var(--gutter); bottom: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-400); background-size: 1px 100%, 100% 1px; }

/* ---------- long-form layout ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.doc-narrow { max-width: 1080px; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 14px; }
/* A long table of contents scrolls inside itself on short screens instead of running past the bottom edge.
   The padding keeps focus outlines inside the scroll box; the negative margin keeps the text where it was. */
@media (min-width: 1021px) {
  .toc { max-height: calc(100vh - var(--header-h) - 56px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 5px 6px 5px 5px; margin: -5px -6px -5px -5px; }
}
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px; }
.toc ol, .toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc li > a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--ink-600); line-height: 1.35; transition: color 0.15s var(--ease), border-color 0.15s var(--ease); }
.toc li > a:hover { color: var(--ink-900); }
.toc li > a.is-active { color: var(--brand-700); border-left-color: var(--brand-600); font-weight: 600; }
.toc-cta { margin-top: 24px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-600); }
.toc-toggle { display: none; }
@media (max-width: 640px), (max-height: 480px) and (max-width: 1020px) {
  /* Long section lists collapse behind one button on phones, portrait and landscape (wired in content.js).
     Opened, they show as a plain list of rows, which handles long section names cleanly. */
  .toc-long.is-open ol, .toc-long.is-open ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
  .toc-long.is-open li > a { display: block; margin: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink-700); font-size: 14.5px; line-height: 1.35; }
  .toc-long.is-open li:last-child > a { border-bottom: 0; }
  .toc-long.is-open li > a.is-active { background: var(--brand-50); color: var(--brand-700); border-color: var(--line); }
  .toc-long .toc-title { display: none; }
  .toc-long .toc-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font: 650 15px/1.3 var(--font-sans); color: var(--ink-900); cursor: pointer; }
  .toc-long .toc-toggle svg { width: 18px; height: 18px; flex: none; color: var(--ink-500); transition: transform 0.18s var(--ease); }
  .toc-long.is-open .toc-toggle svg { transform: rotate(180deg); }
  .toc-long .toc-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--bg-soft); font-size: 12px; font-weight: 700; color: var(--ink-600); }
  .toc-long:not(.is-open) ol, .toc-long:not(.is-open) ul { display: none; }
  .toc-long.is-open ol, .toc-long.is-open ul { margin-top: 12px; }
}
.toc-cta b { display: block; color: var(--ink-900); margin-bottom: 4px; }
.toc-cta a { color: var(--brand-600); font-weight: 600; word-break: break-word; }
.toc-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- prose ---------- */
.prose { min-width: 0; max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--ink-700); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.022em; line-height: 1.15; color: var(--ink-900); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose > section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose section + section { margin-top: 56px; }
.prose section > h2 { margin-top: 0; }
.prose section > * + * { margin-top: 16px; }
.prose h3 { margin-top: 30px; font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.prose p a, .prose li a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink-900); font-weight: 650; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-600); }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.15em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 700; }
.prose .section-num { display: inline-block; min-width: 1.5em; margin-right: 8px; color: #7b8496; /* 3:1+ large-text contrast */ font-variant-numeric: tabular-nums; }
/* Numbered headings: the number keeps its own column, so a wrapped title lines up under itself, not under the number. */
.prose h2:has(> .section-num) { display: flex; align-items: baseline; }
.prose h2:has(> .section-num) > .section-num { flex: none; }
.legal .prose { font-size: 16px; }
.legal .prose h2 { font-size: clamp(21px, 2vw, 25px); }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; color: var(--ink-700); }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--ink-500); }
.callout b, .callout strong { color: var(--ink-900); }
.callout-brand { background: var(--brand-50); border-color: var(--brand-100); }
.callout-brand svg { color: var(--brand-600); }
.callout-warn { background: var(--warning-50); border-color: #f6e2b8; color: #5c3700; }
.callout-warn svg { color: var(--warning-600); }
.callout-warn b, .callout-warn strong { color: #3f2600; }

/* tables */
/* overflow-x: auto is a safety net: a table that can't fit scrolls inside its frame instead of being cut off. */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--bg-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 650; color: var(--ink-900); }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .table th, .table td { padding: 11px 12px; font-size: 14px; }
  .table td.num { white-space: normal; }
}
/* On phones a .table-stack turns each row into a small card, labelled from data-label, so wide tables never scroll
   sideways. .table-stack-sm does the same only on the smallest phones, for compact tables that fit everywhere else. */
@media (max-width: 640px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack tbody th, .table-stack tbody td { padding: 0; border-bottom: 0; }
  .table-stack tbody td { margin-top: 10px; }
  .table-stack td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
}
.table-stack-sm td.num { white-space: nowrap; } /* short values like "1,800 × 2,100 px" stay on one line */
@media (max-width: 440px) {
  .table-stack-sm td, .table-stack-sm td.num { white-space: normal; }
  .table-stack-sm thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .table-stack-sm, .table-stack-sm tbody, .table-stack-sm tr, .table-stack-sm th, .table-stack-sm td { display: block; width: 100%; }
  .table-stack-sm tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-stack-sm tbody tr:last-child { border-bottom: 0; }
  .table-stack-sm tbody th, .table-stack-sm tbody td { padding: 0; border-bottom: 0; }
  .table-stack-sm tbody td { margin-top: 8px; }
  .table-stack-sm td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
}

/* policy pages: "the short version" box at the top of each policy */
.policy-summary { padding: 20px 24px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-soft); }
.legal .prose .policy-summary h2 { margin: 0 0 4px; font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; color: var(--ink-500); }
.prose .policy-summary .checklist { border-top: 0; }
.prose .policy-summary .checklist > li { font-size: 15.5px; line-height: 1.55; }
.prose .policy-summary .checklist > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.policy-summary-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-500); }
@media (max-width: 640px) { .policy-summary { padding: 16px 16px 14px; } }

/* file-type cards */
.filetypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.filetype { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.filetype .filetype-limit { margin-top: auto; padding-top: 12px; } /* side-by-side cards keep their limits on one line */
.filetype h3 { margin: 0; font-size: 16px; }
.filetype p { margin-top: 6px; font-size: 14.5px; color: var(--ink-600); line-height: 1.55; }
.ext-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ext { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--ink-900); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; }
.filetype.is-source .ext { background: var(--bg-soft); color: var(--ink-800); box-shadow: inset 0 0 0 1px var(--line-strong); }
.filetype-limit { margin-top: 12px; font-size: 13px; color: var(--ink-500); }

/* do / don't illustration */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare figure { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.compare .art { background: var(--photo-bg); padding: 18px 18px 6px; }
.compare svg { width: 100%; height: auto; }
.compare figcaption { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-700); }
.compare figcaption b { display: block; color: var(--ink-900); }
.verdict { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; color: #fff; }
.verdict svg { width: 14px; height: 14px; }
.verdict.ok { background: var(--success-600); }
.verdict.no { background: var(--danger-600); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.panel h3 { margin: 0 0 8px; font-size: 17px; }
.panel ul { margin-top: 10px; font-size: 15px; }
.prose .panel ul > li::before { background: var(--ink-400); }

.checklist { list-style: none; display: grid; gap: 0 !important; border-top: 1px solid var(--line); }
.prose .checklist > li { padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); }
.prose .checklist > li::before {
  content: ""; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 6px; background: var(--success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a4e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- how it works ---------- */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.rule { padding: 22px 22px 24px; border-right: 1px solid var(--line); }
.rule:last-child { border-right: 0; }
.rule dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.rule dd { margin: 8px 0 0; font-size: 17px; font-weight: 650; line-height: 1.35; color: var(--ink-900); letter-spacing: -0.01em; }
.rule-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-600); letter-spacing: 0; }
.rules-wrap { margin-top: calc(clamp(36px, 5vw, 64px) * -0.5); position: relative; z-index: 1; }

.sec { padding-block: clamp(56px, 7vw, 96px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-soft { background: var(--bg-soft); border-top: 0 !important; }
.sec-soft + .sec { border-top: 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .h2 { margin-top: 12px; }
.sec-head > p:not(.eyebrow) { margin-top: 14px; font-size: 17.5px; line-height: 1.6; color: var(--ink-600); }

.process { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.process-step { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.8fr); gap: 18px 32px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; font-stretch: 112%; line-height: 0.9; letter-spacing: -0.03em; color: #7b8496; /* 3:1+ large-text contrast */ font-variant-numeric: tabular-nums; }
.process-step h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.process-step p { margin-top: 8px; color: var(--ink-600); line-height: 1.65; }
.process-note { align-self: start; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.process-note b { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.process-note a { color: var(--brand-600); font-weight: 600; }

.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proof-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.proof-card-head { display: flex; align-items: center; justify-content: space-between; }
.proof-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.proof-icon svg { width: 22px; height: 22px; }
.proof-index { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.proof-card h3 { margin-top: 18px; font-size: 20px; letter-spacing: -0.015em; }
.proof-hint { margin-top: 8px; color: var(--ink-600); font-size: 15px; line-height: 1.55; }
.proof-dl { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.proof-dl dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.proof-dl dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-800); }
.proof-card.is-waive { border-color: #f1d9a6; background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.proof-card.is-waive .proof-icon { background: var(--warning-50); color: var(--warning-600); }
.proof-after { margin-top: 18px; }

.example-lines { display: grid; gap: 10px; margin-top: 4px; }
.example-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.example-line b { display: block; font-size: 15px; color: var(--ink-900); }
.example-line .ex-note { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-500); }
.example-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.example-sizes i { font-style: normal; display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 6px; border-radius: 7px; background: var(--bg-soft); font-size: 12.5px; font-weight: 650; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.example-total { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink-900); white-space: nowrap; }
.example-total.ok { color: var(--success-600); }

.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: 19px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); color: var(--ink-800); }
.timeline .dot svg { width: 18px; height: 18px; }
.timeline h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; padding-top: 8px; letter-spacing: -0.01em; }
.timeline p { margin-top: 4px; color: var(--ink-600); line-height: 1.6; }
.timeline p a { color: var(--brand-600); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 32px); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--photo-bg); color: var(--ink-600); }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(44px, 6vw, 72px); }
.cta-strip h2 { color: var(--ink-900); font-size: clamp(28px, 3.2vw, 42px); font-weight: 900; font-stretch: 105%; letter-spacing: -0.032em; word-spacing: 0.04em; line-height: 1.04; }
.cta-strip p { margin-top: 10px; max-width: 52ch; }
.cta-strip p { font-size: 17px; }
.cta-strip p a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.cta-strip .row { gap: 12px; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.faq-search { position: relative; flex: 1 1 320px; max-width: 480px; }
.faq-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.faq-search .input { height: 50px; padding-left: 44px; border-radius: 12px; font-size: 16px; }
.faq-count { font-size: 14px; color: var(--ink-500); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-page { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.02em; margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 2px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 650; letter-spacing: -0.008em; line-height: 1.4; color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-600); }
.faq-item summary:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-xs); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-800); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.25s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open]:not(.is-closing) .faq-icon { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.faq-item[open]:not(.is-closing) .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a > div { padding: 0 48px 20px 2px; color: var(--ink-600); line-height: 1.65; max-width: 70ch; }
.faq-a > div > * + * { margin-top: 10px; }
.faq-a a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.faq-a ul { list-style: none; display: grid; gap: 6px; }
.faq-a ul li { position: relative; padding-left: 18px; }
.faq-a ul li::before { content: ""; position: absolute; left: 3px; top: 0.7em; width: 5px; height: 5px; border-radius: 2px; background: var(--ink-400); }
.faq-empty { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink-600); }
.faq-empty a { color: var(--brand-600); font-weight: 600; }
.faq-side { position: sticky; top: calc(var(--header-h) + 28px); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.contact-info { display: grid; gap: 14px; }
.info-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.info-card h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.info-card .big { display: inline-block; margin-top: 10px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); word-break: break-word; }
.info-card .big:hover { color: var(--brand-600); }
/* Small phones: the address scales down so it stays on one line instead of breaking mid-word. */
@media (max-width: 400px) { .info-card .big { font-size: clamp(15px, 5.5vw, 20px); letter-spacing: -0.03em; padding-block: 3px; } }
@media (max-width: 360px) { .btn-lg { padding-inline: 14px; font-size: 15px; } }
.info-card p, .info-card address { margin-top: 8px; font-style: normal; color: var(--ink-600); line-height: 1.6; }
.info-card .row { margin-top: 14px; gap: 8px; }
@media (max-width: 480px) { .info-card .row .btn { flex: 1 1 140px; min-height: 44px; } }
.info-card ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--ink-700); }
.info-card li { display: flex; gap: 10px; }
.info-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--success-600); }
.info-links { display: grid; gap: 2px; margin-top: 10px; }
.info-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.info-links a:last-child { border-bottom: 0; }
.info-links a:hover { color: var(--brand-600); }
.info-links svg { width: 18px; height: 18px; color: var(--ink-400); }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; }
.form-card .sub { margin-top: 8px; color: var(--ink-600); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
@media (max-width: 480px) {
  .form-foot > .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .form-card { padding: 20px 16px; }
}
.mail-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-50); font-size: 14px; line-height: 1.5; color: var(--ink-700); }
.mail-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-600); }
.contact-status { margin-top: 14px; }

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 112px); }
.nf-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; border-radius: var(--radius-lg); background: var(--photo-bg); display: grid; place-items: center; overflow: hidden; }
.nf-art svg { width: 78%; height: auto; }
.nf .page-title { margin-top: 14px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nf-sub { margin-top: 36px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }

/* ---------- reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .doc, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .toc, .faq-side { position: static; }
  .toc ol, .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 0 18px; }
  .toc li > a { margin-left: 0; padding: 8px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .toc li > a.is-active { border-left: 0; }
  .toc-cta { display: none; }
  .process-step { grid-template-columns: 72px minmax(0, 1fr); }
  .process-note { grid-column: 2; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule:nth-child(2) { border-right: 0; }
  .rule:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .split-sticky { position: static; }
}
@media (max-width: 760px) {
  .nf { grid-template-columns: minmax(0, 1fr); }
  .nf-art { max-width: 320px; order: -1; }
}
/* Phones in landscape: the picture sits beside the message instead of filling the first screen. */
@media (max-width: 1020px) and (max-height: 480px) {
  .nf { grid-template-columns: minmax(0, 1fr) 150px; padding-block: 32px 40px; }
  .nf-art { order: 0; max-width: 150px; }
}
/* The decorative corner marks in page headers only belong on wide screens. */
@media (max-width: 900px) {
  .page-hero .container::before, .page-hero .container::after { display: none; }
}
@media (max-width: 640px) {
  .page-hero .container::before, .page-hero .container::after { display: none; }
  .toc ol, .toc ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .toc li > a { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff; font-size: 13.5px; line-height: 1.2; }
  .toc li > a.is-active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
  .filetypes, .compare, .two-col, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule { border-right: 0; border-bottom: 1px solid var(--line); }
  .rule:last-child { border-bottom: 0; }
  .process-step { grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; }
  .process-num { font-size: 28px; }
  .process-note { grid-column: 2; }
  .example-line { grid-template-columns: minmax(0, 1fr); }
  .faq-a > div { padding-right: 6px; }
  .cta-strip .row { width: 100%; }
  .cta-strip .row .btn { flex: 1 1 auto; }
  .page-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  /* The smallest phones: the step number sits above its step so the text gets the full width. */
  .process-step { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0 26px; }
  .process-num { font-size: 24px; }
  .process-note { grid-column: 1; }
  .ext { min-width: 40px; padding: 0 6px; }
}
