/* ToolTrack marketing site. Every value comes from the ToolTrack design system (tokens.json, bundle.css):
   CoreNode's bones (square, ink, 2px rules, hard offset shadow) with hi-vis orange as the one signal. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --hivis: #ff5f1f; --hivis-press: #ff7a42; --on-hivis: #15171c; --primary-edge: #15171c;
  --ink: #15171c; --ink-2: #23262e; --ink-line: #3a3e48; --on-ink: #ffffff; --on-ink-muted: #b3b6be;
  --canvas: #f3f3ee; --surface: #ffffff; --surface-sunken: #ebebe4;
  --text: #15171c; --text-muted: #585d69; --line: #e1e1da; --line-strong: #15171c; --focus: #15171c;
  --status-ok: #1d7a44; --status-ok-surface: #dff1e5;
  --status-use: #2458c2; --status-use-surface: #e1e9fa;
  --status-due: #8f5c00; --status-due-surface: #fcefc6;
  --status-stop: #c0281b; --status-stop-surface: #fce2de;
  --status-repair: #6844bd; --status-repair-surface: #ebe5f9;
  --status-lost: #15171c; --on-status-lost: #ffffff;
  --shadow-lift: 4px 4px 0 0 rgba(21,23,28,0.35);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --control-md: 40px; --control-lg: 56px;
  --border-hair: 1px; --border-strong: 2px; --border-focus: 3px; --border-nav: 4px;
  --wrap: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hivis: #ff6a2b; --hivis-press: #ff8a57; --primary-edge: #ff6a2b;
    --canvas: #0e0f12; --surface: #181a1f; --surface-sunken: #22252c;
    --text: #f1f1ec; --text-muted: #a3a8b3; --line: #2c3038; --line-strong: #8a8f99; --focus: #ff8a57;
    --status-ok: #5cc98a; --status-ok-surface: #173323;
    --status-use: #86aeff; --status-use-surface: #1b2a48;
    --status-due: #f2b84a; --status-due-surface: #382c0f;
    --status-stop: #ff7d6e; --status-stop-surface: #42201c;
    --status-repair: #b49ef5; --status-repair-surface: #2b2446;
    --status-lost: #f1f1ec; --on-status-lost: #15171c;
    --shadow-lift: 4px 4px 0 0 rgba(138,143,153,0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: var(--border-focus) solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.muted { color: var(--text-muted); }
.code { font-family: var(--font-mono); font-size: 0.86em; font-weight: 500; letter-spacing: .02em; }
.overline { font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--hivis); color: var(--on-hivis); font-weight: 700; }
.skip:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Logo: asset tag with a hivis eyelet ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.logo-mark { position: relative; width: 24px; height: 24px; flex: none; background: var(--ink); clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%, 0 29%); }
.logo-mark::after { content: ""; position: absolute; left: 20%; top: 20%; width: 23%; height: 23%; border-radius: 50%; background: var(--hivis); }
.on-ink .logo-mark { background: var(--hivis); }
.on-ink .logo-mark::after { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-4); font: 600 15px/1 var(--font-body); white-space: nowrap; text-decoration: none; color: var(--text); background: var(--surface); border: var(--border-strong) solid var(--line-strong); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn-lg { height: var(--control-lg); padding: 0 var(--space-5); font-size: 17px; font-weight: 700; }
.btn-primary { background: var(--hivis); color: var(--on-hivis); border-color: var(--primary-edge); }
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translate(-2px, -2px); }
.btn-primary:active { background: var(--hivis-press); box-shadow: none; transform: none; }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--surface-sunken); }
.on-ink .btn-line { color: var(--on-ink); border-color: var(--on-ink-muted); }
.on-ink .btn-line:hover { background: var(--ink-2); }
.on-ink .btn-primary { border-color: var(--hivis); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Header (the ink app bar) ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-5); height: 64px; }
.site-nav { display: flex; align-items: stretch; gap: 0; height: 100%; margin-left: var(--space-4); }
.site-nav a { display: flex; align-items: center; padding: 0 var(--space-3); font-size: 15px; font-weight: 600; color: var(--on-ink-muted); text-decoration: none; border-bottom: var(--border-nav) solid transparent; border-top: var(--border-nav) solid transparent; }
.site-nav a:hover { color: var(--on-ink); }
.site-nav a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--hivis); }
.site-head .spacer { flex: 1; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--ink-2); border: var(--border-hair) solid var(--ink-line); color: var(--on-ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: square; fill: none; }
@media (max-width: 900px) {
  .site-head .wrap { gap: var(--space-3); }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; margin: 0; flex-direction: column; background: var(--ink); border-top: var(--border-hair) solid var(--ink-line); padding: var(--space-2) 0 var(--space-4); }
  .site-nav.open { display: flex; }
  .site-nav a { height: 52px; padding: 0 var(--space-5); border: 0; border-left: var(--border-nav) solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--hivis); }
  .menu-btn { display: inline-flex; }
  .site-head .head-cta { height: 40px; padding: 0 var(--space-3); font-size: 14px; }
}
@media (max-width: 400px) { .site-head .logo { font-size: 19px; } .site-head .head-cta { padding: 0 10px; } }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section + .section { padding-top: 0; }
.rule { border-top: var(--border-strong) solid var(--line-strong); padding-top: var(--space-5); }
.section-head { display: grid; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-6); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { font-size: 19px; color: var(--text-muted); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-muted); max-width: 640px; }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-7); }
.hero .wrap { display: grid; gap: var(--space-6); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .94; letter-spacing: -0.04em; max-width: 13ch; }
.hero .lede { margin-top: var(--space-2); }
.page-hero { padding: var(--space-8) 0 var(--space-7); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .96; letter-spacing: -0.035em; max-width: 16ch; margin-top: var(--space-3); }
.page-hero .lede { margin-top: var(--space-4); }
.page-hero .actions { margin-top: var(--space-5); }

/* Hero split: words left, pegboard art right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6); align-items: end; }
.hero-split .actions { margin-top: var(--space-5); }
.peg { width: 100%; max-width: 480px; justify-self: end; }
.peg .hv { fill: var(--hivis); } .peg .hp { fill: var(--hivis-press); } .peg .board { fill: var(--line-strong); } .peg .hole { fill: var(--canvas); } .peg .eye { fill: var(--ink); }
@media (max-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1fr); } .peg { justify-self: start; max-width: 360px; } }

/* Status strip: the product's vocabulary */
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { --dot: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--text); background: var(--surface-sunken); }
.badge::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--dot); }
.badge.ok { background: var(--status-ok-surface); --dot: var(--status-ok); }
.badge.use { background: var(--status-use-surface); --dot: var(--status-use); }
.badge.use::before { height: 9px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.badge.due { background: var(--status-due-surface); --dot: var(--status-due); }
.badge.due::before { width: 10px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.badge.stop { background: var(--status-stop-surface); --dot: var(--status-stop); }
.badge.stop::before { width: 9px; height: 9px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.badge.repair { background: var(--status-repair-surface); --dot: var(--status-repair); }
.badge.repair::before { width: 10px; height: 10px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.badge.lost { background: var(--status-lost); color: var(--on-status-lost); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge.lost::before { display: none; }

/* Tag chip */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--text); background: var(--surface); border: var(--border-hair) solid var(--line-strong); white-space: nowrap; }
.tag::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%, 0 29%); }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-top: var(--border-strong) solid var(--line-strong); }
.stat { padding: var(--space-4) var(--space-5) var(--space-5); }
.stat + .stat { border-left: var(--border-hair) solid var(--line); }
.stat .v { margin-top: var(--space-2); font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .d { margin-top: var(--space-2); font-size: 14px; color: var(--text-muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { padding: var(--space-4); } .stat .v { font-size: 28px; white-space: nowrap; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: var(--border-hair) solid var(--line); } }

/* Feature grid: ruled columns, not cards */
.grid { display: grid; gap: var(--space-6) var(--space-5); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.feat { border-top: var(--border-strong) solid var(--line-strong); padding-top: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.feat h3 { font-size: 22px; letter-spacing: -0.02em; }
.feat p { color: var(--text-muted); font-size: 16px; }
.feat .icon { width: 28px; height: 28px; stroke: var(--text); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; fill: none; margin-bottom: var(--space-1); }
.feat ul { margin: var(--space-1) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.feat li { position: relative; padding-left: 18px; }
.feat li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--text); }

/* Showcase: screenshot + words */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-7); align-items: center; }
.showcase.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.showcase.flip .words { order: 2; }
.showcase .words { display: grid; gap: var(--space-4); align-content: start; }
.showcase h2, .showcase h3 { font-size: clamp(28px, 3.4vw, 40px); }
.showcase p { color: var(--text-muted); font-size: 18px; }
.showcase.phone-left { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
@media (max-width: 900px) { .showcase, .showcase.flip, .showcase.phone-left { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } .showcase.flip .words { order: 0; } }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: 16px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--status-ok); }

