/* Ledgerly · landing page, SEO pages and legal pages. System: DESIGN.md. Tokens: tokens.css (loaded first).
   No literal colours or font names below this block. */

:root {
  /* names used by inline styles in older markup, mapped onto the tokens */
  --bg: var(--paper); --bg-alt: var(--paper-2); --card: var(--sheet); --muted: var(--ink-3);
  --brand-dark: var(--brand-ink); --line-strong: var(--line-2);
  --radius-sm: var(--r-1); --radius-md: var(--r-2); --radius-lg: var(--r-2);
  --sans: var(--font-body); --mono: var(--font-body);
  --wrap: 1160px;
  --on-night: #ffffff;
  --on-night-2: #c9cdd6;
  --night-line: rgba(255, 255, 255, .14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: lining-nums;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 750; letter-spacing: -.02em; line-height: 1.14; text-wrap: balance; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
:where(main, .legal-wrap) :is(p, li) a, .faq-a a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
b, strong { font-weight: 650; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

a[href], button, summary, select, label[for], [role="button"] { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .55; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

[data-component] { opacity: 1; }

/* ───────────────────────────── nav ───────────────────────────── */
nav, .nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-2) ease, box-shadow var(--t-2) ease;
}
.nav.scrolled, nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; border-radius: var(--r-1); background: var(--brand); color: var(--sheet); display: inline-grid; place-items: center; font-size: .9rem; }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; position: relative; transition: color var(--t-1) ease; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--t-2) var(--ease-out); }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--sheet); align-items: center; justify-content: center; font-size: 1.05rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-1); overflow: hidden; background: var(--sheet); }
.lang-opt { border: 0; background: transparent; padding: 6px 11px; min-height: 34px; font-size: .82rem; font-weight: 650; color: var(--ink-3); transition: background-color var(--t-1) ease, color var(--t-1) ease; }
.lang-opt.on { background: var(--ink); color: var(--sheet); }
.lang-opt:hover:not(.on) { color: var(--ink); background: var(--paper-2); }

