/* Self-hosted fonts (latin + latin-ext, enough for SK, HU, EN). Loading them from Google Fonts would send every visitor's IP to Google, which EU courts have ruled needs consent. Downloaded once from fonts.googleapis.com (OFL licensed); see SEO.md. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(Geist-400-600-latin-ext.824f485b5d.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(Geist-400-600-latin.19f9c92546.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(GeistMono-400-latin-ext.1a189eb997.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(GeistMono-400-latin.684ad5b531.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(GeistMono-400-latin-ext.1a189eb997.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(GeistMono-400-latin.684ad5b531.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(Unbounded-400-700-latin-ext.845e1c9fe2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(Unbounded-400-700-latin.22f9b928aa.woff2) format('woff2');
  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;
}

/* Two looks on one set of tokens: dark (graphite black, calm Danube-blue accent, ice-teal depth) and light (white, grey and
   blue, dark text). Visitors get the one their device asks for; the header toggle switches it for the page (nothing is stored).
   Hero is the Danube flow of dots; at the bottom, data falls pour into a stony pond under the footer; further down a spinning globe made of dots (it matches the logo)
   carries labelled job nodes. Marquees, animated borders and scroll reveals carry the rest of the motion.
   The *-rgb tokens are the same colours as "r,g,b" for the canvas drawings in main.js. */
:root {
  --bg: #07090a;
  --surface: #0e1113;
  --surface-2: #14181b;
  --line: #20272b;
  --ink: #eef2ee;
  --muted: #8b9692;
  --accent: #5bbbe6;      /* primary signal */
  --accent-ink: #03131c;
  --ice: #6fe7dd;         /* depth / secondary */
  --warn: #ffb347;        /* waiting for a person */
  --bg-rgb: 7,9,10; --ink-rgb: 238,242,238; --muted-rgb: 139,150,146; --accent-rgb: 91,187,230; --ice-rgb: 111,231,221;
  --bot-rgb: 36,52,68; --bot-2-rgb: 54,76,98; --bot-edge-rgb: 214,231,243; --bot-face-rgb: 7,14,21;   /* devices in the scenes (the printer): blue graphite with a pale sticker edge */
  --leaf-rgb: 86,186,132; --leaf-2-rgb: 32,92,72;   /* pond greens: reeds, lily pads, moss */
  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 76rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f7fa; --surface: #ffffff; --surface-2: #eaf0f5; --line: #d6dfe7; --ink: #0d1724; --muted: #566577;
    --accent: #1677a3; --accent-ink: #ffffff; --ice: #2f9fb0; --warn: #b25d00;
    --bg-rgb: 244,247,250; --ink-rgb: 13,23,36; --muted-rgb: 86,101,119; --accent-rgb: 22,119,163; --ice-rgb: 47,159,176;
    --bot-rgb: 29,58,87; --bot-2-rgb: 46,84,120; --bot-edge-rgb: 255,255,255; --bot-face-rgb: 6,17,29;
    --leaf-rgb: 52,140,92; --leaf-2-rgb: 26,92,64;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f7fa; --surface: #ffffff; --surface-2: #eaf0f5; --line: #d6dfe7; --ink: #0d1724; --muted: #566577;
  --accent: #1677a3; --accent-ink: #ffffff; --ice: #2f9fb0; --warn: #b25d00;
  --bg-rgb: 244,247,250; --ink-rgb: 13,23,36; --muted-rgb: 86,101,119; --accent-rgb: 22,119,163; --ice-rgb: 47,159,176;
    --bot-rgb: 29,58,87; --bot-2-rgb: 46,84,120; --bot-edge-rgb: 255,255,255; --bot-face-rgb: 6,17,29;
    --leaf-rgb: 52,140,92; --leaf-2-rgb: 26,92,64;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
/* Background texture that fades out down the page (overridden by the dot theme at the end) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 0%, transparent 75%); }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.lede b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.placeholder-note { font: 400 0.8rem/1.4 var(--mono); color: var(--muted); }

/* Nav: floating glass pill */
.top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20; padding-inline: var(--gutter); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.6rem 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font: 600 0.95rem/1 var(--display); white-space: nowrap; }
.brand small { font: 400 0.56rem/1 var(--mono); color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase; }
.brand .mark { width: 1.85rem; height: 1.85rem; flex: none; }
.brand .mark .f { fill: var(--accent); }
.brand .mark .b { fill: var(--ice); }
.brand .mark .h { fill: var(--ink); }
.brand .mark .hr { fill: var(--bg); stroke: var(--ink); }
.brand .name { display: grid; gap: 0.22rem; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.top nav { display: flex; gap: 1.4rem; font-size: 0.9rem; }
.top nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }
.top-end { display: flex; align-items: center; gap: 0.6rem; }
.lang { display: flex; gap: 0.1rem; font: 500 0.72rem/1 var(--mono); }
.lang a { color: var(--muted); text-decoration: none; padding: 0.45rem 0.5rem; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.btn { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 0.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 0.95rem/1 var(--body); padding: 0.85rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden; transition: transform 0.2s, box-shadow 0.3s; }
.btn::after { content: "→"; transition: transform 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:hover::after { transform: translateX(3px); }
/* light sweep that loops across the primary button */
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.55) 50%, transparent 60%); transform: translateX(-100%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.top .btn { padding: 0.65rem 1rem; font-size: 0.88rem; }

section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.head { display: grid; gap: 1rem; margin-bottom: 2.75rem; max-width: 46rem; justify-items: start; }

/* ── Hero ── */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
/* the globe sits alone in its cell, nothing on top of it: copy | globe, then stats | job card under the globe */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "copy viz" "stats ticket"; column-gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.hero-copy { grid-area: copy; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; justify-items: start; position: relative; z-index: 2; }
.hero .hero-copy { container-type: inline-size; }   /* lets the rotating line size itself to the column */
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; } .hero-copy > :nth-child(3) { animation-delay: 0.16s; } .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
/* looping word rotator in the headline */
/* the rotating line never wraps: its size shrinks so the longest phrase fits the text column and never runs onto the globe */
.hero h2 { max-width: 100%; font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 600; }
/* each phrase gets a 1.3em slot so accents (ď, ľ, ő) and descenders never touch the headline above or the text below;
   the slot fades at its edges so a phrase rolling through never looks cut. main.js shrinks the line further if a phrase is
   still wider than the column (other fonts, zoom, browsers without container units). */
.rot { font-size: 1em; font-size: min(1em, calc(100cqi / (var(--ch, 18) * 0.66))); display: block; height: 1.3em; line-height: 1.3; overflow: hidden; overflow-x: visible; overflow-y: clip; color: var(--accent);
  -webkit-mask-image: linear-gradient(transparent, #000 0.14em, #000 calc(100% - 0.14em), transparent); mask-image: linear-gradient(transparent, #000 0.14em, #000 calc(100% - 0.14em), transparent); }
.rot span { display: block; animation: rot 10s cubic-bezier(0.7, 0, 0.2, 1) infinite; }
.rot i { display: block; width: max-content; font-style: normal; white-space: nowrap; }
@keyframes rot { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-1.3em); } 50%, 70% { transform: translateY(-2.6em); } 75%, 95% { transform: translateY(-3.9em); } 100% { transform: translateY(-5.2em); } }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-row .btn { max-width: 100%; white-space: normal; line-height: 1.2; padding-block: 0.75rem; }   /* a long label (HU on a small phone) wraps instead of being cut; same height on one line */