/* Browser frame for desktop screenshots */
.browser { background: var(--surface); border: var(--border-strong) solid var(--line-strong); }
.browser .bar { display: flex; align-items: center; gap: var(--space-3); height: 34px; padding: 0 var(--space-3); background: var(--ink); color: var(--on-ink-muted); font: 500 12px/1 var(--font-mono); }
.browser .bar i { width: 10px; height: 10px; background: var(--ink-line); }
.browser .bar span { margin-left: var(--space-2); padding: 5px 10px; background: var(--ink-2); border: var(--border-hair) solid var(--ink-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }
figure { margin: 0; }
figcaption { margin-top: var(--space-2); font-size: 13px; color: var(--text-muted); }

/* Phone frame: square, ink bezel */
.phone { width: 100%; max-width: 320px; padding: 10px; background: var(--ink); border: var(--border-strong) solid var(--ink); box-shadow: 8px 8px 0 0 var(--line-strong); }
.phone img { width: 100%; height: auto; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.phones .phone { max-width: none; box-shadow: 6px 6px 0 0 var(--line-strong); }
@media (max-width: 760px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } .phones > :nth-child(3) { display: none; } }

/* Hero screenshot with a phone overlapping */
.duo { position: relative; padding-right: 14%; padding-bottom: var(--space-6); }
.duo .phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 130px; max-width: 250px; padding: 6px; }
@media (max-width: 620px) { .duo { padding-right: 0; padding-bottom: 0; } .duo .phone { display: none; } }

