/* ==========================================================================
   Service Tracker — marketing site
   Visual language: the due list. Warm paper, near-black ink, one electric
   blue for the brand. Green / amber / red are reserved for schedule status
   (done / due soon / overdue) and never used as decoration.
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --card: #fcfbf8;
  --ink: #0e131b;
  --ink-2: #151b25;
  --ink-3: #1e2632;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #eef0f3;
  --on-ink-muted: #9aa3b2;
  --text: #121720;
  --muted: #586172;
  --line: rgba(14, 19, 27, 0.11);
  --line-strong: rgba(14, 19, 27, 0.2);

  /* brand */
  --blue: #2f5bff;
  --blue-hi: #5b7fff;
  --blue-deep: #1c3bc4;
  --blue-wash: rgba(47, 91, 255, 0.1);

  /* status — schedule states only */
  --ok: #1f9d5c;
  --ok-wash: rgba(31, 157, 92, 0.12);
  --due: #e28a12;
  --due-wash: rgba(226, 138, 18, 0.14);
  --late: #dc3d32;
  --late-wash: rgba(220, 61, 50, 0.12);
  --none: #8a92a0;
  --ok-text: #12663b;
  --due-text: #8e5303;
  --late-text: #a92319;

  /* type */
  --f-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-1: 0 1px 2px rgba(14, 19, 27, 0.06), 0 4px 14px rgba(14, 19, 27, 0.05);
  --shadow-2: 0 2px 4px rgba(14, 19, 27, 0.05), 0 22px 54px rgba(14, 19, 27, 0.14);
  --shadow-ink: 0 30px 80px rgba(3, 6, 12, 0.55), 0 8px 24px rgba(3, 6, 12, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 320ms;
  --t-slow: 700ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible { outline-color: var(--blue-hi); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--f-mono); }

