/* spravuj.me — veřejný web. Rodina projektuj.me (papír, redakční sazba, stejná písma), vlastní motiv: lístek požadavku.
   Tokeny nahoře. Tmavý režim ve dvou blocích (systém + výslovná volba). Barva Petrolej (schváleno majitelem 14. 11. 2026). */
:root {
  --bg: #f6f4ef;
  --bg-2: #efebe2;
  --surface: #ffffff;
  --surface-2: #f3f0e9;
  --ink: #15161a;
  --ink-2: #3d4048;
  --muted: #5f626a;
  --line: #dcd6ca;
  --line-strong: #bfb7a7;
  --rule: #15161a;
  /* Petrolej: modrozelená posunutá k modré (odstín 200°), od indiga projektuj.me (224°) se liší */
  --accent: #0e5275;
  --accent-hover: #14648c;
  --accent-ink: #0e5275;
  --on-accent: #ffffff;
  --accent-soft: #dcebf2;
  --mark: #0e5275;
  --logo-dot: #8cc8e8;
  --band-btn: #8cc8e8; --band-btn-ink: #06141c;
  --g: #17773f; --g-soft: #dff3e6;
  --a: #8a5100; --a-soft: #fcecc9;
  --r: #b3221a; --r-soft: #fbe0dc;
  --b: #1f4f9e; --b-soft: #e2eafa;
  --band: #15161a; --band-ink: #f1efea; --band-mut: #b9bbc1; --band-line: #34363c; --band-field: #1f2126;
  --focus: #1d4ed8;
  --shot-shadow: 0 1px 0 rgba(21,22,26,.04), 0 30px 60px -30px rgba(40,30,10,.28);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --bg-2: #16171a; --surface: #1a1c20; --surface-2: #212329; --ink: #f0eee9; --ink-2: #c9cbd0;
    --muted: #9a9da6; --line: #2d3037; --line-strong: #43474f; --rule: #f0eee9;
    --accent: #80bfe0; --accent-hover: #a3d2ea; --accent-ink: #8cc8e8; --on-accent: #06141c; --accent-soft: #0f2633; --mark: #5aaad4; --logo-dot: #0e5275; --band-btn: #8cc8e8; --band-btn-ink: #06141c;
    --g: #6ad898; --g-soft: #13301f; --a: #f5c04f; --a-soft: #36290c; --r: #ff8f85; --r-soft: #3b1714; --b: #9ab8f5; --b-soft: #1a2440;
    --band: #1d1f24; --band-ink: #f0eee9; --band-mut: #a9acb4; --band-line: #363940; --band-field: #25282e;
    --focus: #8ab4ff; --shot-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --bg-2: #16171a; --surface: #1a1c20; --surface-2: #212329; --ink: #f0eee9; --ink-2: #c9cbd0;
  --muted: #9a9da6; --line: #2d3037; --line-strong: #43474f; --rule: #f0eee9;
  --accent: #80bfe0; --accent-hover: #a3d2ea; --accent-ink: #8cc8e8; --on-accent: #06141c; --accent-soft: #0f2633; --mark: #5aaad4; --logo-dot: #0e5275; --band-btn: #8cc8e8; --band-btn-ink: #06141c;
  --g: #6ad898; --g-soft: #13301f; --a: #f5c04f; --a-soft: #36290c; --r: #ff8f85; --r-soft: #3b1714; --b: #9ab8f5; --b-soft: #1a2440;
  --band: #1d1f24; --band-ink: #f0eee9; --band-mut: #a9acb4; --band-line: #363940; --band-field: #25282e;
  --focus: #8ab4ff; --shot-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
/* zástupný text, který musí doplnit majitel */
.ph { background: var(--a-soft); color: var(--a); padding: 0 4px; border-radius: 3px; font-family: var(--font-mono); font-size: .9em; }

.kicker { font: 500 12.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 10px; }
/* značka sekce: odtržený roh lístku */
.tick { width: 14px; height: 10px; flex: none; background: var(--mark); -webkit-mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px); mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px); border-radius: 0 2px 2px 0; }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--font-body); text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--inv { background: var(--band-btn); color: var(--band-btn-ink); }
.btn--inv:hover { background: var(--band-btn); color: var(--band-btn-ink); filter: brightness(1.08); }
.lnk { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.lnk:hover { text-decoration-color: var(--ink); }
.lnk--arrow::after { content: " ↓"; font-family: var(--font-mono); }
.soon { display: inline-block; vertical-align: 3px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 20px; border: 1.5px dashed var(--ink-2); color: var(--ink-2); white-space: nowrap; }

/* ---------- horní lišta ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); flex: none; }
.logo svg { width: 28px; height: 28px; color: var(--ink); }
.logo__dot { color: var(--accent-ink); }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.top__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top__login { font-size: 15px; text-decoration: none; white-space: nowrap; }
.top__login:hover { text-decoration: underline; }
.langs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.flag { display: block; width: 34px; height: 26px; padding: 4px; border: 0; background: none; border-radius: 6px; cursor: pointer; opacity: .55; transition: opacity .15s; }
.flag svg { width: 100%; height: 100%; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag[aria-current="true"] { opacity: 1; background: var(--surface-2); }
.flag:hover { opacity: 1; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 9px; cursor: pointer; flex: none; }
.iconbtn svg { width: 19px; height: 19px; display: none; }
.iconbtn[data-mode="auto"] .i-auto, .iconbtn[data-mode="light"] .i-light, .iconbtn[data-mode="dark"] .i-dark { display: block; }

/* mobilní menu (do 1080 px, kdy zmizí hlavní navigace) */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { display: block; }
.mnav[open] summary { background: var(--surface-2); }
.mnav__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.mnav__panel a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 10px; border-radius: 8px; }
.mnav__panel a:not(.btn):hover { background: var(--surface-2); }
.mnav__login { border-top: 1px solid var(--line); border-radius: 0 !important; margin-top: 4px; }
.mnav__panel .btn { margin-top: 6px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.hero__h { grid-column: 1 / -1; margin: 0; }
.hero__kicker { margin-bottom: 28px; }
.hero__hl { display: block; max-width: 11.5em; font-size: clamp(46px, 8.6vw, 132px); font-weight: 800; line-height: .94; letter-spacing: -.034em; text-wrap: balance; }
.hero__h .acc { color: var(--mark); }
.hero__side { grid-column: 7 / span 6; grid-row: 3; margin-top: clamp(28px, 3.4vw, 48px); }
.hero__lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hero__note { margin: 18px 0 0; font: 400 13.5px/1.5 var(--font-mono); color: var(--muted); }
/* kanály: čtyři vstupy sbíhající do jedné linky */
.hero__src { grid-column: 1 / span 5; grid-row: 3; align-self: end; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 300px; }
.hero__src li { position: relative; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); padding: 9px 0 9px 0; border-top: 1px solid var(--line-strong); display: flex; align-items: center; }
.hero__src li::after { content: ""; flex: 1; margin-left: 14px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.hero__src li.hero__to { border-top: 2px solid var(--mark); color: var(--accent-ink); font-weight: 600; }
.hero__src li.hero__to::after { display: none; }
.hero__src li.hero__to::before { content: "→"; margin-right: 8px; }
.hero__src::after { content: ""; position: absolute; }
.hero__shot { margin-top: clamp(48px, 6vw, 84px); margin-bottom: 0; }
.cap { margin-top: 14px; font: 400 13px/1.5 var(--font-mono); color: var(--muted); max-width: 60em; }

/* ---------- produktové záběry ---------- */
.shot { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shot-shadow); }
.shot__bar { height: 34px; display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot__url { font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__url::before { content: ""; display: inline-block; width: 8px; height: 9px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 2px; vertical-align: -1px; }
.ui { font: 400 13px/1.45 var(--font-body); color: var(--ink); background: var(--bg); text-align: left; }
.ui-pad { padding: 18px; }
.ui b { font-weight: 600; }
.ui small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ui-mut { color: var(--muted); font-size: 12px; }
.ui-tag { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; border: 1px solid var(--line); }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ui-btn--pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* stavy: tvar + text, nikdy jen barva */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.st--new { color: var(--b); }
.st--work { color: var(--accent-ink); } .st--work::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st--wait { color: var(--a); } .st--wait::before { border-style: dashed; }
.st--done { color: var(--g); } .st--done::before { background: currentColor; }
.pr { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.pr--hi { background: var(--r-soft); color: var(--r); }
.via { font: 500 10.5px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }

/* hero: aplikace */
.hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, .85fr); min-height: 420px; }
.hd__q { border-right: 1px solid var(--line); background: var(--surface); }
.hd__qh { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qrow { display: grid; gap: 4px; padding: 11px 14px; border-bottom: 1px solid var(--line); position: relative; }
.qrow b { font-size: 13px; line-height: 1.3; }
.qrow__id { font-size: 11px; color: var(--muted); }
.qrow__m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qrow.is-sel { background: var(--accent-soft); }
.qrow.is-sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mark); }
.hd__d { padding: 16px 20px; min-width: 0; }
.hd__dh { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.hd__title { font: 700 21px/1.15 var(--font-display); letter-spacing: -.02em; margin: 6px 0 0; }
.thread { display: grid; gap: 10px; }
.m { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.m p { margin: 4px 0 0; font-size: 13px; }
.m__h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.m--tech { border-left: 3px solid var(--mark); }
.m--note { background: var(--a-soft); border-color: transparent; border-left: 3px dashed var(--a); }
.m--note .m__h b { color: var(--a); }
.m--note p { color: var(--ink); }
.typing { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.hd__s { border-left: 1px solid var(--line); background: var(--surface); padding: 14px; display: grid; gap: 12px; align-content: start; }
.props { margin: 0; display: grid; gap: 0; }
.props > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; text-align: right; font-weight: 500; }
.side-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--bg); }
.side-card p { margin: 0; }
.side-card__h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px !important; }
.side-card__b { font-weight: 600; font-size: 13px; }
.side-card__row { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px !important; }

