/* Fuentes alojadas en el propio servidor (antes Google Fonts) */
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/bodoni-moda-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Legalia Consultores
   Layout: left-aligned editorial page; one elevated "expediente" card (the case review) and one ink band
   with the legal clock that starts on the date of death. Everything else is type, rules and white space.
   Palette from the notarial world: pale stamped-paper grey, gazette ink, sealing-wax red. Light only, by choice. */
:root {
  --paper: #f2f4f1;
  --paper-deep: #e6eae5;
  --sheet: #ffffff;
  --ink: #142029;
  --ink-band: #17252f;
  --muted: #56626b;
  --rule: #d3d9d4;
  --lacre: #8f1d2c;
  --lacre-dark: #6f1220;
  --lacre-soft: #f4e4e5;
  --on-dark: #f3f5f2;
  --on-dark-muted: #b9c4c9;
  --ok: #2c6a4e;
  --ok-soft: #e1efe7;
  --warn: #9a5d0c;
  --warn-soft: #f6ead6;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: 1.75rem;
  --s-3: clamp(2rem, 4.2vw, 3rem);
  --s-4: clamp(2.5rem, 6.2vw, 4.6rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-0)/1.6 var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--lacre); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lacre-dark); }
:focus-visible { outline: 3px solid var(--lacre); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-4); }
h2 { font-size: var(--s-3); }
h3 { font: 600 var(--s-1)/1.3 var(--text); margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 4px; border: 1px solid var(--lacre); background: var(--lacre); color: #fff; font: 600 1.02rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--lacre-dark); border-color: var(--lacre-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(242, 244, 241, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 600 1.9rem/1 var(--display); letter-spacing: -0.02em; }
.brand-line { font: 500 0.95rem/1 var(--text); color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lacre); }
.nav .btn { min-height: 44px; padding: 0 18px; color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(86vw, 320px); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 8px; display: grid; box-shadow: 0 18px 50px rgba(20, 32, 41, 0.16); }
.menu-panel a { padding: 12px 12px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.menu-panel a:hover { background: var(--paper); }
.menu-panel .btn { margin-top: 6px; color: #fff; }
@media (max-width: 1140px) { .nav { display: none; } .menu { display: block; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-guilloche { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "copy form" "proof form"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 30px; align-items: start; padding-block: 64px 72px; }
.hero-copy { grid-area: copy; display: grid; gap: 26px; min-width: 0; padding-top: 12px; }
.hero .expediente { grid-area: form; }
.hero-proof { grid-area: proof; display: grid; gap: 26px; min-width: 0; }
.hero h1 { max-width: 13ch; }
.promises { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.promises li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.promises svg { flex: none; }
.reviewer { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 560px; }
.seal { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--lacre); color: #fff; display: grid; place-items: center; font: 600 1.1rem/1 var(--display); box-shadow: inset 0 0 0 3px var(--lacre), inset 0 0 0 4px rgba(255,255,255,.55); }
.reviewer p { font-size: 0.98rem; color: var(--muted); }
.reviewer strong { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "proof"; grid-template-rows: auto; row-gap: 32px; padding-block: 36px 48px; } .hero h1 { max-width: 16ch; } }
@media (max-width: 560px) { .hero-copy { gap: 16px; padding-top: 0; } .hero .lead { font-size: 1.06rem; } }

/* Expediente: the case review card */
.expediente { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 30px 80px rgba(20, 32, 41, 0.14), 0 2px 6px rgba(20, 32, 41, 0.06); }
.expediente-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.expediente-tab strong { font-weight: 600; }
.expediente-tab .num { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.expediente-body { padding: 24px; display: grid; gap: 18px; }
.progress { display: flex; gap: 6px; margin-bottom: 22px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-deep); }
.progress span.on { background: var(--lacre); }
.step { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font: 500 1.6rem/1.15 var(--display); padding: 0; margin-bottom: 4px; }
.js .step[data-active="false"] { display: none; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; background: var(--sheet); transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; }
.choice svg { flex: none; color: var(--muted); }
.choice span { font-weight: 500; line-height: 1.3; }
.choice:has(input:checked) { border-color: var(--lacre); background: var(--lacre-soft); }
.choice:has(input:checked) svg { color: var(--lacre); }
.choice:has(input:focus-visible) { outline: 3px solid var(--lacre); outline-offset: 2px; }
.choices.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .expediente-tab { padding: 14px 18px; }
  .expediente-body { padding: 18px; }
  .choices.tiles .choice { gap: 10px; padding: 12px 10px; min-height: 64px; }
  .choices.tiles .choice svg { width: 20px; height: 20px; }
  .choices.tiles .choice span { font-size: 0.94rem; }
  .step legend { font-size: 1.4rem; }
}
.choices.two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.two .choice { justify-content: center; padding: 12px 10px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 0.92rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid #b9c2bc; border-radius: 4px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(20, 32, 41, 0.12); }
.field textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 0.86rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lacre); flex: none; }
.step-nav { display: flex; gap: 12px; align-items: center; }
.step-nav .back { background: none; border: 0; color: var(--muted); font: 500 0.95rem var(--text); cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; }
.step-nav .btn { flex: 1; }
.no-js-note { display: none; }
.deadline-hint { border-radius: 6px; padding: 14px 16px; font-size: 0.96rem; line-height: 1.45; }
.deadline-hint.ok { background: var(--ok-soft); color: #1f4d39; }
.deadline-hint.warn { background: var(--warn-soft); color: #6d4206; }
.deadline-hint.late { background: var(--lacre-soft); color: var(--lacre-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 10px; padding: 8px 0; }
.form-done h3 { font: 500 1.7rem/1.15 var(--display); }
.form-error { color: var(--lacre-dark); font-size: 0.92rem; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--muted); }

/* Before whom we act */
.ante { border-bottom: 1px solid var(--rule); }
.ante .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 34px; padding-block: 22px; }
.ante p { color: var(--muted); font-size: 0.95rem; }
.ante ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.ante li { font: 500 1.2rem/1.2 var(--display); }

/* Sections */
.section { padding-block: 88px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
@media (max-width: 760px) { .section { padding-block: 64px; } }

/* The legal clock */
.clock { background: var(--ink-band); color: var(--on-dark); }
.clock .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-block: 88px; }
.clock h2 { color: var(--on-dark); }
.clock .lead { color: var(--on-dark-muted); }
.clock-intro { display: grid; gap: 22px; align-content: start; }
.clock .field label { color: var(--on-dark); }
.clock .field input { background: #0f1b23; color: var(--on-dark); border-color: #3a4c58; color-scheme: dark; }
.clock .hint { color: var(--on-dark-muted); }
.clock-panel { min-width: 0; display: grid; gap: 28px; }
.axis { position: relative; height: 122px; margin: 0 12px; }
.axis-line { position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: #3a4c58; }
.axis-fill { position: absolute; left: 0; top: 44px; height: 2px; background: var(--on-dark-muted); }
.axis-mark { position: absolute; top: 0; width: 0; height: 100%; }
.axis-mark .dot { position: absolute; top: 38px; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-band); border: 2px solid var(--on-dark); }
.axis-mark.key .dot { top: 36px; left: -9px; width: 18px; height: 18px; background: var(--lacre); border-color: #e9b9bd; }
.axis-mark .lbl { position: absolute; top: 64px; font-size: 0.8rem; line-height: 1.3; color: var(--on-dark); white-space: nowrap; }
.axis-mark .lbl .when { display: block; color: var(--on-dark-muted); }
.axis-mark[data-side="left"] .lbl { right: -7px; text-align: right; }
.axis-mark[data-side="right"] .lbl { left: -7px; text-align: left; }
.axis-mark.key .lbl { font-weight: 600; }
.axis-today { position: absolute; top: 22px; height: 34px; width: 0; border-left: 2px dashed #e9b9bd; }
.axis-today span { position: absolute; top: -22px; left: 0; transform: translateX(-50%); font-size: 0.78rem; font-weight: 600; color: #e9b9bd; white-space: nowrap; }
.axis-today.end span { transform: translateX(-100%); }
.deadlines { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid #2f404b; }
.deadlines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid #2f404b; align-items: center; }
.deadlines .d-what { font-weight: 500; }
.deadlines .d-date { color: var(--on-dark-muted); font-size: 0.92rem; grid-column: 1; }
.chip { grid-row: 1 / span 2; grid-column: 2; justify-self: end; font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: #1f3f33; color: #bfe3cf; }
.chip.warn { background: #44331a; color: #f3d39f; }
.chip.late { background: #4a1f26; color: #f2c0c5; }
.clock-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.clock-cta p { color: var(--on-dark-muted); max-width: 46ch; }
.recargo { font-size: 0.98rem; color: #f2c0c5; }
@media (max-width: 980px) { .clock .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; } }
@media (max-width: 640px) {
  .axis { display: none; }
}

/* Letter deadline calculator */
.clock .field select { width: 100%; min-height: 50px; font: inherit; background: #0f1b23; color: var(--on-dark); border: 1px solid #3a4c58; border-radius: 4px; padding: 12px 14px; color-scheme: dark; }
.plazo-panel { align-content: start; }
.plazo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 22px; border-bottom: 1px solid #2f404b; }
.plazo-date { font: 500 clamp(1.7rem, 3.2vw, 2.5rem)/1.12 var(--display); color: var(--on-dark); max-width: 22ch; letter-spacing: -0.01em; }
.plazo-head .chip { grid-row: auto; grid-column: auto; }
.plazo-what { color: var(--on-dark); font-size: 1.05rem; max-width: 60ch; }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; font-size: 0.78rem; font-variant-numeric: tabular-nums; background: #263741; color: #c9d3d8; }
.cal span.i { background: transparent; border: 1px dashed #3d505c; color: #6b7d88; }
.cal span.past.h { background: #3b4d59; color: #e3e9ec; }
.cal span.today { box-shadow: 0 0 0 2px #e9b9bd; }
.cal span.end, .cal span.past.end { background: var(--lacre); border-color: var(--lacre); color: #fff; font-weight: 700; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--ink); }
.service { display: grid; align-content: start; gap: 12px; padding: 32px 0 36px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.service svg { color: var(--lacre); }
.service h3 { font: 500 1.7rem/1.12 var(--display); letter-spacing: -0.01em; }
.service p { color: var(--muted); }
.service ul { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.service li { position: relative; padding-left: 18px; }
.service li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lacre); }
.service .price { font-size: 0.92rem; font-weight: 600; }
.service .more { font-weight: 600; color: var(--lacre); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.service:hover h3, .service:hover .more { color: var(--lacre-dark); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Situations */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--ink); }
.situation { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 18px; padding: 28px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.situation svg { grid-row: 1 / span 3; color: var(--lacre); margin-top: 4px; }
.situation h3 { font-size: 1.28rem; }
.situation p { color: var(--muted); }
.situation .price { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.situation:hover h3 { color: var(--lacre); }
@media (max-width: 820px) { .situations { grid-template-columns: 1fr; } }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--rule); }
.steps li { position: relative; display: grid; gap: 12px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font: 500 1.5rem/1 var(--display); }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { display: none; } }

/* Promise */
.promise { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.promise blockquote { margin: 0; font: 500 var(--s-3)/1.12 var(--display); letter-spacing: -0.01em; max-width: 18ch; }
.price-card { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 12px; }
.price-card .amount { font: 500 3rem/1 var(--display); }
.price-card .amount small { font: 500 1.1rem var(--text); color: var(--muted); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; gap: 32px; } }

/* Person */
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; max-width: 860px; }
.person .seal { width: 96px; height: 96px; font-size: 1.9rem; }
.person .prose { display: grid; gap: 14px; }

/* FAQ + final form */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
@media (max-width: 980px) { .closing { grid-template-columns: 1fr; } }
.faq { display: grid; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--lacre); border-bottom: 2px solid var(--lacre); transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Final band */
.final { background: var(--lacre); color: #fff; }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.final h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 22ch; }
.final .btn { background: #fff; color: var(--lacre); border-color: #fff; }
.final .btn:hover { background: var(--paper); color: var(--lacre-dark); }

/* Article pages */
.page-hero { border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; display: grid; gap: 22px; padding-block: 44px 52px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 20ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; border-top: 1px solid var(--ink); margin-top: 6px; }
.facts div { padding: 14px 20px 0 0; display: grid; gap: 4px; }
.facts dt { font-size: 0.88rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); } }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; padding-block: 56px 88px; }
.article-main { display: grid; gap: 52px; min-width: 0; }
.aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (max-width: 1040px) { .article { grid-template-columns: 1fr; gap: 56px; } .aside { position: static; } }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lacre); }
.seq { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: seq; border-top: 1px solid var(--rule); }
.seq li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); counter-increment: seq; }
.seq li::before { content: counter(seq); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 500 1.05rem/1 var(--display); }
.note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 20px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; max-width: 66ch; }
.note svg { color: var(--lacre); margin-top: 2px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
td.term { font: 500 1.35rem/1.2 var(--display); white-space: nowrap; }
td.price { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; font-weight: 600; }
tr.group th { padding-top: 26px; font: 500 1.35rem/1.2 var(--display); color: var(--ink); }
.inline-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px; padding: 28px; background: var(--ink-band); color: var(--on-dark); border-radius: 8px; }
.inline-cta p { font: 500 1.5rem/1.2 var(--display); max-width: 26ch; }
.related { display: grid; border-top: 1px solid var(--ink); }
.related a { padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.related a:hover { color: var(--lacre); }

/* Footer */
.site-footer { background: var(--ink-band); color: var(--on-dark); }
.site-footer .wrap { display: grid; gap: 40px; padding-block: 64px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font: 600 0.95rem/1.2 var(--text); color: var(--on-dark); }
.footer-grid a { display: block; padding: 4px 0; color: var(--on-dark-muted); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-grid p { color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-brand { display: grid; gap: 14px; }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-legal { border-top: 1px solid #2f404b; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.85rem; color: var(--on-dark-muted); }
.footer-legal a { color: var(--on-dark-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: rgba(242, 244, 241, 0.96); border-top: 1px solid var(--rule); backdrop-filter: blur(8px); }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta { transition: transform .25s ease; }
  .form-in-view .mobile-cta { transform: translateY(110%); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

.preview-banner { background: var(--ink); color: var(--on-dark); font-size: 0.85rem; text-align: center; padding: 8px max(16px, env(safe-area-inset-left, 0px)); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