/* ---------- labels, headings ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }
.ink .label { color: var(--on-ink-muted); }
.ink .label::before { background: var(--blue-hi); }
.h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; margin-top: 16px; }
.h2 em { font-style: normal; color: var(--blue); }
.ink .h2 em { color: var(--blue-hi); }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 56ch; margin-top: 16px; }
.ink .lede { color: var(--on-ink-muted); }
.sec-head { max-width: 760px; }
.sec-head--center { margin: 0 auto; text-align: center; }
.sec-head--center .lede { margin-left: auto; margin-right: auto; }
.sec-head--center .label::after { content: ""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }
.ink .sec-head--center .label::after { background: var(--blue-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { background: rgba(14, 19, 27, 0.05); }
.ink .btn--ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--on-ink); }
.ink .btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn .ico { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font: 600 11.5px/1.2 var(--f-mono); letter-spacing: 0.01em; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-wash); color: var(--ok-text); }
.pill--due { background: var(--due-wash); color: var(--due-text); }
.pill--late { background: var(--late-wash); color: var(--late-text); }
.pill--none { background: rgba(138, 146, 160, 0.16); color: #4d5564; }
.pill--plan { background: var(--blue-wash); color: var(--blue-deep); }
.pill--plan::before { border-radius: 2px; transform: rotate(45deg); width: 5px; height: 5px; }
.ink .pill--ok { color: #6fdca3; background: rgba(31, 157, 92, 0.18); }
.ink .pill--due, .dash .pill--due { color: #ffbe5c; background: rgba(226, 138, 18, 0.18); }
.ink .pill--late, .dash .pill--late { color: #ff8b80; background: rgba(220, 61, 50, 0.2); }
.ink .pill--none, .dash .pill--none { color: #b6bdc9; background: rgba(255, 255, 255, 0.08); }
.ink .pill--plan { color: #a9bbff; background: rgba(91, 127, 255, 0.18); }
.tag-sample {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-ink-muted); opacity: 0.8;
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 237, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 19, 27, 0.05); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--f-display); letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; }
.brand small { font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: 0.02em; margin-left: 2px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.nav__links a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--muted); transition: color var(--t-fast), background-color var(--t-fast); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: rgba(14, 19, 27, 0.05); }
.nav__cta { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform var(--t) var(--ease), background-color var(--t-fast); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__links, .js .nav__cta { display: none; }
  html:not(.js) .nav__in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  html:not(.js) .nav__links { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  .nav.is-open .nav__links a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .nav__cta { display: inline-flex; position: absolute; top: calc(68px + 12px + 5 * 52px + 16px); left: var(--gutter); right: var(--gutter); }
}

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.ink { background: var(--ink); color: var(--on-ink); }
.ink--lift { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.paper-2 { background: var(--paper-2); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 80ms !important; }
.d2 { transition-delay: 160ms !important; }
.d3 { transition-delay: 240ms !important; }
.d4 { transition-delay: 320ms !important; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow-1); }
.hero__kicker b { font: 600 11px/1 var(--f-mono); color: #fff; background: var(--ink); padding: 5px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(40px, 5.3vw, 70px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-top: 22px; font-stretch: 112%; }
.hero h1 .em { color: var(--blue); }
.hero__sub { font-size: clamp(17px, 1.55vw, 19px); color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero .btn-row { margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__note .ico { width: 16px; height: 16px; color: var(--ok); }

/* hero entrance: pure CSS so the headline paints immediately without JS */
.hero__copy > *, .hero__stage, .facts__item { animation: heroIn 800ms var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 60ms; }
.hero__copy > :nth-child(3) { animation-delay: 120ms; }
.hero__copy > :nth-child(4) { animation-delay: 180ms; }
.hero__copy > :nth-child(5) { animation-delay: 240ms; }
.hero__stage { animation-delay: 160ms; animation-duration: 1000ms; }
.facts__item { animation-delay: 300ms; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* asset rail feeding the due list */
.hero__stage { position: relative; padding: 8px 0 56px; }
.feed { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.feed__rail { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0; position: relative; }
.feed__chip {
  width: 52px; height: 52px; border-radius: 15px; background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow-1); position: relative; z-index: 1;
}
.feed__chip .ico { width: 24px; height: 24px; }
.feed__chip[data-tip]:hover::after, .feed__chip[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font: 500 12px/1 var(--f-mono); padding: 7px 9px; border-radius: 7px; white-space: nowrap; z-index: 5;
}
.feed__wires { position: absolute; left: 52px; top: 0; width: 26px; height: 100%; overflow: visible; pointer-events: none; }
.feed__wires path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.feed__wires .pulse { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 10 200; stroke-dashoffset: 210; opacity: 0; }
.is-live .feed__wires .pulse { animation: wire 3.6s var(--ease) infinite; }
.feed__wires .pulse:nth-of-type(2) { animation-delay: 0.45s !important; }
.feed__wires .pulse:nth-of-type(3) { animation-delay: 0.9s !important; }
.feed__wires .pulse:nth-of-type(4) { animation-delay: 1.35s !important; }
.feed__wires .pulse:nth-of-type(5) { animation-delay: 1.8s !important; }
.feed__wires .pulse:nth-of-type(6) { animation-delay: 2.25s !important; }
@keyframes wire { 0% { stroke-dashoffset: 210; opacity: 0; } 15% { opacity: 1; } 60% { opacity: 1; } 100% { stroke-dashoffset: 120; opacity: 0; } }

/* the due list (product UI) */
.app {
  background: var(--ink-2); color: var(--on-ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-ink); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; position: relative;
}
.app__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); background: rgba(255, 255, 255, 0.02); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app__title { font: 600 13px/1 var(--f-body); color: var(--on-ink); }
.app__title span { color: var(--on-ink-muted); font-weight: 500; }
.app__bar .tag-sample { margin-left: auto; }
.duel__tabs { display: flex; gap: 6px; padding: 14px 18px 0; flex-wrap: wrap; }
.duel__tab {
  border: 1px solid var(--ink-line); background: transparent; color: var(--on-ink-muted);
  padding: 8px 12px; border-radius: 999px; font: 600 12.5px/1 var(--f-body); display: inline-flex; gap: 8px; align-items: center;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.duel__tab b { font: 600 11px/1 var(--f-mono); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--on-ink); }
