/* TPE à jour: brand green, navy and mist (see BRAND.md), Bricolage Grotesque, mobile first. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/brand/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --brand-green: #16754B;
  --brand-navy: #14213D;
  --brand-mist: #F4F7F5;
  --font-brand: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: var(--brand-mist);
  --surface: #ffffff;
  --surface-2: #e9efeb;
  --ink: var(--brand-navy);
  --muted: #536159;
  --line: #d4ddd8;
  --accent: var(--brand-green);
  --accent-hover: #11603d;
  --accent-ink: #ffffff;
  --accent-soft: #e0f0e7;
  --good: var(--brand-green); --good-soft: #e0f0e7;
  --warn: #9a4700; --warn-soft: #fdeed9;
  --crit: #b42318; --crit-soft: #fde8e6;
  --info: #1d5c99; --info-soft: #e3eef8;
  --bubble-mine: #d9efe3;
  --shadow: 0 1px 2px rgba(21, 32, 26, .06), 0 6px 20px rgba(21, 32, 26, .06);
  --focus: #1d5c99;
  --font-display: var(--font-brand);
  --font-body: var(--font-brand);
  --fs-0: 13px; --fs-1: 15px; --fs-2: 17px; --fs-3: 20px; --fs-4: 26px; --fs-5: 34px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #18201c; --surface-2: #212b26; --ink: #e6ede9; --muted: #9eada5; --line: #2d3833;
    --accent: #3dbe85; --accent-hover: #5fd09c; --accent-ink: #06140d; --accent-soft: #163a2a;
    --good: #3dbe85; --good-soft: #163a2a; --warn: #f0a35b; --warn-soft: #3a2a17; --crit: #f2857b; --crit-soft: #3d1e1b;
    --info: #86b8ea; --info-soft: #172a3d; --bubble-mine: #1d4532; --shadow: 0 1px 2px rgba(0,0,0,.4); --focus: #86b8ea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #18201c; --surface-2: #212b26; --ink: #e6ede9; --muted: #9eada5; --line: #2d3833;
  --accent: #3dbe85; --accent-hover: #5fd09c; --accent-ink: #06140d; --accent-soft: #163a2a;
  --good: #3dbe85; --good-soft: #163a2a; --warn: #f0a35b; --warn-soft: #3a2a17; --crit: #f2857b; --crit-soft: #3d1e1b;
  --info: #86b8ea; --info-soft: #172a3d; --bubble-mine: #1d4532; --shadow: 0 1px 2px rgba(0,0,0,.4); --focus: #86b8ea;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-2); line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--fs-5); font-weight: 800; }
h2 { font-size: var(--fs-4); font-weight: 800; }
h3 { font-size: var(--fs-3); font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-1); }
.tiny { font-size: var(--fs-0); }
.num { font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-display); font-size: var(--fs-1); font-weight: 600; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
picture { display: contents; }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.topbar .spacer { flex: 1; }
.mode { font-size: var(--fs-0); padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.flash { max-width: 720px; margin: 12px auto 0; padding: 12px 16px; border-radius: var(--radius); background: var(--crit-soft); color: var(--crit); font-weight: 700; }

.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 24px; }
.page.narrow { max-width: 720px; }
.page-head { display: grid; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid transparent; font-weight: 700; font-size: var(--fs-2); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: var(--fs-1); }
.btn-big { white-space: normal; text-align: center; max-width: 100%; min-height: 56px; padding: 14px 28px; font-size: var(--fs-3); border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field legend { font-weight: 700; }
.field .hint { color: var(--muted); font-size: var(--fs-1); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.input-short { max-width: 160px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
.sectors { display: grid; gap: 8px; }
.sector-option { position: relative; display: grid; align-content: start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.sector-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sector-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sector-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sector-option .t { font-weight: 700; font-size: var(--fs-1); line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-box { padding: 12px 14px; border-radius: var(--radius); background: var(--crit-soft); color: var(--crit); font-size: var(--fs-1); display: grid; gap: 8px; }

/* Banners and cards */
.banner { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.banner[hidden] { display: none; }
.banner.warn { background: var(--warn-soft); border-color: transparent; }
.banner.info { background: var(--info-soft); border-color: transparent; }
.banner.good { background: var(--good-soft); border-color: transparent; }
.banner .t { font-weight: 700; font-size: var(--fs-3); font-family: var(--font-display); display: flex; align-items: center; gap: 8px; }
.paper { background: #ffffff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow-x: auto; }
.section { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.work { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 16px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drafting-progress { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

.start-form { scroll-margin-top: 80px; }

/* Interview chat: compact, because the keyboard takes half of a phone screen. */
body.in-chat { overflow: hidden; }
.chat-shell { height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface); }
.chat-logo { display: flex; }
.chat-logo .brand-mark { width: 28px; height: 28px; }
.chat-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-bar { padding: 6px 16px 8px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.steps-segments { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; max-width: 760px; width: 100%; justify-self: center; }
.steps-segments li { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); transition: background .3s ease; }
.steps-segments li.done { background: var(--accent); }
.steps-segments li.current { background: var(--accent); opacity: .55; }
.steps-label { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-0); color: var(--muted); max-width: 760px; width: 100%; justify-self: center; }
.steps-label b { color: var(--ink); font-size: var(--fs-1); }
.messages { overflow-y: auto; padding: 12px 16px 8px; }
.messages-inner { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(560px, 88%); padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.theirs { align-self: flex-start; background: var(--surface); border-top-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--bubble-mine); border-top-right-radius: 4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--surface); border-radius: 14px; border-top-left-radius: 4px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer-area { background: var(--surface); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
/* Quick replies: always one line, scroll sideways if needed. */
.chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 760px; width: 100%; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip-form { display: contents; }
.chip { flex: none; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 700; font-size: var(--fs-1); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--accent-soft); }
.checks { max-width: 760px; width: 100%; margin: 0 auto; }
.chips-wrap { flex-wrap: wrap; overflow: visible; border: 0; padding: 0; margin: 0; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; }
.chip-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.chip-check:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.chip-submit { background: var(--accent); color: var(--accent-ink); }
.composer-closed { max-width: 760px; width: 100%; margin: 0 auto; font-size: var(--fs-1); color: var(--muted); }
.composer { display: flex; align-items: flex-end; gap: 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; padding: 10px 14px; border: 2px solid var(--line); border-radius: 22px; background: var(--bg); line-height: 1.35; }
.composer textarea:focus { border-color: var(--accent); outline: none; }
.icon { display: inline-block; flex: none; width: var(--icon-size); height: var(--icon-size); background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface-2); color: var(--ink); }
.icon-btn.send { background: var(--accent); color: var(--accent-ink); }
.icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { body.in-chat { font-size: 16px; } .bubble { max-width: 92%; } }

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

/* Preview of a document not paid for yet: a light diagonal "Aperçu" over the page. */
.paper.is-preview { position: relative; }
.paper.is-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220'%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' transform='rotate(-28 160 110)' font-family='sans-serif' font-size='44' font-weight='700' fill='%2314213d' fill-opacity='0.07'%3EAPERÇU%3C/text%3E%3C/svg%3E") repeat; }
@media print { .paper.is-preview { display: none; } }

.purchase .price { margin: 0 0 8px; font-size: 1.25rem; }
.purchase .included { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.purchase .included li { display: flex; gap: 8px; align-items: flex-start; }
.purchase .included .icon { color: var(--accent); margin-top: 2px; }

.site-footer { max-width: 1040px; margin: 32px auto 0; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.site-footer a { color: inherit; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.site-footer ul + .footer-title { margin-top: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer nav a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.site-footer nav a:hover { color: var(--accent); }
.purchase .btn, .banner .btn { white-space: normal; text-align: center; }

/* Guides and long texts on the landing pages */
.breadcrumb a { color: inherit; }
.prose { display: grid; gap: 14px; min-width: 0; }
.prose h2 { margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose .lead { font-size: var(--fs-3); }
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { padding-left: 28px; position: relative; }
.prose .checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.prose .d-table-wrap, .page .d-table-wrap { overflow-x: auto; }
.prose table.d-table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose table.d-table th { text-align: left; font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.prose table.d-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-list li { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-list a { font-weight: 700; }
.cta .btn { justify-self: start; }

/* Landing pages: one memorable thing, the document of the owner's trade; everything else quiet. */
.landing .hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.landing .hero .page { padding-top: 20px; padding-bottom: 36px; }
.hero-main { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero-home { display: inline-flex; border-radius: 8px; }
.hero-logo { height: 48px; width: auto; display: block; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: var(--fs-1); }
.landing .hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.025em; line-height: 1.04; max-width: 17ch; }
.lead { font-size: var(--fs-3); line-height: 1.45; max-width: 34em; }
.landing .page > * { min-width: 0; max-width: 100%; }
.company-search { display: grid; gap: 10px; width: 100%; max-width: 620px; scroll-margin-top: 16px; }
.company-search label { font-weight: 700; }
.company-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.search-field { flex: 1 1 260px; min-width: 0; position: relative; display: flex; }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.company-search-row input { flex: 1; width: 100%; min-width: 0; min-height: 58px; padding: 12px 16px 12px 46px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-size: var(--fs-2); }
.company-search-row input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.company-search-row .btn { flex: 1 1 auto; min-height: 58px; }
@media (min-width: 560px) { .company-search-row .btn { flex: 0 0 auto; } }
#start-step { display: block; width: 100%; max-width: 620px; }
#start-step:empty { display: none; }
.start-step { display: grid; gap: 12px; }
.reassure { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.reassure .icon { color: var(--accent); }
.notice { font-size: var(--fs-0); color: var(--muted); max-width: 62ch; line-height: 1.5; }
.company-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.company-option { display: grid; gap: 2px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.company-option:hover { border-color: var(--accent); }
.company-found { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }
.company-found .label { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* The specimen: a real document of the trade, rendered by the document template, overprinted SPÉCIMEN. */
.specimen-page { position: relative; background: #fff; }
.specimen-page .d-kicker, .specimen-page .d-draft { display: none; }
.specimen-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='300'%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' transform='rotate(-24 230 150)' font-family='sans-serif' font-size='64' font-weight='800' letter-spacing='6' fill='none' stroke='%2314213d' stroke-opacity='0.11' stroke-width='2'%3ESP%C3%89CIMEN%3C/text%3E%3C/svg%3E") 0 120px / 760px 620px repeat; }
.hero-photo { display: none; margin: 0; }
@media (min-width: 960px) {
  .landing .hero .page { padding-top: 36px; padding-bottom: 56px; }
  .hero-grid.with-photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
  .hero-photo { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--accent-soft); box-shadow: 0 30px 80px -30px rgba(20, 33, 61, .35); }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

.landing-body { gap: 64px; padding-top: 48px; }
.landing-body .section { gap: 18px; }
.landing-body .section > h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.015em; }
.section-intro { color: var(--muted); font-size: var(--fs-2); max-width: 62ch; }
.cta-row { margin-top: 8px; }
/* Two A4 pages side by side, the document rendered at its print width (794px) then scaled down. */
.sample-sheets { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding: 32px 16px; border-radius: 20px; background: var(--surface-2); }
.sample-sheet { --sheet-zoom: .42; width: calc(794px * var(--sheet-zoom)); height: calc(1123px * var(--sheet-zoom)); overflow: hidden; background: #fff; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .08), 0 24px 48px -28px rgba(20, 33, 61, .35); }
.sample-sheet .specimen-page { width: 794px; height: 1123px; overflow: hidden; zoom: var(--sheet-zoom); }
.sample-sheet + .sample-sheet .duerp > h2:first-child { margin-top: 0; }
@media (min-width: 720px) { .sample-sheet { --sheet-zoom: .5; } }
@media (min-width: 1100px) { .sample-sheet { --sheet-zoom: .58; } }
.specimen-full { max-width: 1000px; width: 100%; margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow); }
.specimen-view .page-head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.015em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2316754B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.included { display: grid; gap: 28px; }
.included h3 { font-size: var(--fs-3); font-weight: 700; margin-bottom: 14px; }
@media (min-width: 760px) { .included { grid-template-columns: 1fr 1fr; gap: 0; } .included > div + div { border-left: 1px solid var(--line); padding-left: 40px; } .included > div:first-child { padding-right: 40px; } }
/* Icon tiles: a line icon in a tinted square, aligned on the first line of its text. */
.icon-tile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-tile.warn { background: var(--warn-soft); color: var(--warn); }
.included h3 { display: flex; align-items: center; gap: 14px; }
.law { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.law li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.law .icon-tile { grid-row: span 2; }
.law b { color: var(--ink); font-size: var(--fs-2); line-height: 1.3; padding-top: 2px; }
.law li > span:last-child { color: var(--muted); font-size: var(--fs-1); }
@media (min-width: 760px) { .law { grid-template-columns: 1fr 1fr; } .risk-list { grid-template-columns: repeat(3, 1fr); } .risk-list li { grid-template-columns: 1fr; row-gap: 8px; } .risk-list .icon-tile { grid-row: auto; margin-bottom: 6px; } }

.compare-wrap { overflow-x: auto; margin: 0 -16px; padding: 12px 16px 4px; }
table.compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-1); }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 700; font-size: var(--fs-1); color: var(--muted); border-bottom-width: 2px; }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { color: var(--muted); }
.compare .ours { background: var(--surface); color: var(--ink); font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare thead .ours { color: var(--accent); border-top: 4px solid var(--accent); border-radius: 12px 12px 0 0; font-size: var(--fs-2); }
.compare tbody tr:last-child .ours { border-radius: 0 0 12px 12px; }
.compare .price td { font-size: var(--fs-2); }
.compare td { position: relative; padding-left: 46px; }
.verdict { position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.price .verdict { top: 16px; }
.verdict.good { background: var(--good-soft); color: var(--good); }
.verdict.meh { background: var(--warn-soft); color: #c26a00; }
.verdict.bad { background: var(--crit-soft); color: var(--crit); }
.compare .price .ours .verdict { top: 20px; }
.compare .price .ours { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.01em; }

/* How it works: a real sequence, so numbered, on one line linked by a rule on wide screens. */
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 22px; }
.how li { counter-increment: how; position: relative; display: grid; gap: 4px; padding-left: 52px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.how li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: -20px; width: 2px; background: var(--line); }
.how b { font-size: var(--fs-2); line-height: 1.25; }
.how span { color: var(--muted); font-size: var(--fs-1); }
@media (min-width: 860px) {
  .how { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .how li { padding-left: 0; padding-top: 52px; }
  .how li:not(:last-child)::after { left: 44px; right: -24px; top: 17px; bottom: auto; width: auto; height: 2px; }
}

.faq { display: grid; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: var(--fs-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 18px 0; color: var(--muted); }
@media (min-width: 960px) {
  .landing-body .prose, .landing-body .section > p, .landing-body .guide-list { max-width: 760px; }
}