/* ───────────────────────────── buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; min-height: 44px;
  border-radius: var(--r-1); border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-1) ease, border-color var(--t-1) ease, color var(--t-1) ease, transform var(--t-1) ease;
}
.btn:active { transform: scale(.98); }
.btn-primary, .btn-brand { background: var(--brand); color: var(--sheet); }
.btn-primary:hover, .btn-brand:hover { background: var(--brand-ink); color: var(--sheet); }
.btn-ghost, .btn-glass { background: var(--sheet); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-glass:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 13px 22px; min-height: 50px; font-size: 1.04rem; }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.btn .fa-play { font-size: .8em; color: var(--brand); }

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .lang-opt { min-height: 44px; padding: 10px 16px; }
  .btn-sm { min-height: 44px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow-2); }
  .nav.nav-open .nav-links, nav.nav-open .nav-links { display: flex; animation: rise-in var(--t-2) var(--ease-out); }
  .nav-links > a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { width: 100%; margin-top: 14px; }
  .nav-links .lang-switch { align-self: flex-start; margin-top: 14px; }
}

/* ───────────────────────────── sections ───────────────────────────── */
section { padding: 104px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.ledger-head, .sec-head { margin-bottom: 52px; max-width: 760px; }
.ledger-head-grid { display: block; }
.ledger-head h2, .sec-head h2, .faq-intro h2, .mob-copy h2, .contact-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.ledger-head p, .sec-head p { color: var(--ink-2); font-size: 1.12rem; margin-top: 16px; max-width: 62ch; }
.sec-head .eyebrow { display: none; }
@media (max-width: 720px) { .ledger-head, .sec-head { margin-bottom: 36px; } }

/* ───────────────────────────── hero ───────────────────────────── */
.hero2 { padding: 56px 0 72px; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero2 h1 { font-size: clamp(2.2rem, 3.75vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 22px; text-wrap: normal; }
.lead2 { font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 30px; max-width: 34em; }
.hero-cta2 { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-login { margin-top: 18px; font-size: .95rem; color: var(--ink-3); }
.hero-login a { color: var(--ink); font-weight: 600; }

.hero-facts-wrap { margin-top: 64px; }
.hero-ledger-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hls-cell { padding: 20px 24px 0 0; }
.hls-cell + .hls-cell { padding-left: 24px; border-left: 1px solid var(--line); }
.hls-cell strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.hls-cell span { display: block; font-size: .92rem; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }

/* the one authored entrance on the page */
@media (prefers-reduced-motion: no-preference) {
  .hero2 .tv { animation: hero-frame var(--t-4) var(--ease-out) 120ms both; }
}
@keyframes hero-frame { from { opacity: 0; transform: translateY(22px) scale(.975); clip-path: inset(0 0 14% 0 round var(--r-2)); } to { clip-path: inset(0 round var(--r-2)); } }

/* ───────────────────────────── product tour (hero) ───────────────────────────── */
.tv { background: var(--sheet); border-radius: var(--r-2); box-shadow: var(--shadow-2); overflow: hidden; }
.tv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px 20px; }
.tv-url { font-size: .92rem; font-weight: 600; color: var(--ink-3); }
.tv-play { width: 36px; height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); display: inline-grid; place-items: center; font-size: .72rem; transition: border-color var(--t-1) ease, background-color var(--t-1) ease; }
.tv-play:hover { border-color: var(--ink); }

.tv-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tv-chip { position: relative; border: 0; background: transparent; color: var(--ink-3); padding: 10px 4px 12px; min-height: 44px; font-size: .9rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: color var(--t-1) ease; }
.tv-chip i { font-size: .85em; }
.tv-chip:hover, .tv-chip.on, .tv-chip.done { color: var(--ink); }
.tv-chip b { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.tv-chip.done b { transform: scaleX(1); background: var(--line-2); }
.tv-chip.on b { animation: tv-fill var(--tv-dur, 6s) linear forwards; }
.tv.paused .tv-chip.on b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tv-scene.on * { animation: none !important; } .tv-chip.on b { animation: none; transform: scaleX(1); } }
@keyframes tv-fill { to { transform: scaleX(1); } }

.tv-screen { position: relative; min-height: 372px; }
.tv-scene { display: none; padding: 24px; }
.tv-scene.on { display: grid; min-height: 372px; }
.tv-scene.on :is(.a1, .a2, .a3, .a4, .a5, .a6, .a7, .a8) { animation: rise-in var(--t-3) var(--ease-out) both; }
.tv-scene.on .a1 { animation-delay: .05s; } .tv-scene.on .a2 { animation-delay: .3s; }
.tv-scene.on .a3 { animation-delay: .55s; } .tv-scene.on .a4 { animation-delay: .8s; }
.tv-scene.on .a5 { animation-delay: 1.05s; } .tv-scene.on .a6 { animation-delay: 1.3s; }
.tv-scene.on .a7 { animation-delay: 1.55s; } .tv-scene.on .a8 { animation-delay: 1.8s; }

.tv-screen b { font-weight: 650; font-variant-numeric: tabular-nums; }
/* 1 scan */
.sc-scan { grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
.sc-phone { background: var(--night); border-radius: 18px; padding: 9px; }
.sc-paper { background: var(--sheet); border-radius: 10px; padding: 14px 12px; position: relative; overflow: hidden; font-size: .78rem; }
.sc-paper b { display: block; font-size: .82rem; margin-bottom: 8px; }
.sc-paper > i { display: block; height: 5px; background: var(--line); border-radius: 3px; margin: 6px 0; }
.sc-paper > i.w60 { width: 60%; } .sc-paper > i.w80 { width: 80%; } .sc-paper > i.w40 { width: 40%; }
.sc-sum { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; }
.sc-sum b { margin: 0; }
.sc-laser { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); box-shadow: 0 0 12px 2px rgba(200, 75, 49, .45); transform: translateY(8px); }
.tv-scene.on .sc-laser { animation: laser 1.6s var(--ease-in-out) .2s 2; }
@keyframes laser { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(150px); } }
.sc-form { display: flex; flex-direction: column; gap: 7px; }
.sc-title { font-size: .88rem; font-weight: 650; color: var(--ok); margin-bottom: 2px; }
.sc-field { background: var(--paper); border-radius: var(--r-1); padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; }
.sc-field span { color: var(--ink-3); font-size: .82rem; }
.sc-field em { font-style: normal; font-size: .74rem; background: var(--ok-soft); color: var(--ok); padding: 2px 8px; border-radius: var(--r-pill); font-weight: 650; }
.sc-save { display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.sc-save span { font-size: .8rem; padding: 5px 10px; border-radius: var(--r-1); background: var(--paper-2); color: var(--ink-2); font-weight: 600; }
.sc-save span.on { background: var(--ink); color: var(--sheet); }
.sc-done { font-size: .86rem; color: var(--ok); font-weight: 650; margin-top: 2px; }
/* 2 dashboard */
.sc-dash { position: relative; padding: 16px; align-items: center; justify-items: center; }
.sc-dash-img { width: 100%; max-height: 330px; object-fit: cover; object-position: top; border-radius: var(--r-1); border: 1px solid var(--line); }
.sc-kpi { position: absolute; background: var(--night); color: var(--on-night); border-radius: var(--r-1); padding: 9px 14px; box-shadow: var(--shadow-2); font-size: .8rem; }
.sc-kpi span { display: block; font-size: .74rem; color: var(--on-night-2); }
.sc-kpi b { font-family: var(--font-head); font-size: 1.1rem; }
.sc-kpi.k1 { top: 26px; left: 26px; } .sc-kpi.k2 { top: 26px; right: 26px; }
.sc-kpi.k3 { bottom: 26px; left: 26px; right: 26px; background: var(--brand); font-weight: 650; display: flex; align-items: center; gap: 8px; }
/* 3 dunning */
.sc-dun { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.sc-dun-left { display: flex; flex-direction: column; gap: 12px; }
.sc-row { background: var(--paper); border-radius: var(--r-1); padding: 11px 13px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: .88rem; }
.sc-row span { color: var(--ink-3); }
.sc-row .late { font-style: normal; font-size: .76rem; background: var(--bad-soft); color: var(--bad); padding: 2px 8px; border-radius: var(--r-pill); font-weight: 650; }
.sc-steps { display: flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--ink-3); flex-wrap: wrap; }
.sc-steps span { padding: 4px 8px; border-radius: var(--r-pill); background: var(--paper-2); font-weight: 600; }
.sc-steps span.done { background: var(--ok-soft); color: var(--ok); }
.sc-steps span.now { background: var(--ink); color: var(--sheet); }
.sc-steps i { flex: 1; min-width: 6px; height: 1px; background: var(--line-2); }
.sc-note { font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.sc-note i { color: var(--brand); margin-right: 4px; }
.sc-letter { background: var(--sheet); border-radius: var(--r-1); padding: 16px 18px; font-size: .86rem; box-shadow: var(--shadow-1); }
.sc-letter-h { font-family: var(--font-head); font-weight: 750; font-size: 1rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sc-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .84rem; }
.sc-line span { color: var(--ink-3); }
.sc-line.tot { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .92rem; }
.sc-line.tot span { color: var(--ink); font-weight: 650; }
.sc-stamp { margin-top: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: .8rem; padding: 5px 11px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; }
/* 4 DATEV */
.sc-datev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.sc-card { background: var(--paper); border-radius: var(--r-1); padding: 14px 16px; }
.sc-card-h { font-weight: 650; font-size: .9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sc-card-h i { color: var(--brand); }
.sc-file { background: var(--night); border-radius: var(--r-1); padding: 16px; font-size: .84rem; line-height: 2.1; color: var(--on-night); }
.sc-file i { color: var(--on-night-2); margin-right: 8px; }
.sc-advisor { grid-column: 1 / -1; background: var(--paper); border-radius: var(--r-1); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-av { width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--ink); color: var(--sheet); font-weight: 650; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; }
.sc-advisor b { display: block; font-size: .9rem; }
.sc-advisor span { font-size: .8rem; color: var(--ink-3); }
.sc-advisor em { margin-left: auto; font-style: normal; background: var(--ok-soft); color: var(--ok); padding: 4px 11px; border-radius: var(--r-pill); font-weight: 650; font-size: .8rem; }
/* 5 payments */
.sc-pay { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: center; }
.sc-tx { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.sc-tx b.pos { color: var(--ok); }
.sc-tx em { grid-column: 1 / -1; font-style: normal; font-size: .78rem; color: var(--ok); }
.sc-tx.dim { opacity: .6; } .sc-tx.dim em { color: var(--ink-3); }
.sc-paychips { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-paychips span { font-size: .8rem; padding: 6px 11px; border-radius: var(--r-pill); background: var(--paper-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sc-paychips span i { color: var(--brand); }
.sc-paychips span.soon { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); }

@media (max-width: 1040px) { .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero2 h1 br { display: none; } }
@media (max-width: 760px) {
  .hero-ledger-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hls-cell { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
  .hls-cell + .hls-cell { padding-left: 0; border-left: 0; }
  .hls-cell:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
  .hero-facts-wrap { margin-top: 44px; }
}
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .hero2 { padding: 28px 0 52px; }
  .hero-cta2 .btn { width: 100%; }
  .tv-chip span { display: none; } .tv-chip.on span { display: inline; }
  .tv-chip i { font-size: 1em; }
  .tv-screen, .tv-scene.on { min-height: 0; }
  .tv-scene { padding: 18px; }
  .sc-scan, .sc-dun, .sc-datev { grid-template-columns: minmax(0, 1fr); }
  .sc-phone { max-width: 190px; margin: 0 auto; }
  .sc-kpi.k1, .sc-kpi.k2, .sc-kpi.k3 { position: static; margin-top: 8px; width: 100%; box-shadow: none; }
  .sc-dash { display: flex; flex-direction: column; align-items: stretch; }
}

/* ───────────────────────────── explainer video ───────────────────────────── */
.vid-sec { background: var(--night); color: var(--on-night); padding: 96px 0; }
.vid-sec h2 { color: var(--on-night); font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.vid-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.vid-head p { color: var(--on-night-2); font-size: 1.1rem; max-width: 46ch; }
.vid-frame { position: relative; border-radius: var(--r-2); overflow: hidden; background: var(--night-2); aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vid-frame video, .vid-frame .vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, rgba(22, 24, 28, 0) 45%, rgba(22, 24, 28, .62)); display: grid; place-items: center; color: var(--on-night); transition: opacity var(--t-2) ease; }
.vid-play-btn { width: 88px; height: 88px; border-radius: var(--r-pill); background: var(--brand); display: grid; place-items: center; font-size: 1.5rem; padding-left: 5px; box-shadow: 0 10px 34px rgba(0, 0, 0, .4); transition: transform var(--t-2) var(--ease-out), background-color var(--t-1) ease; }
.vid-play:hover .vid-play-btn { transform: scale(1.07); background: var(--brand-ink); }
.vid-play-meta { position: absolute; left: 24px; bottom: 20px; font-size: .98rem; font-weight: 600; text-align: left; }
.vid-frame.playing .vid-play, .vid-frame.playing .vid-poster { opacity: 0; pointer-events: none; }
.vid-poster { transition: opacity var(--t-3) ease; }
.vid-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--night-line); }
.vid-chapters button { text-align: left; background: none; border: 0; padding: 16px 16px 0 0; color: var(--on-night-2); font-size: .95rem; line-height: 1.35; transition: color var(--t-1) ease; }
.vid-chapters button:hover, .vid-chapters button.on { color: var(--on-night); }
.vid-chapters time { display: block; font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--on-night-2); margin-bottom: 2px; }
.vid-chapters button.on time { color: var(--brand); }
.vid-transcript { margin-top: 28px; color: var(--on-night-2); font-size: .98rem; }
.vid-transcript summary { color: var(--on-night); font-weight: 600; width: max-content; }
.vid-transcript p { margin-top: 12px; max-width: 76ch; }
@media (max-width: 860px) {
  .vid-sec { padding: 64px 0; }
  .vid-head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
  .vid-chapters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vid-play-btn { width: 68px; height: 68px; font-size: 1.15rem; }
}

/* ───────────────────────────── five everyday jobs ───────────────────────────── */
.hl-sec { background: var(--sheet); }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; padding: 56px 0; }
.hl-row:first-of-type { padding-top: 0; } .hl-row:last-of-type { padding-bottom: 0; }
.hl-row.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hl-row.rev .hl-copy { order: 2; } .hl-row.rev .hl-visual { order: 1; }
.hl-copy h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
.hl-copy h3 i { display: none; }
.hl-copy > p { color: var(--ink-2); margin-bottom: 20px; max-width: 58ch; }
.hl-list { display: grid; gap: 10px; }
.hl-list li, .mob-copy li { position: relative; padding-left: 26px; font-size: 1rem; color: var(--ink-2); }
.hl-list li::before, .mob-copy li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.hl-list b { color: var(--ink); }
.soon-card { margin-top: 20px; background: var(--paper); border-radius: var(--r-1); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.soon-card i { color: var(--ink-3); margin-top: 4px; }
.soon-card b { display: block; }
.soon-card span { color: var(--ink-3); font-size: .92rem; }

/* product pictures: no drawn window, just the screenshot with depth */
.frame { border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow-2); background: var(--sheet); }
.frame img { width: 100%; cursor: zoom-in; }
.hl-phones { display: flex; align-items: center; justify-content: center; gap: 18px; }
.phone2 { width: 232px; background: var(--night); border-radius: 30px; padding: 8px; box-shadow: var(--shadow-2); flex-shrink: 0; }
.phone2 img { width: 100%; border-radius: 23px; cursor: zoom-in; }
.hl-arrow { color: var(--ink-3); font-size: 1rem; flex-shrink: 0; }
.hl-stack { display: flex; flex-direction: column; gap: 16px; }
.mail-card { background: var(--paper); border-radius: var(--r-2); padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail-av { width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--ink); color: var(--sheet); display: grid; place-items: center; flex-shrink: 0; font-size: .9rem; }
.mail-card b { display: block; font-size: .98rem; }
.mail-card span { font-size: .88rem; color: var(--ink-3); }
.mail-card em { margin-left: auto; font-style: normal; background: var(--ok-soft); color: var(--ok); padding: 4px 12px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 650; }

/* the one scroll grammar: a picture is unveiled, text never moves (needs JS; visible without it) */
@media (prefers-reduced-motion: no-preference) {
  .js .unveil { clip-path: inset(0 0 100% 0 round var(--r-2)); transform: translateY(18px); transition: clip-path var(--t-4) var(--ease-out), transform var(--t-4) var(--ease-out); }
  .js .unveil.seen { clip-path: inset(0 round var(--r-2)); transform: none; }
  .js .hl-phones .phone2:last-child.unveil { transition-delay: 140ms; }
}

@media (max-width: 920px) {
  .hl-row, .hl-row.rev { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .hl-row.rev .hl-copy { order: 1; } .hl-row.rev .hl-visual { order: 2; }
}
@media (max-width: 560px) {
  .hl-phones { gap: 10px; }
  .phone2 { width: auto; flex: 1 1 0; min-width: 0; border-radius: 22px; padding: 5px; }
  .phone2 img { border-radius: 17px; }
}

/* ───────────────────────────── dashboard, explained on the screenshot ───────────────────────────── */
.dash-sec { background: var(--paper); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.frame-tall .pins { position: relative; }
.pin { position: absolute; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--brand); color: var(--sheet); font-weight: 700; font-size: .86rem; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(200, 75, 49, .22); transform: translate(-50%, -50%); }
.dash-list { counter-reset: d; display: grid; gap: 0; position: sticky; top: 100px; }
.dash-list li { counter-increment: d; position: relative; padding: 18px 0 18px 46px; border-top: 1px solid var(--line); }
.dash-list li:first-child { border-top: 0; padding-top: 0; }
.dash-list li::before { content: counter(d); position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--brand); color: var(--sheet); font-weight: 700; font-size: .86rem; display: grid; place-items: center; }
.dash-list li:first-child::before { top: 0; }
.dash-list b { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.dash-list span { font-size: .98rem; color: var(--ink-2); }
@media (max-width: 920px) { .dash-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .dash-list { position: static; } }

/* ───────────────────────────── what is included ───────────────────────────── */
#features { background: var(--sheet); }
.f-spotlight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.f-spotlight h3 { font-size: 1.6rem; margin-bottom: 12px; }
.f-spotlight p { color: var(--ink-2); font-size: 1.06rem; }
.f-spec-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 56px; }
.f-spec-row { display: block; }
.f-spec-body h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 6px; }
.f-spec-body p { font-size: .98rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 860px) { .f-spotlight-grid, .f-spec-ledger { grid-template-columns: minmax(0, 1fr); gap: 28px; } .f-spotlight-grid { margin-bottom: 36px; padding-bottom: 36px; } }

/* ───────────────────────────── built for trades ───────────────────────────── */
.hw-sec { background: var(--paper); }
.hw-ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.hw-cell { padding: 26px 0; border-top: 1px solid var(--line); }
.hw-law { display: inline-block; font-size: .86rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.hw-cell h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.hw-cell p { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 760px) { .hw-ledger-grid { grid-template-columns: minmax(0, 1fr); } }

.tools-workbench { margin-top: 88px; background: var(--night); color: var(--on-night); border-radius: var(--r-2); padding: 52px 48px 44px; scroll-margin-top: 90px; }
.tools-workbench-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.tools-workbench-head h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--on-night); }
.tools-workbench-head p { color: var(--on-night-2); font-size: 1.04rem; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.tool-tile { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; padding: 24px 0; border-top: 1px solid var(--night-line); color: var(--on-night); }
.tool-tile-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.tool-tile-top > i { color: var(--on-night-2); transition: color var(--t-1) ease, transform var(--t-2) var(--ease-out); }
.tool-tile-id { font-size: .86rem; font-weight: 600; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.tool-tile h4 { grid-column: 1 / -1; font-size: 1.22rem; font-weight: 700; color: var(--on-night); }
.tool-tile p { grid-column: 1 / -1; font-size: .98rem; color: var(--on-night-2); line-height: 1.5; }
.tool-tile-cta { grid-column: 1 / -1; margin-top: 8px; font-size: .96rem; font-weight: 650; color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.tool-tile:hover .tool-tile-top > i { color: var(--brand); transform: translateX(3px); }
.trades-bar { margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--night-line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.trades-bar-lbl { font-size: .95rem; color: var(--on-night-2); margin-right: 6px; }
.trade-pill { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--night-line); color: var(--on-night); padding: 7px 15px; border-radius: var(--r-pill); font-size: .95rem; font-weight: 600; transition: background-color var(--t-1) ease, border-color var(--t-1) ease; }
.trade-pill:hover { background: var(--brand); border-color: var(--brand); color: var(--on-night); }
@media (max-width: 760px) { .tools-workbench { padding: 32px 20px 28px; margin-top: 56px; } .tools-workbench-head, .tools-grid { grid-template-columns: minmax(0, 1fr); } .trade-pill { min-height: 44px; } }

/* ───────────────────────────── price ───────────────────────────── */
.trust { background: var(--sheet); }
.price-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; align-items: center; background: var(--paper); border-radius: var(--r-2); padding: 48px; }
.price-main { display: flex; flex-direction: column; align-items: flex-start; }
.price-amt { font-family: var(--font-head); font-size: clamp(3.2rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { color: var(--ink-3); margin: 8px 0 24px; }
.price-login { margin-top: 14px; font-size: .95rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.price-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 32px; }
.price-list li { display: flex; gap: 12px; align-items: baseline; font-size: 1rem; color: var(--ink-2); }
.price-list i { color: var(--ok); font-size: .85em; }
.onboard-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.ob-col { border-top: 1px solid var(--line); padding-top: 20px; }
.ob-time { display: block; font-size: .95rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; }
.ob-col h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.ob-col p { font-size: .98rem; color: var(--ink-2); }
@media (max-width: 860px) { .price-card { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 22px; } .price-list { grid-template-columns: minmax(0, 1fr); } .onboard-ledger { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; } }

/* ───────────────────────────── comparison ───────────────────────────── */
.compare { background: var(--paper); }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--sheet); border-radius: var(--r-2); border: 1px solid var(--line); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .98rem; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child :is(th, td) { border-bottom: 0; }
.cmp thead th { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.cmp td { color: var(--ink-2); }
.cmp .cmp-us { background: var(--brand-soft); color: var(--ink); }
.cmp thead .cmp-us { color: var(--brand-ink); }
.cmp td i.fa-check { color: var(--ok); font-size: .85em; margin-right: 4px; }
.cmp-na { color: var(--ink-3); }
.cmp-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.cmp-note h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.cmp-note h3 i { display: none; }
.cmp-note p { color: var(--ink-2); font-size: 1rem; }
.cmp-foot { margin-top: 24px; font-size: .88rem; color: var(--ink-3); max-width: 90ch; }
@media (max-width: 760px) { .cmp-notes { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ───────────────────────────── e-invoice dates ───────────────────────────── */
.einvoice { background: var(--sheet); }
.ei-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.ei-formats { display: grid; gap: 22px; }
.ef-badge { display: flex; gap: 16px; align-items: flex-start; }
.ef-ico { width: 44px; height: 44px; border-radius: var(--r-1); background: var(--ink) !important; color: var(--sheet) !important; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.ef-copy b { display: block; font-family: var(--font-head); font-size: 1.14rem; font-weight: 700; margin-bottom: 4px; }
.ef-copy span { font-size: .98rem; color: var(--ink-2); }
.ei-oneclick { display: flex; gap: 12px; align-items: baseline; font-size: .98rem; color: var(--ink-2); }
.ei-oneclick i { color: var(--ok); font-size: .9em; }
.ei-timeline { position: relative; display: grid; gap: 0; padding-left: 4px; }
.et-point { position: relative; display: flex; gap: 20px; padding: 0 0 34px 0; }
.et-point:last-child { padding-bottom: 0; }
.et-point::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -6px; width: 2px; background: var(--line); }
.et-point:last-child::before { display: none; }
.et-point::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: -6px; width: 2px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform 900ms var(--ease-in-out); }
.et-point:last-child::after { display: none; }
.einvoice.in-view .et-point::after { transform: scaleY(1); }
.einvoice.in-view .et-point:nth-child(2)::after { transition-delay: 500ms; }
.et-dot { width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--brand); margin-top: 7px; flex-shrink: 0; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--sheet); }
.et-label { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.et-label b { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 750; color: var(--ink); letter-spacing: -.015em; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.et-label em { font-style: normal; font-weight: 650; color: var(--ink); }
.ei-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; color: var(--ink-3); font-size: .95rem; max-width: 80ch; }
.ei-note i { color: var(--ink-3); }
@media (max-width: 860px) { .ei-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* ───────────────────────────── on the phone ───────────────────────────── */
.mob-sec { background: var(--paper-2); }
.mobile-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 88px; align-items: center; max-width: 940px; margin: 0 auto; }
.phone-solo { width: 264px; }
.mob-copy h2 { margin-bottom: 16px; }
.mob-copy p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 22px; }
.mob-copy ul { display: grid; gap: 10px; }
@media (max-width: 760px) { .mobile-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; } .mob-copy { order: -1; } .phone-solo { flex: none; width: 240px; } }

/* ───────────────────────────── FAQ ───────────────────────────── */
.faq { background: var(--sheet); }
.faq-split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-intro h2 { margin-bottom: 14px; }
.faq-intro p { color: var(--ink-2); margin-bottom: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; min-height: 44px; font-family: var(--font-head); font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); transition: color var(--t-1) ease; }
.faq-q:hover { color: var(--brand-ink); }
.faq-q::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-2) var(--ease-out); }
.faq-item.open .faq-q::after { transform: translateY(2px) rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-3) var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; color: var(--ink-2); max-width: 70ch; }
.faq-item.open .faq-a > div { padding-bottom: 22px; }
@media (max-width: 900px) { .faq-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .faq-intro { position: static; } }