.duel__tab[aria-selected="true"] { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.duel__tab[aria-selected="true"] b { background: var(--ink); color: #fff; }
.duel__tab[data-k="late"] b { background: rgba(220, 61, 50, 0.85); color: #fff; }
.duel__list { list-style: none; padding: 10px 10px 12px; min-height: 352px; }
.duel__panel[hidden] { display: none; }
.row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 10px; border-radius: 12px; transition: background-color var(--t-fast);
}
.row + .row { border-top: 1px solid var(--ink-line); }
.row:hover { background: rgba(255, 255, 255, 0.035); }
.row__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--on-ink); }
.row__ico .ico { width: 20px; height: 20px; }
.row__main { min-width: 0; display: block; }
.row__name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: block; font: 400 12px/1.4 var(--f-mono); color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row__end { text-align: right; display: grid; gap: 5px; justify-items: end; }
.row__date { font: 500 12px/1 var(--f-mono); color: var(--on-ink-muted); }
.js .duel__panel:not([hidden]) .row { animation: rowIn 520ms var(--ease) both; }
.js .duel__panel:not([hidden]) .row:nth-child(2) { animation-delay: 50ms; }
.js .duel__panel:not([hidden]) .row:nth-child(3) { animation-delay: 100ms; }
.js .duel__panel:not([hidden]) .row:nth-child(4) { animation-delay: 150ms; }
.js .duel__panel:not([hidden]) .row:nth-child(5) { animation-delay: 200ms; }
.js .duel__panel:not([hidden]) .row:nth-child(6) { animation-delay: 250ms; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ink-line); font: 500 11.5px/1.3 var(--f-mono); color: var(--on-ink-muted); }

/* floating reminder toast in hero */
.toast {
  position: absolute; right: -18px; bottom: 0; width: min(300px, 76%);
  background: var(--card); color: var(--text); border-radius: 16px; padding: 14px 14px 14px 14px;
  box-shadow: var(--shadow-2); border: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; z-index: 3;
}
.toast__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--due-wash); color: var(--due-text); display: grid; place-items: center; }
.toast__ico .ico { width: 19px; height: 19px; }
.toast b { display: block; font-size: 13.5px; line-height: 1.3; }
.toast span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.js .toast { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .toast.is-in { opacity: 1; transform: none; }

/* strip under hero */
.facts { margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); }
.facts__item { padding: 22px 22px 26px 0; }
.facts__item + .facts__item { padding-left: 22px; border-left: 1px solid var(--line); }
.facts__item b { display: block; font: 700 clamp(24px, 2.6vw, 32px)/1 var(--f-display); letter-spacing: -0.02em; }
.facts__item span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.facts__def { font-size: 14.5px; color: var(--muted); }
.facts__def strong { color: var(--text); }

/* ==========================================================================
   PROBLEM — without / with
   ========================================================================== */
.switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--ink-line); margin-top: 28px; }
.switch button { border: 0; background: transparent; color: var(--on-ink-muted); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background-color var(--t), color var(--t); }
.switch button[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); }
.switch button[data-v="with"][aria-pressed="true"] { background: var(--blue); color: #fff; }
.chaos { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.chaos__stage { position: relative; min-height: 440px; }
.js .chaos__view { transition: opacity 500ms var(--ease), transform 500ms var(--ease), filter 500ms var(--ease); }
.js .chaos[data-view="with"] .chaos__view--without { opacity: 0; transform: scale(0.97); filter: blur(4px); pointer-events: none; }
.js .chaos[data-view="without"] .chaos__view--with { opacity: 0; transform: scale(1.02); pointer-events: none; }
.js .chaos__view { position: absolute; inset: 0; }
.no-js .chaos__view, html:not(.js) .chaos__view { position: relative; }
html:not(.js) .chaos__view--with { margin-top: 24px; }
.scraps { position: relative; height: 100%; min-height: 440px; }
.scrap { position: absolute; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 1.4; }
.scrap small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }
.scrap--sheet { left: 0; top: 8px; width: 58%; background: #fff; color: #222; padding: 0; overflow: hidden; transform: rotate(-2deg); }
.scrap--sheet table { width: 100%; border-collapse: collapse; font: 12px/1.2 var(--f-mono); }
.scrap--sheet th, .scrap--sheet td { border: 1px solid #d9dde3; padding: 6px 7px; text-align: left; white-space: nowrap; }
.scrap--sheet th { background: #eef1f5; font-weight: 600; color: #4b5563; }
.scrap--sheet td.q { color: #b42318; background: #fff3f1; }
.scrap--sheet .bar { background: #1f7a44; color: #fff; padding: 6px 10px; font: 600 11px/1 var(--f-mono); }
.scrap--wa { right: 2%; top: 0; width: 44%; background: #e7f6dd; color: #1d2a16; padding: 12px 14px; transform: rotate(2.5deg); border-top-left-radius: 2px; }
.scrap--wa .t { display: block; text-align: right; font: 11px/1 var(--f-mono); opacity: 0.55; margin-top: 6px; }
.scrap--card { right: 0; top: 44%; width: 30%; background: #f3ead6; color: #4a3b22; padding: 12px 14px; transform: rotate(-3deg); font: 500 13px/1.6 "Bradley Hand", "Segoe Print", var(--f-body); display: grid; border-radius: 4px; }
.scrap--card .smudge { opacity: 0.45; filter: blur(0.6px); }
.scrap--note { left: 6%; bottom: 18px; width: 37%; background: #ffe680; color: #3a3000; padding: 16px 14px; transform: rotate(-4deg); font: 600 15px/1.35 "Comic Sans MS", "Marker Felt", var(--f-body); border-radius: 2px; }
.scrap--cal { right: 4%; bottom: 0; width: 40%; background: #fff; color: #222; padding: 12px; transform: rotate(3deg); }
.scrap--cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font: 11px/1 var(--f-mono); text-align: center; }
.scrap--cal .grid span { padding: 5px 0; border-radius: 4px; color: #6b7280; }
.scrap--cal .grid .c { outline: 2px solid #dc3d32; outline-offset: -1px; border-radius: 50%; color: #222; font-weight: 700; }
.scrap--mind { left: 44%; top: 46%; transform: translate(-50%, -50%) rotate(1deg); background: var(--ink-3); color: var(--on-ink); border: 1px dashed rgba(255, 255, 255, 0.25); padding: 12px 14px; width: 34%; box-shadow: none; }
.fallout { list-style: none; display: grid; gap: 10px; }
.fallout li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(220, 61, 50, 0.08); border: 1px solid rgba(220, 61, 50, 0.22); font-weight: 600; font-size: 15px; }
.fallout li .ico { color: #ff8b80; }
.fallout__head { font: 500 12px/1 var(--f-mono); color: var(--on-ink-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.chaos__side { position: relative; min-height: 340px; }
.js .chaos__side > div { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .chaos__side > div { position: absolute; inset: 0; }
.js .chaos[data-view="with"] .side--without, .js .chaos[data-view="without"] .side--with { opacity: 0; transform: translateY(10px); pointer-events: none; }
html:not(.js) .side--with { margin-top: 24px; }
.wins li { background: rgba(31, 157, 92, 0.09); border-color: rgba(31, 157, 92, 0.25); }
.wins li .ico { color: #6fdca3; }
.calm { height: 100%; display: grid; place-items: center; }
.calm .app { width: min(560px, 100%); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1); position: relative; }
.step__n { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.step__n b { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { font-size: 14.5px; color: var(--muted); margin-top: -8px; }
.step__ui { margin-top: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 12.5px; min-height: 196px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; right: -13px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); z-index: 1;
}
.fld { display: grid; grid-template-columns: 82px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.fld:last-child { border-bottom: 0; }
.fld span { font: 500 11px/1.2 var(--f-mono); color: var(--muted); }
.fld b { font-weight: 600; font-size: 12.5px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gen span { font: 600 11px/1 var(--f-mono); padding: 6px 7px; border-radius: 7px; background: var(--blue-wash); color: var(--blue-deep); }
.js .gen span { opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.js .is-in .gen span, .js .gen.is-in span { opacity: 1; transform: none; }
.tl { position: relative; padding: 26px 4px 6px; }
.tl__axis { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ok) 0 40%, var(--due) 40% 72%, var(--late) 72% 100%); opacity: 0.85; }
.tl__ticks { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--f-mono); color: var(--muted); margin-top: 8px; }
.tl__today { position: absolute; top: 12px; left: 8%; width: 2px; height: 34px; background: var(--ink); transition: left 2.4s var(--ease); }
.tl__today::before { content: "Today"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font: 600 10px/1 var(--f-mono); background: var(--ink); color: #fff; padding: 3px 5px; border-radius: 4px; }
.tl__state { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.tl__state b { font-size: 12.5px; }
.hist { list-style: none; display: grid; gap: 7px; }
.hist li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: start; padding: 7px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.hist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-top: 5px; }
.hist li.x::before { background: var(--blue); }
.hist b { font-size: 12.5px; display: block; }
.hist small { font: 400 10.5px/1.3 var(--f-mono); color: var(--muted); }
.hist em { font: 600 10.5px/1 var(--f-mono); font-style: normal; color: var(--muted); padding-top: 3px; }

/* ==========================================================================
   WHAT CAN YOU TRACK
   ========================================================================== */
.track { margin-top: 44px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.cats { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 96px; }
.cat {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  border: 1px solid transparent; background: transparent; color: var(--on-ink-muted); padding: 14px 14px; border-radius: 14px; font-weight: 600; font-size: 15.5px;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.cat .ico { width: 22px; height: 22px; }
.cat small { margin-left: auto; font: 500 11.5px/1 var(--f-mono); opacity: 0.7; }
.cat:hover { color: var(--on-ink); background: rgba(255, 255, 255, 0.04); }
.cat[aria-selected="true"] { background: var(--ink-3); color: #fff; border-color: rgba(255, 255, 255, 0.1); }
.cat[aria-selected="true"] .ico { color: var(--blue-hi); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trk-panel[hidden] { display: none; }
html:not(.js) .trk-panel, html:not(.js) .duel__panel { display: block !important; margin-bottom: 28px; }
html:not(.js) .trk-panel[hidden] { display: block !important; }
.trk-panel h3 { font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 14px; }
.tile {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; align-content: start;
  transition: border-color var(--t-fast), transform var(--t) var(--ease);
}
.tile:hover { border-color: rgba(91, 127, 255, 0.45); transform: translateY(-2px); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(91, 127, 255, 0.14); color: #c2cfff; display: grid; place-items: center; }
.tile__ico .ico { width: 23px; height: 23px; }
.tile b { font-size: 16px; display: block; }
.tile__what { font-size: 13px; color: var(--on-ink-muted); margin-top: 3px; display: block; }
.tile__int { display: flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--f-mono); color: var(--on-ink); background: rgba(255, 255, 255, 0.05); border-radius: 9px; padding: 8px 10px; }
.tile__int .ico { width: 15px; height: 15px; color: var(--blue-hi); }
.js .trk-panel:not([hidden]) .tile { animation: rowIn 480ms var(--ease) both; }
.js .trk-panel:not([hidden]) .tile:nth-child(2) { animation-delay: 40ms; }
.js .trk-panel:not([hidden]) .tile:nth-child(3) { animation-delay: 80ms; }
.js .trk-panel:not([hidden]) .tile:nth-child(4) { animation-delay: 120ms; }
.js .trk-panel:not([hidden]) .tile:nth-child(5) { animation-delay: 160ms; }
.js .trk-panel:not([hidden]) .tile:nth-child(6) { animation-delay: 200ms; }
.track__note { margin-top: 18px; font-size: 13px; color: var(--on-ink-muted); display: flex; gap: 10px; align-items: flex-start; }
.track__note .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--blue-hi); }

/* ==========================================================================
   DASHBOARD + INDUSTRIES
   ========================================================================== */
.inds { display: flex; gap: 8px; margin-top: 36px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.inds::-webkit-scrollbar { display: none; }
.ind {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); background: var(--card); padding: 10px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.ind .ico { width: 18px; height: 18px; }
.ind:hover { color: var(--text); }
.ind[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-1); }
.ind-line { margin-top: 18px; font-size: 16px; color: var(--muted); min-height: 1.6em; }
.ind-line b { color: var(--text); }
.dash { margin-top: 24px; background: var(--ink-2); color: var(--on-ink); border-radius: var(--r-xl); box-shadow: var(--shadow-ink); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.dash__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.dash__side { border-right: 1px solid var(--ink-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.dash__side span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--on-ink-muted); font-size: 13.5px; font-weight: 500; }
.dash__side span.on { background: rgba(91, 127, 255, 0.16); color: #fff; }
.dash__side .ico { width: 17px; height: 17px; }
.dash__side .grp { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); opacity: 0.6; padding: 16px 10px 6px; }
.dash__main { padding: 20px; display: grid; gap: 14px; min-width: 0; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash__head h3 { font: 600 18px/1.2 var(--f-body); letter-spacing: -0.01em; }
.dash__head small { font: 500 12px/1 var(--f-mono); color: var(--on-ink-muted); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: 14px; padding: 14px; position: relative; overflow: hidden; }
.kpi span { font: 500 11.5px/1.25 var(--f-mono); color: var(--on-ink-muted); display: block; }
.kpi b { font: 700 30px/1 var(--f-display); letter-spacing: -0.02em; display: block; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--blue-hi)); }
.kpi--due { --c: var(--due); }
.kpi--left { --c: #c6a0ff; }
.kpi--next { --c: var(--blue-hi); }
.kpi--done { --c: var(--ok); }
.kpi--late { --c: var(--late); }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.panel { background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: 14px; padding: 14px; min-width: 0; }
.panel__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel__h b { font-size: 13.5px; font-weight: 600; }
.panel__h small { font: 500 11px/1 var(--f-mono); color: var(--on-ink-muted); }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 8px; }
.chart__col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart__bars { display: flex; gap: 3px; align-items: flex-end; height: calc(100% - 18px); width: 100%; justify-content: center; }
.chart__bars i { display: block; width: 42%; max-width: 18px; border-radius: 4px 4px 1px 1px; background: var(--ok); transform-origin: bottom; transition: height 700ms var(--ease); }
.chart__bars i + i { background: var(--late); }
.chart__col small { font: 500 10.5px/1 var(--f-mono); color: var(--on-ink-muted); }
.legend { display: flex; gap: 14px; font: 500 11px/1 var(--f-mono); color: var(--on-ink-muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.mini { list-style: none; display: grid; gap: 2px; }
.mini li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--ink-line); font-size: 13px; }
.mini li:last-child { border-bottom: 0; }
.mini .row__ico { width: 30px; height: 30px; border-radius: 8px; }
.mini .row__ico .ico { width: 16px; height: 16px; }
.mini .t { min-width: 0; }
.mini .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .t small { display: block; font: 400 11px/1.3 var(--f-mono); color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wait { list-style: none; display: grid; gap: 8px; }
.wait li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ink-line); font-size: 13px; }
.wait li b { font: 700 16px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.dash__note { padding: 12px 20px; border-top: 1px solid var(--ink-line); font: 500 11.5px/1.4 var(--f-mono); color: var(--on-ink-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.js .dash.is-swap .kpi b, .js .dash.is-swap .mini, .js .dash.is-swap .wait { opacity: 0.25; transition: opacity 120ms; }
.dash .kpi b, .dash .mini, .dash .wait { transition: opacity 260ms var(--ease); }

/* ==========================================================================
   FEATURES (built in + planned)
   ========================================================================== */
.feat { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.fcard { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.fcard--wide { grid-column: span 3; }
.fcard h3 { font-size: 19px; font-weight: 700; }
.fcard p { font-size: 14.5px; color: var(--muted); }
.fcard__ui { margin-top: auto; padding-top: 8px; }
.fcard a { font-weight: 600; font-size: 14px; color: var(--blue-deep); text-decoration: none; }
.fcard a:hover { text-decoration: underline; }
.board { display: grid; grid-template-columns: 74px repeat(5, 1fr); gap: 4px; font: 500 10.5px/1.2 var(--f-mono); }
.board > span { padding: 6px 4px; color: var(--muted); text-align: center; }
.board > span.tm { text-align: left; }
.board .job { background: var(--blue-wash); color: var(--blue-deep); border-radius: 6px; padding: 6px 5px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .job.b { background: var(--ok-wash); color: var(--ok-text); }
.board .job.c { background: var(--due-wash); color: var(--due-text); }
.board .empty { border: 1px dashed var(--line); border-radius: 6px; }
.perm { width: 100%; border-collapse: collapse; font: 500 12px/1.2 var(--f-mono); }
.perm th, .perm td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.perm th:first-child, .perm td:first-child { text-align: left; }
.perm th { color: var(--muted); font-weight: 500; }
.perm .y { color: var(--ok-text); font-weight: 700; }
.perm .n { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font: 500 12px/1 var(--f-mono); border: 1px solid var(--line); background: var(--paper); padding: 7px 9px; border-radius: 8px; }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }
.exports span { display: inline-flex; gap: 8px; align-items: center; font: 600 12px/1 var(--f-mono); padding: 9px 11px; border-radius: 9px; background: var(--ink); color: #fff; }
.exports span .ico { width: 15px; height: 15px; }
.planned { margin-top: 18px; border: 1.5px dashed rgba(47, 91, 255, 0.35); border-radius: var(--r-lg); padding: 20px; background: rgba(47, 91, 255, 0.03); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.planned h3 { font-size: 18px; }
.planned p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.planned ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.planned li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 14px; font-weight: 600; align-content: start; }
.planned li .ico { color: var(--blue); }

/* ==========================================================================
   COMPARE
   ========================================================================== */
.cmp-wrap { margin-top: 44px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-1); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp thead th { font: 600 12px/1.2 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.cmp thead th.us { color: #fff; background: var(--ink); }
.cmp tbody th { font-weight: 600; width: 26%; }
.cmp td.us { background: rgba(47, 91, 255, 0.05); font-weight: 600; }
.cmp .yes, .cmp .no, .cmp .mid { display: inline-flex; align-items: center; gap: 8px; }
.cmp .yes::before, .cmp .no::before, .cmp .mid::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cmp .yes::before { background: var(--ok); }
.cmp .no::before { background: var(--late); }
.cmp .mid::before { background: var(--due); }

/* ==========================================================================
   TRUST / ORIGIN
   ========================================================================== */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.origin__card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; }
.origin__card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 127, 255, 0.22), transparent); }
.origin__big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-line); border-radius: 16px; overflow: hidden; margin-top: 20px; }
.origin__big div { background: var(--ink-2); padding: 18px; }
.origin__big b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--f-display); letter-spacing: -0.02em; }
.origin__big span { display: block; margin-top: 8px; font-size: 13px; color: var(--on-ink-muted); }
.origin__quote { font: 600 clamp(19px, 2vw, 24px)/1.35 var(--f-display); letter-spacing: -0.015em; }
.origin__by { margin-top: 14px; font: 500 12px/1.4 var(--f-mono); color: var(--on-ink-muted); }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ticks li .ico { color: var(--blue-hi); margin-top: 2px; }
.ink .ticks li span { color: var(--on-ink-muted); }
.ink .ticks li b { color: var(--on-ink); font-weight: 600; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 2px; font: 600 17px/1.35 var(--f-body); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(var(--text), var(--text)) center/11px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center/1.5px 11px no-repeat; transition: transform var(--t) var(--ease), background-color var(--t-fast); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover::after { background-color: rgba(14, 19, 27, 0.05); }
.qa__a { padding: 0 2px 22px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.qa__a p + p { margin-top: 10px; }
.qa__a a { color: var(--blue-deep); font-weight: 600; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; font-stretch: 112%; max-width: 16ch; margin: 18px auto 0; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }
.next { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 56px auto 0; max-width: 920px; text-align: left; counter-reset: n; }
.next li { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 18px; counter-increment: n; }
.next li::before { content: "0" counter(n); font: 600 12px/1 var(--f-mono); color: var(--blue-hi); display: block; margin-bottom: 12px; }
.next b { display: block; font-size: 16px; }
.next span { display: block; color: var(--on-ink-muted); font-size: 14px; margin-top: 6px; }
.alt { margin-top: 26px; font-size: 14px; color: var(--on-ink-muted); }
.alt a { color: var(--on-ink); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 34px; border-top: 1px solid var(--ink-line); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--on-ink); }
.footer .brand small { color: var(--on-ink-muted); }
.footer__desc { margin-top: 14px; max-width: 34ch; }
.footer .fh { font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- sticky mobile CTA ---------- */
.mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(14, 19, 27, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); transform: translateY(140%); transition: transform 420ms var(--ease); }
.mcta.is-on { transform: none; }
.mcta .btn { flex: 1; min-height: 46px; font-size: 14.5px; }
.mcta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); flex: 0 0 auto; }

/* ==========================================================================
   SUB PAGES
   ========================================================================== */
.crumbs { font: 500 12.5px/1.4 var(--f-mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.phero { padding: clamp(40px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.phero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; font-stretch: 110%; margin-top: 18px; max-width: 20ch; }
.phero .lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 62ch; }
.answer { margin-top: 28px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-1); }
.answer small { font: 600 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); display: block; margin-bottom: 8px; }
.answer p { font-size: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font: 500 13px/1 var(--f-mono); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); background: rgba(14, 19, 27, 0.05); }
.frow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.frow:nth-child(even) .frow__ui { order: -1; }
.frow h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-top: 12px; }
.frow p { color: var(--muted); margin-top: 12px; }
.frow ul.ticks li { color: var(--text); font-size: 15px; }
.frow ul.ticks li .ico { color: var(--blue); }
.frow__ui { background: var(--ink-2); border-radius: var(--r-lg); padding: 16px; color: var(--on-ink); box-shadow: var(--shadow-2); min-width: 0; }
.frow__ui.light { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.status-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 56px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 16.5px; color: #2a3140; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.prose a { color: var(--blue-deep); font-weight: 600; }
.prose .src { font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tbl { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { font: 600 11.5px/1.2 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.tbl tr:last-child td { border-bottom: 0; }
.callout { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--due-wash); border: 1px solid rgba(226, 138, 18, 0.3); font-size: 14.5px; color: #5a3a06; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; transition: border-color var(--t-fast), transform var(--t) var(--ease); }
.related a:hover { border-color: var(--blue); transform: translateY(-2px); }
.related b { display: block; font-size: 16px; }
.related span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.mod-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .planned { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .toast { right: 8px; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__item { border-top: 1px solid var(--line); }
  .facts__item:first-child { grid-column: 1 / -1; border-top: 0; }
  .facts__item:nth-child(2) { padding-left: 0; border-left: 0; }
  .chaos { grid-template-columns: 1fr; }
  .chaos__side { min-height: 0; }
  .js .chaos__side { display: grid; }
  .js .chaos__side > div { position: relative; inset: auto; grid-area: 1 / 1; }
  .track { grid-template-columns: 1fr; }
  .cats { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { width: auto; flex: none; padding: 11px 14px; font-size: 14.5px; }
  .cat small { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard, .fcard--wide { grid-column: span 1; }
  .planned ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .origin, .faq, .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .frow__ui { order: 0; }
  .faq__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero__kicker { font-size: 12.5px; }
  .hero__kicker b { white-space: nowrap; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .feed { grid-template-columns: 1fr; gap: 12px; }
  .feed__rail { flex-direction: row; padding: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .feed__rail::-webkit-scrollbar { display: none; }
  .feed__chip { width: 46px; height: 46px; flex: none; border-radius: 13px; }
  .feed__chip[data-tip]::after { display: none; }
  .feed__wires { display: none; }
  .duel__list { min-height: 0; padding: 6px 4px 8px; }
  .row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 10px 8px; }
  .row__ico { width: 34px; height: 34px; border-radius: 10px; }
  .row__date { display: none; }
  .toast { position: relative; right: auto; bottom: auto; width: auto; margin: -22px 14px 0; }
  .app__foot span:last-child { display: none; }
  .scraps { min-height: 520px; }
  .scrap--sheet { width: 88%; }
  .scrap--wa { width: 70%; top: 160px; right: 0; }
  .scrap--card { right: 0; top: 44%; width: 30%; background: #f3ead6; color: #4a3b22; padding: 12px 14px; transform: rotate(-3deg); font: 500 13px/1.6 "Bradley Hand", "Segoe Print", var(--f-body); display: grid; border-radius: 4px; }
.scrap--card .smudge { opacity: 0.45; filter: blur(0.6px); }
.scrap--note { width: 52%; bottom: 96px; left: 0; }
  .scrap--cal { width: 56%; bottom: 0; }
  .scrap--mind { display: none; }
  .scrap--card { top: 300px; right: auto; left: 2%; width: 50%; }
  .chaos__stage { min-height: 520px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
  .tile__top { display: contents; }
  .tile__top .pill { display: none; }
  .tile__int { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:first-child { grid-column: 1 / -1; }
  .dash { border-radius: var(--r-lg); margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .dash__main { padding: 14px; }
  .feat { grid-template-columns: 1fr; }
  .planned ul { grid-template-columns: 1fr 1fr; }
  .next { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .mcta { display: flex; }
  .footer { padding-bottom: 100px; }
  .cta .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .feed__wires .pulse { display: none; }
}

/* ---------- print ---------- */
@media print {
  .nav, .mcta, .switch, .feed__rail, .feed__wires { display: none !important; }
  .ink, .dash, .app { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}
.ink .gen span { background: rgba(91, 127, 255, 0.18); color: #b4c4ff; }