/* ---------- úvaha ---------- */
.essay { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.essay__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.essay__text { grid-column: 1 / span 7; }
.essay__big { font: 500 clamp(26px, 2.7vw, 38px)/1.22 var(--font-display); letter-spacing: -.02em; margin-bottom: .9em; text-wrap: pretty; }
.essay__text p:not(.essay__big) { color: var(--ink-2); max-width: 34em; font-size: 18px; }
.who-for { grid-column: 9 / span 4; border-left: 1px solid var(--line-strong); padding-left: 24px; align-self: start; }
.who-for dl { margin: 18px 0 0; }
.who-for dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.who-for dl div:first-child { border-top: 0; padding-top: 0; }
.who-for dt { font: 700 15px/1.3 var(--font-body); }
.who-for dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- hlavička sekce ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; border-top: 2px solid var(--rule); padding-top: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .kicker { grid-column: 1 / span 3; align-self: start; padding-top: 10px; }
.sec-head h2 { grid-column: 4 / span 9; font-size: clamp(32px, 4.3vw, 60px); letter-spacing: -.026em; line-height: 1.02; text-wrap: balance; }
.sec-head__lead { grid-column: 4 / span 7; margin: 20px 0 0; font-size: 18px; color: var(--ink-2); }

/* ---------- jak to funguje ---------- */
.how { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 8vw, 120px); }
/* život požadavku: perforovaná páska se čtyřmi úseky */
.life { list-style: none; margin: 0 0 clamp(56px, 6vw, 88px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.life li { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; font: 600 clamp(15px, 1.4vw, 19px)/1.2 var(--font-display); letter-spacing: -.01em; position: relative; }
.life li + li { border-left: 1.5px dashed var(--line-strong); }
.life li .mono { font: 500 12px/1 var(--font-mono); color: var(--accent-ink); }
.life li:last-child { background: var(--accent-soft); }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; margin-bottom: clamp(72px, 8vw, 120px); align-items: start; }
.step__txt h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.step__txt p { color: var(--ink-2); }
.step__no { font-size: 13px; color: var(--accent-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.step__no::after { content: ""; height: 1px; width: 48px; background: var(--mark); }
.step__fig { margin: 0; min-width: 0; }
.step--a .step__txt { grid-column: 1 / span 4; position: sticky; top: 100px; }
.step--a .step__fig { grid-column: 6 / span 7; }
.step--b .step__fig { grid-column: 1 / span 7; grid-row: 1; }
.step--b .step__txt { grid-column: 9 / span 4; grid-row: 1; padding-top: 24px; }
.how__also { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font: 500 clamp(19px, 1.7vw, 23px)/1.4 var(--font-display); letter-spacing: -.01em; max-width: 44em; }

/* trychtýř kanálů */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.25fr); align-items: center; padding: 26px 22px; }
.funnel__src { display: grid; gap: 10px; }
.chan { height: 46px; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.chan__k { font-weight: 600; font-size: 13px; }
.chan__v { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel__lines { width: 80px; height: 214px; color: var(--line-strong); }
.ticket { display: flex; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 10px; position: relative; min-width: 0; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 50px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.ticket::before { top: -8px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -8px; clip-path: inset(0 0 50% 0); }
.ticket__stub { width: 57px; flex: none; border-right: 1.5px dashed var(--line-strong); display: grid; place-items: center; }
.ticket__stub .mono { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--accent-ink); font-weight: 600; letter-spacing: .04em; }
.ticket__b { padding: 14px 14px 14px 16px; min-width: 0; }
.ticket__b b { font-size: 14px; line-height: 1.3; display: block; }
.ticket__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* odvod času */
.sheet__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ui-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ui-tbl td, .ui-tbl th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ui-tbl th { font: 600 10.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.ui-tbl td.mono { font-size: 11.5px; white-space: nowrap; }
.ui-tbl .num { text-align: right; }
.sheet tbody tr:last-child td { border-bottom: 0; }
.sheet__flat td { color: var(--muted); }
.sheet tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 700; background: var(--accent-soft); }
.sheet tfoot td.mono { font-size: 12.5px; }

/* zařízení */
.dev__h { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--surface); flex: none; }
.label .mono { font-size: 12px; font-weight: 600; }
.label__qr { width: 26px; height: 26px; background:
  conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 8px 8px,
  var(--surface); border: 2px solid var(--ink); }
.props--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.props--row > div { display: block; border: 0; padding: 0; }
.props--row dd { text-align: left; margin-top: 2px; }
.dev__sub { margin: 16px 0 8px; font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-strong); display: grid; gap: 10px; }
.hist li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 12.5px; }
.hist li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mark); }
.hist li > .mono:first-child { font-size: 11.5px; color: var(--muted); width: 84px; flex: none; }
.doc { font: 500 11px/1 var(--font-mono); padding: 3px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- napojení ---------- */
.int { padding: 0 0 clamp(72px, 8vw, 120px); }
.int__rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.int__row { padding: 22px 22px 6px 0; display: flex; flex-direction: column; }
.int__row + .int__row { border-left: 1px solid var(--line); padding-left: 22px; }
.int__row h3 { font-size: 24px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.int__row p { color: var(--ink-2); font-size: 16px; }
.int__price { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 12.5px !important; color: var(--muted) !important; }

/* ---------- AI ---------- */
.ai { padding: 0 0 clamp(72px, 8vw, 120px); }
.ai__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.ai__txt { grid-column: 1 / span 5; }
.ai__fig { grid-column: 7 / span 6; margin: 0; min-width: 0; }
.ai__lh { font-size: 19px; letter-spacing: -.01em; margin: 0 0 10px; }
.ai__list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line-strong); }
.ai__list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ai__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ai__facts { margin: 0; border-top: 2px solid var(--rule); }
.ai__facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ai__facts dt { font-weight: 600; margin-bottom: 3px; }
.ai__facts dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.chat { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: var(--shot-shadow); font: 400 14px/1.5 var(--font-body); }
.chat__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.chat__conn { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
.chat__conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.chat__body { padding: 20px 18px 22px; display: grid; gap: 12px; }
.msg { margin: 0; max-width: 88%; }
.msg p { margin: 0; }
.msg--me { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.msg--ai { justify-self: start; }
.tool { justify-self: start; margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; padding: 6px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--mark); color: var(--ink-2); max-width: 100%; }
.tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--muted); flex: none; }
.tool em.w { border-color: var(--a); color: var(--a); background: var(--a-soft); }
.chat__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.chat__list li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--bg); }
.chat__list .mono { font-size: 11px; color: var(--muted); flex: none; }