.hero-viz { grid-area: viz; position: relative; aspect-ratio: 1; min-width: 0; animation: rise 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
#globe { position: absolute; inset: -8%; width: 116%; height: 116%; display: block; }

/* Animated border (ported from 21st.dev "Animated Border" by kevingirelli): one rotating conic layer behind a 1px inset surface */
.ab { position: relative; isolation: isolate; overflow: hidden; padding: 1px; background: var(--line); border-radius: 14px; }
.ab::before { content: ""; position: absolute; top: 50%; left: 50%; width: 200%; aspect-ratio: 1; margin: -100% 0 0 -100%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--ab-color, var(--accent)) 82%, transparent 96%); animation: spin var(--ab-speed, 6s) linear infinite; }
.ab.off::before { animation-play-state: paused; }
.ab > * { position: relative; border-radius: inherit; background: var(--surface); height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticket-wrap { grid-area: ticket; align-self: start; justify-self: center; width: min(24rem, 100%); margin-top: -1.5rem; z-index: 3; box-shadow: 0 30px 60px -30px #000; }
.ticket { font-family: var(--mono); font-size: 0.76rem; }
.ticket header { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.ticket header span:last-child { color: var(--accent); }
.ticket ol { list-style: none; margin: 0; padding: 0.35rem 0; min-height: 10.6rem; }
.ticket header span:first-child, .ticket ol, .ticket footer b { transition: opacity 0.3s; }
.ticket.swap header span:first-child, .ticket.swap ol, .ticket.swap footer b { opacity: 0; }
.ticket li { display: grid; grid-template-columns: 1rem 1fr auto; gap: 0.55rem; padding: 0.42rem 0.9rem; align-items: baseline; transition: opacity 0.4s, background 0.4s; }
.ticket.live li { opacity: 0.28; }
.ticket li .ok { color: var(--accent); }
.ticket li.wait .ok { color: var(--warn); }
.ticket.live li:not(.done):not(.now) .ok { color: var(--muted); }
.ticket li .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket.live li.done { opacity: 1; }
.ticket.live li.now { opacity: 1; background: color-mix(in srgb, var(--accent) 7%, transparent); } .ticket li.now .ok { animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.ticket footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ticket footer div { padding: 0.7rem 0.9rem; display: grid; gap: 0.15rem; }
.ticket footer div + div { border-left: 1px solid var(--line); }
.ticket footer b { font: 500 1.05rem/1 var(--display); color: var(--ink); }
.ticket footer span { color: var(--muted); font-size: 0.7rem; }

.stats { grid-area: stats; align-self: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.stats div { padding: 1.4rem 0; display: grid; gap: 0.3rem; }
.stats div + div { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2rem); }
.stats b { font: 500 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font: 400 0.78rem/1.4 var(--mono); }

/* ── Marquee (ported from 21st.dev "Blurred Marquee" by grootstudio): infinite slider, slows on hover, progressive-blur edges ── */
.band { padding-block: 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--surface), transparent 30%, transparent 70%, var(--surface)); }
.mq { position: relative; overflow: hidden; padding-block: 1.15rem; }
.mq-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.mq-track li { margin-right: 3.25rem; white-space: nowrap; font: 400 0.9rem/1 var(--mono); color: var(--muted); display: flex; align-items: center; gap: 3.25rem; }
.mq-track li::after { content: "+"; color: var(--accent); opacity: 0.7; }
.mq-blur { position: absolute; top: 0; bottom: 0; width: clamp(3rem, 12vw, 10rem); pointer-events: none; }
.mq-blur.l { left: 0; } .mq-blur.r { right: 0; }
.mq-blur i { position: absolute; inset: 0; }
.mq:not(.live) { overflow-x: auto; }           /* no JS or reduced motion: plain scrollable row */
.mq.chips { padding-block: 0.45rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq.chips li { margin-right: 0.7rem; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.7rem 1.1rem; background: var(--surface); color: var(--ink); font: 400 0.95rem/1 var(--body); transition: border-color 0.2s, color 0.2s; }
.mq.chips li::after { display: none; }
.mq.chips li:hover { border-color: var(--accent); color: var(--accent); }
#industries .wrap + .mq { margin-top: -0.75rem; }

/* Pointer spotlight on cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* Scroll reveal (class added by main.js, so content is visible without JS) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

/* ── Services ── */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.services > li { display: flex; align-items: flex-start; gap: 1.4rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.services > li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateX(4px); }
.services .tag { font: 500 0.72rem/1.5 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.services .body { display: grid; gap: 0.45rem; min-width: 0; flex: 1; }
.cat-img { display: block; width: 7.5rem; height: 7.5rem; border-radius: 12px; flex: none; background: var(--surface-2); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.services > li:hover .cat-img { transform: scale(1.06) rotate(-2deg); }
.services p { color: var(--muted); font-size: 0.98rem; }
.services .ex { font: 400 0.78rem/1.6 var(--mono); color: var(--ink); opacity: 0.7; }
details.all { margin-top: 0.3rem; }
details.all summary { cursor: pointer; font: 500 0.82rem/1 var(--mono); color: var(--accent); width: fit-content; }
details.all ul { list-style: none; margin: 0.9rem 0 0.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; }
details.all[open] ul { animation: rise 0.5s both; }
details.all li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.5rem; font-size: 0.92rem; color: var(--muted); }
details.all li b { color: var(--ink); font-weight: 500; }
.sid { font: 500 0.72rem/1.7 var(--mono); color: var(--ice); }

/* ── Packages ── */
.pkg-flow { display: grid; gap: 1rem; }
.pkg-strip { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--line); border-radius: 14px; }
.pkg-strip > div { display: grid; gap: 0.35rem; min-width: 0; }
.pkg-strip p, .pkg p { color: var(--muted); font-size: 0.98rem; }
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pkg { display: grid; gap: 0.75rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; height: 100%; transition: transform 0.3s; }
.pkgs > *:hover { transform: translateY(-4px); } .pkgs > * { transition: transform 0.3s; }
.ab > .pkg { border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%); }
.pkg-meta { font: 400 0.78rem/1.4 var(--mono); color: var(--ice); margin-top: 0.4rem; }
/* Monthly / Yearly switch above the cards: plain radios, so it works without JS; monthly by default */
.bill { display: inline-flex; justify-self: center; gap: 0.25rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.bill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bill label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999px; font: 500 0.92rem/1 var(--mono); color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.bill label em { font-style: normal; font-size: 0.74rem; padding: 0.25rem 0.5rem; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bill input:checked + label { background: var(--accent); color: var(--accent-ink); }
.bill input:checked + label em { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 16%, transparent); }
.bill input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pkg .by { display: none; }
#packages:has(#bill-y:checked) .pkg .bm { display: none; }
#packages:has(#bill-y:checked) .pkg .by { display: inline; }
#packages:has(#bill-y:checked) .pkg p.by { display: block; }
.pkg p.pkg-year { color: var(--ink); font-weight: 500; }
.now-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--surface-2); margin-bottom: 0.4rem; }
.more { display: inline-block; margin-top: 1.6rem; font: 500 0.85rem/1 var(--mono); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 0.3rem; }
.more:hover { border-color: var(--accent); }

/* ── Process ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.steps li { counter-increment: step; display: grid; gap: 0.65rem; align-content: start; padding-top: 1.6rem; position: relative; }
.steps li::before { content: "0" counter(step); font: 500 0.74rem/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.step-img { display: block; width: 100%; max-width: 12rem; height: auto; aspect-ratio: 1; background: var(--surface-2); border-radius: 14px; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.steps .when { font: 400 0.78rem/1.4 var(--mono); color: var(--ice); }
#process { overflow: hidden; }

/* ── Agent ── */
.agent .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.agent-copy { display: grid; gap: 1.3rem; min-width: 0; justify-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.checks li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: grid; gap: 0.75rem; font-family: var(--mono); font-size: 0.82rem; min-width: 0; }
.node { border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; display: grid; gap: 0.2rem; background: var(--surface-2); }
.node b { font-family: var(--body); font-weight: 500; font-size: 0.98rem; }
.node span { color: var(--muted); }
.node.you { border-color: var(--accent); box-shadow: 0 0 24px -10px var(--accent); }
/* packets running up and down the secure link */
.link { position: relative; text-align: center; color: var(--muted); font-size: 0.72rem; padding-block: 1.1rem; }
.link::before, .link::after { content: ""; position: absolute; left: 1.4rem; top: 0; width: 2px; height: 30%; border-radius: 2px; background: linear-gradient(var(--accent), transparent); animation: packet 2.2s linear infinite; }
.link::after { left: auto; right: 1.4rem; background: linear-gradient(transparent, var(--ice)); animation-direction: reverse; animation-delay: -1.1s; }
@keyframes packet { from { top: -30%; opacity: 0; } 20%, 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
.zone { border: 1px dashed var(--line); border-radius: 12px; padding: 0.8rem; display: grid; gap: 0.6rem; }
.zone > .eyebrow { font-size: 0.68rem; }

/* ── FAQ ── */
.faq { display: grid; max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] p { animation: rise 0.45s both; }
.faq p { color: var(--muted); margin-top: 0.8rem; max-width: 42rem; }

/* ── Contact ── */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-copy { display: grid; gap: 1.1rem; align-content: start; min-width: 0; justify-items: start; }
form { display: grid; gap: 1rem; padding: 1.6rem; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: 0.4rem; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input, textarea, select { font: 400 1rem/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); outline: 0; }
textarea { min-height: 7rem; resize: vertical; }
form .btn { justify-self: start; }
.form-msg { font-size: 0.92rem; color: var(--accent); }

footer.site { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font: 400 0.78rem/1.5 var(--mono); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ── Service-category pages and the about block (added for SEO; generated by build.py) ── */
.cat-link { color: inherit; text-decoration: none; }
.cat-link:hover { color: var(--accent); }
.cat-link::after { content: " →"; color: var(--accent); opacity: 0; transition: opacity 0.2s; }
.services > li:hover .cat-link::after, .cat-link:focus-visible::after { opacity: 1; }
.about { padding-block: clamp(2rem, 5vw, 3.5rem); }
.about .head { margin-bottom: 0; max-width: 54rem; }
.cat-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.cat-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; }
.cat-hero-img { width: 100%; max-width: 18rem; height: auto; aspect-ratio: 1; justify-self: end; border-radius: 18px; background: var(--surface-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; font: 500 0.8rem/1.4 var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.sub section:not(.cat-hero) { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cat-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cat-items li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.6rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cat-items h3 { margin-bottom: 0.4rem; }
.cat-items p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cat-others { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cat-others a { display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.cat-others a:hover { border-color: var(--accent); color: var(--accent); }
.sub .contact .wrap { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .cat-hero .wrap, .cat-items { grid-template-columns: 1fr; }
  .cat-hero-img { justify-self: start; max-width: 9rem; }
}

@media (max-width: 1080px) { .top nav { display: none; } }
@media (max-width: 900px) {
  .hero .wrap, .agent .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-areas: "copy" "viz" "ticket" "stats"; }
  .hero-viz { max-width: 30rem; width: 100%; margin-inline: auto; }
  .ticket-wrap { width: 100%; max-width: 30rem; margin-top: -10%; }
  .hero-viz { aspect-ratio: auto; }
  #globe { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .pkgs, details.all ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1, .hero h2 { font-size: clamp(1.35rem, 7.2vw, 2rem); }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .pkg-strip { grid-template-columns: 1fr; gap: 0.4rem; }
  .services > li { gap: 0.9rem; padding: 1.1rem; }
  .cat-img { width: 4.5rem; height: 4.5rem; }
  .top .btn { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .stats span { font-size: 0.68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ── Dot theme: matches the logo (a globe made of dots). Rules, dividers and textures are rows of dots. ── */
body::before { background-image: radial-gradient(circle, color-mix(in srgb, var(--ice) 45%, var(--line)) 1.1px, transparent 1.6px); background-size: 22px 22px; opacity: 0.55; }
.eyebrow::before { width: 1.6rem; height: 5px; background: radial-gradient(circle, currentColor 1.7px, transparent 2.2px) 0 50% / 7px 5px repeat-x; }
/* dotted dividers that drift slowly to the right, like data moving */
.dots-rule, .band::before, main > section:not(.hero):not(.band)::before {
  content: ""; display: block; height: 4px; background: radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 0 50% / 10px 4px repeat-x; animation: drift 6s linear infinite; }
main > section:not(.hero):not(.band)::before { position: absolute; top: 0; left: 0; right: 0; background-image: radial-gradient(circle, color-mix(in srgb, var(--ice) 35%, var(--line)) 1.4px, transparent 1.9px); }
@keyframes drift { to { background-position: 10px 50%; } }
.band { border-block: 0; position: relative; }
.band::before { position: absolute; top: 0; left: 0; right: 0; }
.band::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 0 50% / 10px 4px repeat-x; animation: drift 6s linear infinite reverse; }
.mq-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.stats { border-top: 0; background: radial-gradient(circle, var(--line) 1.3px, transparent 1.8px) 0 0 / 10px 4px repeat-x; }
.stats div + div { border-left: 0; background: radial-gradient(circle, var(--line) 1.3px, transparent 1.8px) 0 0 / 4px 10px repeat-y; }
.steps::before { height: 4px; top: -2px; background: radial-gradient(circle, var(--accent) 1.4px, transparent 1.9px) 0 50% / 10px 4px repeat-x; opacity: 0.6; animation: drift 3s linear infinite; }
.steps li::after { border-style: dotted; border-width: 2px; width: 11px; height: 11px; top: -5px; }
.pkg-strip { border-style: dotted; border-width: 2px; }
/* hover: an accent dot field lights up under the pointer instead of a soft glow */
.spot::after { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 1.1px, transparent 1.6px) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%); mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%); }
.btn.ghost { border-style: dotted; border-width: 2px; }
.ab::before { background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 74%, transparent 75%, transparent 78%, var(--accent) 80%, transparent 81%, transparent 84%, var(--accent) 86%, transparent 88%); }
@media (prefers-reduced-motion: reduce) { .dots-rule, .band::before, .band::after, main > section::before, .steps::before { animation: none; } }

/* Slogan under the hero buttons: the last word ("Bodka." / "Pont." / "Dot.") ends on a pulsing accent dot */
.slogan { margin: 0; font: 500 0.82rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.slogan b { color: var(--accent); font-weight: 500; position: relative; }
.slogan b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.45rem; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: ping 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .slogan b::after { animation: none; } }

/* ── River centrepiece: dots flow like the Danube across a full-width band; work items ride the current (main.js) ── */
.river { padding: 0; height: clamp(26rem, 72vh, 40rem); overflow: hidden; border-block: 1px solid var(--line); }
#river { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.river-copy { position: relative; z-index: 1; text-align: center; padding-top: clamp(2.5rem, 7vh, 4.5rem); display: grid; gap: 0.9rem; justify-items: center; pointer-events: none; }
.river h1 { font-size: clamp(2.1rem, 6vw, 4.4rem); }
.river h1 i { font-style: normal; color: var(--accent); }
/* As the hero (Peter, 2026-10-20): the headline on top, then a lot of dark sky above a wide flow */
.river-hero { height: auto; min-height: clamp(40rem, 100svh, 60rem); border-top: 0; }
.river-hero .river-copy { pointer-events: auto; padding-top: clamp(3rem, 9vh, 6rem); }
.river-hero .river-copy > :not(.cta-row) { pointer-events: none; }
.river-hero .cta-row { justify-content: center; margin-top: 0.6rem; }
.river-hero .eyebrow { text-align: center; }
/* On a phone the headline must fit the screen: "Automatizované." is about 10.5 em wide in Unbounded, so the size follows
   the screen width; the column can't grow past the screen, and a word that still doesn't fit (big system text) breaks
   instead of pushing the whole hero off centre (Peter, 2026-10-30). */
.river-copy { grid-template-columns: minmax(0, 1fr); }
.river-copy > * { max-width: 100%; }
@media (max-width: 560px) {
  .river h1 { font-size: min(2.1rem, calc((100vw - 2.5rem) / 11)); overflow-wrap: anywhere; }
  .river-hero .eyebrow { justify-content: center; text-wrap: balance; }
  .river-hero .eyebrow::before { display: none; }
}
/* Falls into the pond (main.js): from the contact section down the page margins into a stony pond under the footer. The canvas
   is placed over both by main.js and sits behind their content. */
#pond { position: absolute; left: 0; width: 100%; z-index: 0; pointer-events: none; display: block; }
section > .wrap, footer.site .wrap { position: relative; z-index: 1; }
body:has(#pond) footer.site { padding-bottom: 6.5rem; }
.river .lede { max-width: 34rem; }

/* ── A day of invoices, replayed fast (main.js) ── */
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.day-top { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; align-items: baseline; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.clock b { font: 700 clamp(1.75rem, 4vw, 2.5rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.clock small { font: 500 0.75rem/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; margin-left: 0.6rem; text-transform: uppercase; }
.day-stage { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; }
#day-flow { width: 100%; height: 21rem; display: block; }
.day-log { border-left: 1px solid var(--line); padding: 0.9rem 1rem; font: 400 0.78rem/1.45 var(--mono); color: var(--muted); display: grid; align-content: start; gap: 0.5rem; height: 21rem; overflow: hidden; }
.day-log div { animation: log-in 0.4s ease both; }
.day-log b { color: var(--ink); font-weight: 500; }
.day-log em { font-style: normal; color: var(--accent); }
@keyframes log-in { from { opacity: 0; transform: translateY(-6px); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.kpis div { padding: 0.9rem 1.25rem; display: grid; gap: 0.15rem; border-left: 1px solid var(--line); }
.kpis div:first-child { border-left: 0; }
.kpis b { font: 700 clamp(1.15rem, 2.4vw, 1.6rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpis b.l { color: var(--accent); }
.kpis span { font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
.day-note { margin: 0.8rem 0 0; font: 400 0.75rem/1.4 var(--mono); color: var(--muted); }
@media (max-width: 820px) {
  .day-stage { grid-template-columns: 1fr; }
  #day-flow { height: 26rem; }
  .day-log { border-left: 0; border-top: 1px solid var(--line); height: 10.5rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis div:nth-child(3) { border-left: 0; }
  .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Hub-node scenes in the process steps and on each agent's card: drawn live, props made of dots (main.js) ── */
.step-bot { display: block; width: 100%; max-width: 15rem; aspect-ratio: 1; border-radius: 14px; margin-bottom: 0.3rem; background: radial-gradient(120% 90% at 50% 40%, var(--surface-2), var(--bg)); border: 1px solid var(--line); }
.bot { background: radial-gradient(120% 90% at 50% 40%, var(--surface-2), var(--bg)); border: 1px solid var(--line); }

/* ── Interactive demo around the day of invoices: tabs for a sample firm, a bad-day switch, decisions the visitor clicks (main.js) ── */
.btn.sm { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
.btn.sm::before, .btn.sm::after { display: none; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.demo .day { border: 0; border-radius: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.firm { font: 500 0.78rem/1 var(--mono); color: var(--muted); }
.firm::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 0.5rem; vertical-align: 1px; }
.tabs { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; margin-left: auto; max-width: 100%; }
.tabs button { flex: none; font: 500 0.82rem/1 var(--body); color: var(--muted); background: none; border: 1px dotted transparent; border-radius: 999px; padding: 0.55rem 0.85rem; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.day-top { align-items: center; }
.day-top .eyebrow { margin-left: auto; }
.day-stage { position: relative; }
.day-log .w { color: var(--warn); }
.day-stage > * { min-width: 0; }
.day-log div { overflow-wrap: anywhere; }
.hold-card { position: absolute; right: 0.75rem; top: 0.75rem; width: calc(19rem - 1.5rem); display: grid; gap: 0.6rem; padding: 1rem; background: var(--bg); border: 1px solid var(--warn); border-radius: 12px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8); animation: log-in 0.3s ease both; }
.hold-card .eyebrow { color: var(--warn); }
.hold-card p { font-size: 0.92rem; }
.act, .act-live { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.did-it { font: 500 0.82rem/1.3 var(--mono); color: var(--accent); }
.panel { padding: clamp(1rem, 3vw, 1.75rem); }
#panel-0 { padding: 0; }
.panel h3 { font-size: 1.1rem; }
.panel header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; margin-bottom: 1rem; }
.panel header span { font: 400 0.78rem/1.3 var(--mono); color: var(--muted); }
.panel ul, .panel ol { list-style: none; margin: 0; padding: 0; }
.overnight li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px dotted var(--line); }
.overnight .ok { color: var(--accent); }
.overnight .tag, .inbox .state { font: 400 0.72rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.morning h4 { margin: 1.4rem 0 0.7rem; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.morning h4 b { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: 0.3rem; border-radius: 999px; background: var(--warn); color: var(--bg); }
.waiting { display: grid; gap: 0.7rem; }
.waiting li, .inbox li, .photos li { display: grid; gap: 0.7rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.waiting li { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.inbox { display: grid; gap: 0.7rem; }
.inbox li { gap: 0.4rem; }
.inbox .mail-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inbox .draft { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.inbox .draft .state { color: var(--warn); }
.inbox .auto .state { color: var(--accent); }
.inbox .subj { color: var(--muted); font-size: 0.92rem; }
.inbox .did { font: 400 0.8rem/1.4 var(--mono); color: var(--ink); }
.inbox blockquote { margin: 0.3rem 0; padding: 0.7rem 0.9rem; border-left: 2px dotted var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; font-size: 0.92rem; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.9rem; padding: 0 0 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(4.1rem + 3px); top: 0.5rem; bottom: -0.2rem; border-left: 2px dotted var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li span:last-child { padding-left: 0.9rem; position: relative; }
.timeline li span:last-child::before { content: ""; position: absolute; left: -0.3rem; top: 0.5rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.timeline .t { font: 500 0.82rem/1.6 var(--mono); color: var(--muted); }
.lead .next { display: grid; gap: 0.7rem; margin-top: 0.5rem; padding: 0.9rem 1rem; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 12px; }
.photos .lede { margin-bottom: 1rem; }
.photos ul { display: grid; gap: 0.7rem; }
.photos li { grid-template-columns: auto 1fr; align-items: center; }
.photos li > div:not(.act) { display: grid; gap: 0.2rem; }
.photos li span { color: var(--muted); font-size: 0.88rem; }
.photos .act, .photos .did-it { grid-column: 1 / -1; }
.photos .unknown { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1.6rem); gap: 3px; }
.thumbs i { aspect-ratio: 1; border-radius: 4px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ice) 40%, transparent) 1.5px, transparent 2px) 0 0 / 6px 6px, var(--bg); border: 1px solid var(--line); }
.unknown .thumbs i { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--warn) 50%, transparent) 1.5px, transparent 2px) 0 0 / 6px 6px, var(--bg); }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; padding: 0.9rem 1rem; border-top: 1px solid var(--line); }
.trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; font: 400 0.76rem/1.3 var(--mono); color: var(--muted); }
.trust li::before { content: "● "; color: var(--accent); }
#demo-pause { margin-left: auto; }
.paused-msg { flex-basis: 100%; font: 500 0.8rem/1.3 var(--mono); color: var(--warn); }
.demo.is-paused .clock b { color: var(--warn); }
@media (max-width: 820px) {
  .tabs { margin-left: 0; }
  .hold-card { position: static; margin: 0.75rem; width: auto; }
  .day-top .eyebrow { margin-left: 0; }
  #demo-pause { margin-left: 0; }
}

/* ── Flow theme (Peter, 2026-10-13: the Danube river flow is the default look). Dividers are a winding dot river carrying an accent
      packet along the current, matching the river band and the river belt on the hero globe. ── */
.band::before, .band::after, main > section:not(.hero):not(.band):not(.river)::before {
  height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14'%3E%3Ccircle cx='0' cy='7.00' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='6' cy='8.39' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='12' cy='9.65' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='18' cy='10.64' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='24' cy='11.28' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='30' cy='11.50' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='36' cy='11.28' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='42' cy='10.64' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='48' cy='9.65' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='54' cy='8.39' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='60' cy='7.00' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='66' cy='5.61' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='72' cy='4.35' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='78' cy='3.36' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='84' cy='2.72' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='90' cy='2.50' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='96' cy='2.72' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='102' cy='3.36' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='108' cy='4.35' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='114' cy='5.61' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='120' cy='7.00' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='126' cy='8.39' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='132' cy='9.65' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='138' cy='10.64' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='144' cy='11.28' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='150' cy='11.50' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='156' cy='11.28' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='162' cy='10.64' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='168' cy='9.65' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='174' cy='8.39' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='180' cy='7.00' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='186' cy='5.61' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='192' cy='4.35' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='198' cy='3.36' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='204' cy='2.72' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='210' cy='2.50' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='216' cy='2.72' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='222' cy='3.36' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='228' cy='4.35' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='234' cy='5.61' r='1.3' fill='%233f6f6b'/%3E%3Ccircle cx='150' cy='11.50' r='2.1' fill='%235bbbe6' fill-opacity='1'/%3E%3Ccircle cx='144' cy='11.28' r='1.8' fill='%235bbbe6' fill-opacity='0.7'/%3E%3Ccircle cx='138' cy='10.64' r='1.5' fill='%235bbbe6' fill-opacity='0.45'/%3E%3Ccircle cx='132' cy='9.65' r='1.3' fill='%235bbbe6' fill-opacity='0.25'/%3E%3C/svg%3E") 0 50% / 240px 14px repeat-x; animation: flow-x 7s linear infinite; }
.band::after { animation-direction: reverse; }
@keyframes flow-x { to { background-position: 240px 50%; } }
main > section.river::before { display: none; }
@media (prefers-reduced-motion: reduce) { .band::before, .band::after, main > section::before { animation: none; } }

/* Legal pages, footer legal links and the cookie banner. Loaded after styles.css and reuses its tokens. */

/* Footer legal links (every page) */
footer.site .legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; width: 100%; padding-top: 0.9rem; margin-top: 0.4rem; border-top: 1px dashed var(--line); }
.legal-links a, .legal-links button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.legal-links a:hover, .legal-links button:hover { color: var(--accent); }
footer.site .legal-note { width: 100%; }
.form-privacy { font-size: 0.82rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Legal document pages */
.legal-doc { padding-block: clamp(7rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem); }
.legal-doc .wrap { max-width: 50rem; }
.legal-doc h1 { margin-bottom: 0.8rem; }
.legal-doc h2 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin: 2.6rem 0 0.8rem; }
.legal-doc h3 { margin: 1.5rem 0 0.4rem; }
.legal-doc p, .legal-doc ul, .legal-doc ol, .legal-doc dl { margin: 0 0 1rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc li::marker { color: var(--muted); }
.legal-doc .meta { font: 400 0.82rem/1.5 var(--mono); color: var(--muted); }
.legal-doc .draft { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 2rem; font-size: 0.95rem; }
.legal-doc .ph { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); padding: 0 0.3rem; border-radius: 4px; font: 400 0.88em var(--mono); }
.legal-doc .toc { border: 1px solid var(--line); background: var(--surface); padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1rem; }
.legal-doc .toc ol { margin: 0; padding-left: 1.2rem; }
.legal-doc .table-scroll { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.legal-doc table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9rem; background: var(--surface); }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.legal-doc tr > * + * { border-left: 1px solid var(--line); }
.legal-doc tbody tr:last-child > * { border-bottom: 0; }
.legal-doc th { font-weight: 600; background: var(--surface-2); }
.legal-doc code { font: 400 0.9em var(--mono); }
.legal-doc dl { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 0.5rem 1.25rem; }
.legal-doc dt { font-weight: 600; }
.legal-doc dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .legal-doc dl { grid-template-columns: 1fr; gap: 0.15rem; } .legal-doc dd { margin-bottom: 0.6rem; } }


/* PracaHub additions on top of the Flatland design (styles.css, legal.css): only what the Flatland site
   did not have. Loaded last, reuses its tokens. No inline styles anywhere, so the strict CSP holds. */

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.preview-bar { position: relative; z-index: 30; background: var(--warn); color: #1a1000; text-align: center; font: 500 0.78rem/1.4 var(--mono); padding: 0.45rem var(--gutter); }

/* Rotating hero words: width in characters, set per page as a class instead of a style attribute */
.ch-10 { --ch: 10; } .ch-12 { --ch: 12; } .ch-14 { --ch: 14; } .ch-16 { --ch: 16; } .ch-18 { --ch: 18; }
.ch-20 { --ch: 20; } .ch-22 { --ch: 22; } .ch-24 { --ch: 24; } .ch-26 { --ch: 26; } .ch-28 { --ch: 28; } .ch-30 { --ch: 30; }
.ab-slow { --ab-speed: 9s; }

/* The services section: one done-for-you service and what it includes */
.services > li.offer { display: grid; gap: 1.3rem; padding: clamp(1.2rem, 3vw, 2rem); }
.services > li.offer:hover { transform: none; }
.offer-head { display: flex; align-items: center; gap: 1.2rem; }
.offer-head > div { display: grid; gap: 0.35rem; }
.offer-head h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.offer-inc { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 2rem; }
.offer-inc li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; font-size: 0.95rem; color: var(--muted); }
.offer-inc .ok { color: var(--accent); }
.offer-inc b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.15rem; }
.offer-inc a, .offer-more a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.offer-inc a:hover, .offer-more a:hover { color: var(--accent); }
.offer-more { margin: 0; font-size: 0.92rem; color: var(--ink); }
.offer-more span { font: 500 0.72rem/1.5 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.6rem; }
.offer-more.soon span { color: var(--warn); }
.offer-more + .offer-more { margin-top: -0.8rem; }
@media (max-width: 900px) { .offer-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer-inc { grid-template-columns: 1fr; } }

/* Agents that are coming soon */
.services .tag.soon, .cat-items .soon { color: var(--warn); }
.services > li.soon .cat-img { filter: saturate(0.35); opacity: 0.8; }
.soon-note { border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); color: var(--ink); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); border-radius: 12px; padding: 0.9rem 1.1rem; max-width: 46rem; }

/* Header: log-in link next to the language switch */
.top-end .login { color: var(--muted); text-decoration: none; font-size: 0.85rem; padding: 0.45rem 0.4rem; white-space: nowrap; }
.top-end .login:hover { color: var(--ink); }
@media (max-width: 560px) { .top-end .login { display: none; } }

/* Footer: operator line */
footer.site .operator { width: 100%; font: 400 0.78rem/1.5 var(--mono); color: var(--muted); }

/* Help centre */
.help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; list-style: none; padding: 0; margin: 0; }
.help-list a { display: block; height: 100%; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.help-list a:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.help-list b { display: block; font: 600 1.05rem/1.3 var(--display); margin-bottom: 0.4rem; }
.help-list span { display: block; color: var(--muted); font-size: 0.92rem; }
.help-list .go { margin-top: 0.7rem; font: 500 0.75rem/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 700px) { .help-list { grid-template-columns: 1fr; } }
.legal-doc .back { font: 500 0.78rem/1 var(--mono); color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }
.legal-doc .eyebrow { margin-bottom: 0.8rem; }

/* Status page */
.svcs { list-style: none; padding: 0; margin: 1.5rem 0 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.svc { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); flex: none; }
.svc.ok .svc-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.svc.down .svc-dot { background: var(--warn); }
.svc-name { flex: 1; }
.svc-state { font: 500 0.78rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.svc.ok .svc-state { color: var(--accent); }
.svc.down .svc-state { color: var(--warn); }

/* 404 */
.nf-code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--display); color: var(--accent); margin-bottom: 1rem; }
.nf-row { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.nf-row h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.nf-row .btn { margin-top: 0.8rem; }

/* ── Monthly report as live charts (#results). Illustrative data, labelled on the card. Animated by main.js:
      .in draws the lines, grows the bars and counts the numbers up; bar sizes are set through CSSOM, never inline styles. ── */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.report-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.demo-badge { font: 500 0.72rem/1.3 var(--mono); color: var(--warn); border: 1px dotted color-mix(in srgb, var(--warn) 60%, transparent); border-radius: 999px; padding: 0.35rem 0.7rem; }
.rk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rk div { display: grid; gap: 0.2rem; padding: 1rem 1.25rem; border-left: 1px solid var(--line); }
.rk div:first-child { border-left: 0; }
.rk span { font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
.rk b { font: 700 clamp(1.3rem, 2.8vw, 1.9rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.rk i { font: 500 0.75rem/1.3 var(--mono); font-style: normal; color: var(--accent); }
.rgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.rgrid > .chart + .chart { border-left: 1px solid var(--line); }
.rgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.rgrid2 .chart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.chart { margin: 0; padding: 1.1rem 1.25rem 1.25rem; min-width: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; font: 600 0.98rem/1.3 var(--display); }
.chart figcaption small { font: 400 0.72rem/1.3 var(--mono); color: var(--muted); }

/* area chart with a series switch and a tooltip */
.seg { display: inline-flex; gap: 0.2rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 0.75rem/1 var(--mono); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 0.45rem 0.7rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.area-wrap { position: relative; }
.area { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.area .g0 { stop-color: var(--accent); stop-opacity: 0.32; }
.area .g1 { stop-color: var(--accent); stop-opacity: 0; }
.area .grid line { stroke: var(--line); stroke-dasharray: 2 5; }
.area text { fill: var(--muted); font: 400 11px var(--mono); }
.area .ser.off { display: none; }
.area .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.area .ar { fill: url(#acg); opacity: 0; }
.area .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.area-card.in .ln, .area .draw .ln { animation: draw 1.6s cubic-bezier(.3,.7,.2,1) forwards; }
.area-card.in .ar, .area .draw .ar { animation: fade-in 1s 0.6s ease forwards; }
.area-card.in .pt, .area .draw .pt { animation: fade-in 0.4s ease forwards; }
.area-card.in .pt:nth-of-type(2) { animation-delay: 0.3s; } .area-card.in .pt:nth-of-type(3) { animation-delay: 0.55s; }
.area-card.in .pt:nth-of-type(4) { animation-delay: 0.8s; } .area-card.in .pt:nth-of-type(5) { animation-delay: 1.05s; }
.area-card.in .pt:nth-of-type(6) { animation-delay: 1.3s; } .area-card.in .pt:nth-of-type(n+7) { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.area .cross { stroke: var(--ice); stroke-dasharray: 2 4; opacity: 0; }
.area .hot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; opacity: 0; }
.area-card.hover .cross, .area-card.hover .hot { opacity: 1; }
.tip[hidden], .hold-card[hidden] { display: none; }
.tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; display: grid; gap: 0.15rem; padding: 0.45rem 0.7rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.8); white-space: nowrap; }
.tip span { font: 400 0.7rem/1.2 var(--mono); color: var(--muted); }
.tip b { font: 700 1rem/1.2 var(--display); color: var(--accent); }

/* horizontal bars and the price comparison */
.hbars, .price-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.hbars li, .price-bars li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; gap: 0.7rem; align-items: center; font-size: 0.88rem; }
.price-bars li { grid-template-columns: 10rem minmax(0, 1fr) 6.5rem; }
.hbars b, .price-bars b { font: 500 0.8rem/1 var(--mono); text-align: right; }
.track { position: relative; height: 0.7rem; border-radius: 999px; background: radial-gradient(circle, var(--line) 1.2px, transparent 1.7px) 0 50% / 7px 7px repeat-x; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--accent) 60%, transparent); transition: width 1.3s cubic-bezier(.3,.7,.2,1), left 1.3s cubic-bezier(.3,.7,.2,1); }
.hbars li:nth-child(2) i, .price-bars li:nth-child(2) i { transition-delay: 0.12s; }
.hbars li:nth-child(3) i, .price-bars li:nth-child(3) i { transition-delay: 0.24s; }
.hbars li:nth-child(4) i, .price-bars li:nth-child(4) i { transition-delay: 0.36s; }
.price-bars .them i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 70%, transparent) 0 6px, color-mix(in srgb, var(--warn) 30%, transparent) 6px 12px); box-shadow: none; }
.price-bars .them b { color: var(--warn); }
.price-bars .ours b { color: var(--accent); }
.axis { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 6.5rem; gap: 0.7rem; margin-top: 0.6rem; }
.axis .ticks { display: flex; justify-content: space-between; font: 400 0.68rem/1 var(--mono); color: var(--muted); }
.src { margin: 1rem 0 0; font: 400 0.72rem/1.45 var(--mono); color: var(--muted); }

/* the six publishing safeguards: an accent packet circles the ring and lights each check in turn */
.gates-body { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.gates-body p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.gates { width: 100%; height: auto; display: block; }
.gates .ring circle { fill: color-mix(in srgb, var(--ice) 45%, var(--line)); }
.gates .orbit { transform-origin: 150px 150px; animation: orbit 6s linear infinite; }
.gates .orbit circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
@keyframes orbit { to { transform: rotate(360deg); } }
.gates .gn circle { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.gates .gn text { fill: var(--muted); font: 600 13px var(--mono); }
/* gate N lights when the packet reaches it ((N-1)/6 of the turn) and stays lit until all six are on, then the core pulses */
.gates .gn circle, .gates .gn text, .gate-list li span { animation-duration: 6s; animation-timing-function: linear; animation-iteration-count: infinite; }
.gn1 circle, .gl1 span { animation-name: g1; } .gn2 circle, .gl2 span { animation-name: g2; } .gn3 circle, .gl3 span { animation-name: g3; }
.gn4 circle, .gl4 span { animation-name: g4; } .gn5 circle, .gl5 span { animation-name: g5; } .gn6 circle, .gl6 span { animation-name: g6; }
.gn1 text { animation-name: t1; } .gn2 text { animation-name: t2; } .gn3 text { animation-name: t3; }
.gn4 text { animation-name: t4; } .gn5 text { animation-name: t5; } .gn6 text { animation-name: t6; }
@keyframes g1 { 0% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 1.0%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t1 { 0% { fill: var(--muted); } 1.0%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
@keyframes g2 { 0%, 16.2% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 17.7%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t2 { 0%, 16.2% { fill: var(--muted); } 17.7%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
@keyframes g3 { 0%, 32.8% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 34.3%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t3 { 0%, 32.8% { fill: var(--muted); } 34.3%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
@keyframes g4 { 0%, 49.5% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 51.0%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t4 { 0%, 49.5% { fill: var(--muted); } 51.0%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
@keyframes g5 { 0%, 66.2% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 67.7%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t5 { 0%, 66.2% { fill: var(--muted); } 67.7%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
@keyframes g6 { 0%, 82.8% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } 84.3%, 97% { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); background: var(--accent); color: var(--accent-ink); } 100% { fill: var(--surface-2); stroke: var(--line); background: var(--surface-2); color: var(--muted); } }
@keyframes t6 { 0%, 82.8% { fill: var(--muted); } 84.3%, 97% { fill: var(--accent); } 100% { fill: var(--muted); } }
.gates .core { fill: color-mix(in srgb, var(--accent) 10%, var(--bg)); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 4; animation: core 6s ease-in-out infinite; transform-origin: 150px 150px; }
.gates .core-t { fill: var(--accent); font: 700 15px var(--display); }
@keyframes core { 0%, 86% { transform: scale(1); } 92% { transform: scale(1.1); } 97%, 100% { transform: scale(1); } }
.gate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.gate-list li { display: flex; gap: 0.6rem; align-items: center; }
.gate-list span { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; flex: none; border-radius: 50%; font: 600 0.7rem/1 var(--mono); background: var(--surface-2); color: var(--muted); }

@media (max-width: 900px) {
  .rgrid, .rgrid2 { grid-template-columns: 1fr; }
  .rgrid > .chart + .chart { border-left: 0; border-top: 1px solid var(--line); }
  .rk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk div:nth-child(3) { border-left: 0; }
  .rk div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .gates-body { grid-template-columns: 1fr; justify-items: center; }
  .gates { max-width: 15rem; }
  .price-bars li { grid-template-columns: minmax(0, 1fr) 7.4rem; gap: 0.35rem 0.7rem; }
  .price-bars .pl { grid-column: 1 / -1; }
  .price-bars .track { grid-column: 1; grid-row: 2; }
  .price-bars b { grid-row: 2; white-space: nowrap; }
  .axis { grid-template-columns: minmax(0, 1fr) 7.4rem; }
  .axis > span:first-child { display: none; }
  .axis .ticks span { white-space: nowrap; }
  .hbars li { grid-template-columns: 6.8rem minmax(0, 1fr) 2.2rem; }
  .area text { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .area .ln { stroke-dashoffset: 0; } .area .ar, .area .pt { opacity: 1; }
  .area-card.in .ln, .area-card.in .ar, .area-card.in .pt { animation: none; }
  .gates .orbit, .gates .gn circle, .gates .gn text, .gates .core, .gate-list li span { animation: none; }
  .track i { transition: none; }
}
/* ── Light/dark toggle in the header. Shows the sun in the dark look and the moon in the light one. ── */
.theme-toggle { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .ticket-wrap { box-shadow: 0 30px 60px -30px rgb(13 23 36 / 0.35); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="dark"]) .ticket-wrap { box-shadow: 0 30px 60px -30px rgb(13 23 36 / 0.35); }
}

/* Contact form: consent box in normal sentence case, and the honeypot field bots fill but people never see */
form label.consent { display: flex; align-items: flex-start; gap: 0.6rem; font: 400 0.88rem/1.45 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
form label.consent input { width: auto; flex: none; margin-top: 0.2rem; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Header menu for subpages: current page marked; below 1080 px the links move into a <details> menu */
.top nav.main-nav a[aria-current] { color: var(--ink); }
.top nav.main-nav a[aria-current]::after { content: ""; display: block; height: 2px; margin-top: 0.25rem; border-radius: 2px; background: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; padding: 0.55rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu .ico { width: 1.05rem; height: 1.05rem; }
.top .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 15rem; display: grid; gap: 0.2rem; padding: 0.6rem;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(var(--ink-rgb), 0.35); }
.menu-panel a { padding: 0.65rem 0.8rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--surface-2); }
.top .menu-panel a.btn { display: flex; margin-top: 0.3rem; justify-content: center; color: var(--accent-ink); }
@media (max-width: 1080px) { .menu { display: block; } }
@media (max-width: 560px) { .menu summary span { display: none; } }

/* Footer: a small sitemap in four columns, then the legal line */
footer.site .foot-grid { width: 100%; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 1.6rem; }
footer.site .foot-brand { display: grid; gap: 0.9rem; align-content: start; }
footer.site .foot-brand p { font: 400 0.9rem/1.55 var(--body); color: var(--muted); max-width: 26rem; }
footer.site .foot-col h2 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
footer.site .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
footer.site .foot-col a { color: var(--ink); text-decoration: none; font: 400 0.92rem/1.4 var(--body); }
footer.site .foot-col a:hover { color: var(--accent); }
footer.site .foot-base { width: 100%; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; padding-top: 1rem; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { footer.site .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.site .foot-brand { grid-column: 1 / -1; } }

/* Image slots (website/slots.py). An empty slot is a framed piece of the Danube flow: a dot grid, three dotted
   flow lines, a slow glow and crop marks in the corners, with a badge saying which kind of picture goes there.
   Preview builds add a caption with the slot id and the picture we imagine. A filled slot is just the image. */
.slot { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.slot-frame, .slot.is-filled img { position: relative; width: 100%; border-radius: 18px; overflow: hidden; isolation: isolate; }
.slot.is-filled img { display: block; height: auto; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
.r-21x9 .slot-frame, .r-21x9 img { aspect-ratio: 21 / 9; }
.r-16x9 .slot-frame, .r-16x9 img { aspect-ratio: 16 / 9; }
.r-3x2 .slot-frame, .r-3x2 img { aspect-ratio: 3 / 2; }
.r-4x3 .slot-frame, .r-4x3 img { aspect-ratio: 4 / 3; }
.r-1x1 .slot-frame, .r-1x1 img { aspect-ratio: 1 / 1; }
.r-4x5 .slot-frame, .r-4x5 img { aspect-ratio: 4 / 5; }
.r-3x4 .slot-frame, .r-3x4 img { aspect-ratio: 3 / 4; }

.slot-frame {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 34%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)) 0%, var(--surface-2) 70%);
}
/* crop marks: four little corners, like a print frame waiting for its photo */
.slot-frame::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 2;
  --c: color-mix(in srgb, var(--accent) 55%, transparent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) top right / 16px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px;
  background-repeat: no-repeat;
}
.slot-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.slot-art .w { fill: none; stroke-linecap: round; stroke-width: 2.6; stroke-dasharray: 0 8; vector-effect: non-scaling-stroke;
  animation: slot-flow 14s linear infinite; }
.slot-art .w0 { stroke: var(--accent); }
.slot-art .w1 { stroke: var(--ice); stroke-width: 2; animation-duration: 19s; }
.slot-art .w2 { stroke: color-mix(in srgb, var(--muted) 70%, transparent); stroke-width: 1.8; animation-duration: 24s; }
@keyframes slot-flow { to { stroke-dashoffset: -160; } }
.slot-glow { position: absolute; z-index: 0; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
  filter: blur(12px); animation: slot-glow 11s ease-in-out infinite alternate; }
@keyframes slot-glow { 0% { transform: translate(-12%, 8%) scale(0.9); } 50% { transform: translate(14%, -6%) scale(1.1); } 100% { transform: translate(-4%, -12%) scale(0.95); } }
.slot-badge { position: absolute; z-index: 3; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.6rem 0.32rem 0.5rem; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px);
  font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.slot-ico { width: 0.95rem; height: 0.95rem; flex: none; }

/* small graphics: the badge becomes a centred icon */
.k-icon .slot-frame { border-radius: 14px; }
.k-icon .slot-frame::after { inset: 8px; }
.k-icon .slot-badge { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.6rem; }
.k-icon .slot-badge span { display: none; }
.k-icon .slot-ico { width: 1.4rem; height: 1.4rem; }
/* portraits: a soft round "head and shoulders" ghost behind the lines */
.k-portrait .slot-glow { width: 56%; left: 22%; top: 14%; background: radial-gradient(circle, color-mix(in srgb, var(--ice) 26%, transparent) 0%, transparent 66%); }

.slot-note { display: grid; gap: 0.2rem; font: 400 0.78rem/1.45 var(--body); color: var(--muted); }
.slot-id { font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.06em; color: var(--accent); }
.k-icon .slot-note { font-size: 0.7rem; }
.k-icon .slot-imagined { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .slot-art .w, .slot-glow { animation: none; } }

/* devices: Hub screenshots live in a browser window or a phone that tilts in 3D (main.js [data-tilt] sets
   --p, how far the frame has scrolled into view, and --mx/--my, where the pointer is) */
.dev { position: relative; transform-style: preserve-3d; will-change: transform;
  transform: perspective(1600px) rotateX(calc((1 - var(--p, 1)) * 16deg + var(--my, 0) * -6deg))
             rotateY(calc((1 - var(--p, 1)) * -10deg + var(--mx, 0) * 8deg)) translateY(calc((1 - var(--p, 1)) * 36px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.dev .dev-screen img, .slot.is-filled .dev img { border: 0; border-radius: 0; display: block; width: 100%; height: auto; }
.dev-browser { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--ink) 50%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--ink) 30%, transparent); }
.dev-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dev-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.dev-bar i:first-child { background: color-mix(in srgb, var(--warn) 70%, transparent); }
.dev-url { margin: 0 auto; padding: 0.2rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 0.72rem/1.2 var(--mono); color: var(--muted); transform: translateX(-1rem); }
.dev-phone { width: min(100%, 300px); margin-inline: auto; padding: 10px; border-radius: 38px; background: var(--ink);
  box-shadow: 0 40px 70px -30px color-mix(in srgb, var(--ink) 60%, transparent), inset 0 0 0 2px color-mix(in srgb, var(--bg) 18%, transparent); }
.dev-phone .dev-screen { border-radius: 30px; overflow: hidden; background: var(--surface); }
.dev-notch { position: absolute; top: 16px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 999px; background: var(--ink); z-index: 2; }
.dev-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  background: linear-gradient(calc(115deg + var(--mx, 0) * 30deg), transparent 35%, color-mix(in srgb, var(--bg) 22%, transparent) 50%, transparent 65%);
  opacity: calc(0.25 + var(--a, 0) * 0.6); transition: opacity 0.35s; }
@media (prefers-reduced-motion: reduce) { .dev { transform: none; transition: none; } .dev-shine { display: none; } }

/* Agents and automation subpage (website/agents_page.py). Only the site tokens; slots come from slots.css.
   The agents grid borrows the 21st.dev "Automation Bento Grid" idea: thin vertical guide lines at the wrap edges
   and mixed card widths, rebuilt here in plain CSS for the static site. */

.ag .ag-num { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.ag h4 { margin: 0 0 0.55rem; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ── Hero: copy left, the morning photo right with three ticking job chips over it ── */
.ag .ag-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem); }
.ag-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ag-hero-copy { display: grid; gap: 1.2rem; justify-items: start; min-width: 0; }
.ag-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.ag-h1b { display: block; color: var(--accent); }
.ag-hero-art { position: relative; min-width: 0; }
.ag-hero-img { width: 100%; }
.ag-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ag-chip { position: absolute; display: grid; gap: 0.15rem; max-width: 15rem; padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -18px rgba(var(--ink-rgb), 0.45); font-size: 0.85rem; line-height: 1.35;
  animation: ag-float 7s ease-in-out infinite alternate; }
.ag-chip time { font: 500 0.66rem/1 var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.ag-chip.c1 { left: -1.5rem; top: 14%; }
.ag-chip.c2 { right: -1.2rem; top: 46%; animation-delay: -2.5s; }
.ag-chip.c3 { left: 8%; top: 74%; animation-delay: -5s; }
.ag-chip.c3 time::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.45rem; border-radius: 50%; background: var(--warn); vertical-align: middle; }
@keyframes ag-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* ── What an agent is: three steps joined by a dotted river ── */
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); position: relative; }
.ag-steps::before { content: ""; position: absolute; left: 3rem; right: 3rem; top: 2.7rem; height: 3px; z-index: 0;
  background: radial-gradient(circle, var(--accent) 1.2px, transparent 1.8px) 0 50% / 10px 3px repeat-x; opacity: 0.7; }
.ag-step { position: relative; z-index: 1; display: grid; gap: 0.6rem; align-content: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ag-step-ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; color: var(--accent);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.ag-step-ico svg { width: 1.4rem; height: 1.4rem; }
.ag-step p { color: var(--muted); font-size: 0.97rem; }

/* ── Agents grid ── */
.ag-list { overflow: hidden; }
.ag-list::before, .ag-list::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: 0.8; }
.ag-list::before { left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter) - 1.25rem)); }
.ag-list::after { right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter) - 1.25rem)); }
.ag-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ag-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line);
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
.ag-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.ag-badge.is-live { color: var(--ice); border-color: color-mix(in srgb, var(--ice) 45%, var(--line)); }
.ag-badge.is-live::before { background: currentColor; animation: ping 2.4s ease-out infinite; }
.ag-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ag-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s; min-width: 0; }
.ag-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.ag-card-img { padding: 0.7rem 0.7rem 0; }
.ag-card-img .slot-frame { border-radius: 14px; }
.ag-card-body { display: grid; gap: 0.85rem; align-content: start; padding: 1.1rem 1.3rem 1.4rem; }
.ag-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ag-card h3 { font-size: 1.15rem; }
.ag-blurb { color: var(--muted); font-size: 0.98rem; }
.ag-cols { display: grid; gap: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.ag-how { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.5rem; }
.ag-how li { counter-increment: s; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.4rem; font-size: 0.93rem; line-height: 1.45; }
.ag-how li::before { content: counter(s); display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); font: 500 0.66rem/1 var(--mono); color: var(--accent); }
.ag-ex { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ag-ex li { position: relative; padding-left: 1rem; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.ag-ex li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
.ag-note { font: 400 0.8rem/1.45 var(--mono); color: var(--warn); }
/* the wide card (agent on request): picture left, text right */
.ag-card.is-wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ag-card.is-wide .ag-card-img { padding: 0.7rem; }
.ag-card.is-wide .ag-card-body { padding: 1.6rem 1.8rem 1.6rem 1rem; align-content: center; }
.ag-card.is-wide .ag-cols { grid-template-columns: 1fr 1fr; }
/* a card without a picture: the text alone, its columns side by side when the card is wide */
.ag-card.no-img { grid-template-rows: none; }
.ag-card.is-wide.no-img { grid-template-columns: minmax(0, 1fr); }
.ag-card.is-wide.no-img .ag-card-body { padding: 1.6rem 1.8rem; }
.ag-card.is-wide.no-img .ag-cols { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* ── Agents and social media ── */
.ag-together-top { margin-bottom: 2.4rem; }
.ag-together-top .head { margin-bottom: 0; }
.ag-pairs-head, .ag-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.ag-pairs-head { padding: 0 1.3rem 0.6rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ag-pairs-head span:last-child { grid-column: 3; color: var(--accent); }
.ag-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ag-pairs li { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ag-pairs p { font-size: 0.98rem; }
.ag-r { color: var(--ink); }
.ag-l { color: var(--muted); }
.ag-flow { height: 10px; position: relative;
  background: radial-gradient(circle, var(--accent) 1.3px, transparent 1.9px) 0 50% / 9px 10px repeat-x;
  animation: ag-dots 1.6s linear infinite; }
.ag-flow::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
@keyframes ag-dots { to { background-position: 9px 50%; } }
.ag-back { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.3rem 1.5rem; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; }
.ag-back p { max-width: 40rem; color: var(--muted); }

/* ── Our own office ── */
.ag-office .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.ag-office-copy { display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.ag-office-copy > p { color: var(--muted); max-width: 40rem; }
.ag-points { list-style: none; margin: 0.3rem 0 0.6rem; padding: 0; display: grid; gap: 0.55rem; }
.ag-points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem; }
.ag-points li::before { content: "✓"; color: var(--ice); font-weight: 600; }
.ag-office-screen { width: 100%; }

/* ── Security ── */
.ag-security .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ag-sec-side { display: grid; gap: 1.4rem; }
.ag-sec-side .head { margin-bottom: 0; }
.ag-sec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.ag-sec li { display: grid; gap: 0.5rem; align-content: start; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ag-sec p { color: var(--muted); font-size: 0.93rem; }
.ag-ico { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.ag-pw { margin-top: 1rem; display: flex; gap: 0.7rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; background: var(--surface-2); font-size: 0.93rem; }
.ag-pw .ag-ico { flex: none; width: 1.3rem; height: 1.3rem; }

/* ── How we start ── */
.ag-start-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ag-start-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.ag-start-steps li { display: grid; gap: 0.45rem; align-content: start; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ag-start-steps p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 1080px) {
  .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-chip.c1 { left: -0.6rem; } .ag-chip.c2 { right: -0.6rem; }
}
@media (max-width: 860px) {
  .ag-hero .wrap, .ag-office .wrap, .ag-security .wrap, .ag-start-grid { grid-template-columns: 1fr; }
  .ag-hero-art { max-width: 30rem; }
  .ag-steps { grid-template-columns: 1fr; }
  .ag-steps::before { left: 3.9rem; right: auto; top: 2rem; bottom: 2rem; width: 3px; height: auto;
    background: radial-gradient(circle, var(--accent) 1.2px, transparent 1.8px) 50% 0 / 3px 10px repeat-y; }
  .ag-card.is-wide { grid-template-columns: 1fr; }
  .ag-card.is-wide .ag-card-img { padding: 0.7rem 0.7rem 0; }
  .ag-card.is-wide .ag-card-body { padding: 1.1rem 1.3rem 1.4rem; }
}
@media (max-width: 640px) {
  .ag-grid, .ag-sec, .ag-start-steps, .ag-card.is-wide .ag-cols { grid-template-columns: 1fr; }
  .ag-list::before, .ag-list::after { display: none; }
  .ag-pairs-head { display: none; }
  .ag-pairs li { grid-template-columns: 1fr; gap: 0.5rem; }
  .ag-flow { width: 3.2rem; }
  .ag-chip { font-size: 0.78rem; max-width: 12.5rem; padding: 0.5rem 0.7rem; }
  .ag-chip.c1 { left: 0.6rem; top: 3.8rem; } .ag-chip.c2 { right: 0.6rem; } .ag-chip.c3 { left: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ag-chip, .ag-flow, .ag-badge.is-live::before { animation: none; } }

/* Homepage (website/home.py): three doors, everyday tasks, parts working together, the person, safety */
.arr { display: inline-block; transition: transform 0.2s; }
a:hover .arr { transform: translateX(3px); }

/* Doors: three equal cards, the photo on top */
.door-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.door > a { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 0; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 0.7rem; transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s; }
.door > a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 50px -30px rgba(var(--accent-rgb), 0.6); }
.door .slot-frame, .door .slot img { border-radius: 18px; }
.door-copy { display: grid; gap: 0.7rem; align-content: start; padding: 1.1rem 0.8rem 0.9rem; }
.door-copy h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.door-copy p { color: var(--muted); font-size: 0.98rem; }
.door-copy .more { margin-top: 0.4rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.door .slot { gap: 0.5rem; }
.door .slot-note { padding-inline: 0.4rem; }

/* Tasks: tiles with a line icon */
.task-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.task { display: grid; grid-template-columns: 3rem minmax(0, 1fr); grid-template-areas: "ico title" "ico text"; column-gap: 1rem; row-gap: 0.35rem;
  align-content: start; padding: 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.task-ico { grid-area: ico; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; align-self: start;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.task-ico svg { width: 1.5rem; height: 1.5rem; }
.task h3 { grid-area: title; align-self: end; font-size: 1rem; }
.task p { grid-area: text; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.task-more { margin-top: 1.6rem; color: var(--muted); }
.task-more a { font-weight: 600; text-decoration: none; }

/* Together: copy with a numbered chain that runs across the width on wide screens */
.together .wrap, .safety .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.together-copy, .safety-copy, .human-copy { display: grid; gap: 1.1rem; justify-items: start; min-width: 0; }
.chain { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0; position: relative; }
.chain li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; align-items: start; padding-block: 0.65rem; position: relative; }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 3rem; bottom: -0.5rem; border-left: 2px dotted color-mix(in srgb, var(--accent) 60%, transparent); }
.chain .n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  font: 500 0.75rem/1 var(--mono); color: var(--accent); }
.chain p { padding-top: 0.55rem; }
@media (min-width: 901px) {
  .chain { width: 100%; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
  .chain li { grid-template-columns: 1fr; align-content: start; gap: 0.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .chain li:not(:last-child)::after { left: auto; right: -1rem; top: 2.3rem; bottom: auto; width: 1rem; border-left: 0; border-top: 2px dotted color-mix(in srgb, var(--accent) 60%, transparent); }
  .chain p { padding-top: 0; }
}

/* Human: portrait on the left, the note and a second photo on the right */
.human .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.human-text { display: grid; gap: 0.9rem; font-size: 1.1rem; max-width: 40rem; }
.sign { font: 500 1rem/1.3 var(--display); color: var(--accent); }
.sign::before { content: ""; display: inline-block; width: 2rem; height: 1px; margin-right: 0.7rem; vertical-align: middle; background: currentColor; }

/* Safety: the rules as tiles across the width */
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.8rem; width: 100%; }
.safety-list li { display: grid; gap: 0.3rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  border-left: 3px solid var(--accent); }
.safety-list p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 1100px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .door-grid { grid-template-columns: 1fr; }
  .door > a { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: none; align-items: center; }
  .together .wrap, .human .wrap, .safety .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .door > a { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
}

/* How we work (website/how.py) and the shared subpage hero */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.page-hero-copy { display: grid; gap: 1.3rem; justify-items: start; min-width: 0; }
.hub-shots { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-right: clamp(4rem, 14vw, 14rem); padding-bottom: clamp(2rem, 6vw, 5rem); }
.hub-shots .hub-phone { position: absolute; right: 0; bottom: 0; width: clamp(9rem, 22vw, 17rem); z-index: 2; }
.hub-shots .hub-phone .dev-phone { animation: hub-float 6s ease-in-out infinite; }
@keyframes hub-float { 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .hub-shots .hub-phone .dev-phone { animation: none; } }
.part-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.part-links a { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--ink); text-decoration: none; font: 500 clamp(1.05rem, 1.8vw, 1.35rem)/1.2 var(--display); }
.part-links a:hover { border-color: var(--accent); }
.part-links .arr { color: var(--accent); }
@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .part-links { grid-template-columns: 1fr; } .hub-shots { padding-right: 5rem; } .hub-shots .hub-phone { width: 8.5rem; } }

/* Socials subpage (website/socials.py). Tokens only from styles.css; image slots are styled by slots.css,
   this file only places them. Layout ideas adapted from 21st.dev patterns: an alternating timeline with a
   centre line (steps), a bento grid (autopilot) and a from-to card row (socials + agents). */

.so .head { max-width: 50rem; }
.so h1 i, .so h2 i { font-style: normal; color: var(--accent); }

/* Hero: copy left, photo with a floating approval card right */
.so-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.so-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.so-hero-copy { display: grid; gap: 1.15rem; justify-items: start; min-width: 0; }
.so-hero-copy h1 { display: grid; gap: 0.2rem; }
.so-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.4rem 0 0; padding: 0; }
.so-chips li { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5rem 0.8rem; }
.so-hero-visual { position: relative; min-width: 0; }
.so-approve { position: absolute; left: -1.8rem; top: 52%; z-index: 3; display: grid; gap: 0.35rem; min-width: 14rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.45); animation: so-float 6s ease-in-out infinite; }
.so-approve b { font: 600 0.98rem/1.25 var(--display); }
.so-when { font: 500 0.72rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.so-ok { font-size: 0.85rem; color: var(--ice); }
.so-ok::before { content: "✓ "; }
.so-btn { justify-self: start; margin-top: 0.3rem; background: var(--accent); color: var(--accent-ink); font: 600 0.85rem/1 var(--body); border-radius: 999px; padding: 0.6rem 1rem; }
@keyframes so-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .so-approve { animation: none; } }

/* Proof strip */
.so-proof { padding-block: 0 clamp(1rem, 3vw, 2rem); }
.so-proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.so-proof li { display: grid; gap: 0.3rem; padding: 1.2rem 1.4rem; }
.so-proof li + li { border-left: 1px solid var(--line); }
.so-proof b { font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--display); color: var(--accent); }
.so-proof span { font-size: 0.92rem; color: var(--muted); }

/* Steps: alternating timeline around a dotted centre line */
.so-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.so-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent) 1.1px, transparent 1.6px) 0 0 / 2px 10px; opacity: 0.55; }
.so-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; position: relative; }
.so-step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
.so-step.flip .so-step-copy { order: 2; }
.so-step-copy { display: grid; gap: 0.8rem; justify-items: start; min-width: 0; }
.so-step-copy h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
.so-step-copy > p { color: var(--muted); }
.so-step-media { min-width: 0; }
.so-badge { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.8rem/1 var(--mono); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-radius: 999px; padding: 0.4rem 0.75rem 0.4rem 0.5rem; }
.so-ico { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.so-ticks { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.so-ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; }
.so-ticks li::before { content: "✓"; color: var(--accent); }

/* Facts spotlight: a sample fact list and a "needs a fact" gap */
.so-facts-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; }
.so-factcard, .so-gap { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.so-factcard figcaption { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.so-factcard ul { list-style: none; margin: 0; padding: 0; display: grid; }
.so-factcard li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.so-f { font-weight: 500; }
.so-src { grid-column: 1; font: 400 0.78rem/1.4 var(--mono); color: var(--muted); }
.so-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 0.74rem/1 var(--mono); border-radius: 999px; padding: 0.45rem 0.7rem; white-space: nowrap; }
.so-factcard .ok .so-state { color: var(--ice); background: color-mix(in srgb, var(--ice) 12%, transparent); }
.so-factcard .wait .so-state { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.so-gap { display: grid; gap: 1rem; align-content: center; }
.so-gap-box { display: grid; place-items: center; min-height: 7rem; padding: 1rem; text-align: center; border: 2px dashed color-mix(in srgb, var(--warn) 60%, transparent);
  border-radius: 14px; color: var(--warn); font: 500 0.95rem/1.3 var(--mono); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.so-gap figcaption { color: var(--muted); font-size: 0.95rem; }

/* Autopilot bento */
.so-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.so-bento > article { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(1.1rem, 2.4vw, 1.5rem); display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.so-bento h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.so-bento p { color: var(--muted); font-size: 0.95rem; }
.so-lanes { grid-column: span 2; grid-row: span 2; grid-template-rows: auto 1fr; }
.so-lanes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-auto-rows: 1fr; }
.so-lanes li { display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.25rem 0.75rem; align-content: center; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface-2); }
.so-lanes li b { font-family: var(--display); font-weight: 500; }
.so-lanes li p { grid-column: 2; }
.so-lane-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; align-self: center; }
.so-lanes .green .so-lane-dot { background: var(--ice); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ice) 18%, transparent); }
.so-lanes .yellow .so-lane-dot { background: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 18%, transparent); }
.so-lanes .red .so-lane-dot { background: var(--muted); box-shadow: 0 0 0 5px color-mix(in srgb, var(--muted) 18%, transparent); }
.so-card.has-img { grid-column: span 2; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.so-card .so-card-img { max-width: 100%; }
.so-card.soon { border-style: dashed; border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.so-soon { font: 500 0.66rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0.25rem 0.45rem; vertical-align: middle; margin-left: 0.3rem; white-space: nowrap; }
.so-bento .so-card:not(.has-img) { grid-column: span 1; }
.so-bento .so-card.soon, .so-bento .so-card.wide { grid-column: span 2; }

/* Socials + agents */
.so-map { margin-bottom: 1.5rem; }
.so-pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.so-pairs li { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 0.5rem 0.45rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.2s, transform 0.2s; }
.so-pairs li:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.so-pairs p { flex-basis: 100%; margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; }
.so-from, .so-to { font: 500 0.72rem/1.2 var(--mono); border-radius: 999px; padding: 0.4rem 0.6rem; white-space: nowrap; }
.so-from { color: var(--muted); background: var(--surface-2); }
.so-to { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.so-arrow { width: 1.4rem; height: 2px; background: radial-gradient(circle, var(--accent) 1px, transparent 1.5px) 0 0 / 5px 2px; }
.so-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; padding: clamp(1.1rem, 2.6vw, 1.6rem);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.so-more p { max-width: 46rem; font-size: 1.02rem; }

/* Example posts */
.so-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.so-posts li { display: grid; gap: 0.6rem; align-content: start; }
.so-posts li > span { font: 500 0.78rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* The person behind it */
.so-human .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.so-human .wrap > div { display: grid; gap: 1rem; justify-items: start; }
.so-sign { font: 500 0.85rem/1 var(--mono); color: var(--accent); }
.so-sign::before { content: "— "; }

/* Wide screens: more columns, no empty sides */
@media (min-width: 1600px) {
  .so-pairs { gap: 1.2rem; }
}
@media (max-width: 1100px) {
  .so-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .so-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-lanes, .so-card.has-img, .so-bento .so-card.soon, .so-bento .so-card.wide { grid-column: span 2; }
  .so-lanes { grid-row: auto; }
}
@media (max-width: 860px) {
  .so-hero .wrap, .so-human .wrap, .so-facts-grid { grid-template-columns: 1fr; }
  .so-proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-proof li:nth-child(3) { border-left: 0; }
  .so-proof li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .so-timeline::before { left: 7px; }
  .so-step { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 2rem; }
  .so-step::before { left: 7px; top: 0.9rem; }
  .so-step.flip .so-step-copy { order: 0; }
  .so-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-approve { position: relative; left: auto; top: auto; margin: 0.9rem 0 0 auto; width: fit-content; }
}
@media (max-width: 560px) {
  .so-bento { grid-template-columns: 1fr; }
  .so-lanes, .so-card.has-img, .so-bento .so-card.soon, .so-bento .so-card.wide, .so-bento .so-card:not(.has-img) { grid-column: auto; }
  .so-card.has-img { grid-template-columns: 1fr; }
  .so-pairs { grid-template-columns: 1fr; }
  .so-proof span { font-size: 0.85rem; }
}

/* the pain: three short scenes the owner knows, then the turn */
.so-pain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.so-pain-list li { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(1.1rem, 2.4vw, 1.5rem); display: grid; gap: 0.5rem; align-content: start; }
.so-pain-list h3 { font-size: 1.1rem; }
.so-pain-list p { color: var(--muted); font-size: 0.95rem; }
.so-pain-turn { margin-top: 1.4rem; font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.35 var(--display); color: var(--ink); max-width: 46ch; }

/* the offer: free samples, the price and three safety lines */
.so-offer-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  border: 2px solid var(--accent); border-radius: 22px; background: var(--surface); padding: clamp(1.3rem, 3.4vw, 2.6rem); }
.so-offer-copy { display: grid; gap: 0.9rem; }
.so-offer-copy .cta-row { margin-top: 0.6rem; }
.so-offer-price { display: grid; gap: 0.3rem; justify-items: center; text-align: center; padding: 1.4rem; border-radius: 18px; background: var(--surface-2); }
.so-offer-price b { font: 600 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--accent); }
.so-offer-price span { color: var(--muted); font-size: 0.95rem; }
.so-from-label { text-transform: none; }
.so-safe { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.so-safe li { display: grid; gap: 0.25rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--surface-2); }
.so-safe b { font-family: var(--display); font-weight: 500; }
.so-safe span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .so-pain-list, .so-safe { grid-template-columns: 1fr; }
  .so-offer-card { grid-template-columns: 1fr; }
}

/* sample posts: a 3D coverflow of feed cards (JS adds .is-live; without it a scroll-snap row) */
.cf { position: relative; margin-top: clamp(1.4rem, 3vw, 2.4rem); padding: clamp(1.6rem, 4vw, 3rem) 0 1.2rem; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface-2) 70%);
  border: 1px solid var(--line); overflow: hidden; }
.cf-glow { position: absolute; inset: auto 15% -40% 15%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent); filter: blur(30px); }
.cf-track { list-style: none; margin: 0; padding: 0 1rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.cf-card { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; }
.cf-post { background: var(--surface); color: var(--ink); border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--ink) 45%, transparent), 0 6px 18px -10px color-mix(in srgb, var(--ink) 30%, transparent); }
.cf-post header { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.85rem 0.5rem; }
.cf-ava { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--bg); font: 600 1rem/1 var(--display); }
.cf-who { display: grid; line-height: 1.2; min-width: 0; }
.cf-who b { font-size: 0.9rem; }
.cf-who small { color: var(--muted); font-size: 0.75rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.cf-who small svg, .cf-more svg { width: 0.85rem; height: 0.85rem; }
.cf-more { margin-left: auto; color: var(--muted); }
.cf-more svg { width: 1.2rem; height: 1.2rem; }
.cf-text { padding: 0 0.85rem 0.7rem; font-size: 0.86rem; line-height: 1.4; color: var(--ink); }
.cf-img.slot { border-radius: 0; border: 0; margin: 0; }
.cf-img img { display: block; width: 100%; height: auto; }
.cf-post footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 0 0.6rem; }
.cf-post footer span { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.6rem 0; color: var(--muted); font-size: 0.78rem; }
.cf-post footer svg { width: 1rem; height: 1rem; }
.cf-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.cf-nav { display: none; }
.cf-arrow { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.cf-arrow:hover { transform: scale(1.06); border-color: var(--accent); }
.cf-arrow svg { width: 1.3rem; height: 1.3rem; }
.cf-caption { display: grid; justify-items: center; gap: 0.55rem; min-width: 12rem; }
.cf-caption b { font-family: var(--display); font-weight: 500; }
.cf-dots { display: flex; gap: 0.45rem; }
.cf-dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; border: 0; padding: 0; background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer; transition: width 0.3s, background 0.3s; }
.cf-dot.on { width: 1.6rem; background: var(--accent); }

.cf.is-live .cf-nav { display: flex; }
.cf.is-live .cf-track { position: relative; display: block; overflow: visible; height: var(--cf-h, 640px); perspective: 1800px; padding: 0;
  touch-action: pan-y; cursor: grab; user-select: none; }
.cf.is-live .cf-track.dragging { cursor: grabbing; }
.cf.is-live .cf-card { position: absolute; left: 50%; top: 0; width: var(--cf-w, 360px); margin-left: calc(var(--cf-w, 360px) / -2);
  transform-style: preserve-3d; will-change: transform;
  transform: translateX(calc(var(--o, 0) * var(--cf-step, 62%))) translateZ(calc(var(--a, 0) * -140px)) rotateY(calc(var(--o, 0) * -32deg));
  opacity: calc(1 - var(--a, 0) * 0.28); filter: saturate(calc(1 - var(--a, 0) * 0.35)) brightness(calc(1 - var(--a, 0) * 0.08));
  z-index: calc(10 - var(--a, 0)); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s, filter 0.7s; }
.cf.is-live .cf-card.far { opacity: 0; pointer-events: none; }
.cf.is-live .cf-card:not(.on) .cf-post { cursor: pointer; }
.cf.is-live .cf-card.on .cf-post { box-shadow: 0 50px 90px -30px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, var(--line)); }
@media (max-width: 560px) {
  .cf.is-live .cf-card { --cf-step: 30%; }
  .cf-post footer span { font-size: 0.7rem; gap: 0.25rem; }
  .cf-post footer svg { width: 0.9rem; height: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .cf.is-live .cf-card { transition: none; } }

/* the steps as a story: copy scrolls, the stage stays (from 860 px) */
.so-stage { display: none; }
@media (min-width: 861px) {
  .so-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .so-story .so-timeline { gap: 0; }
  .so-story .so-timeline::before { left: 7px; transform: none; }
  .so-story .so-step { grid-template-columns: 1fr; min-height: 62vh; align-content: center; padding-left: 2.4rem;
    opacity: 0.35; transition: opacity 0.5s; }
  .so-story .so-step::before { left: 7px; top: 50%; }
  .so-story .so-step.on { opacity: 1; }
  .so-story .so-step.on::before { background: var(--accent); }
  .so-story .so-step-media { display: none; }
  .so-stage { display: block; }
  .so-stage-in { position: sticky; top: calc(50vh - 15rem); height: 30rem; perspective: 1600px; }
  .so-shot { position: absolute; inset: 0; display: grid; align-items: center;
    opacity: 0; transform: translateY(40px) scale(0.94) rotateX(8deg); transition: opacity 0.6s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  .so-shot.on { opacity: 1; transform: none; }
  .so-shot.past { transform: translateY(-40px) scale(0.94) rotateX(-8deg); }
  .so-progress { position: absolute; left: 0; right: 0; bottom: -1.6rem; display: flex; justify-content: center; gap: 0.4rem; }
  .so-progress i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 20%, transparent); transition: width 0.3s, background 0.3s; }
  .so-progress i.on { width: 1.5rem; background: var(--accent); }
}
@media (min-width: 861px) and (prefers-reduced-motion: reduce) { .so-shot { transition: none; } }