/* ───────────────────────────── contact ───────────────────────────── */
#contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 28px; }
.c-ledger { border-top: 1px solid var(--line); }
.c-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.c-lbl { color: var(--ink-3); }
.form { background: var(--sheet); border-radius: var(--r-2); padding: 32px; box-shadow: var(--shadow-1); }
.dfield { margin-bottom: 18px; }
.dfield label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.dfield :is(input, textarea), .field :is(input, select, textarea) { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r-1); padding: 11px 13px; min-height: 46px; transition: border-color var(--t-1) ease, box-shadow var(--t-1) ease; }
.dfield :is(input, textarea)::placeholder { color: var(--ink-3); opacity: .8; }
.dfield :is(input, textarea):focus, .field :is(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .form { padding: 22px; } .c-item { grid-template-columns: 100px 1fr; } }

/* ───────────────────────────── footer ───────────────────────────── */
footer { background: var(--night); color: var(--on-night-2); padding: 72px 0 32px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; }
footer .logo { color: var(--on-night); margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-meta { margin-top: 14px; font-size: .9rem; }
.footer-col h3 { font-family: var(--font-body); font-size: .96rem; font-weight: 650; letter-spacing: 0; color: var(--on-night); margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
footer a { color: var(--on-night-2); transition: color var(--t-1) ease; }
footer a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-bottom div { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; } .footer-brand { grid-column: 1 / -1; } }

/* ───────────────────────────── lightbox, consent ───────────────────────────── */
.lb { position: fixed; inset: 0; background: rgba(16, 18, 22, .86); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 20px 20px; cursor: zoom-out; overscroll-behavior: contain; }
.lb[hidden] { display: none; }
.lb.show { animation: fade-in var(--t-2) ease; }
/* the picture keeps its own proportions: both sides scale together inside the free space */
.lb img { display: block; width: auto; height: auto; max-width: min(100%, 1600px); max-height: 100%; object-fit: contain; border-radius: var(--r-2); background: var(--sheet); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.lb.show img { animation: pop-in var(--t-3) var(--ease-out); }
.lb-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--night-ink); cursor: pointer; transition: background var(--t-1) ease; }
.lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-close:focus-visible { outline: 2px solid var(--night-ink); outline-offset: 2px; }
html.lb-open { overflow: hidden; }
@media (max-width: 600px) { .lb { padding: 60px 10px 10px; } }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 520px; margin: 0 0 0 auto; background: var(--night); color: var(--on-night-2); border-radius: var(--r-2); padding: 18px 22px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px); transition: opacity var(--t-3) ease, transform var(--t-3) var(--ease-out); }
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-in { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.cookie-in p { font-size: .88rem; line-height: 1.5; flex: 1 1 100%; }
.cookie-in a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn-ghost { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.cookie-actions .btn-ghost:hover { border-color: var(--on-night); color: var(--on-night); }
@media (max-width: 600px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .cookie-in { gap: 10px; }
  .cookie-in p { font-size: .8rem; line-height: 1.4; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-height: 44px; }
}

/* ───────────────────────────── legal pages (Read) ───────────────────────────── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal-wrap .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 28px; min-height: 44px; }
.legal-wrap h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 20px; }
.legal-wrap h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal-wrap h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal-wrap :is(p, li) { color: var(--ink-2); margin-bottom: 12px; }
.legal-wrap ul { list-style: disc; padding-left: 22px; }
.legal-wrap ol { list-style: decimal; padding-left: 22px; }
.legal-note { background: var(--paper-2); border-radius: var(--r-1); padding: 16px 18px; font-size: .96rem; margin: 20px 0; }

/* ───────────────────────────── SEO pages (lib/seo_layout.php) ───────────────────────────── */
.seo-breadcrumb { padding: 14px 0 0; font-size: .92rem; color: var(--ink-3); }
.seo-breadcrumb a { color: var(--ink-3); }
.seo-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.seo-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.seo-hero { padding: 40px 0 48px; }
.seo-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; max-width: 22em; }
.seo-hero p.lead { font-size: 1.16rem; max-width: 60ch; line-height: 1.55; }
.seo-hero-badges { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.seo-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .96rem; color: var(--ink-2); }
.seo-badge i { color: var(--ok); font-size: .9em; }
.seo-main { padding: 8px 0 72px; }
.seo-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-2); padding: 32px; margin-bottom: 28px; min-width: 0; overflow-wrap: anywhere; }
.seo-grid-2 > *, .seo-grid-3 > * { min-width: 0; }
.seo-card h2 { font-size: 1.5rem; margin: 0 0 12px; }
.seo-card h3 { font-size: 1.15rem; font-weight: 700; margin: 20px 0 8px; }
.seo-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.seo-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-form label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.tool-form .field { margin-bottom: 16px; }
.tool-form :is(input[type="text"], input[type="number"], input[type="date"], select, textarea) { width: 100%; padding: 11px 13px; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-1); font: inherit; font-size: 1rem; background: var(--sheet); color: var(--ink); transition: border-color var(--t-1) ease, box-shadow var(--t-1) ease; }
.tool-form :is(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.tool-form .hint { font-size: .9rem; color: var(--ink-3); margin-top: 5px; display: block; }
.tool-result-box { background: var(--paper); border-radius: var(--r-2); padding: 24px; }
.tool-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tool-kpi { background: var(--sheet); border-radius: var(--r-1); padding: 14px 16px; }
.tool-kpi .k-lbl { font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.tool-kpi .k-val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tool-kpi.highlight { background: var(--brand-soft); }
.tool-kpi.highlight .k-val { color: var(--brand-ink); }
.seo-prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.seo-prose h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 8px; }
.seo-prose p { color: var(--ink-2); margin: 0 0 16px; max-width: 72ch; }
.seo-prose :is(ul, ol) { margin: 0 0 20px 22px; color: var(--ink-2); max-width: 72ch; }
.seo-prose ul { list-style: disc; } .seo-prose ol { list-style: decimal; }
.seo-prose li { margin-bottom: 7px; }
.seo-callout { background: var(--brand-soft); border-radius: var(--r-1); padding: 18px 20px; margin: 22px 0; color: var(--ink-2); }
.seo-callout.ok { background: var(--ok-soft); }
.seo-callout.warn { background: var(--warn-soft); }
.seo-callout strong { display: block; margin-bottom: 4px; color: var(--ink); }
.muster-box { background: var(--sheet); border: 1px dashed var(--line-2); border-radius: var(--r-2); padding: 24px; margin: 24px 0; overflow-x: auto; }
.muster-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.seo-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--sheet); }
.seo-table :is(th, td) { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.seo-table th { font-size: .92rem; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line-2); }
.seo-table :is(td, th).r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seo-table tr.total-row td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; color: var(--ink); }
.seo-table tr.is-deduction td { color: var(--ink-3); }
.seo-table tr.is-subtotal td { background: var(--paper); }
/* .seo-card wraps prose with overflow-wrap:anywhere; inside a table that lets the
   auto layout squeeze a column down to one letter. Cells break between words only. */