/* ---------- ceník ---------- */
.price { padding: 0 0 clamp(72px, 8vw, 120px); }
.bill { display: inline-flex; padding: 3px; border: 1.5px solid var(--ink); border-radius: 10px; margin-bottom: 28px; }
.bill__o { border: 0; background: none; color: var(--ink); font: 600 14.5px/1 var(--font-body); padding: 10px 16px; border-radius: 7px; cursor: pointer; }
.bill__o[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line-strong); }
.plan { padding: 28px 28px 32px 0; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; position: relative; min-width: 0; }
.plan + .plan { padding-left: 28px; border-left: 1px solid var(--line); }
.plan--hi { background: linear-gradient(var(--accent-soft), var(--accent-soft)) top / 100% 6px no-repeat; }
.plan--hi::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 6px; background: var(--mark); }
.plan__flag { position: absolute; top: 14px; right: 18px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }
.plan__name { font-size: 30px; letter-spacing: -.025em; margin-top: 8px; }
.plan__desc { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }
.plan__price { align-self: start; }
.plan__price p { margin: 0; }
.plan__big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__num { font: 800 clamp(48px, 5vw, 68px)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan__cur { font: 600 20px/1 var(--font-display); }
.plan__from { font: 500 18px/1 var(--font-body); color: var(--ink-2); }
.plan__unit { margin-top: 8px !important; color: var(--ink-2); font-size: 15px; }
.plan__note { margin-top: 6px !important; font-size: 12.5px; color: var(--muted); }
.calc { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.calc__l { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.calc__in { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.calc__b { width: 40px; height: 40px; border: 0; background: var(--surface-2); color: var(--ink); font: 500 20px/1 var(--font-mono); cursor: pointer; }
.calc__b:hover { background: var(--line); }
.calc__n { width: 58px; height: 40px; border: 0; border-inline: 1px solid var(--line-strong); text-align: center; font-size: 16px; background: var(--surface); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.calc__n::-webkit-inner-spin-button, .calc__n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc__out { margin: 10px 0 0 !important; font-size: 14.5px; }
.calc__out .mono { font-size: 13px; color: var(--muted); }
.calc__sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.calc__hint { display: block; font-size: 12.5px; color: var(--a); margin-top: 4px; }
.perf { border: 0; height: 14px; margin: 22px -1px; position: relative; background: radial-gradient(circle, var(--line-strong) 1.3px, transparent 1.6px) 0 50% / 9px 14px repeat-x; }
.plan__lim { margin: 0 0 26px; }
.plan__lim div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan__lim dt { color: var(--muted); }
.plan__lim dd { margin: 0; font-weight: 600; text-align: right; }
.plan__cta { align-self: end; }
.trial { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin: 32px 0 clamp(56px, 6vw, 80px); padding: 20px 24px; border: 1.5px dashed var(--mark); border-radius: 12px; background: var(--accent-soft); }
.trial p { margin: 0; }
.trial__k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); font-weight: 600; }
.trial__t { font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: -.01em; }
.addons__h { font-size: 24px; margin-bottom: 14px; }
.addons__t { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); }
.addons__t th, .addons__t td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.addons__t thead th { font: 600 11.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.addons__t .num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 16px; }
.addons__t td.num { font-size: 15px; }
.addons__t thead th.num { width: 1%; }
.addons__n { display: block; font-weight: 600; font-size: 16.5px; }
.addons__d { display: block; color: var(--muted); font-size: 14.5px; font-weight: 400; margin-top: 2px; }
.addons__u { display: block; font-size: 12px; color: var(--muted); }

/* ---------- data ---------- */
.sec { padding: 0 0 clamp(72px, 8vw, 120px); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.facts > div { padding: 18px 0 22px; border-top: 1px solid var(--line-strong); }
.facts dt { font: 700 18px/1.25 var(--font-display); letter-spacing: -.01em; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- otázky ---------- */
.faq { padding: 0 0 clamp(72px, 8vw, 120px); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec-head--side { grid-column: 1 / span 4; display: block; align-self: start; position: sticky; top: 100px; margin-bottom: 32px; }
.sec-head--side .kicker { padding-top: 0; margin-bottom: 16px; }
.sec-head--side h2 { font-size: clamp(30px, 3.2vw, 44px); }
.faq__list { grid-column: 6 / span 7; border-top: 2px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 clamp(18px, 1.6vw, 21px)/1.35 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 26px/1 var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent-ink); }
.faq__a { padding: 0 0 22px; max-width: 40em; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ---------- registrace ---------- */
.reg { background: var(--band); color: var(--band-ink); padding: clamp(64px, 8vw, 112px) 0; }
.reg__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; align-items: start; }
.reg__txt { grid-column: 1 / span 6; }
.reg__h { font-size: clamp(36px, 5vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; margin-bottom: 26px; }
.reg__txt p { color: var(--band-mut); max-width: 30em; }
.reg__login { font-size: 14.5px; border-top: 1px solid var(--band-line); padding-top: 14px; margin-top: 24px; }
.reg__form { grid-column: 8 / span 5; display: grid; gap: 14px; background: var(--band-field); border: 1px solid var(--band-line); border-radius: 14px; padding: 24px; position: relative; }
.reg__form::before, .reg__form::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--band); border: 1px solid var(--band-line); }
.reg__form::before { left: -10px; clip-path: inset(0 0 0 50%); }
.reg__form::after { right: -10px; clip-path: inset(0 50% 0 0); }
.fld { display: grid; gap: 6px; }
.fld label { font-size: 14px; font-weight: 600; }
.fld input { height: 46px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--band-line); background: var(--band); color: var(--band-ink); font: 400 16px/1 var(--font-body); width: 100%; }
.fld--num input { width: 120px; font-family: var(--font-mono); }
.fld input:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 1px; }
.fld input[aria-invalid="true"] { border-color: #ff8f85; box-shadow: 0 0 0 1px #ff8f85; }
.reg__form .btn { margin-top: 6px; justify-self: start; }
.reg :focus-visible { outline-color: #8ab4ff; }
.reg__err { margin: 0; color: #ffb3ab; font-size: 14.5px; font-weight: 500; }
.reg__ok { border-top: 1px dashed var(--band-line); padding-top: 14px; }
.reg__ok p { margin: 0 0 6px; color: var(--band-mut); font-size: 15px; }
.reg__okh { color: var(--band-ink) !important; font: 700 19px/1.3 var(--font-display) !important; }
.reg .ph { background: rgba(245,192,79,.18); color: #f5c04f; }

/* ---------- patička ---------- */
.foot { padding: 56px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1.6fr; gap: 32px; }
@media (min-width: 901px) { .foot__grid:has(> :nth-child(4)) { grid-template-columns: 2fr 1fr 1.3fr 1.3fr; } }
.foot__brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 24em; }
.foot__sis { font-size: 14px !important; }
.foot__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot__col .kicker { margin-bottom: 6px; }
.foot__col p { margin: 0; }
.foot__col a { text-decoration: none; color: var(--ink-2); }
.foot__col a:hover { color: var(--ink); text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 18px; font-size: 13px; color: var(--muted); position: relative; }
.foot__base::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; border-top: 1px solid var(--line); }
.foot__base p { margin: 0; }

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .mnav { display: block; }
  .hd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .hd__s { display: none; }
  .int__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int__row:nth-child(3) { border-left: 0; padding-left: 0; }
  .int__row:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__side { grid-column: 1 / -1; grid-row: auto; }
  .hero__src { grid-column: 1 / -1; grid-row: auto; margin-top: 32px; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__src li.hero__to { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; }
  .hero__src li { border-bottom: 1px solid var(--line-strong); }
  .hero__src li::after { display: none; }
  .hero__src li + li { padding-left: 10px; border-left: 1px dashed var(--line-strong); }
  .essay__text, .who-for { grid-column: 1 / -1; }
  .who-for { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 18px; }
  .sec-head .kicker { grid-column: 1 / -1; margin-bottom: 14px; padding-top: 0; }
  .sec-head h2, .sec-head__lead { grid-column: 1 / -1; }
  .step--a .step__txt, .step--a .step__fig, .step--b .step__txt, .step--b .step__fig { grid-column: 1 / -1; grid-row: auto; position: static; padding-top: 0; }
  .ai__txt, .ai__fig { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; border-bottom: 0; }
  .plan, .plan + .plan { padding: 26px 0 30px; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .plan--hi { padding-inline: var(--gut) !important; margin-inline: calc(-1 * var(--gut)); }
  .plans { grid-template-rows: none; }
  .plan { display: flex; flex-direction: column; grid-row: auto; }
  .plan__cta { align-self: stretch; }
  .trial { grid-template-columns: 1fr; }
  .trial .btn { justify-self: start; }
  .faq__grid > * { grid-column: 1 / -1 !important; position: static; }
  .reg__txt, .reg__form { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :last-child:nth-child(4) { grid-column: 1 / -1; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top__login { display: none; }
  .life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life li:nth-child(3) { border-left: 0; }
  .life li:nth-child(n+3) { border-top: 1.5px dashed var(--line-strong); }
  .hd { grid-template-columns: 1fr; min-height: 0; }
  .hd__q { border-right: 0; border-bottom: 1px solid var(--line); }
  .hd__q .qrow:nth-child(n+4) { display: none; }
  .funnel { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .funnel__src { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .funnel__lines { display: none; }
  .funnel .ticket { margin-top: 16px; }
  .funnel__src::after { content: "↓"; grid-column: 1 / -1; text-align: center; font: 500 18px/1 var(--font-mono); color: var(--muted); margin-top: 4px; }
  .props--row { grid-template-columns: 1fr 1fr; }
  .int__rows { grid-template-columns: 1fr; }
  .int__row, .int__row + .int__row { border-left: 0; padding-left: 0; padding-right: 0; }
  .int__row + .int__row { border-top: 1px solid var(--line); margin-top: 8px; }
  .facts { grid-template-columns: 1fr; }
  .addons__t thead { display: none; }
  .addons__t, .addons__t tbody, .addons__t tr { display: block; }
  .addons__t tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .addons__t th, .addons__t td { border: 0; padding: 0; }
  .addons__t th { grid-column: 1 / -1; margin-bottom: 8px; }
  .addons__t td.num { text-align: left; padding: 0; font-size: 14px; }
  .addons__t td.num::before { display: block; font: 600 10.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .addons__t td:nth-of-type(1)::before { content: var(--l-month); }
  .addons__t td:nth-of-type(2)::before { content: var(--l-setup); }
  .reg__form { padding: 20px 18px; }
  .reg__form .btn { justify-self: stretch; white-space: normal; text-align: center; }
}
@media (max-width: 480px) {
  .top__in { gap: 10px; }
  .top__tools { gap: 8px; }
  .top__cta { display: none; }
  .langs { padding: 2px; gap: 2px; }
  .flag { width: 30px; height: 24px; padding: 3px; }
  .iconbtn { width: 34px; height: 34px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .hero__src { grid-template-columns: 1fr 1fr; }
  .hero__src li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .plan__flag { position: static; margin-bottom: 4px; }
  .ticket__b { padding: 12px; }
}
/* popisky sloupců doplňků v mobilním zobrazení (přeloží se přes lang) */
:root { --l-month: "Měsíčně"; --l-setup: "Zprovoznění"; }
:root[lang="en"] { --l-month: "Monthly"; --l-setup: "Setup"; }

/* =========================================================
   Právní podstránky (_src/pravni/*.md → build)
   ========================================================= */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 120px); }
.legal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.legal__side { grid-column: 1 / span 3; position: sticky; top: 100px; display: grid; gap: 32px; }
.legal__nav ul, .legal__toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.legal__nav li, .legal__toc li { border-bottom: 1px solid var(--line); }
.legal__nav a, .legal__toc a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.legal__nav a:hover, .legal__toc a:hover { color: var(--ink); }
.legal__nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--mark); padding-left: 12px; }
.legal__toc ol { border-top-width: 1px; }
.legal__toc a { font-size: 14px; padding: 7px 0; }
.legal__body { grid-column: 5 / span 8; max-width: 44em; }
.legal__body h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 18px; text-wrap: balance; }
.legal__meta { font-size: 13px; color: var(--muted); margin: 0 0 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal__body h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; margin: 44px 0 14px; padding-top: 16px; border-top: 2px solid var(--rule); scroll-margin-top: 90px; }
.legal__body h3 { font: 600 18px/1.3 var(--font-body); margin: 28px 0 10px; }
.legal__body h4 { font: 600 16px/1.3 var(--font-body); margin: 22px 0 8px; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul, .legal__body ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal__body li { margin-bottom: .4em; }
.legal__body blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 3px solid var(--mark); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.legal__body blockquote p { margin: 0; color: var(--ink); }
.legal__body code { font: 500 .88em var(--font-mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.legal__body hr { border: 0; height: 14px; margin: 28px 0; background: radial-gradient(circle, var(--line-strong) 1.3px, transparent 1.6px) 0 50% / 9px 14px repeat-x; }
.legal__tbl { overflow-x: auto; margin: 0 0 1.2em; }
.legal__tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal__tbl th, .legal__tbl td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.legal__tbl th { font: 600 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--rule); }
@media (max-width: 900px) {
  .legal__side, .legal__body { grid-column: 1 / -1; position: static; }
  .legal__side { order: 2; }
}
