/* doklik-agent landing (brief-v5, product-first). Loaded after marketing.css, on this page only.
   One motion primitive, „Klik“: a brand dot lands on a field, draws an orthogonal hairline, and rows snap onto
   the 1 px Má dáti | Dal seam. Markup is the end frame; every animation runs from a start frame into it. */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched stand-ins, so the swap to the web fonts doesn't rewrap lines and move the layout. */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'), local('Liberation Sans'); size-adjust: 101.5%; ascent-override: 91.6%; descent-override: 26.6%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Liberation Sans'); size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Nav Fallback'; src: local('Arial'), local('Liberation Sans'); size-adjust: 108.3%; ascent-override: 89.5%; descent-override: 22.1%; line-gap-override: 0%; }

/* ---------- tokens: marketing.css brand + the real app's surfaces ---------- */
:root {
    /* swap to Inter here if the display face ever reads as trendy; nothing else depends on it */
    --f-display: 'Bricolage Grotesque', 'Bricolage Fallback', system-ui, sans-serif;
    --f-body: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --seg: cubic-bezier(.45, 0, .25, 1);
    --app-bg: #f5f7fb;
    --app-line: #e5e7eb;
    --app-row: #f0f2f5;
    --app-th: #fafbfc;
    --app-text: #1f2937;
    --app-muted: #586474;
    --app-card: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .04);
}

/* anchors and keyboard focus clear the 70 px sticky nav */
html { scroll-padding-top: 76px; }
body { background: var(--surface); font-family: var(--f-body); }
.nav-links a { font-size: 15px; font-family: Inter, 'Inter Nav Fallback', sans-serif; }
.nav-links .login-btn { color: var(--ink-body); font-weight: 500; }
.nav-links .login-btn:hover { color: var(--brand); }
/* no dark slabs on this page: the shared footer bar goes light */
.footer-bottom { background: var(--surface); color: var(--ink-muted); border-top: 1px solid var(--line); }
.footer-link { color: var(--ink-muted); }
.footer-link:hover { color: var(--ink-strongest); }

.ag { color: var(--ink-strong); }
.wrap { max-width: 1248px; margin-inline: auto; padding-inline: 24px; }
.sec { padding-block: 128px; }
/* a section's own top padding already clears the nav */
.sec[id] { scroll-margin-top: -76px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mut { color: var(--app-muted); }
.c { font-variant-numeric: tabular-nums; }
/* identifiers are copied character by character: slashed zero there, never on amounts */
.vs, .doc, .gh .nm, .chip .l, .chip .s, .acc .p b { font-feature-settings: "tnum", "zero"; }
.am, .tot, .md, .dl, .zero { font-variant-numeric: tabular-nums; }

.h1 { font: 570 clamp(44px, 5vw, 72px)/1.02 var(--f-display); letter-spacing: -.03em; color: var(--ink-strongest); margin: 20px 0 0; }
.h2 { font: 570 clamp(32px, 3.4vw, 48px)/1.06 var(--f-display); letter-spacing: -.03em; color: var(--ink-strongest); margin: 0; text-wrap: balance; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-body); max-width: 42ch; }
/* text registers in the hero steps' voice: lead (display 500) → punch (display 570, brand stop; §2 only) →
   body/rows in Inter, each opened by one run-in lead (.ty-k) so the left edge scans → fine print */
.lede.ty { font-size: 16px; line-height: 1.55; color: var(--ink-body); }
.ty-lead { display: block; font: 500 21px/1.3 var(--f-display); letter-spacing: -.012em; color: var(--ink-section); text-wrap: balance; }
.ty-punch { display: block; margin-top: 10px; font: 570 21px/1.3 var(--f-display); letter-spacing: -.012em; color: var(--ink-strongest); text-wrap: balance; }
.ty-stop { color: var(--brand); }
.ty-row { display: block; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-body); text-wrap: pretty; }
.ty-punch + .ty-row, .ty-lead + .ty-row { margin-top: 22px; }
.ty-row:last-child { border-bottom: 1px solid var(--line); }
.ty-body { display: block; margin-top: 16px; font-size: 16.5px; line-height: 1.55; color: var(--ink-body); text-wrap: pretty; }
.ty-k { font-weight: 600; color: var(--ink-strongest); }
.ty-nw { white-space: nowrap; }
.eb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-section); }
.eb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.badge { padding: 3px 10px; border: 1px solid var(--brand); border-radius: 12px; font-size: 12.5px; line-height: 1.3; color: var(--brand); white-space: nowrap; }

.btn {
    display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 8px;
    background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
    box-shadow: 0 1px 2px oklch(20% .04 263 / .24), inset 0 1px 0 oklch(100% 0 0 / .14);
    transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(.98); }
.link-t { color: var(--brand); text-underline-offset: 3px; }

/* ---------- hero ---------- */
.ag-hero { padding: 26px 0 112px; }
.hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 28px; }
.points { list-style: none; counter-reset: p; margin: 32px 0 36px; display: grid; gap: 18px; max-width: 30em; }
.points li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.points li::before {
    content: counter(p); width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--line); border-radius: 50%;
    display: grid; place-items: center; font: 600 12px/1 var(--f-body); color: var(--ink-section); background: var(--surface);
}
/* headline + standfirst: the headline is the H1's face one register down (tracking eased from -.03em toward 0 as size
   drops); its closing stop is the logo's brand dot. Cap-height centre sits on the marker centre. */