.seo-card :is(td, th) { overflow-wrap: break-word; }
/* Dunning letter embedded in the Verzugszinsen tool: its own <head> styles are dropped. */
.tool-letter { font-size: .92rem; line-height: 1.55; color: var(--ink); }
.tool-letter table { border-collapse: collapse; }
.tool-letter table.sum { width: 100%; margin: 14px 0 16px; }
.tool-letter table.sum td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-letter table.sum td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-letter table.sum tr.tot td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; }
.tool-letter .pay { border: 1px solid var(--line); border-radius: var(--r-1); padding: 10px 12px; margin-top: 8px; }
.tool-letter .pay td { padding: 2px 10px 2px 0; vertical-align: top; }
.seo-cta-banner { background: var(--night); color: var(--on-night); border-radius: var(--r-2); padding: 44px 40px; margin: 56px 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.seo-cta-banner h2 { font-size: 1.7rem; margin: 0 0 8px; color: var(--on-night); }
.seo-cta-banner p { color: var(--on-night-2); max-width: 56ch; margin: 0; }
.seo-cta-banner .btn-ghost { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.seo-cta-banner .btn-ghost:hover { border-color: var(--on-night); color: var(--on-night); }
.seo-faq { padding: 72px 0; }
.seo-faq .faq-list { max-width: 820px; }
.seo-crosslinks { padding: 64px 0; background: var(--paper-2); }
.seo-link-card { display: block; background: var(--sheet); border-radius: var(--r-2); padding: 18px 20px; height: 100%; border: 1px solid transparent; transition: border-color var(--t-1) ease, transform var(--t-2) var(--ease-out); }
.seo-link-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.seo-link-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 9px; }
.seo-link-card h3 i { color: var(--brand); font-size: .9em; }
.seo-link-card p { font-size: .95rem; color: var(--ink-3); margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .seo-grid-2, .seo-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .seo-main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .seo-main :is(.seo-card, .muster-box, .tool-result-box) { overflow-x: auto; } .seo-main :is(input, select, textarea, canvas, img, svg) { max-width: 100%; } .seo-card { padding: 20px 16px; } .seo-cta-banner { padding: 28px 22px; } .seo-hero { padding: 26px 0 32px; } }
@media (max-width: 720px) {
  .seo-main .tool-letter table { display: table; overflow: visible; }
  .seo-main .tool-letter .pay > table,
  .tool-letter .pay > table > tbody, .tool-letter .pay > table > tbody > tr, .tool-letter .pay > table > tbody > tr > td { display: block; }
  .tool-letter .pay > table > tbody > tr > td { padding: 0; }
  .tool-letter .pay > table > tbody > tr > td + td { margin-top: 10px; }
  .seo-main .tool-letter .pay img { max-width: none; }
  .seo-main .seo-table--stack { display: table; overflow: visible; }   /* real table while it fits; see below */
}
/* A .seo-table--stack row becomes a block whenever the table's own column is too narrow for its columns
   (a phone, or a half-width card in the two-column layout from 901px up). First cell is the row's heading,
   every other cell shows its column name (data-label) beside or above its value. Measured: the 4-column
   Abschlag table needs about 483px, so it stacks below 520px of room. */
:is(.seo-card, .seo-prose):has(> .seo-table--stack) { container: stack-table / inline-size; }
@container stack-table (max-width: 520px) {
  .seo-main .seo-table--stack { display: block; overflow: visible; }
  .seo-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .seo-table--stack :is(tbody, tr, td) { display: block; }
  .seo-table--stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .seo-table--stack td { padding: 3px 0; border: 0; }
  .seo-table--stack td:first-child { padding-bottom: 6px; }
  .seo-table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: .88rem; font-weight: 400; color: var(--ink-3); }
  .seo-table--stack td.r[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .seo-table--stack td.r[data-label]::before { display: inline; }
  .seo-table--stack tr.is-subtotal { background: var(--paper); padding-inline: 10px; }
  .seo-table--stack tr.is-subtotal td { background: none; }
  .seo-table--stack tr.total-row { border-top: 1px solid var(--ink); border-bottom: 0; }
  .seo-table--stack tr.total-row td { border-top: 0; }
}
/* E-Rechnung viewer on phones: the invoice keeps real tables (the rule above would squeeze six columns into one word per line).
   Parties stack, facts go two per row, quantity/price/rate fold under each item name. Same layout as pages/einvoice_view.php. */
.einr-frame .einr-doc { overflow-wrap: break-word; }
@media (max-width: 720px) {
  .einr-frame { padding: 16px 14px !important; }
  .seo-main .einr-doc table { display: table; overflow: visible; }
  .einr-doc :is(.einr-parties, .einr-head) td { display: block; width: 100% !important; text-align: left !important; padding: 0 0 12px 0 !important; }
  .einr-doc .einr-facts tr { display: flex; flex-wrap: wrap; }
  .einr-doc .einr-facts td { width: 50% !important; box-sizing: border-box; }
  .einr-doc .einr-facts td:empty { display: none; }
  .einr-doc .einr-lines .einr-x { display: none; }
  .einr-doc .einr-lines .einr-m { display: block !important; }
  .einr-doc .einr-totals > tbody > tr > td:first-child { display: none; }
  .einr-doc .einr-totals > tbody > tr > td:last-child { width: 100% !important; }
}
@media print {
  nav, .seo-breadcrumb, .seo-hero, .seo-cta-banner, .seo-crosslinks, .faq, footer, .no-print { display: none !important; }
  body, .seo-main, .seo-card { background: var(--sheet) !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
}

/* legacy hooks kept neutral */
.reveal { opacity: 1; transform: none; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