/* Ink band (used once per page, for the call to action) */
.band { background: var(--ink); color: var(--on-ink); padding: var(--space-8) 0; }
@media (prefers-color-scheme: dark) { .band { border-top: var(--border-hair) solid var(--ink-line); } }
.band h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; }
.band p { color: var(--on-ink-muted); font-size: 19px; max-width: 620px; margin-top: var(--space-4); }
.band .actions { margin-top: var(--space-6); }

/* Code sample */
.codeblock { margin: 0; padding: var(--space-5); background: var(--ink); color: var(--on-ink); font: 400 14px/1.6 var(--font-mono); overflow-x: auto; border: var(--border-strong) solid var(--ink); }
.codeblock .c { color: var(--on-ink-muted); }
.codeblock .k { color: var(--hivis-press); }
.codeblock .s { color: #9fd8b4; }

/* Chat transcript (AI section) */
.chat { background: var(--surface); border-top: var(--border-strong) solid var(--line-strong); padding: var(--space-5); display: grid; gap: var(--space-4); }
.chat .msg { display: grid; gap: var(--space-1); }
.chat .who { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.chat .you { justify-self: end; max-width: 85%; padding: var(--space-3) var(--space-4); background: var(--surface-sunken); }
.chat .ai { max-width: 92%; }
.chat .tool { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 13px/1 var(--font-mono); color: var(--text-muted); padding: 6px 10px; border: var(--border-hair) dashed var(--line-strong); justify-self: start; }
.chat table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: var(--space-2); }
.chat th { text-align: left; padding: 8px var(--space-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-sunken); }
.chat td { padding: 8px var(--space-3); border-bottom: var(--border-hair) solid var(--line); }

/* Steps list */
.steps { counter-reset: s; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-top: var(--border-hair) solid var(--line); }
.steps li:first-child { border-top: var(--border-strong) solid var(--line-strong); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 28px/1 var(--font-display); letter-spacing: -0.03em; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--text-muted); font-size: 16px; margin-top: 4px; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; border-top: var(--border-strong) solid var(--line-strong); }
.table th { text-align: left; padding: 10px var(--space-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-sunken); border-bottom: var(--border-hair) solid var(--line); }
.table td { padding: 12px var(--space-3); border-bottom: var(--border-hair) solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Sub-nav on the features page */
.jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.jump a { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3); font-size: 14px; font-weight: 600; text-decoration: none; border: var(--border-hair) solid var(--line-strong); background: var(--surface); }
.jump a:hover { background: var(--surface-sunken); }
[id] { scroll-margin-top: 88px; }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); padding: var(--space-7) 0 var(--space-6); font-size: 15px; border-top: var(--border-nav) solid var(--hivis); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.site-foot h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink); margin-bottom: var(--space-3); }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.site-foot a { color: var(--on-ink-muted); text-decoration: none; }
.site-foot a:hover { color: var(--on-ink); text-decoration: underline; }
.site-foot .logo { color: var(--on-ink); }
.site-foot .blurb { margin-top: var(--space-3); max-width: 340px; }
.site-foot .legal { margin-top: var(--space-7); padding-top: var(--space-4); border-top: var(--border-hair) solid var(--ink-line); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; font-size: 14px; }
.site-foot .legal strong { color: var(--on-ink); font-weight: 600; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* "A product of CoreNode" chip */
.made-by { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.made-by b { color: var(--text); font-weight: 700; }
.made-by:hover b { text-decoration: underline; }
.made-by .sq { width: 10px; height: 10px; background: var(--text); }

/* ---------- Form (design system FormField + Banner) ---------- */
.form { display: grid; gap: var(--space-5); background: var(--surface); border-top: var(--border-strong) solid var(--line-strong); padding: var(--space-6) var(--space-5); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 620px) { .form { padding: var(--space-5) var(--space-4); } .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-size: 15px; line-height: 1.3; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 var(--space-3); font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--surface); border: var(--border-strong) solid var(--line-strong); border-radius: 0; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { height: auto; min-height: 128px; padding: 10px var(--space-3); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: var(--border-focus) solid var(--focus); outline-offset: 2px; }
.field .hint { font-size: 14px; color: var(--text-muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form .submit .hint { font-size: 14px; color: var(--text-muted); max-width: 46ch; }
.btn[disabled] { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--line); box-shadow: none; transform: none; cursor: progress; }

.banner { --dot: var(--text-muted); display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; padding: var(--space-4); background: var(--surface); border: var(--border-strong) solid var(--line-strong); }
.banner::before { content: ""; width: 12px; height: 12px; margin-top: 6px; background: var(--dot); }
.banner h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.banner p { font-size: 16px; }
.banner.ok { background: var(--status-ok-surface); border-color: var(--status-ok); --dot: var(--status-ok); }
.banner.stop { background: var(--status-stop-surface); border-color: var(--status-stop); --dot: var(--status-stop); }
.banner.stop::before { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.banner[hidden], .form[hidden] { display: none; }
.banner[hidden]:target { display: grid; } /* shown without JavaScript after the form posts back */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
