/* Splise site
   Layout: calm left-aligned operations page on Ice; one midnight band for the sample walkthrough.
   Color tokens come from brand/tokens.json. Names in comments match that file.
   Dark theme uses Midnight, Deep, Ice, Steel, Cobalt and Cobalt Light as-is.
   Derived (not in tokens.json, built with color-mix from those tokens):
     --line / --band-line on dark: Steel mixed into Midnight
     --ok-bg / --flag-bg on dark: Approve / Flag mixed into Midnight
     --flag on dark: Flag lifted with Ice so it stays readable on Midnight
     --hl / --shadow: Cobalt or Midnight at low opacity
     --band-line on light: a slightly deeper Fog/Line mix, documented below */
:root {
  --bg: #F3F5F8;          /* ice */
  --surface: #FBFCFD;     /* white */
  --sunken: #E3E8EF;      /* fog */
  --line: #CDD5E0;        /* line */
  --fg: #0B1A2E;          /* midnight */
  --muted: #4A5568;       /* slate */
  --accent: #2F5BEB;      /* cobaltDeep: links, buttons, small text */
  --accent-strong: #3D6BFF; /* cobalt: large shapes */
  --on-accent: #FBFCFD;   /* white */
  --band: #0B1A2E;        /* midnight */
  --band-fg: #F3F5F8;     /* ice */
  --band-muted: #9AA6B8;  /* steel */
  --band-surface: #16263D; /* deep */
  --band-line: color-mix(in srgb, #CDD5E0 42%, #0B1A2E); /* line mixed into midnight */
  --band-accent: #8FA9FF; /* cobaltLight */
  --ok: #178A55;          /* approve */
  --ok-bg: color-mix(in srgb, #178A55 14%, #F3F5F8);
  --flag: #9A6412;        /* flag */
  --flag-bg: color-mix(in srgb, #9A6412 14%, #F3F5F8);
  --hl: rgba(61, 107, 255, 0.16);
  --hl-strong: rgba(61, 107, 255, 0.30);
  --shadow: 0 1px 2px rgba(11, 26, 46, 0.06), 0 18px 40px rgba(11, 26, 46, 0.10);

  --sans: "Schibsted Grotesk", Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);

  --radius: 12px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* Dark: token colors on Midnight. Status hues stay the token values, lifted only where contrast needs it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1A2E; /* midnight */
    --surface: #16263D; /* deep */
    --sunken: #16263D; /* deep */
    --line: color-mix(in srgb, #9AA6B8 32%, #0B1A2E);
    --fg: #F3F5F8; /* ice */
    --muted: #9AA6B8; /* steel */
    --accent: #8FA9FF; /* cobaltLight */
    --accent-strong: #3D6BFF; /* cobalt */
    --on-accent: #0B1A2E;
    --band: #0B1A2E;
    --band-fg: #F3F5F8;
    --band-muted: #9AA6B8;
    --band-surface: #16263D;
    --band-line: color-mix(in srgb, #9AA6B8 32%, #0B1A2E);
    --band-accent: #8FA9FF;
    --ok: #178A55;
    --ok-bg: color-mix(in srgb, #178A55 16%, #0B1A2E);
    --flag: color-mix(in srgb, #9A6412 55%, #F3F5F8); /* flag lifted with ice for contrast on midnight */
    --flag-bg: color-mix(in srgb, #9A6412 18%, #0B1A2E);
    --hl: rgba(143, 169, 255, 0.18);
    --hl-strong: rgba(143, 169, 255, 0.34);
    --shadow: 0 1px 2px rgba(11, 26, 46, 0.3), 0 18px 40px rgba(11, 26, 46, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1A2E;
  --surface: #16263D;
  --sunken: #16263D;
  --line: color-mix(in srgb, #9AA6B8 32%, #0B1A2E);
  --fg: #F3F5F8;
  --muted: #9AA6B8;
  --accent: #8FA9FF;
  --accent-strong: #3D6BFF;
  --on-accent: #0B1A2E;
  --band: #0B1A2E;
  --band-fg: #F3F5F8;
  --band-muted: #9AA6B8;
  --band-surface: #16263D;
  --band-line: color-mix(in srgb, #9AA6B8 32%, #0B1A2E);
  --band-accent: #8FA9FF;
  --ok: #178A55;
  --ok-bg: color-mix(in srgb, #178A55 16%, #0B1A2E);
  --flag: color-mix(in srgb, #9A6412 55%, #F3F5F8);
  --flag-bg: color-mix(in srgb, #9A6412 18%, #0B1A2E);
  --hl: rgba(143, 169, 255, 0.18);
  --hl-strong: rgba(143, 169, 255, 0.34);
  --shadow: 0 1px 2px rgba(11, 26, 46, 0.3), 0 18px 40px rgba(11, 26, 46, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 132px; height: auto; min-width: 120px; flex-shrink: 0; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--fg); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform .15s, top .15s, background-color .15s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .site-header { position: sticky; }
  .nav-toggle { display: inline-flex; }
  .nav { gap: 12px; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(16px, env(safe-area-inset-left)) 20px max(16px, env(safe-area-inset-right));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 22;
  }
  .nav.is-open .nav-panel { display: flex; }
  .nav-panel .nav-link { padding: 12px 4px; font-size: 1.05rem; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; max-width: 24ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34rem; margin-top: 24px; line-height: 1.55; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 10px; height: 10px; background: var(--accent-strong); border-radius: 2px; flex: none; }
.hero-visual { position: relative; aspect-ratio: 1 / 0.86; max-width: 100%; }
.hero-visual canvas, .hero-visual .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .poster { display: flex; align-items: center; justify-content: center; }
.hero-visual .poster img { width: 46%; height: auto; }
.hero-visual.webgl-ready .poster { display: none; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 500 .8rem/1.4 var(--mono); color: var(--muted); pointer-events: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / 0.62; order: -1; }
}

/* ---------- generic section ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .label { color: var(--accent); font-weight: 600; }
.section-head h2 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

/* the job today */
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.steps-manual { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-manual li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps-manual .n { font: 500 .9rem/1 var(--mono); color: var(--muted); }
.steps-manual .who { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.who.splise { background: var(--hl); color: var(--accent); }
.who.team { background: var(--sunken); color: var(--fg); }
.job-aside { position: sticky; top: 104px; display: grid; gap: 20px; }
.job-aside .big { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.job-aside p { color: var(--muted); }
@media (max-width: 860px) { .job { grid-template-columns: 1fr; } .job-aside { position: static; } }

/* ---------- demo band ---------- */
.band { background: var(--band); color: var(--band-fg); }
.band .section-head .label { color: var(--band-accent); }
.band .section-head p { color: var(--band-muted); }
.band a { color: var(--band-accent); }
.demo-note { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--band-muted); font-size: .9rem; margin-top: 18px; }
.demo-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; color: var(--band-muted); font-size: .95rem; max-width: 70ch; }
.demo-live .btn { text-decoration: none; flex-shrink: 0; }
.band .btn-primary { background: var(--band-fg); color: var(--band); }
.band .btn-primary:hover { background: var(--band-accent); color: var(--band); }
.demo-text { margin-top: 20px; max-width: 52rem; color: var(--band-muted); }
.demo-text summary { cursor: pointer; color: var(--band-fg); font-weight: 600; padding: 8px 0; }
.demo-text p { margin-top: 12px; }
.demo-text b { color: var(--band-fg); }

.app {
  background: var(--surface); color: var(--fg); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden; border: 1px solid var(--band-line);
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.app-bar .title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; min-width: 0; }
.app-bar .sample-tag { font-weight: 500; font-size: .78rem; color: var(--muted); }
.app-bar .title img { width: 20px; height: 20px; }
.app-bar .meta { color: var(--muted); font-size: .85rem; }
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; }
.pipeline span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pipeline span.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); }
.pipeline span.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.app-body { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.15fr); height: clamp(560px, 82vh, 780px); }
.pane { min-width: 0; min-height: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.inbox { overflow: auto; }
.pane:last-child { border-right: 0; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); }
.tabs { display: none; }

/* inbox */
.inbox { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.mail { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; color: inherit; border-radius: 10px; padding: 12px; cursor: pointer; display: grid; gap: 4px; font: inherit; }
.mail:hover { background: var(--sunken); }
.mail[aria-current="true"] { background: var(--hl); border-color: var(--hl-strong); }
.mail .from { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; gap: 8px; }
.mail .from time { color: var(--muted); font-weight: 400; font-size: .8rem; white-space: nowrap; }
.mail .subj { font-size: .88rem; }
.mail .att { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; width: max-content; margin-top: 4px; }
.mail .state { font-size: .75rem; font-weight: 600; color: var(--muted); }
.mail .state.ok { color: var(--ok); }
.mail .state.flag { color: var(--flag); }
.inbox-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .85rem; color: var(--muted); }

/* source document */
.doc-wrap { padding: 20px; overflow: auto; background: var(--sunken); flex: 1; }
.paper { background: #FFFFFF; color: #1d2733; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); padding: 28px 26px; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.45; min-width: 0; }
.paper .doc-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.paper .doc-co { font-weight: 700; font-size: 15px; }
.paper .doc-title { font-size: 20px; font-weight: 700; letter-spacing: .04em; text-align: right; }
.paper .doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.paper .doc-grid b { display: block; font-size: 10.5px; color: #5a6675; text-transform: uppercase; letter-spacing: .06em; }
.paper table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.paper th { text-align: left; font-size: 10.5px; color: #5a6675; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #c9d0da; padding: 6px 4px; }
.paper td { border-bottom: 1px solid #e6e9ee; padding: 7px 4px; vertical-align: top; }
.paper td.num { text-align: right; }
.paper .doc-note { margin-top: 14px; font-size: 11.5px; color: #3b4654; }
.mailbody { font-family: Arial, Helvetica, sans-serif; }
.mailhead { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #e6e9ee; color: #3b4654; font-size: 12.5px; }
.mailhead b { display: inline-block; width: 64px; color: #5a6675; font-weight: 600; }
.mailtext { font-size: 14px; line-height: 1.6; color: #1d2733; }
.src { border-radius: 3px; transition: background-color .25s, box-shadow .25s; }
.src.seen { background: rgba(61, 107, 255, 0.10); }
.src.lit { background: rgba(61, 107, 255, 0.28); box-shadow: 0 0 0 2px rgba(61, 107, 255, 0.55); }
.doc-empty { color: var(--muted); padding: 40px 12px; text-align: center; }

/* draft order */
.draft { padding: 18px 20px; display: grid; gap: 18px; align-content: start; overflow: auto; flex: 1; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .field .k { font-size: .75rem; font-weight: 600; color: var(--muted); }
.field .v { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.field .v.filled { animation: fill .45s ease-out both; }
.field .v.empty { border-style: dashed; color: var(--muted); }
.field input { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
@keyframes fill { from { background: var(--hl-strong); } to { background: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .field .v.filled { animation: none; } }
.field.wide { grid-column: 1 / -1; }

.field .note { font-size: .75rem; color: var(--muted); min-height: 0; }
.field.is-lit .v { background: var(--hl); border-color: var(--hl-strong); }

.lines { font-size: .88rem; }
.lines-head, .line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 4.5rem 7.5rem; gap: 6px 12px; }
.lines-head { font-size: .72rem; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lines-head .r, .line .qty { text-align: right; }
.line-list { list-style: none; margin: 0; padding: 0; }
.line { padding: 10px 8px; border-bottom: 1px solid var(--line); align-items: start; border-radius: 6px; }
.line.is-lit { background: var(--hl); }
.line .said { display: grid; gap: 2px; color: var(--muted); font-size: .84rem; min-width: 0; }
.line .how { font-size: .75rem; }
.line .item { display: grid; gap: 2px; min-width: 0; }
.line .sku { font-size: .84rem; }
.line .desc { color: var(--muted); font-size: .8rem; }
.line .qty { white-space: nowrap; }
.line-issue { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .lines-head { display: none; }
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .line .said { grid-column: 1 / -1; }
  .line .item { grid-column: 1; }
  .line .qty { grid-column: 2; grid-row: 2; }
  .line .st { grid-column: 1 / -1; }
}
section[id] { scroll-margin-top: 84px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.flag { color: var(--flag); background: var(--flag-bg); }
.chip.wait { color: var(--muted); background: var(--sunken); }
.chip.ask { color: var(--accent); background: var(--hl); }

.issue { border: 1px solid color-mix(in srgb, var(--flag) 45%, transparent); background: var(--flag-bg); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; margin-top: 8px; }
.issue p { font-size: .88rem; color: var(--fg); }
.issue .why { font-size: .8rem; color: var(--muted); }
.issue .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: 600 .82rem/1.2 var(--sans); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; text-align: left; }
.opt:hover { border-color: var(--fg); }
.opt[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.actions .hint { color: var(--muted); font-size: .85rem; }
.result { border-radius: 12px; padding: 16px; background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); display: grid; gap: 8px; }
.result.held { background: var(--hl); border-color: var(--hl-strong); }
.result h3 { font-size: 1.05rem; }
.result p { font-size: .9rem; }
.result .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.outbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); font-size: .88rem; white-space: pre-wrap; }
.csv { font: 400 .78rem/1.5 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; white-space: pre; }
.log { font: 400 .8rem/1.5 var(--mono); color: var(--muted); display: grid; gap: 2px; }
.log .ok { color: var(--ok); }
.log .flag { color: var(--flag); }

.catalog-wrap { overflow-x: auto; }
.catalog { width: 100%; border-collapse: collapse; font-size: .85rem; }
.catalog th, .catalog td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.catalog td.r, .catalog th.r { text-align: right; }

@media (max-width: 1080px) {
  .app-body { grid-template-columns: 1fr; height: auto; }
  .pane { border-right: 0; display: none; }
  .pane.is-shown { display: flex; }
  .tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
  .tabs button { font: 600 .9rem/1 var(--sans); padding: 10px 14px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .tabs button[aria-selected="true"] { background: var(--sunken); color: var(--fg); }
  .pipeline { display: none; }
}
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .doc-wrap { padding: 10px; } .paper { padding: 18px 14px; } }

/* ---------- how it works ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow li { padding: 28px 22px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.flow li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.flow li.person::before { background: var(--accent-strong); height: 4px; top: -1px; }
.flow .n { font: 500 .85rem/1 var(--mono); color: var(--muted); }
.flow h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.flow p { color: var(--muted); font-size: .95rem; }
.flow .tag { font-size: .78rem; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow li { padding: 20px 0 20px 0; } }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.rules > div { border-top: 2px solid var(--fg); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.rules h3 { font-size: 1.2rem; }
.rules p { color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- pilot & pricing ---------- */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.weeks li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.weeks .wk { font: 500 .9rem/1.6 var(--mono); color: var(--muted); }
.weeks b { display: block; }
.weeks span { color: var(--muted); }
.prices { display: grid; gap: 12px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.price.main { border-color: var(--fg); box-shadow: var(--shadow); }
.price .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price h3 { font-size: 1.2rem; }
.price .amt { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 4px; }
.guarantee { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--hl); }
.guarantee b { color: var(--fg); }
.guarantee p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.trust > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trust b { font-weight: 600; }
.trust p { color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } .trust > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 46rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; }
.contact .lede { color: var(--band-muted); font-size: var(--step-1); margin-top: 16px; }
.form { display: grid; gap: 14px; background: var(--band-surface); border: 1px solid var(--band-line); border-radius: 16px; padding: 24px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--band-fg); }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--band-line); background: var(--band); color: var(--band-fg); font: 400 1rem/1.4 var(--sans); }
.form textarea { min-height: 96px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn-primary { background: var(--band-fg); color: var(--band); }
.form .btn-primary:hover { background: var(--band-accent); }
.form .small { font-size: .82rem; color: var(--band-muted); font-weight: 400; }
.form-done { display: grid; gap: 8px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px 56px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer .brand img { width: 128px; height: auto; min-width: 120px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