.points li > span { grid-column: 2; }
.points .pt-t { margin-top: -1px; font: 570 20px/26px var(--f-display); letter-spacing: -.008em; color: var(--ink-strongest); text-wrap: balance; }
.points .pt-p { display: inline-block; line-height: 1; color: var(--brand); }
.points .pt-d { max-width: 40ch; margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-body); text-wrap: balance; }
.hero-fig, .pair-fig { margin: 0; }
.sample { position: relative; margin-top: 16px; font-size: 13px; color: var(--ink-muted); }
/* "i" toggletip after each demo caption; JS sets --bx/--ax so the bubble stays inside the caption's column */
.tip { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -6px -4px -6px -2px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); cursor: help; vertical-align: middle; }
.tip::before { content: 'i'; display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font: 600 10px/1 var(--f-body); }
.tip:hover, .is-open > .tip { color: var(--brand); }
.tip:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tip-b {
    position: absolute; z-index: 5; left: var(--bx, 0px); top: calc(100% + 8px); width: max-content; max-width: 100%;
    padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-pop);
    font-size: 13px; line-height: 1.4; color: var(--ink-strong); visibility: hidden; opacity: 0;
}
.tip-b::before { content: ''; position: absolute; left: calc(var(--ax, 12px) - 5px); top: -5px; width: 8px; height: 8px; background: #fff; border: solid var(--line); border-width: 1px 0 0 1px; transform: rotate(45deg); }
/* hover bridge over the gap, so the pointer can move onto the bubble (WCAG 1.4.13) */
.tip-b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.is-up > .tip-b { top: auto; bottom: calc(100% + 8px); }
.is-up > .tip-b::before { top: auto; bottom: -5px; border-width: 0 1px 1px 0; }
.is-up > .tip-b::after { bottom: auto; top: 100%; }
@media (hover: hover) { .tipw:hover > .tip-b { visibility: visible; opacity: 1; } }
.tip:focus-visible + .tip-b, .tipw.is-open > .tip-b { visibility: visible; opacity: 1; }
.tipw.is-x > .tip-b { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .tip-b { transition: opacity 120ms var(--ease), visibility 120ms; } }

/* the app window, at the real app's 1:1 scale */
.win {
    position: relative; background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 14px;
    box-shadow: var(--shadow-pop); font: 13px/1.4 var(--f-body); color: var(--app-text);
}
.win-bar { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--app-line); border-radius: 14px 14px 0 0; }
.win-bar b { font-weight: 600; }
.btn-s { margin-left: auto; width: 9.8em; height: 28px; line-height: 26px; white-space: nowrap; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-section); border: 1px solid var(--app-line); border-radius: 6px; background: #fff; }
.win-tabs { height: 40px; display: flex; gap: 22px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--app-line); }
.win-tabs > span { flex: none; display: flex; align-items: center; gap: 6px; color: var(--app-muted); font-weight: 500; position: relative; }
.win-tabs .on { color: var(--ink-strongest); font-weight: 600; }
/* fixed tab boxes: the Inter swap must not slide the tabs (CLS) */
.win-tabs > span:nth-child(1) { width: 5.9em; }
.win-tabs > span:nth-child(2) { width: 9.4em; }
.win-tabs .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.win-tabs i { font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f3f4f6; color: #374151; display: inline-grid; place-items: center; }
.win-tabs .cnt { background: var(--brand-subtle); color: var(--brand-hover); }
.win-stat { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 7px 16px; background: #fff; border-bottom: 1px solid var(--app-line); font-size: 12.5px; }
.ws-n { margin-right: auto; color: var(--app-muted); font-weight: 500; }
.ws-ok, .ws-kk { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.ws-ok { color: oklch(40% .09 150); }
.ws-kk { height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: oklch(95.5% .06 85); color: oklch(40% .1 65); }
.ws-ok i, .ws-kk i { width: 6px; height: 6px; border-radius: 50%; background: oklch(72% .12 150); }
.ws-kk i { background: oklch(70% .15 70); }

/* Geometry of the návrh: the seam sits where Má dáti meets Dal, and the grid, the seam, the hairline and the dot all
   read that one --seam-x. Top stops are fixed (drop 52, th 32, first group 36); the bottom stop is the rule chip's top edge,
   measured from the body's bottom, so a row of any height (a wrapped ke kontrole reason) stretches the seam by itself. */
.win-body {
    --pad: 16px; --pr: 16px; --amt: 112px; --code: 72px; --gut: 36px;
    --seam-x: calc(var(--pad) + 100cqw - 1px - var(--pr) - var(--amt) - var(--code));
    --y-chip: 55px; --y-top: 79px; --y-th: 111px; --y-r1: 146px;
    /* body padding + rule chip height */
    --y-bot: calc(var(--pad) + 30px);
    container: win / inline-size; position: relative; padding: 14px var(--pad) var(--pad);
}
.drop { position: relative; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 11px; }
/* the drop frame is a start-frame affordance only: gone once the chips have landed */
.drop-fr { position: absolute; inset: 0; border: 1px dashed oklch(84% .015 258); border-radius: 10px; background: #fff; opacity: 0; }
.drop-hi { position: absolute; inset: -1px; border: 1.5px dashed var(--brand); border-radius: 10px; background: oklch(97% .035 263 / .7); opacity: 0; }
.chip { position: relative; height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 4px; background: #fff; border: 1px solid var(--app-line); border-radius: 7px; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip--more { padding: 0 9px; color: var(--app-muted); font-weight: 600; }
.tag { font: 700 9.5px/1 var(--f-body); letter-spacing: .04em; padding: 5px; border-radius: 4px; background: #f3f4f6; color: #374151; }
.chip .l, .th .md .l, .th .dl .l, .more .l { display: none; }
@container win (min-width: 560px) { .chip .l, .th .md .l, .th .dl .l, .more .l { display: inline; } .chip .s, .th .md .s, .th .dl .s, .more .s { display: none; } }
@container win (max-width: 519px) { .gh .no { display: none; } }

.sheet { margin-top: 12px; background: #fff; border: 1px solid var(--app-line); border-radius: 10px; box-shadow: var(--app-card); overflow: hidden; }
.th, .gh, .tr, .more { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr) var(--code) var(--code) var(--amt); align-items: center; padding-right: var(--pr); }
.th { height: 32px; font-size: 12px; font-weight: 600; color: var(--app-muted); background: var(--app-th); border-bottom: 1px solid var(--app-line); }
.gh { height: 36px; font-weight: 600; background: #f8fafc; border-bottom: 1px solid var(--app-row); }
.tr { height: 34px; border-bottom: 1px solid var(--app-row); }
.more { height: 34px; display: grid; grid-template-columns: var(--gut) minmax(0, 1fr) var(--amt); align-items: center; font-size: 12px; color: var(--app-muted); background: #fbfcfd; }
.more > span:nth-child(2) { grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: calc(var(--code) * 2 + var(--amt)); }
/* a line Doklik is not sure of: same columns, plus why under its text, never across the seam */
.tr--kk { position: relative; height: auto; min-height: 52px; padding-block: 9px; grid-template-rows: 18px auto; align-content: center; row-gap: 3px; }
.tr--kk > span:not(.kk) { grid-row: 1; }
.tr--kk > span, .tr--kk > .st { position: relative; z-index: 1; }
/* two states, one glyph: jisté = quiet green dot, ke kontrole = amber */
.st { justify-self: center; width: 6px; height: 6px; border-radius: 50%; background: oklch(72% .12 150); }
.tr--kk > .st { grid-row: 1; background: oklch(70% .15 70); box-shadow: 0 0 0 3px oklch(94% .07 85); }
.kkt { position: absolute; inset: 0; background: oklch(98.4% .025 85); }
.kk { position: relative; grid-row: 2; grid-column: 2 / 4; min-width: 0; padding-right: 12px; font-size: 11.5px; line-height: 16px; color: oklch(38% .1 65); }
.kk b { font-weight: 600; padding: 1px 6px; margin-right: 4px; border-radius: 999px; background: oklch(94% .07 85); color: oklch(40% .1 65); }
.md { text-align: right; padding-right: 12px; }
.dl { padding-left: 12px; }
.am { text-align: right; }
.tx, .gh .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh .nm { grid-column: 2 / 4; padding-right: 12px; }
.gh .nm .tag { display: inline-block; vertical-align: 1px; margin-right: 8px; padding: 4px; font-size: 8.5px; }
.gh .rt { grid-column: 4 / 6; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-left: 12px; }
.ok { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success-fg); }
/* the hero only hints at the rule; the full card is §3's payoff. Its top edge is where the seam ends (--y-bot). */
.win-foot { margin-top: 14px; height: 30px; display: flex; align-items: center; justify-content: flex-end; }
.rchip { position: relative; z-index: 1; margin-left: auto; flex: none; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; background: #fff; border: 1px solid var(--app-line); border-radius: 8px; box-shadow: var(--shadow-sm); font-size: 12px; }
.rchip b { font-weight: 600; color: var(--brand-hover); }
.rchip .nw { white-space: nowrap; }
.plate .g.r .vs:empty::before { content: none; }

.seam, .trace i { position: absolute; background: var(--brand); }
.ag-hero .seam { left: var(--seam-x); top: var(--y-top); bottom: var(--y-bot); width: 1px; }
.trace { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hl-v { left: 41px; top: var(--y-chip); width: 1px; height: calc(var(--y-r1) - var(--y-chip)); transform-origin: top; }
.hl-h { left: 41px; top: var(--y-r1); height: 1px; width: calc(var(--seam-x) - 41px); transform-origin: left; }
.dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; pointer-events: none; z-index: 2; }
.dot > i { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2.5px #fff; }
.dot > i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--brand); opacity: 0; }
/* the hero's dot box runs from the top of the body to the chip, the dot sits at its foot: translate % is then the
   seam's own length, so the dot can travel by transform alone (no layout per frame) whatever the table's height */
.ag-hero .dot { left: calc(var(--seam-x) + .5px); top: 0; bottom: var(--y-bot); height: auto; margin: 0 0 0 -3.5px; }
.ag-hero .dot > i { inset: auto 0 -3.5px; height: 7px; }

.rule {
    position: relative; z-index: 1;
    padding: 14px 18px 15px; background: #fff; border: 1px solid var(--app-line); border-radius: 10px; box-shadow: var(--shadow-md);
}
.rule-eb { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.rule-l { margin-top: 6px; font-size: 14px; line-height: 1.45; }
.rule-l b { font-weight: 600; color: var(--ink-strongest); }
.rule-n { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--app-muted); }

.drag { position: absolute; left: 132px; top: 6px; width: 54px; height: 64px; opacity: 0; pointer-events: none; z-index: 3; }
.pg { position: absolute; inset: 0; background: #fff; border: 1px solid var(--app-line); border-radius: 5px; box-shadow: var(--shadow-md); }
.pg:nth-child(1) { transform: rotate(-8deg) translate(-5px, 3px); }
.pg:nth-child(2) { transform: rotate(5deg) translate(4px, 1px); }
.pg::before { content: ''; position: absolute; inset: 10px 9px 26px; background: repeating-linear-gradient(#e5e7eb 0 2px, transparent 2px 7px); }
.drag .n { position: absolute; right: -9px; top: -9px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font: 700 11px/1 var(--f-body); color: #fff; background: var(--ink-strongest); box-shadow: 0 0 0 2px #fff; }
.pg b { position: absolute; left: 7px; bottom: 7px; font: 700 8px/1 var(--f-body); padding: 3px 4px; border-radius: 3px; background: #f3f4f6; color: #374151; }
.cur { position: absolute; right: -12px; bottom: -14px; fill: #fff; stroke: var(--ink-strongest); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 1px 1px oklch(20% .04 263 / .25)); }

/* ---------- §2 / §3: one product fragment beside one idea ---------- */
.s3 { background: var(--surface-sunk); border-block: 1px solid var(--line-soft); }
/* §2 sits on the hero's 5/7 grid; §3 puts heading and lede in one row over a full-width figure */
#navrh .lede.ty { max-width: 46ch; margin-top: 22px; }
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
@media (max-width: 1179px) { .pair { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
/* captions sit under their plate; negative margin cancels the grid gap */
.duo > .sample { grid-column: 1 / -1; }
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 80px; }
.duo .head { display: contents; }
.duo .h2 { align-self: start; }
.duo .lede { grid-column: 2; margin-top: 0; max-width: 54ch; align-self: start; }
.duo .lede.ty { max-width: 56ch; padding-top: 4px; }
.duo .lede.ty .ty-lead { font-size: 24px; line-height: 1.28; max-width: 30ch; }
.duo .hist { grid-column: 1 / -1; margin-top: 56px; }
.card { position: relative; background: #fff; border: 1px solid var(--app-line); border-radius: 10px; box-shadow: var(--app-card); }
.ch { height: 56px; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pl); border-bottom: 1px solid var(--app-line); }
.ch b { font-size: 14px; font-weight: 600; }
.ch .mut { font-size: 12px; }

.plate, .hist { --pl: 16px; --pr: 16px; --seam-x: calc(100cqw - 1px - var(--pr) - var(--dl)); container-type: inline-size; position: relative; font: 13px/1.4 var(--f-body); color: var(--app-text); }
.g { display: grid; grid-template-columns: var(--cols); align-items: center; padding: 0 var(--pr) 0 var(--pl); }
.g.th { height: 30px; font-size: 12px; font-weight: 600; color: var(--app-muted); background: var(--app-th); border-bottom: 1px solid var(--app-line); }
.g.r { height: 40px; border-bottom: 1px solid var(--app-row); }
.g.r:last-child { border-bottom: 0; }
.g .p { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g .p b { font-weight: 600; }
.g .p small { display: block; font-size: 12px; color: #475569; }
.plate .seam, .hist .seam { left: var(--seam-x); width: 1px; }

/* §2: the úhrada pairs to its faktura through the VS — one hairline between the two VS cells */
.plate { --dl: 80px; --md: 92px; --am: 104px; --vs: 96px; --cols: 48px minmax(0, 1fr) var(--vs) var(--am) var(--md) var(--dl);
         --lx: calc(var(--seam-x) - var(--md) - var(--am) - var(--vs) + 31px); --ex1: 12px; --ex2: 18px; --len: calc(var(--ex1) + 40px + var(--ex2)); }
.plate .g.r2 { height: 52px; }
.plate .card + .card { margin-top: 12px; }
.plate .link + .card { margin-top: 0; }
.plate .seam { top: 57px; bottom: 1px; }
.acc .g .p { grid-column: 1 / 5; }
.link { position: relative; height: 40px; }
.ln { position: absolute; left: var(--lx); top: calc(-1 * var(--ex1)); width: 1px; height: var(--len); background: var(--brand); transform-origin: top; }
.link .dot { left: calc(var(--lx) + .5px); top: calc(var(--len) - var(--ex1)); }
.lbl { position: absolute; right: calc(100% - var(--lx) + 12px); top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--brand-hover); white-space: nowrap; }
mark { position: relative; isolation: isolate; background: none; color: inherit; }
mark > i { position: absolute; inset: -3px -6px; z-index: -1; border-radius: 4px; background: var(--brand-subtle); }

/* §3: the same seam through five past faktury becomes the rule; a faktura is one block of its two entries */
.hist { --dl: 80px; --md: 88px; --cols: minmax(0, 1fr) 112px 144px var(--md) var(--dl); --y0: 57px; --len: calc(452px - var(--y0) + 28px); }
.hist .seam { top: var(--y0); height: var(--len); transform-origin: top; z-index: 2; }
.hist .dot { left: calc(var(--seam-x) + .5px); top: calc(var(--y0) + var(--len)); }
/* the rule hangs off the seam's end, flush with the card's right edge */
.hist .rule { width: 440px; margin: 28px 0 0 auto; padding: 20px 24px 21px; box-shadow: var(--shadow-pop); }
.hist .rule-l { font-size: 16px; }
.hist .rule-n { font-size: 13px; color: var(--app-text); }
.hist .acn { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink-strongest); white-space: nowrap; }
.hist .ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-content: center; }
.hist .ev { grid-area: 1 / 2 / 3 / 3; align-self: center; padding: 5px 12px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand-hover); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
/* the faktura's own facts (number, DUZP, celkem) head the block; each row below is one entry of it */
.hist .fp { display: grid; grid-template-columns: var(--cols); padding: 0 var(--pr) 0 var(--pl); }
.hist .fp + .fp { border-top: 1px solid var(--app-line); }
.hist .fh { grid-area: 1 / 1 / 3 / 2; margin: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.35; }
.hist .fh small { font-size: 12px; color: var(--app-muted); font-variant-numeric: tabular-nums; }
/* full width: number · DUZP · celkem side by side, so the Doklad column carries data, not air */
@container (min-width: 1000px) {
    .hist .fh { display: grid; grid-template-columns: 9.5rem 10rem auto; justify-content: start; align-content: center; align-items: baseline; }
    .hist .fh small { font-size: 13px; }
}
.hist .fp .g.r { grid-column: 2 / -1; grid-template-columns: subgrid; padding: 0; height: 36px; position: relative; border-bottom: 0; }
.hist .g > *, .hist .fh > * { white-space: nowrap; }
.hist .am { padding-right: 12px; }
.hist .k { color: var(--app-muted); }
.hist .g.r::after { content: ''; position: absolute; right: 0; width: calc(var(--md) + var(--dl)); top: 5px; bottom: 5px; border-radius: 4px; background: var(--brand-softer); z-index: 0; }
.hist .g.r > * { position: relative; z-index: 1; }

/* ---------- §4 close ---------- */
.close { padding-block: 120px 128px; }
.close-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 80px; }
.close-l .btn { margin-top: 32px; }
.vseam { position: relative; height: 1px; background: var(--brand); opacity: .9; }
.vseam::before { content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font: 570 19px/1.32 var(--f-display); letter-spacing: -.008em; color: var(--ink-strongest); text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink-muted), var(--ink-muted)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink-muted), var(--ink-muted)) center / 1.5px 12px no-repeat; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
/* the toggle is the one brand affordance, on hover and when open */
.faq summary:hover::after, .faq details[open] summary::after { background: linear-gradient(var(--brand), var(--brand)) center / 12px 1.5px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 1.5px 12px no-repeat; }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: -4px 0 0; padding: 0 36px 24px 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.faq a { color: var(--brand); }

/* beta form */
.bf { position: relative; margin-top: 32px; display: grid; gap: 18px; max-width: 440px; }
.bf-f { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bf-f[hidden] { display: none; }
.bf label, .bf legend { font-size: 15px; font-weight: 600; color: var(--ink-strongest); padding: 0; }
.bf .mut { font-weight: 400; }
.bf input[type=email], .bf input[type=text], .bf input[type=tel], .bf select {
    height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font: 16px var(--f-body); color: var(--ink-strongest);
}
.bf input:focus-visible, .bf select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.bf [aria-invalid=true] { border-color: oklch(55% 0.2 27); }
.bf-err { margin: 0; font-size: 14px; color: oklch(48% 0.19 27); }
.bf-radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bf-radios label, .bf .bf-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink-body); }
.bf-check { align-items: flex-start; line-height: 1.5; }
.bf-check input { margin-top: 3px; flex: none; }
.bf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bf .btn { margin-top: 4px; border: 0; cursor: pointer; font-family: inherit; justify-self: start; }
.bf p.mut { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.bf-info { margin: 0; max-width: 52ch; font-size: 13px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.bf-done { margin-top: 32px; max-width: 440px; padding: 20px 22px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-softer); color: var(--ink-body); line-height: 1.6; }
.bf-done p { margin: 0; }
.bf-done p + p { margin-top: 8px; }
.bf-done-h { font-weight: 600; color: var(--ink-strongest); }
.bf-radios label { min-height: 44px; padding-inline: 12px; }
.bf-radios { margin-inline-start: -12px; }
.hero-note, .bf-next { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.hero-note { margin-top: 12px; max-width: 34rem; }
.bf-next { color: var(--ink-body); text-wrap: pretty; }
/* §4 CTA trace: one pass, two lines leave the top-right corner, meet under the submit button, fade. Built by JS. */
.bf-trace { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.bf-trace path { fill: none; stroke: var(--brand); stroke-width: 1px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bf-dot { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; will-change: transform; }
/* the page's Klik dot (.dot > i), restated: .dot carries scene animations that would sit paused outside a [data-sc] */
.bf-dot > i { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2.5px #fff; }
@media (prefers-reduced-motion: reduce) { .bf-trace { display: none; } }
.faq-cta { margin: 22px 0 0; max-width: 58ch; font-size: 16px; line-height: 1.6; color: var(--ink-body); }
.faq-cta.ty-c1 { margin-top: 28px; font: 570 20px/1.3 var(--f-display); letter-spacing: -.01em; color: var(--ink-strongest); text-wrap: balance; }
.faq-cta.ty-c1 a { text-underline-offset: 3px; }
.faq .faq-cta:last-child { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.s3-cta { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 959px) {
    .hero-g { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .duo .lede { grid-column: 1; }
    .duo .lede { margin-top: 18px; }
    .duo .lede.ty { padding-top: 0; margin-top: 20px; }
    .duo .lede.ty .ty-lead { max-width: none; font-size: 21px; }
    .duo .hist { margin-top: 48px; }
    .hero-copy { padding-top: 8px; }
    .hero-fig { max-width: 720px; }
    .drag, .drop-hi { display: none; }
    .sec { padding-block: 96px; }
}

@media (max-width: 599px) {
    .wrap { padding-inline: 16px; }
    .s3-cta { display: block; padding-top: 32px; }
    .sec { padding-block: 80px; }
    .ag-hero { padding: 32px 0 72px; }
    .h1 { font-size: 44px; }
    .points { margin: 24px 0 28px; gap: 16px; }
    .points .pt-t { margin-top: 0; font-size: 18.5px; line-height: 24px; }
    /* 14.5px keeps step 1 on one line under the fallback font too, so the swap can't move the CTA */
    .points .pt-d { font-size: 14.5px; }
    .ty-lead, .ty-punch { font-size: 19.5px; }
    .ty-body { font-size: 16px; }
    .faq summary { font-size: 18px; padding: 18px 0; }
    .faq details p { padding-right: 0; }
    .faq-cta.ty-c1 { font-size: 18.5px; }
    .btn { width: 100%; justify-content: center; }
    .win-body { --pad: 8px; --pr: 10px; --amt: 84px; --code: 40px; --gut: 20px; --y-bot: calc(var(--pad) + 46px); }
    .btn-s { display: none; }
    .win-stat { padding-inline: 12px; gap: 6px 10px; font-size: 12px; }
    .ws-n { flex-basis: 100%; }
    .win-tabs { gap: 16px; padding: 0 12px; font-size: 12.5px; }
    .drop { padding: 0 8px; gap: 6px; }
    .chip { padding-right: 8px; gap: 5px; }
    .gh .tot, .gh .nm .tag, .trace { display: none; }
    .tr { height: auto; min-height: 34px; padding-block: 8px; }
    .tr .tx { white-space: normal; line-height: 18px; }
    .tr--kk { grid-template-rows: auto auto; padding-block: 9px; }
    .md { padding-right: 8px; } .dl { padding-left: 8px; }

    .plate { --dl: 72px; --md: 72px; --am: 88px; --lx: 86px; --ex1: 12px; --ex2: 0px; --cols: minmax(0, 1fr) var(--am) var(--md) var(--dl); --pl: 12px; --pr: 12px; }
    .plate .g.r, .plate .g.r2 { height: auto; min-height: 56px; padding-block: 8px; grid-template-rows: auto 20px; row-gap: 2px; }
    .plate .g .d, .plate .th .vs, .plate .g .p small { display: none; }
    .plate .g.r .p { grid-area: 1 / 1 / 2 / 3; white-space: normal; }
    .plate .g.r .vs { grid-area: 2 / 1; }
    .plate .g.r .vs::before { content: 'VS '; color: var(--app-muted); }
    .plate .g.r .am { grid-area: 2 / 2; }
    .plate .g.r .md { grid-area: 2 / 3; }
    .plate .g.r .dl { grid-area: 2 / 4; }
    .plate .acc .g.r .p { grid-area: 1 / 1 / 3 / 3; }
    .plate .acc .g.r .md { grid-area: 1 / 3 / 3 / 4; }
    .plate .acc .g.r .dl { grid-area: 1 / 4 / 3 / 5; }
    .plate .acc .g .p small { display: block; }
    .plate mark { margin-left: 6px; }
    .plate .g.r .am { padding-right: 14px; }
    /* the VS chip wraps under its label here and would overflow the fixed 20 px row */
    .plate .card:first-child .g.r { grid-template-rows: auto auto; padding-bottom: 12px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; }
    .footer-bottom-inner > [aria-hidden] { display: none; }
    .lbl { right: calc(100% - var(--seam-x) + 10px); left: calc(var(--lx) + 14px); white-space: normal; line-height: 15px; }

    /* no room for a Doklad column: each faktura's facts head its entries in a 40 px block left of the seam (seam +5 × 40 px) */
    .hist { --dl: 40px; --md: 48px; --cols: minmax(0, 1fr) 76px var(--md) var(--dl); --pl: 12px; --pr: 14px; --len: calc(652px - var(--y0) + 28px); }
    .hist .th > :first-child { display: none; }
    .hist .fh { grid-area: auto / 1 / auto / 3; height: 40px; flex-flow: row wrap; justify-content: flex-start; align-content: flex-end; column-gap: 10px; }
    .hist .fp .g.r { grid-column: 1 / -1; }
    .hist .rule { width: auto; margin-left: 0; }
    .hist .g.r, .hist .fh { font-size: 12px; }
    .hist .fh small { font-size: 11px; }
    .hist .ch b { grid-column: 1 / -1; }
    .hist .ev { grid-area: 2 / 2; padding: 2px 8px; font-size: 12px; }
    .hist .am { padding-right: 8px; }
    .win-foot { height: 46px; }
    .rchip { flex: 0 1 auto; height: auto; min-height: 30px; padding-block: 5px; flex-wrap: wrap; row-gap: 0; }
}

/* ---------- motion: the beat sheet ----------
   Each .a declares only what moves (--an) and when (--at, ms after its scene comes into view). Fill is
   backwards-only: before its beat an element holds the start frame, after it the poster styles apply untouched,
   so a finished page has no live animations. Delays in the hero subtract --sh where there's no drag gesture. */
@media screen and (prefers-reduced-motion: no-preference) {
    .ag-pre .a { animation: var(--an) var(--ad, 220ms) var(--ae, var(--ease)) var(--at, 0ms) backwards paused; }
    .ag-pre .dot > i::after { animation: ag-ring 560ms ease-out var(--t-pop) backwards paused; }
    .ag-pre .hist .g.r::after { animation: ag-fade 220ms var(--ease) calc(100ms + var(--i) * 30ms) backwards paused; }
    .ag-pre .is-on .a, .ag-pre .is-on .dot > i::after, .ag-pre .is-on .hist .g.r::after { animation-play-state: running; }
    /* a finished scene drops its animations, so a later restyle (resize, rotation) can never replay it */
    .ag-pre .is-done .a, .ag-pre .is-done .dot > i::after, .ag-pre .is-done .hist .g.r::after { animation: none; }

    .dot > i { --an: ag-dotpop; --ad: 200ms; --at: var(--t-pop); }

    /* hero, ms (desktop, --sh 250): drag 80–800 · 84 lands in Doklady 650 · chips 630–1140 · klik 600 · hairline 600–920 ·
       seam + rows 880–1900 · ke kontrole +260 after its row · rule chip 1950 · result strip 1980. Rows start as a faint
       poster, never an empty table. */
    .ag-hero { --sh: 250ms; --t-pop: calc(850ms - var(--sh)); }
    .ag-hero .win-tabs .n, .ag-hero .ws-n { --an: ag-pop; --at: calc(900ms - var(--sh)); }
    .ag-hero .ws-ok { --an: ag-fade; --at: calc(2230ms - var(--sh)); --ad: 300ms; }
    .ag-hero .ws-kk { --an: ag-pop; --at: calc(2290ms - var(--sh)); --ad: 260ms; }
    .ag-hero .drag { --an: ag-drag; --at: 80ms; --ad: 720ms; --ae: cubic-bezier(.3, .7, .2, 1); }
    .ag-hero .drop-hi { --an: ag-hi; --at: 480ms; --ad: 600ms; --ae: linear; }
    .ag-hero .drop-fr { --an: ag-out; --at: 0ms; --ad: calc(1100ms - var(--sh)); --ae: linear; }
    .ag-hero .chip { --an: ag-chip; --at: calc(880ms + var(--k) * 70ms - var(--sh)); --ad: 300ms; }
    .ag-hero .hl-v { --an: ag-drawy; --at: calc(850ms - var(--sh)); --ad: 160ms; --ae: var(--seg); }
    .ag-hero .hl-h { --an: ag-drawx; --at: calc(1010ms - var(--sh)); --ad: 160ms; --ae: var(--seg); }
    .ag-hero .dot { --an: ag-path; --at: calc(850ms - var(--sh)); --ad: 1340ms; --ae: linear; }
    .ag-hero .seam { --an: ag-seam; --at: calc(1130ms - var(--sh)); --ad: 1020ms; --ae: linear; }
    .ag-hero .gh, .ag-hero .tr, .ag-hero .more { --an: ag-ghost; --at: calc(1150ms + var(--i) * 72ms - var(--sh)); }
    .ag-hero .kkt { --an: ag-fade; --at: calc(1410ms + var(--i) * 72ms - var(--sh)); --ad: 300ms; }
    .ag-hero .kk { --an: ag-nudge; --at: calc(1470ms + var(--i) * 72ms - var(--sh)); --ad: 320ms; }
    .ag-hero .ok { --an: ag-pop; --at: calc(1310ms + var(--j) * 72ms - var(--sh)); }
    .ag-hero .rchip { --an: ag-rise; --at: calc(2200ms - var(--sh)); --ad: 300ms; }
    .ag-hero .trace { --an: ag-dim; --at: calc(2300ms - var(--sh)); --ad: 400ms; }
    .ag-hero .cnt { --an: ag-pop; --at: calc(2400ms - var(--sh)); }
    /* steps, ms: each headline rises 110 apart, its brand stop klik-pops in after it, the standfirst settles */
    .ag-hero .points li { --pi: 0; }
    .ag-hero .points li:nth-child(2) { --pi: 1; }
    .ag-hero .points li:nth-child(3) { --pi: 2; }
    .ag-hero .pt-t { --an: ag-rise10; --at: calc(var(--pi) * 110ms); --ad: 420ms; }
    .ag-hero .pt-p { --an: ag-dotpop; --at: calc(300ms + var(--pi) * 110ms); --ad: 200ms; }
    .ag-hero .pt-d { --an: ag-fade; --at: calc(160ms + var(--pi) * 110ms); --ad: 420ms; }

    /* §2, ms: VS 150 · klik 200 · hairline 340–720 · faktura VS 700 · label 780 · 321 nets to zero 950 */
    .s2 { --t-pop: 200ms; }
    .s2 .m1 > i { --an: ag-fade; --at: 150ms; }
    .s2 .ln { --an: ag-drawy; --at: 340ms; --ad: 380ms; --ae: var(--seg); }
    .s2 .link .dot { --an: ag-ride; --at: 340ms; --ad: 380ms; --ae: var(--seg); }
    .s2 .m2 > i { --an: ag-fade; --at: 700ms; }
    .s2 .lbl { --an: ag-fade; --at: 780ms; --ad: 300ms; }
    .s2 .zero { --an: ag-fade; --at: 950ms; --ad: 300ms; }

    /* §3, ms, on §2's beat (evidence marked → klik → hairline eases to the target → target → note):
       MD | D bands 100–370, one row per 30 ms · klik 400 · seam + dot 440–980 · rule 940 · evidence note 1100 */
    .s3 { --t-pop: 400ms; }
    .s3 .seam { --an: ag-drawy; --at: 440ms; --ad: 540ms; --ae: var(--seg); }
    .s3 .dot { --an: ag-ride; --at: 440ms; --ad: 540ms; --ae: var(--seg); }
    .s3 .rule { --an: ag-rise10; --at: 940ms; --ad: 300ms; }
    .s3 .rule-n { --an: ag-fade; --at: 1100ms; --ad: 300ms; }

    /* no drag gesture below 960: the month count is simply there, nothing lands into it */
    @media (max-width: 959px) { .ag-hero { --sh: 700ms; } .ag-hero .win-tabs .n, .ag-hero .ws-n { --an: none; } }
    /* below 960 the figure (the hero's data-io) stacks under the copy: the steps must not wait for it to scroll in */
    @media (max-width: 959px) { .ag-hero .points .a { --an: none; } }
    @media (max-width: 599px) {
        .ag-hero { --t-pop: calc(1100ms - var(--sh)); }
        .ag-hero .dot { --an: ag-path-m; --at: calc(1130ms - var(--sh)); --ad: 1020ms; }
        .s2 .m2 > i { --at: 450ms; }
        .s2 .lbl { --at: 550ms; }
    }
}

@keyframes ag-rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes ag-rise10 { from { opacity: 0; transform: translateY(10px); } }
@keyframes ag-fade { from { opacity: 0; } }
@keyframes ag-pop { from { opacity: 0; transform: scale(.86); } }
@keyframes ag-dim { from { opacity: 1; } }
@keyframes ag-drawy { from { transform: scaleY(0); } }
@keyframes ag-drawx { from { transform: scaleX(0); } }
@keyframes ag-dotpop { from { transform: scale(0); } 65% { transform: scale(1.3); } }
@keyframes ag-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
@keyframes ag-hi { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes ag-chip { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes ag-ghost { from { opacity: .16; transform: translateY(3px); } }
@keyframes ag-out { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ag-nudge { from { opacity: 0; transform: translateX(-6px); } }
@keyframes ag-drag {
    0% { opacity: 0; transform: translate(-170px, 30px) rotate(-6deg); }
    14% { opacity: 1; }
    72% { opacity: 1; transform: none; }
    84% { opacity: 1; transform: scale(.94); }
    100% { opacity: 0; transform: scale(.88); }
}
/* the seam grows with the rows: thead → first group (by 1878 ms) → the rule card (2700 ms) */
@keyframes ag-seam {
    0% { clip-path: inset(0 0 calc(100% - 32px) 0); }
    17.8% { clip-path: inset(0 0 calc(100% - 67px) 0); }
    100% { clip-path: inset(0); }
}
/* the dot is the pen tip: down the hairline, along it to the seam, then down the seam in step with ag-seam */
@keyframes ag-path {
    0% { transform: translate(calc(41px - var(--seam-x)), calc(var(--y-chip) - 100%)); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    11.94% { transform: translate(calc(41px - var(--seam-x)), calc(var(--y-r1) - 100%)); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    23.88% { transform: translateY(calc(var(--y-r1) - 100%)); animation-timing-function: linear; }
    100% { transform: none; }
}
@keyframes ag-path-m {
    0% { transform: translateY(calc(var(--y-th) - 100%)); }
    17.8% { transform: translateY(calc(var(--y-r1) - 100%)); }
    100% { transform: none; }
}
@keyframes ag-ride { from { transform: translateY(calc(-1 * var(--len))); } }

/* Closing: H2 beside the form, FAQ below, both headings sticky */
.close-l { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
.close-l > .h2 { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 96px; align-self: start; }
.close-l > .bf, .close-l > .bf-done { grid-column: 2; grid-row: 1; margin-top: 6px; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; }
/* padding-top lines the heading up with the first question; top offsets it so stuck state matches */
.faq-h { margin: 0; padding-top: 14px; align-self: start; position: sticky; top: 82px; font: 570 clamp(26px,2.4vw,34px)/1.1 var(--f-display); letter-spacing: -.025em; color: var(--ink-strongest); }
@media (max-width: 959px) {
  .close-g { gap: 56px; }
  .close-l, .faq { grid-template-columns: minmax(0, 1fr); }
  .close-l > .h2 { position: static; grid-row: auto; margin-bottom: 28px; }
  .close-l > .bf, .close-l > .bf-done { grid-column: 1; grid-row: auto; margin-top: 0; }
  .faq-h { position: static; padding-top: 0; margin-bottom: 20px; font-size: 26px; }
}
