/* AI trgovina: comercioia.cl styles (Direction B) with Latin Extended fonts for Serbian. Self-hosted fonts, SIL OFL 1.1 (/assets/fonts/LICENSE.txt). */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/hanken-grotesk-300-latin-ext.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: 'Hanken Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/hanken-grotesk-300-latin.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: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/hanken-grotesk-400-latin-ext.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: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/hanken-grotesk-400-latin.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: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/hanken-grotesk-500-latin-ext.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: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/hanken-grotesk-500-latin.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: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/hanken-grotesk-600-latin-ext.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: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/hanken-grotesk-600-latin.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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-400-latin-ext.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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-400-latin.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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-500-latin-ext.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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-500-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-400-latin-ext.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-400-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-700-latin-ext.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-700-latin.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; }
/* Comercio IA
   Direction B, "in action": light grotesque type, lots of air, one signature object (the RUT box in volume)
   and a purchase you can see. Red always means "what Comercio IA adds". */

/* Self-hosted fonts (SIL OFL 1.1, see /assets/fonts/LICENSE.txt): no request reaches a third party. */

:root {
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #FFFFFF; --bg-2: #F4F5F6; --bg-3: #E9EBEE;
  --ink: #0F1216; --ink-2: #434951; --ink-3: #5D646E;
  --line: #E1E4E8; --line-strong: #0F1216;
  --red: #C8102E; --red-2: #A50D25; --red-wash: #FCEDEF;
  --solid: #0F1216; --face: #FFFFFF;
  --paper: #FBF9F4;
  --code-bg: #F4F5F6;
  --term-bg: #0F1216; --term-ink: #E6E9ED; --term-dim: #8E97A3; --term-ours: #FF8E99; --term-ours-bg: rgba(255, 77, 94, .14); --term-line: rgba(255, 255, 255, .09);
  --on-red: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D10; --bg-2: #13161A; --bg-3: #1C2025;
    --ink: #F1F2F4; --ink-2: #B7BDC6; --ink-3: #9198A2;
    --line: #262A31; --line-strong: #F1F2F4;
    --red: #FF5A68; --red-2: #FF808B; --red-wash: #2A1418;
    --solid: #2B3038; --face: #13161A;
    --code-bg: #13161A;
    --term-bg: #13161A; --term-dim: #959DA8; --term-ours-bg: rgba(255, 90, 104, .16);
    --on-red: #0F1216;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D10; --bg-2: #13161A; --bg-3: #1C2025;
  --ink: #F1F2F4; --ink-2: #B7BDC6; --ink-3: #9198A2;
  --line: #262A31; --line-strong: #F1F2F4;
  --red: #FF5A68; --red-2: #FF808B; --red-wash: #2A1418;
  --solid: #2B3038; --face: #13161A;
  --code-bg: #13161A;
  --term-bg: #13161A; --term-dim: #959DA8; --term-ours-bg: rgba(255, 90, 104, .16);
  --on-red: #0F1216;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-padding-bottom: calc(16px + var(--consent-h, 0px)); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* Monospace only for code and identifiers. */
.mono, code, pre, .rut, .status { font-family: var(--mono); }
code { font-size: 0.84em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; letter-spacing: 0; }
pre { margin: 18px 0 0; background: var(--code-bg); border-radius: 8px; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.6; letter-spacing: 0; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.1vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
h1 .sub, h2 .sub { color: var(--ink-3); font-weight: 300; }
h1 .sub { display: block; }
.dim { color: var(--ink-3); }
p { margin: 0; }
p + p { margin-top: 12px; }
ul, ol { margin: 0; padding-left: 20px; }
li + li { margin-top: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 40; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.logo { text-decoration: none; display: inline-flex; }
.rut { display: inline-flex; align-items: baseline; border: 2px solid var(--red); color: var(--red); padding: 4px 10px 5px; line-height: 1; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.rut b { color: var(--ink); font-weight: 500; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.nav .ext::after { content: " ↗"; }
.nav .lang { color: var(--ink); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; }
.nav .lang:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- Shared bits ---------- */
.label { font-size: 14px; color: var(--ink-3); }
.label .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px; transform: translateY(-1px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 720px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-size: 16px; font-weight: 500; padding: 13px 22px; border-radius: 10px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.fine { margin-top: 20px; font-size: 15px; color: var(--ink-3); max-width: 900px; }
.center { text-align: center; }
.center h2, .center .intro-p { margin-left: auto; margin-right: auto; }

/* Line illustrations: 1.6 px stroke, a light fill and one red accent. */
.ill { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-red { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill { fill: var(--bg-3); stroke: none; }
.ill-dot { fill: currentColor; }
.ill-t { font: 500 9px var(--mono); fill: currentColor; }
.ill-tr { font: 500 9px var(--mono); fill: var(--red); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 24px; font-size: clamp(56px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.04em; }
.hero h1 .sub { margin-top: 18px; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.15; color: var(--ink-2); letter-spacing: -0.02em; }
.hero .lead { margin-top: 28px; max-width: 620px; }
.hero-art { margin: 0; }
.block { width: 100%; height: auto; display: block; color: var(--ink); }
.block .face { fill: var(--face); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.block .solid { fill: var(--solid); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.block .frame { fill: none; stroke: var(--red); stroke-width: 6; }
.block .t-big { font: 500 35px var(--mono); fill: var(--red); letter-spacing: -0.02em; }
.block .t-big tspan { fill: var(--ink); }
.block .t { font: 500 15.5px var(--mono); fill: var(--red); letter-spacing: .04em; }
.block .t-dim { font: 400 13px var(--mono); fill: var(--ink-3); }
.block .timbre { fill: var(--ink); }
.block .hatch { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.block-caption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .block .lift { animation: lift 1.1s cubic-bezier(.2, .7, .2, 1) both .15s; }
  @keyframes lift { from { transform: translate(-14px, 10px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.covers { margin: 88px 0 0; padding: 22px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 28px; align-items: baseline; }
.covers dt { font-size: 15px; color: var(--ink-3); }
.covers dd { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.covers dd span { white-space: nowrap; }
.covers dd span + span::before { content: " · "; color: var(--ink-3); font-weight: 300; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.facts h2 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.facts p { margin-top: 8px; color: var(--ink-2); font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 128px 0 0; }
main > .section:last-child { padding-bottom: 128px; }
.section h2 { max-width: 900px; }
.intro-p { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 720px; }

/* Introduction: three illustrated ideas + glossary */
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 64px; }
.ideas > div { min-width: 0; }
.ideas svg { width: 132px; height: 96px; display: block; color: var(--ink); }
.ideas h3 { margin-top: 22px; }
.ideas p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.glossary { margin-top: 72px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 48px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.glossary dt, .glossary dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 500; padding-right: 20px; }
.glossary dd { color: var(--ink-2); }

/* Purchase demo: tabs when JavaScript runs, five stacked steps without it */
.demo-band { margin-top: 64px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0 64px; }
.demo-note { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.js .demo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
.js .demo-note { margin: 22px 0 0; padding-left: 18px; }
.steps { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.steps [role="tab"] { appearance: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 12px 14px 12px 18px; margin: 0 0 0 -1px; border-left: 2px solid transparent; color: var(--ink-3); font-size: 17px; line-height: 1.35; }
.steps .n { font-size: 14px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.steps [role="tab"]:hover { color: var(--ink); }
.steps [role="tab"][aria-selected="true"] { color: var(--ink); border-left-color: var(--red); font-weight: 500; }
.steps [role="tab"][aria-selected="true"] .n { color: var(--red); }
.steps [role="tab"]:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.panel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; min-width: 0; }
.panel + .panel { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.js .panel + .panel { margin-top: 0; padding-top: 0; border-top: 0; }
.panel-copy { grid-column: 1 / -1; max-width: 720px; }
.panel-copy .panel-n { font-size: 15px; font-weight: 500; color: var(--red); margin-bottom: 8px; }
.js .panel-copy .panel-n { display: none; }
.panel-copy h3 { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.panel-copy p:not(.panel-n) { margin-top: 8px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .js .panel:not([hidden]) { animation: fade .35s ease both; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

.phone { width: 300px; border-radius: 40px; background: var(--solid); padding: 10px; box-shadow: 0 30px 60px -30px rgba(15, 18, 22, .45); }
.screen { border-radius: 31px; background: var(--bg); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; font-size: 13.5px; line-height: 1.45; }
.screen .bar { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.screen .ahead { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.screen .ahead svg { width: 22px; height: 22px; flex: none; }
.chat { flex: 1; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.me { align-self: flex-end; max-width: 82%; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 16px 16px 4px 16px; }
.ai { align-self: flex-start; max-width: 92%; color: var(--ink); }
.ai.small { font-size: 12.5px; color: var(--ink-3); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.card .row { display: flex; justify-content: space-between; gap: 8px; }
.card .row + .row { margin-top: 3px; }
.card .tot { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.card .dim { font-size: 12px; }
.prod { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.prod .img { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-3); display: grid; place-items: center; color: var(--ink); }
.prod .img svg { width: 34px; height: 20px; }
.notice { border-left: 3px solid var(--red); background: var(--red-wash); padding: 7px 10px; border-radius: 0 10px 10px 0; font-size: 12.5px; }
.notice b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--red-2); margin-bottom: 1px; }
.paybtn { display: block; text-align: center; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px; font-weight: 500; margin-top: 8px; }
.mini-receipt { background: var(--paper); color: #1b1914; border-radius: 6px; padding: 10px 12px; font: 400 10.5px/1.5 var(--mono); }
.mini-receipt .rb { border: 1.5px solid #C8102E; color: #B00E28; text-align: center; font-weight: 500; padding: 4px; margin-bottom: 6px; }
.mini-receipt .row { display: flex; justify-content: space-between; gap: 8px; }
.mini-receipt img { display: block; width: 100%; height: 26px; margin-top: 6px; }
.input { margin: 0 12px 14px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--ink-3); font-size: 13px; }

.code { margin: 0; background: var(--term-bg); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-width: 0; color: var(--term-ink); }
.code figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--term-line); font: 400 12.5px var(--mono); color: var(--term-dim); }
.code figcaption b { color: var(--term-ink); font-weight: 500; }
.code pre { margin: 0; padding: 16px 0; border-radius: 0; background: none; overflow-x: auto; font-size: 13px; line-height: 1.65; color: var(--term-ink); }
.code pre:focus-visible { outline: 2px solid var(--term-ours); outline-offset: -2px; }
.code pre code { display: inline-block; min-width: 100%; padding: 0; background: none; border-radius: 0; font-size: inherit; overflow-wrap: normal; }
.code .l { display: block; padding: 0 18px; white-space: pre; }
.code .s, .code .d { color: var(--term-dim); }
.code .o { background: var(--term-ours-bg); box-shadow: inset 3px 0 0 var(--term-ours); }
.code .o .k { color: var(--term-ours); }
.code .o .s { color: #FFD1D6; }
.code-sub { margin: 0; padding: 10px 18px; border-top: 1px solid var(--term-line); font: 400 12.5px var(--mono); color: var(--term-dim); }
.code-legend { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 18px 14px; font-size: 13.5px; color: var(--term-dim); }
.code-legend::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--term-ours-bg); box-shadow: inset 3px 0 0 var(--term-ours); }

/* Sequence diagram, below the demo */
.seq-head { margin-top: 72px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.seq { margin-top: 32px; overflow-x: auto; }
.seq svg { display: block; width: 100%; min-width: 880px; height: auto; }
.seq .lane { font: 500 14px var(--sans); fill: var(--ink); }
.seq .life { stroke: var(--line); stroke-width: 1; }
.seq .msg { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.seq .msg.ours { stroke: var(--red); stroke-width: 2; }
.seq .head { fill: var(--ink); }
.seq .head.ours { fill: var(--red); }
.seq .lbl { font: 400 15px var(--sans); fill: var(--ink-2); }
.seq .lbl.ours { fill: var(--red-2); }
.seq .num { font: 500 12px var(--sans); fill: var(--ink-3); }
.seq-text { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.seq-text summary { cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink); width: fit-content; }
.seq-text ol { margin: 12px 0 0; padding-left: 1.6em; display: grid; gap: 4px; }
.legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 26px; border-top: 1.25px solid var(--ink); vertical-align: middle; margin-right: 10px; }
.legend span.ours::before { border-top: 2px solid var(--red); }

/* The gap: two large columns */
.gap { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.gap > div { padding: 24px 0 0; min-width: 0; }
.gap > div + div { padding-left: 48px; border-left: 1px solid var(--line); }
.gap h3 { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.gap .ours h3 { color: var(--red); }
.gap ul { list-style: none; margin: 14px 0 0; padding: 0; }
.gap li { font-size: 26px; line-height: 1.3; font-weight: 300; letter-spacing: -0.015em; padding: 9px 0; margin: 0; color: var(--ink-2); }
.gap .ours li { color: var(--ink); font-weight: 400; }
.gap .ours li::before { content: "+ "; color: var(--red); font-weight: 500; }

/* What's inside */
.ledger { width: 100%; margin-top: 56px; border-collapse: collapse; }
.ledger th { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-3); padding: 0 24px 12px 0; border-bottom: 1px solid var(--line-strong); }
.ledger td { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td.n { font-family: var(--mono); font-size: 13.5px; width: 34%; overflow-wrap: anywhere; color: var(--ink-3); }
.ledger td.n .k { color: var(--red); display: block; font-size: 15px; font-weight: 500; }
.ledger td.w b { display: block; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.ledger td.w span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 16.5px; }
.ledger td.s { width: 20%; color: var(--ink-3); font-size: 15px; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.who > div { min-width: 0; }
.who svg { width: 96px; height: 72px; display: block; color: var(--ink); }
.who .tag { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.who h3 { margin-top: 6px; }
.who p:not(.tag) { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }

/* Status */
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 56px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; font-size: 16.5px; }
.kv dt, .kv dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { font-size: 14.5px; color: var(--ink-3); padding-top: 15px; padding-right: 28px; }
.status-grid .kv { border-top: 1px solid var(--line-strong); }
.asks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.asks li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.asks b { font-size: 24px; font-weight: 400; letter-spacing: -0.015em; }
.asks span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 16.5px; }

/* Path to 1.0: a horizontal timeline */
.road { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px solid var(--line); }
.road li { position: relative; margin: 0; padding: 32px 24px 0 0; min-width: 0; }
.road li::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--bg); }
.road li.done::before { background: var(--red); border-color: var(--red); }
.road li.done::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px solid var(--red); }
.road .st { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.road li.done .st { color: var(--red); }
.road b { display: block; margin-top: 6px; font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.road .d { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 64px; font-size: 15px; color: var(--ink-2); }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: start; }
.footer .links { grid-column: 1 / -1; display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; }
.footer .links a, .footer .links .linkish { color: var(--ink-2); }
.footer .legal { grid-column: 1 / -1; color: var(--ink-3); font-size: 13.5px; max-width: 900px; }

/* ---------- Spec, compliance, privacy and accessibility pages ---------- */
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.spec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--ink-3); text-decoration: none; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--red); }
.spec-body { min-width: 0; max-width: 820px; font-size: 17px; }
.spec-body > section { padding: 40px 0 44px; border-top: 1px solid var(--line); }
.spec-body > section:first-child { border-top: none; padding-top: 0; }
.spec-body h1 { font-size: clamp(40px, 4.8vw, 64px); margin-top: 18px; }
.spec-body h1 .sub { font-size: 0.62em; line-height: 1.15; margin-top: 10px; letter-spacing: -0.02em; }
.spec-body .lede { margin-top: 20px; }
.spec-body h2 { font-size: clamp(28px, 2.9vw, 36px); margin-bottom: 16px; letter-spacing: -0.025em; }
.spec-body h2 code { display: block; width: fit-content; max-width: 100%; margin-top: 12px; font-size: 13.5px; color: var(--red-2); background: var(--red-wash); letter-spacing: 0; }
.spec-body h3 { margin: 30px 0 10px; font-size: 20px; }
.spec-body h3 code { font-size: 0.78em; }
.spec-body p + ul, .spec-body ul + p, .spec-body p + ol, .spec-body ol + p { margin-top: 12px; }
.spec-body .kv { margin-top: 22px; border-top: 1px solid var(--line-strong); }
.spec-body dl.kv + p { margin-top: 16px; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-scroll th { text-align: left; font-size: 13.5px; font-weight: 500; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table-scroll td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll td code { white-space: nowrap; }
.warn { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--red); background: var(--red-wash); font-size: 15.5px; color: var(--ink); }
.note { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-size: 15.5px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 460px; }
  .js .demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .demo > div { min-width: 0; }
  .steps { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); gap: 0; }
  .steps [role="tab"] { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 14px; white-space: nowrap; grid-template-columns: auto auto; gap: 6px; }
  .steps [role="tab"][aria-selected="true"] { border-bottom-color: var(--red); }
  .js .demo-note { padding-left: 0; margin-top: 14px; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .road::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--line); }
  .road li { padding: 0 0 26px 38px; }
  .road li.done::after { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--red); }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  html { scroll-padding-top: 148px; }
  .masthead .wrap { gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav { margin-left: 0; gap: 8px 18px; font-size: 14.5px; }
  .hero { padding-top: 48px; }
  .covers { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .covers dd { font-size: 20px; }
  .covers dd span { white-space: normal; }
  .facts, .ideas, .who { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding-top: 88px; }
  main > .section:last-child { padding-bottom: 88px; }
  .glossary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .glossary dl { grid-template-columns: minmax(0, 1fr); }
  .glossary dt { border-bottom: 0; padding-bottom: 0; }
  .demo-band { padding: 40px 0 48px; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel-copy h3 { font-size: 24px; }
  .phone { margin: 0 auto; width: min(300px, 100%); }
  .code pre { font-size: 12px; }
  .gap { grid-template-columns: minmax(0, 1fr); }
  .gap > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .gap li { font-size: 21px; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100% !important; }
  .ledger tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ledger td { border: 0; padding: 3px 0; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reading settings (accessibility) ---------- */
.a11y-fab { position: fixed; z-index: 26; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--consent-h, 0px)); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--ink); color: var(--bg); border: 2px solid var(--bg); box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); cursor: pointer; }
.a11y-fab:hover, .a11y-fab[aria-expanded="true"] { background: var(--red); }
.a11y-panel { position: fixed; z-index: 30; left: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px) + var(--consent-h, 0px)); max-height: calc(100vh - 100px - var(--consent-h, 0px)); overflow-y: auto; width: min(340px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); display: grid; gap: 12px; font-size: 15px; }
.a11y-panel h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.a11y-panel .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.a11y-panel .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.a11y-panel .seg button { font: inherit; font-size: 14px; background: var(--bg); color: var(--ink); border: 0; padding: 6px 10px; cursor: pointer; }
.a11y-panel .seg button + button { border-left: 1px solid var(--line); }
.a11y-panel .seg button:focus-visible { outline-offset: -3px; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.a11y-panel .switch { font: inherit; font-size: 13.5px; min-width: 64px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.a11y-panel .foot { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.a11y-panel .foot a { color: var(--ink-2); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; cursor: pointer; }

html.a11y-size-1 body { zoom: 1.15; }
html.a11y-size-2 body { zoom: 1.3; }
html.a11y-readable body, html.a11y-readable .mono, html.a11y-readable code, html.a11y-readable pre, html.a11y-readable .rut, html.a11y-readable .status, html.a11y-readable .btn, html.a11y-readable .btn-alt, html.a11y-readable .ledger td.n, html.a11y-readable .who .tag, html.a11y-readable .code figcaption, html.a11y-readable .code-sub, html.a11y-readable .mini-receipt { font-family: "Atkinson Hyperlegible", Verdana, sans-serif; letter-spacing: 0; }
html.a11y-readable .seq .lane, html.a11y-readable .seq .lbl, html.a11y-readable .seq .num, html.a11y-readable .block text { font-family: "Atkinson Hyperlegible", Verdana, sans-serif; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd, html.a11y-spacing td { line-height: 1.9; letter-spacing: 0.04em; word-spacing: 0.12em; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-decoration-color: currentColor !important; }
:root.a11y-contrast { --ink-2: var(--ink); --ink-3: var(--ink); --line: var(--ink-2); --term-dim: var(--term-ink); }
html.a11y-contrast h1 .sub, html.a11y-contrast h2 .sub { color: var(--ink); }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }

/* ---------- Cookie notice ---------- */
.consent { position: fixed; z-index: 25; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 760px; margin: 0 auto; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); display: grid; gap: 12px; font-size: 15.5px; }
.consent p { color: var(--ink-2); }
.consent .actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consent .btn { cursor: pointer; font-size: 15px; padding: 11px 18px; }
.consent .btn-alt { display: inline-flex; align-items: center; font: 500 15px var(--sans); padding: 11px 18px; border-radius: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.btn-alt:hover { border-color: var(--red); }
main[tabindex="-1"]:focus { outline: none; }
