/* etaDit — layout: white paper, one ruled grid, a dark "ETA board" as the single bold element; red used for action and status only. */
:root {
  --paper: #ffffff;
  --wash: #f7f3f2;
  --ink: #17181c;
  --ink-2: #4b4e56;
  --ink-3: #767983;
  --line: #e7e0de;
  --red: #e02020;
  --red-ink: #b81616;
  --red-soft: #fdeceb;
  --board: #17181c;
  --board-2: #222329;
  --board-fg: #eeebe7;
  --board-dim: #9a9894;
  --amber: #f0b13a;
  --green: #3fb46a;
  --ph: #fff3c4;
  --ph-ink: #6b4e00;
  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 10px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.2vw, 3.7rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316; --wash: #1a1b1f; --ink: #edebe8; --ink-2: #b3b0ad; --ink-3: #8b8986;
    --line: #2b2c31; --red: #f03a3a; --red-ink: #ff7070; --red-soft: #2c1617;
    --board: #0b0c0e; --board-2: #18191d; --board-fg: #eeebe7; --board-dim: #8f8d8a;
    --ph: #3a3110; --ph-ink: #ffe08a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121316; --wash: #1a1b1f; --ink: #edebe8; --ink-2: #b3b0ad; --ink-3: #8b8986;
  --line: #2b2c31; --red: #f03a3a; --red-ink: #ff7070; --red-soft: #2c1617;
  --board: #0b0c0e; --board-2: #18191d; --board-fg: #eeebe7; --board-dim: #8f8d8a;
  --ph: #3a3110; --ph-ink: #ffe08a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 0.9em; }
.measure { max-width: 64ch; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-ink); display: inline-flex; gap: 0.6em; align-items: center;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.muted { color: var(--ink-3); }
mark.ph { background: var(--ph); color: var(--ph-ink); padding: 0 0.3em; border-radius: 4px; outline: 1px dashed currentColor; outline-offset: -1px; font-weight: 600; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(56px, 7vw, 96px); }
.band.wash { background: var(--wash); }
.band.tight { padding-block: clamp(36px, 4vw, 56px); }
.band + .band:not(.wash) { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.8em 1.25em; border-radius: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo svg, .logo img { height: 36px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  font: 500 0.97rem var(--f-body); color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button { background: var(--wash); color: var(--ink); }
.nav > a[aria-current="page"] { color: var(--red-ink); }
.nav .dd > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav .cta { margin-left: 10px; }
.dd { position: relative; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-38%);
  width: min(920px, calc(100vw - 48px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.28); padding: 26px; display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.dd.open .mega { display: grid; }
.mega h4 { font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.mega h4 a { color: inherit; text-decoration: none; }
.mega h4 a:hover { color: var(--red-ink); }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega li a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.mega li a:hover { background: var(--wash); color: var(--red-ink); }
.mega .all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); color: var(--ink);
    padding: 8px 12px; border-radius: 8px; font: 600 0.95rem var(--f-body); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 68px); overflow-y: auto;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .site-head.open .nav { display: flex; }
  .nav > a, .nav .dd > button { padding: 12px 4px; justify-content: space-between; width: 100%; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .cta { margin: 16px 0 0; justify-content: center; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 8px 0 16px; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 520px) { .mega { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .stack { gap: 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--wash); }
.page-hero .stack { gap: 18px; max-width: 820px; }
.crumbs { font: 500 0.8rem var(--f-mono); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ETA board (the one bold element) */
.board {
  background: var(--board); color: var(--board-fg); border-radius: 14px; padding: 20px; font-family: var(--f-mono);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); position: relative; overflow: hidden;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--board-2); }
.board-title { font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--board-dim); }
.board-title b { color: var(--board-fg); font-weight: 600; }
.board-clock { font-size: 0.78rem; color: var(--board-dim); font-variant-numeric: tabular-nums; }
.board table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.board th { text-align: left; font-weight: 500; color: var(--board-dim); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; padding: 12px 6px 6px; }
.board td { padding: 9px 6px; border-top: 1px solid var(--board-2); vertical-align: top; }
.board td:first-child { color: var(--board-fg); }
.board .lane { color: var(--board-dim); white-space: nowrap; }
.board .eta { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.st-live { background: color-mix(in srgb, var(--green) 22%, transparent); color: #7fe0a2; }
.st-prog { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #ffd27a; }
.st-next { background: color-mix(in srgb, #ffffff 10%, transparent); color: var(--board-fg); }
.board-foot { margin-top: 12px; font-size: 0.7rem; color: var(--board-dim); }
.board .flip { display: inline-block; animation: flip .5s ease-out both; }
@keyframes flip { from { transform: rotateX(80deg); opacity: .2; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) { .board .lane { display: none; } .board th.lane-h { display: none; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proof > div:first-child { border-left: 0; padding-left: 0; }
.proof b { font: 700 var(--step-2) var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.proof span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
@media (max-width: 820px) { .proof { grid-template-columns: 1fr 1fr; } .proof > div:nth-child(3) { border-left: 0; padding-left: 0; } .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.brands { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; color: var(--ink-3); font-size: 0.95rem; }
.brands strong { font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.brands span { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-2); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.pillar { padding: 26px 24px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pillar:first-child { border-left: 0; }
.pillar .tag { font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.pillar p { color: var(--ink-2); font-size: 0.97rem; }
.pillar ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pillar li a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.pillar li:last-child a { border-bottom: 0; }
.pillar li a::after { content: "→"; color: var(--ink-3); transition: transform .15s, color .15s; }
.pillar li a:hover { color: var(--red-ink); }
.pillar li a:hover::after { color: var(--red); transform: translateX(3px); }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .pillar { border-left: 0; } .pillar + .pillar { border-top: 1px solid var(--line); } }

/* Generic grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.card h3 { font-size: 1.12rem; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
a.card .more { margin-top: auto; color: var(--red-ink); font-weight: 600; font-size: 0.92rem; }
.wash .card { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
@media (max-width: 600px) { .ticks.cols { grid-template-columns: 1fr; } }
.defs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.defs dt, .defs h3 { font: 650 1.05rem var(--f-display); margin: 0; }
.defs dd, .defs p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .defs > div { grid-template-columns: 1fr; gap: 6px; } }

/* Process (real sequences only) */
.process { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process > div { padding: 22px 22px 22px 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-right: 22px; }
.process > div::before { counter-increment: step; content: "Step " counter(step); font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.process p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } .process > div { margin-right: 0; } }
.split .process { grid-template-columns: 1fr; }
.split .process > div { margin-right: 0; padding-right: 0; border-top-width: 1px; border-top-color: var(--line); }
.split .process > div:first-child { border-top: 2px solid var(--ink); }

/* AI band */
.ai-band { background: var(--board); color: var(--board-fg); }
.ai-band h2, .ai-band h3 { color: var(--board-fg); }
.ai-band .lead, .ai-band p { color: var(--board-dim); }
.ai-band .eyebrow { color: #ff8a8a; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--board-2); border: 1px solid var(--board-2); border-radius: 12px; overflow: hidden; }
.ai-grid > div { background: var(--board); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-grid .k { font: 600 0.7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #ff8a8a; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-band a { color: #ff8a8a; }
.ai-band .btn-ghost { background: transparent; color: var(--board-fg); border-color: var(--board-2); }
.ai-band .btn-ghost:hover { border-color: var(--board-fg); color: var(--board-fg); }

/* Work cards */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work > * { min-width: 0; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }
.case { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.case .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--wash); color: var(--ink-2); border: 1px solid var(--line); }
.chip.red { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.case p { color: var(--ink-2); }
.case-full { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
.case-full > * { min-width: 0; }
.case-full aside { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .case-full { grid-template-columns: 1fr; gap: 16px; } }

/* Product teaser */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 44px); background: var(--paper); }
.product > * { min-width: 0; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.tt-mini { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 0.82rem; }
.tt-mini .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tt-mini .col b { font: 600 0.68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tt-mini .t { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 8px; line-height: 1.3; }
.tt-mini .t i { display: block; font-style: normal; color: var(--ink-3); font-family: var(--f-mono); font-size: 0.68rem; margin-top: 4px; }

/* Packages */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pkgs > * { min-width: 0; }
@media (max-width: 900px) { .pkgs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } }
.pkg { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.pkg .price { font: 700 1.6rem var(--f-display); letter-spacing: -0.02em; }
.pkg .price small { font: 500 0.85rem var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.pkg .ticks { font-size: 0.95rem; }
.pkg .btn { margin-top: auto; justify-content: center; }
.pkg-group { display: flex; flex-direction: column; gap: 18px; }
.pkg-group + .pkg-group { margin-top: 48px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font: 600 1.05rem var(--f-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--f-body); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin-top: 10px; }
.cta-band .btn-light { background: #fff; color: #b81616; }
.cta-band .btn-light:hover { background: #17181c; color: #fff; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }

/* Contact */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form label span.opt { font-weight: 400; color: var(--ink-3); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--ink-3); }
.form-msg { padding: 12px 14px; border-radius: 8px; background: var(--wash); border: 1px solid var(--line); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.contact-card .row { display: flex; flex-direction: column; gap: 2px; }
.contact-card .k { font: 600 0.7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.contact-card .v { font-weight: 600; user-select: all; word-break: break-word; }

/* Legal */
.legal { max-width: 74ch; }
.legal h2 { font-size: var(--step-1); margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* Footer */
.site-foot { background: var(--board); color: var(--board-dim); padding-block: 56px 32px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid > * { min-width: 0; }
.site-foot h4 { font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--board-fg); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot a { color: var(--board-dim); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-co { display: flex; flex-direction: column; gap: 12px; }
.foot-co .logo svg, .foot-co .logo img { height: 40px; }
.foot-co p { line-height: 1.55; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--board-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; font-family: var(--f-mono); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-co { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }
.preview-note { background: var(--ph); color: var(--ph-ink); font-size: 0.85rem; text-align: center; padding: 8px 16px; }

/* Credentials (replaces client logo strip) */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.cred { padding: 22px 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cred:first-child { border-left: 0; }
.cred .src { font: 600 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cred b { font: 700 var(--step-2) var(--f-display); letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; min-height: 1.15em; display: flex; align-items: center; }
.cred p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.cred a { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.stars { display: inline-flex; gap: 3px; }
.stars i { width: 22px; height: 22px; background: var(--red); clip-path: polygon(50% 4%, 61% 37%, 96% 37%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 4% 37%, 39% 37%); }
.creds-note { font-size: 0.92rem; color: var(--ink-3); }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } .cred:nth-child(3) { border-left: 0; } .cred:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } .cred { border-left: 0; } .cred + .cred { border-top: 1px solid var(--line); } }

/* Anonymised engagements */
.ledger { border-top: 2px solid var(--ink); }
.ledger .row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger .who { font: 650 1rem var(--f-display); }
.ledger .what { color: var(--ink-2); }
.ledger .tags { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) { .ledger .row { grid-template-columns: 1fr; } .ledger .tags { justify-content: flex-start; } }

/* Light copy protection (see copy_protection in content/_site.txt) */
html.protected body, html.protected .protect-root { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protected input, html.protected textarea, html.protected select, html.protected .copyable, html.protected .copyable * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html.protected img, html.protected svg { -webkit-user-drag: none; }

/* Top-bar call-to-action keeps its red button style */
.nav > a.btn-primary { background: var(--red); color: #fff; padding: 0.65em 1.1em; border-radius: 8px; }
.nav > a.btn-primary:hover { background: var(--red-ink); color: #fff; }

/* WhatsApp button */
.wa-float {
  position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: 999px;
  background: #1f9d55; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
}
.wa-float:hover { background: #17834a; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* Cookie consent */
.consent {
  position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 12px; font-size: 0.93rem;
}
.consent[hidden] { display: none; }
.consent p { color: var(--ink-2); }
.consent .btn { padding: 0.6em 1em; font-size: 0.93rem; }

/* Packages with a payment link */
.pkg .pkg-ask { text-align: center; font-size: 0.88rem; margin-top: -4px; }

/* Our software products */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.apps > * { min-width: 0; }
@media (max-width: 960px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .apps { grid-template-columns: 1fr; } }
.app { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-mark { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--board); color: var(--board-fg); font: 700 1.2rem var(--f-display); }
.app-status { font: 600 0.7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.app-status.live { background: color-mix(in srgb, var(--green) 18%, transparent); color: #1f7a44; }
.app-status.beta { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #8a5a00; }
.app-status.dev { background: var(--wash); color: var(--ink-2); border: 1px solid var(--line); }
:root[data-theme="dark"] .app-status.live { color: #7fe0a2; } :root[data-theme="dark"] .app-status.beta { color: #ffd27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-status.live { color: #7fe0a2; } :root:not([data-theme="light"]) .app-status.beta { color: #ffd27a; } }
.app h3 { font-size: 1.35rem; }
.app .app-tag { color: var(--ink); font-weight: 500; }
.app p { color: var(--ink-2); }
.app .ticks { font-size: 0.95rem; }
.app .app-price { font-weight: 600; color: var(--ink); margin-top: auto; }
.app .btn { justify-content: center; }

/* Checkout */
.checkout fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.checkout legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.tier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500 !important; flex-direction: row !important; }
.tier:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.tier input { width: auto; accent-color: var(--red); }
.tier-price { font: 700 1.05rem var(--f-display); font-variant-numeric: tabular-nums; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { width: auto; margin-top: 4px; accent-color: var(--red); }
.co-summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.co-summary h2 { font-size: var(--step-2); }
.co-summary dl { margin: 0; border-top: 1px solid var(--line); }
.co-summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-summary dt { color: var(--ink-2); }
.co-summary dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.co-summary .total dt, .co-summary .total dd { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.co-summary .muted { font-size: 0.88rem; }
#co-pay[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 860px) { .co-summary { position: static; } }
.form label.tier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }

/* Lead magnet */
.lead-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper); }
.form.lead { grid-template-columns: 1fr; }

/* Four cards in a row group: 2 x 2 instead of 3 + 1 */
@media (min-width: 901px) {
  .pkgs:has(> .pkg:nth-child(4):last-child), .apps:has(> .app:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Quote cards (no prices) */
.pkg .pkg-unit { font: 600 0.72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); margin-top: -6px; }
.pkg .pkg-desc { color: var(--ink-2); font-size: 0.95rem; }

/* ===== Redesign pass: quieter labels, clocks, mobile behaviour ===== */

/* Labels in sentence case, body font. The work board keeps its monospace display. */
.eyebrow { font: 600 0.95rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--red-ink); }
.eyebrow::before { display: none; }
.pillar .tag, .ai-grid .k, .cred .src, .contact-card .k, .mega h4, .site-foot h4 {
  font: 600 0.85rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none;
}
.chip { font: 600 0.78rem/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
.process > div::before { font: 600 0.85rem var(--f-body); letter-spacing: 0; text-transform: none; }
.pkg .pkg-unit { font: 600 0.85rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none; }
.btn .arr { display: none; }
a.card .more { font-size: 0.95rem; }

/* Pillars are <details> so phones can fold them; on desktop they behave like plain blocks */
details.pillar > summary { list-style: none; display: flex; flex-direction: column; gap: 14px; cursor: default; }
details.pillar > summary::-webkit-details-marker { display: none; }

/* Menu: the toggle button and overview link only appear on phones */
.mg-t, .mega .mg-hub { display: none; }

/* City clocks */
.clocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.clock { padding: 18px 20px 4px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clock + .clock { padding-left: 20px; border-left: 1px solid var(--line); }
.clock-city { font-weight: 600; }
.clock-time { font: 700 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock-day { color: var(--ink-3); font-size: 0.9rem; min-height: 1.4em; }
.clock p { color: var(--ink-2); font-size: 0.93rem; margin-top: 6px; }
.clock.is-open .clock-day { color: #1f7a44; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .clock.is-open .clock-day { color: #7fe0a2; } }

/* Mobile action bar (phones only) */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  :root { --step-4: clamp(2rem, 1.5rem + 2.6vw, 2.5rem); --step-3: 1.7rem; --step-1: 1.15rem; }
  .band { padding-block: 44px; }
  .stack-lg { gap: 28px; }
  .lead { font-size: 1.08rem; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { display: none; }
  .consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  .mobile-bar {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; position: fixed; z-index: 44; left: 0; right: 0; bottom: 0;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
  .mobile-bar a.mb-quote { background: var(--red); border-color: var(--red); color: #fff; }

  /* Menu groups fold */
  .mega h4 { display: none; }
  .mg-t { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; font: 600 1rem var(--f-body); color: var(--ink); cursor: pointer; }
  .mg-t::after { content: "+"; font-size: 1.3rem; color: var(--red); }
  .mg.open .mg-t::after { content: "\2212"; }
  .mega .mg ul { display: none; padding: 6px 0 10px; }
  .mega .mg.open ul { display: flex; }
  .mega .mg-hub { display: block; }
  .mega { grid-template-columns: 1fr; gap: 0; }

  /* Practices fold into four rows */
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 0 18px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  details.pillar > summary { cursor: pointer; padding: 16px 28px 16px 0; gap: 4px; position: relative; }
  details.pillar > summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red); }
  details.pillar[open] > summary::after { content: "\2212"; }
  details.pillar[open] { padding-bottom: 14px; }
  details.pillar p { margin-bottom: 10px; }

  /* Credentials: compact 2 x 2 */
  .creds { grid-template-columns: 1fr 1fr; }
  .cred { padding: 16px 14px; border-left: 1px solid var(--line); }
  .cred:nth-child(odd) { border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cred + .cred { border-top: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cred b { font-size: 1.25rem; }
  .cred p { font-size: 0.86rem; }
  .cred a { display: none; }

  /* Linked cards become compact rows */
  .grid:has(> a.card) { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .grid > a.card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 32px 14px 0; gap: 4px; position: relative; background: transparent; }
  .grid > a.card:hover { transform: none; }
  .grid > a.card .more { display: none; }
  .grid > a.card::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--red); border-top: 2px solid var(--red); transform: translateY(-50%) rotate(45deg); }
  .grid > a.card p { font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card { padding: 18px; }

  /* Groups of larger cards scroll sideways, with the next card peeking */
  .pkgs, .apps, .work {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none !important; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: thin;
  }
  .pkgs > *, .apps > *, .work > * { scroll-snap-align: start; }

  /* Clocks 2 x 2 */
  .clocks { grid-template-columns: 1fr 1fr; }
  .clock { padding: 14px 12px 10px 0; }
  .clock + .clock { padding-left: 0; border-left: 0; }
  .clock:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .clock:nth-child(n+3) { border-top: 1px solid var(--line); }

  .defs > div { padding: 14px 0; }
  .faq summary { padding: 14px 32px 14px 0; }
  .case-full { padding-block: 24px; }
  .site-foot { padding-block: 40px 24px; }
}
@media (max-width: 760px) { body:has(.site-head.open) .mobile-bar { display: none; } }
@media (max-width: 760px) { .mobile-bar:has(> a:nth-child(2):last-child) { grid-template-columns: 1.4fr 1fr; } }
.contact-card .v { font-weight: 500; font-size: 0.97rem; line-height: 1.5; }

/* Side-by-side sections: the heading stays in view while the list scrolls past */
@media (min-width: 861px) {
  .split > .stack:first-child { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; }
  .split.checkout-wrap > .stack:first-child, .split.lead-wrap > .stack:first-child { position: static; }
}
/* Long definition lists: two columns, term above its text */
.defs.defs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
.defs.defs-2 > div { grid-template-columns: 1fr; gap: 6px; border-top: 1px solid var(--line); border-bottom: 0; padding: 18px 0 20px; }
@media (max-width: 760px) { .defs.defs-2 { grid-template-columns: 1fr; } .defs.defs-2 > div { padding: 14px 0; } }
.defs.defs-2 > div { align-content: start; }
/* Slightly tighter spacing between sections on desktop */
.band { padding-block: clamp(44px, 5.5vw, 76px); }
.split .work { grid-template-columns: 1fr; }
