/* AI Rešitve: static site styles.
   Dark only (brand rule). One accent. Square corners everywhere (radius 0).
   Display: Archivo expanded. Body: Geist. Labels/data: Geist Mono. */

:root {
  --bg: #0d0d0c;
  --bg-2: #141412;
  --bg-3: #1b1a18;
  --line: #2b2a26;
  --line-2: #3d3b35;
  --text: #ede9e0;
  --muted: #a6a195;
  --dim: #77736a;
  --accent: #f26a2e;
  --accent-2: #ff8a52;
  --on-accent: #120a05;
  --ok: #8fd18b;
  --warn: #f2c14e;

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* layer scale */
  --z-canvas: 0;
  --z-content: 1;
  --z-nav: 50;
  --z-consent: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(40px, min(7.4vw, 11.5vh), 104px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.4vw, 60px); }
h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; margin: 0; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; line-height: 1.55; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: block; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding: 17px 24px; border: 1px solid var(--b);
  background: var(--b); color: var(--on-accent);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { content: '→'; font-family: var(--f-body); transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: var(--z-nav);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(13,13,12,.92), rgba(13,13,12,.72));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 11px 16px; font-size: 12px; }
.nav-links a.btn { color: var(--on-accent); }
.nav-links a.btn:hover { color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px var(--gutter) 28px; display: none; }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .nav-links a { font-size: 20px; color: var(--text); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); }
.hero .fallback { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 70% 40%, rgba(242,106,46,.16), transparent 70%), var(--bg); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 8%, rgba(13,13,12,0)); }
.hero .wrap { position: relative; z-index: var(--z-content); padding-bottom: clamp(40px, 7vh, 88px); padding-top: calc(var(--nav-h) + 40px); }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-hint { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 28px); z-index: var(--z-content); font-family: var(--f-mono); font-size: 12px; color: var(--dim); max-width: 22ch; text-align: right; }
@media (max-width: 760px) { .hero-hint { display: none; } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 160px) 0; }
.sec--tight { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head p { margin-top: 20px; color: var(--muted); max-width: 60ch; font-size: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* problem rows: big typographic list */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem { border-bottom: 1px solid var(--line); }
.problem button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
}
.problem .q { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(22px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; transition: color .3s, transform .4s var(--ease); }
.problem .plus { font-family: var(--f-mono); font-size: 28px; color: var(--accent); transition: transform .4s var(--ease); }
.problem button:hover .q { color: var(--accent); transform: translateX(10px); }
.problem[aria-expanded="true"] .plus, .problem.is-open .plus { transform: rotate(45deg); }
.problem .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.problem.is-open .a { grid-template-rows: 1fr; }
.problem .a > div { overflow: hidden; }
.problem .a-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 0 34px; max-width: 1000px; }
.problem .a-inner p { color: var(--muted); margin: 0; }
.problem .a-inner strong { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 8px; }
@media (max-width: 700px) { .problem .a-inner { grid-template-columns: 1fr; gap: 18px; } }

/* invoice demo: sticky split */
.demo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.demo-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.demo-steps { display: flex; flex-direction: column; gap: 46vh; padding: 10vh 0 30vh; }
.demo-step { max-width: 46ch; opacity: .35; transition: opacity .5s; }
.demo-step.is-active { opacity: 1; }
.demo-step h3 { margin-bottom: 12px; }
.demo-step p { color: var(--muted); }
.stage { display: grid; grid-template-columns: 1fr; gap: 14px; }
.invoice {
  background: #f4f1ea; color: #1d1c1a; padding: clamp(18px, 2.4vw, 30px);
  font-family: var(--f-body); font-size: 12.5px; line-height: 1.4; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: rotate(-1.2deg); transition: transform .6s var(--ease);
}
.demo[data-step="0"] .invoice { transform: rotate(-2.5deg) scale(.98); }
.invoice .inv-top { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #1d1c1a; padding-bottom: 12px; margin-bottom: 12px; }
.invoice .inv-co { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: 17px; }
.invoice .inv-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 18px; text-align: right; }
.invoice table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.invoice td, .invoice th { padding: 4px 4px; text-align: left; border-bottom: 1px solid #d9d4c8; }
.invoice th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6a665d; font-weight: 600; }
.invoice .r { text-align: right; }
.invoice .hand { font-family: 'Segoe Print', 'Bradley Hand', cursive; color: #2649a5; transform: rotate(-3deg); display: inline-block; }
.invoice .sample { position: absolute; top: 10px; right: -6px; transform: rotate(8deg); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a33b12; border: 1px solid #a33b12; padding: 3px 6px; }
.fld { position: relative; transition: background .35s, box-shadow .35s; }
.fld.is-hit { background: rgba(242,106,46,.22); box-shadow: 0 0 0 2px var(--accent); }
.fld.is-flag { background: rgba(242,193,78,.3); box-shadow: 0 0 0 2px var(--warn); }
.extract { border: 1px solid var(--line-2); background: var(--bg-2); font-family: var(--f-mono); font-size: 13px; }
.extract-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.extract dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.extract dt, .extract dd { margin: 0; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.extract dt { color: var(--dim); }
.extract dd { color: transparent; text-align: right; transition: color .45s var(--ease); }
.extract dd.is-in { color: var(--text); }
.extract dd.flag.is-in { color: var(--warn); }
.extract-foot { padding: 10px 14px; color: var(--dim); min-height: 40px; }
.extract-foot.ok { color: var(--ok); }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo-sticky { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2; }
  .demo-steps { gap: 30vh; padding: 0 0 20vh; }
  .stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .invoice { font-size: 9px; padding: 12px; }
  .invoice .inv-co, .invoice .inv-title { font-size: 12px; }
  .extract { font-size: 10px; }
  .extract dt, .extract dd { padding: 5px 8px; }
  .demo-step { background: var(--bg); padding: 14px 0; }
}
@media (max-width: 520px) {
  .stage { grid-template-columns: 1fr; }
  .invoice { display: none; }
}

/* 3D stage */
.model-stage { position: relative; height: min(78vh, 760px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 60% at 50% 55%, #22201c 0%, var(--bg) 70%); cursor: grab; touch-action: pan-y; }
.model-stage:active { cursor: grabbing; }
.model-stage canvas { width: 100% !important; height: 100% !important; }
.model-copy { position: absolute; left: var(--gutter); bottom: 32px; max-width: 420px; pointer-events: none; }
.model-copy p { color: var(--muted); margin-top: 12px; }
.model-tag { position: absolute; right: var(--gutter); bottom: 32px; color: var(--dim); }
@media (max-width: 700px) {
  .model-stage { height: auto; }
  .model-stage canvas { height: 54vh !important; }
  .model-copy { position: relative; left: auto; bottom: auto; padding: 0 var(--gutter) 36px; max-width: none; }
  .model-tag { display: none; }
}
@media (max-width: 600px) { .cell .big { display: none; } }

/* services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; text-decoration: none; position: relative; overflow: hidden; transition: background .35s; }
.cell:hover { background: var(--bg-2); }
.cell p { color: var(--muted); margin: 10px 0 0; max-width: 42ch; }
.cell .go { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.cell--a { grid-column: span 4; grid-row: span 2; background: var(--accent); color: var(--on-accent); }
.cell--a:hover { background: var(--accent-2); }
.cell--a p, .cell--a .go { color: var(--on-accent); }
.cell--a h3 { font-size: clamp(30px, 3.6vw, 52px); font-stretch: 125%; font-weight: 800; }
.cell--b { grid-column: span 2; }
.cell--c { grid-column: span 2; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 14px 14px; }
.cell--d { grid-column: span 6; flex-direction: row; align-items: flex-end; background: linear-gradient(100deg, var(--bg) 55%, rgba(242,106,46,.14)); }
.cell--d > div { max-width: 640px; }
.cell .big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(64px, 9vw, 140px); line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--line-2); position: absolute; right: -6px; bottom: -10px; pointer-events: none; transition: -webkit-text-stroke-color .4s; }
.cell:hover .big { -webkit-text-stroke-color: var(--accent); }
.cell--a .big { -webkit-text-stroke-color: rgba(18,10,5,.35); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--a, .cell--d { grid-column: span 2; grid-row: auto; }
  .cell--b, .cell--c { grid-column: span 1; }
  .cell--d { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell--a, .cell--b, .cell--c, .cell--d { grid-column: span 1; } }

/* verb marquee (the only marquee on the site) */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marq 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 7vw, 96px); text-transform: uppercase; line-height: 1; padding-right: .6em; white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* process: numbered columns without step labels */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.flow > div { padding: 28px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.flow > div:last-child { border-right: 0; }
.flow h3 { margin-bottom: 10px; }
.flow p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; } .flow > div:nth-child(2) { border-right: 0; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow > div { border-right: 0; margin-right: 0; padding-right: 0; } }

/* guides list */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guide { background: var(--bg); padding: 26px 28px; text-decoration: none; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; transition: background .3s; }
.guide:hover { background: var(--bg-2); }
.guide .cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; display: block; }
.guide h3 { font-size: clamp(18px, 1.6vw, 21px); font-stretch: 105%; }
.guide p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.guide .arr { color: var(--accent); font-size: 20px; transition: transform .3s var(--ease); }
.guide:hover .arr { transform: translateX(4px); }
.guides--all .guide:first-child { grid-column: span 2; background: var(--bg-2); }
@media (max-width: 760px) { .guides { grid-template-columns: 1fr; } .guides--all .guide:first-child { grid-column: span 1; } }

/* CTA band with form */
.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-band h2 { font-size: clamp(36px, 5.4vw, 76px); }
.cta-band .lede { margin-top: 22px; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 0; padding: 14px 16px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field .help { font-size: 14px; color: var(--dim); }
.field .err { font-size: 14px; color: #ff9b7a; display: none; }
.field.has-err .err { display: block; }
.field.has-err input, .field.has-err textarea { border-color: #ff9b7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .legal { font-size: 14px; color: var(--dim); margin: 0; }
.form .legal a { color: var(--muted); }
.form-status { font-family: var(--f-mono); font-size: 14px; min-height: 22px; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: #ff9b7a; }
.form.is-sent .form-body { display: none; }
.form-done { display: none; border: 1px solid var(--line-2); padding: 28px; background: var(--bg-2); }
.form.is-sent .form-done { display: block; }
.form-done h3 { margin-bottom: 10px; }
.form-done p { color: var(--muted); margin: 0; }

/* page header (inner pages) */
.phead { padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.phead h1 { font-size: clamp(28px, 6vw, 84px); max-width: 16ch; overflow-wrap: break-word; }
@media (max-width: 600px) { .phead h1 { font-size: clamp(26px, 7.4vw, 44px); } }
.phead .lede { margin-top: 22px; }
.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--dim); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* long-form prose (guides, legal, services) */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 38px); font-stretch: 115%; margin-top: 2em; line-height: 1.1; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #cfcabe; }
.prose .lead { font-size: 20px; color: var(--text); line-height: 1.55; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); }
.prose .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #cfcabe; }
.prose th { background: var(--bg-2); color: var(--text); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }
.prose .info-box { border-left: 3px solid var(--accent); background: var(--bg-2); padding: 18px 22px; }
.prose .info-box p { margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: clamp(32px, 6vw, 96px); }
.article-aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; border-top: 1px solid var(--line); padding-top: 20px; }
.article-aside h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin: 0 0 14px; }
.article-aside ol { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.article-aside a { color: var(--muted); text-decoration: none; font-size: 15px; }
.article-aside a:hover { color: var(--text); }
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }
.article-grid > *, .split > *, .cta-band > *, .demo > * { min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--accent); font-size: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; max-width: 64ch; }

/* split layout for inner pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 0 0; }
.facts .n { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.facts p { color: var(--muted); font-size: 15px; margin-top: 10px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.calc > div { background: var(--bg); padding: clamp(22px, 3vw, 40px); }
.calc-out { background: var(--bg-2) !important; }
.range { display: grid; gap: 10px; margin-bottom: 28px; }
.range label { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); }
.range output { font-family: var(--f-mono); color: var(--text); }
.range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); outline: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--accent); border: 0; cursor: pointer; }
.range input[type=range]::-moz-range-thumb { width: 20px; height: 20px; background: var(--accent); border: 0; border-radius: 0; cursor: pointer; }
.calc-big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: 1; color: var(--accent); margin: 8px 0 6px; }
.calc-rows { margin: 28px 0 0; display: grid; grid-template-columns: 1fr auto; font-family: var(--f-mono); font-size: 14px; }
.calc-rows dt, .calc-rows dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-rows dt { color: var(--muted); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 0; }
.foot .foot-big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 9.5vw, 150px); line-height: .9; letter-spacing: -0.03em; margin: 0 0 56px; }
.foot .foot-big b { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--text); }
.foot p { color: var(--muted); font-size: 15px; max-width: 38ch; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.foot-bottom button { all: unset; cursor: pointer; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* consent bar */
.consent { position: fixed; right: 16px; bottom: 16px; left: auto; z-index: var(--z-consent); width: min(460px, calc(100vw - 32px));
  background: var(--bg-2); border: 1px solid var(--line-2); padding: 20px; display: none; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.consent.is-on { display: block; }
.consent p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 12px 16px; font-size: 12px; }
.consent .btn::after { content: none; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.is-in { opacity: 1; transform: none; }
  .hero .rv-load { opacity: 0; transform: translateY(24px); animation: up 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
  @keyframes up { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .demo-steps { gap: 18vh; }
  * { transition-duration: .01ms !important; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .invoice { font-size: 11px; padding: 16px 20px; }
  .extract dt, .extract dd { padding: 5px 12px; }
}
