@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/fonts/bricolage-grotesque.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/source-serif-4.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts/source-serif-4-italic.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2")}
:root {
  /* Layout idea: a consular counter. Ruled ledger sections, documents shown as real A4 sheets, one stamp-ink accent. */
  --paper: #f1f1ec;
  --sheet: #ffffff;
  --ink: #141a2e;
  --ink-soft: #4b5169;
  --rule: #d3d4dc;
  --stamp: #5740bd;
  --stamp-wash: #ebe7fa;
  --ok: #1d6a51;
  --ok-wash: #e3f1ea;
  --warn: #8a5a00;
  --warn-wash: #f8eed6;
  --stop: #a8281f;
  --stop-wash: #f8e4e1;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --letter: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
img, svg { max-width: 100%; }
a { color: var(--stamp); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.measure { max-width: 64ch; }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* prototype notice */
.proto { background: var(--ink); color: #fff; font-size: 0.86rem; padding: 8px 0; }
.proto .wrap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.proto b { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: #fff; color: var(--ink); padding: 2px 7px; border-radius: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(241, 241, 236, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: #e4e4dc; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 1rem; padding: 12px 20px; border-radius: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small { padding: 8px 13px; font-size: 0.9rem; border-width: 1.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.nav .btn { color: #fff; }
.nav .btn:hover { background: var(--stamp); }

/* views */
.view { display: none; }
.view.on { display: block; }
section { padding: 62px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }

/* hero */
.hero { padding: 54px 0 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 46px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }
.hero .stack { gap: 22px; }
.indep { font-size: 0.86rem; color: var(--ink-soft); border-left: 3px solid var(--stamp); padding-left: 12px; max-width: 58ch; }
.pile { position: relative; min-width: 0; padding: 14px 6px 26px 22px; }
.pile .back { position: absolute; inset: 0 26px 96px 0; background: #e2e1d8; border: 1px solid var(--rule); transform: rotate(-3deg); border-radius: 2px; }
.pile .paper { position: relative; transform: rotate(1.2deg); }
.paper { background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(20, 26, 46, 0.45); border-radius: 2px; }
.pile .paper { padding: 26px 26px 92px; font-family: var(--letter); font-size: 0.82rem; line-height: 1.5; }
.pile .paper h4 { font-family: var(--letter); font-size: 1rem; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.pile .paper .sub { text-align: center; font-style: italic; color: var(--ink-soft); margin-bottom: 12px; font-size: 0.78rem; }
.pile .paper p + p { margin-top: 8px; }
.stampmark { position: absolute; right: 14px; bottom: -22px; width: 124px; height: 124px; transform: rotate(-13deg); opacity: 0.9; }
.tabs-mini { position: relative; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; padding-left: 4px; }
.chip { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 4px 8px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 3px; color: var(--ink-soft); }
.chip.fr { border-color: var(--stamp); color: var(--stamp); background: var(--stamp-wash); }

/* facts ledger */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--sheet); }
.ledger > div { padding: 20px 18px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ledger > div:first-child { border-left: 0; }
.ledger .big { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ledger p { font-size: 0.93rem; color: var(--ink-soft); }
.ledger a { font-size: 0.8rem; }

/* contents */
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.contents > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.contents .n { font-family: var(--mono); font-size: 0.78rem; color: var(--stamp); padding-top: 4px; }
.contents p { grid-column: 2; color: var(--ink-soft); font-size: 0.96rem; }
.contents .chip { justify-self: start; grid-column: 2; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps > div { background: var(--sheet); border: 1px solid var(--rule); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.steps > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); color: var(--stamp); font-size: 0.8rem; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--sheet); border: 1px solid var(--rule); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card ul { margin: 0; padding-left: 20px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; font-size: 0.97rem; }
.card.no { background: transparent; border-style: dashed; }

.scroll-x { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.96rem; }
table.cmp thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
table.cmp td.us, table.cmp th.us { background: var(--stamp-wash); }
table.cmp tbody th { font-weight: 600; width: 24%; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--sheet); border: 1px solid var(--rule); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.main { border: 2px solid var(--ink); }
.price { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; color: var(--ink-soft); font-size: 0.97rem; }
.cur { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--sheet); flex-wrap: wrap; }
.cur button { font: inherit; font-family: var(--mono); font-size: 0.78rem; padding: 8px 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); }
.cur button[aria-pressed="true"] { background: var(--ink); color: #fff; }
table.fees { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); }
table.fees th, table.fees td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 0.96rem; vertical-align: top; }
table.fees td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* builder */
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 22px; align-items: start; }
.panel { background: var(--sheet); border: 1px solid var(--rule); min-width: 0; }
.sample-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: var(--stamp-wash); border: 1px solid #cfc6f1; padding: 12px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.stepper { display: flex; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: thin; }
.stepper button { flex: 1 0 auto; font: inherit; font-size: 0.9rem; font-weight: 600; padding: 13px 14px; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; color: var(--ink-soft); white-space: nowrap; display: flex; gap: 8px; align-items: baseline; }
.stepper button span { font-family: var(--mono); font-size: 0.7rem; }
.stepper button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--stamp); }
.form { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { margin-bottom: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .legend { font-size: 0.86rem; font-weight: 600; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); }
input[type="text"], input[type="date"], input[type="number"], input[type="email"], select { font: inherit; font-size: 1rem; padding: 10px 11px; border: 1.5px solid #b9bbc8; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus { border-color: var(--stamp); outline: 3px solid var(--stamp-wash); outline-offset: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid #b9bbc8; border-radius: 6px; padding: 9px 12px; cursor: pointer; font-weight: 500; font-size: 0.95rem; background: #fff; }
.choice input { accent-color: var(--stamp); }
.choice label:has(input:checked) { border-color: var(--stamp); background: var(--stamp-wash); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.check input { margin-top: 4px; accent-color: var(--stamp); width: 17px; height: 17px; flex: none; }
.person { border: 1px solid var(--rule); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.person > .mono { color: var(--stamp); }
.income { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 0.9fr) auto; gap: 8px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.income .x { font: inherit; border: 1.5px solid #b9bbc8; background: #fff; border-radius: 6px; width: 40px; height: 43px; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; }
.income .x:hover { border-color: var(--stop); color: var(--stop); }
.form-nav { display: flex; justify-content: space-between; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }

.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.verdict { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.verdict .type { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 0.92rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.note { padding: 11px 13px; border-left: 4px solid var(--warn); background: var(--warn-wash); font-size: 0.9rem; }
.note.stop { border-left-color: var(--stop); background: var(--stop-wash); }
.note.ok { border-left-color: var(--ok); background: var(--ok-wash); }
.meter { height: 9px; background: #e3e3dc; border-radius: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); }
.meter i.low { background: var(--warn); }

/* dossier preview */
.dossier { margin-top: 28px; }
.sheet-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.sheet-tabs button { flex: none; font: inherit; font-size: 0.86rem; font-weight: 600; padding: 8px 12px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 6px 6px 0 0; cursor: pointer; color: var(--ink-soft); display: inline-flex; gap: 7px; align-items: center; }
.sheet-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sheet-tabs .lg { font-family: var(--mono); font-size: 0.64rem; padding: 1px 4px; border: 1px solid currentColor; border-radius: 2px; opacity: 0.8; }
.sheet-wrap { position: relative; }
.a4 { background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 22px 44px -30px rgba(20, 26, 46, 0.5); padding: clamp(22px, 6vw, 68px) clamp(18px, 6vw, 72px); max-width: 820px; margin: 0 auto; font-family: var(--letter); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.a4.locked { max-height: 520px; overflow: hidden; }
.lock { position: absolute; left: 0; right: 0; bottom: 0; height: 360px; background: linear-gradient(to bottom, rgba(241, 241, 236, 0), var(--paper) 62%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.lock .card { max-width: 520px; width: 100%; border: 2px solid var(--ink); text-align: left; }
.unlock-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px auto 0; max-width: 820px; align-items: center; }
.status { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; }

/* document typography (shared with print and Word export) */
.a4 p + p, .a4 ul + p, .a4 p + ul, .a4 table + p { margin-top: 0.85em; }
.d-from { margin-bottom: 1.6em; }
.d-to { margin: 0 0 1.4em 52%; }
.d-place { text-align: right; margin-bottom: 1.4em; }
.d-subject { margin-bottom: 1.3em; }
.d-title { font-family: var(--letter); text-align: center; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.2rem; font-weight: 600; }
.d-sub { text-align: center; font-style: italic; color: var(--ink-soft); margin: 4px 0 1.5em; font-size: 0.93rem; }
.d-sign { margin-top: 1.5em !important; }
.d-signline { margin-top: 0.5em !important; color: var(--ink-soft); padding-bottom: 3.2em; }
.a4 ul, .a4 ol { margin: 0.6em 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.45em; }
.blank { background: #fff3c9; padding: 0 3px; border-radius: 2px; font-style: normal; }
.d-en { color: var(--ink-soft); font-style: italic; font-size: 0.86em; }
.d-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; font-family: var(--text); line-height: 1.4; }
.d-table th, .d-table td { border: 1px solid #b9bbc8; padding: 9px 11px; text-align: left; vertical-align: top; }
.d-table thead th { background: #f1f1ec; font-weight: 600; }
.d-table tbody th { width: 30%; font-weight: 600; background: #f8f8f4; }
.d-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-table .nowrap { white-space: nowrap; }
.d-table tr.total td { font-weight: 700; background: #f8f8f4; }
.d-note { font-size: 0.86rem; margin-top: 1em; font-family: var(--text); }
.d-group { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stamp); margin-top: 1.4em !important; }
.d-check { font-family: var(--text); font-size: 0.95rem; line-height: 1.45; }
.d-check li.ours { font-weight: 600; }
.d-check li.ours::marker { color: var(--stamp); }

/* calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 22px; align-items: start; }
.stay-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.bignum { font-family: var(--display); font-size: 3.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* guides, faq, legal */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guides article { background: var(--sheet); border: 1px solid var(--rule); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.guides article p, .prose p, .prose li { color: var(--ink-soft); font-size: 0.98rem; }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.prose h3 { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
details { background: var(--sheet); border: 1px solid var(--rule); }
details + details { border-top: 0; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 650; font-size: 1.02rem; list-style-position: outside; margin-left: 18px; padding-left: 6px; }
details > div { padding: 0 18px 18px 24px; color: var(--ink-soft); max-width: 72ch; display: flex; flex-direction: column; gap: 8px; }
.faq { max-width: 860px; }

footer { background: var(--ink); color: #c9cbd8; padding: 44px 0 34px; font-size: 0.92rem; }
footer a { color: #fff; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.foot .brand { color: #fff; }
.fine { border-top: 1px solid #353b55; margin-top: 28px; padding-top: 18px; font-size: 0.82rem; }

@media (max-width: 900px) {
  .hero-grid, .builder-grid, .calc-grid, .two, .plans { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(3) { border-left: 0; }
  .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .steps, .guides, .contents { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .income { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .income .x { width: 100%; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 8px; font-size: 0.9rem; }
  .pile { padding-left: 10px; }
  section { padding: 46px 0; }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div { border-left: 0; border-top: 1px solid var(--rule); }
  .ledger > div:first-child { border-top: 0; }
  .d-to { margin-left: 30%; }
}
#printArea { display: none; }
@media print {
  body { background: #fff; }
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; }
  #printArea .a4 { border: 0; box-shadow: none; padding: 0; max-width: none; page-break-after: always; font-size: 11.5pt; }
  #printArea .a4:last-child { page-break-after: auto; }
}

/* ---------- long-form pages (guides, landing pages, legal) ---------- */
h1.page-h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.lead { font-size: 1.14rem; }
.prose.long { gap: 14px; max-width: 72ch; }
.prose.long h2 { font-size: 1.45rem; margin-top: 22px; }
.prose.long p, .prose.long li { font-size: 1.02rem; line-height: 1.6; }
.prose.long ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose.long strong { color: var(--ink); }
.prose.long .indep { margin-top: 22px; }
.prose.long table.cmp { min-width: 560px; }
.crumbs { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding: 18px 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs + section { padding-top: 26px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.guide-list a { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.guide-list a:hover h3 { color: var(--stamp); }
.guide-list p { color: var(--ink-soft); font-size: 0.96rem; }
.guide-list .mono { color: var(--stamp); }
.returning { width: 100%; font-size: 0.93rem; margin-top: 4px; }
.sample-note { background: var(--stamp-wash); border: 1px solid #cfc6f1; padding: 12px 16px; font-size: 0.95rem; max-width: 820px; margin: 0 auto 26px; }
.sample-sheet { margin-bottom: 34px; }
.sample-sheet > .mono { max-width: 820px; margin: 0 auto 8px; display: block; }
.sample-sheet .a4 { position: relative; overflow: hidden; }
.sample-sheet .a4::after { content: "SAMPLE"; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 16vw, 9rem); letter-spacing: 0.08em; color: rgba(87, 64, 189, 0.07); pointer-events: none; white-space: nowrap; }
.foot.four { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .guide-list, .foot.four { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .sample-sheet .a4 { border: 0; box-shadow: none; page-break-after: always; }
  body.sample-page .top, body.sample-page footer, body.sample-page .proto, body.sample-page .noprint { display: none !important; }
}
