/* PanelWorx landing page. Brand: panel black, paper, breaker yellow. Archivo expanded for display, IBM Plex for the
   tool voice, Barlow Condensed only inside the customer-mode mockups (it's the proposal's own type). */

:root {
  --ink: #141518;
  --ink-2: #1a1f25;
  --ink-3: #222932;
  --ink-line: #2a3139;
  --paper: #f6f6f3;
  --paper-2: #ecebe5;
  --white: #ffffff;
  --rule: #d9d8d1;
  --text: #141518;
  --muted: #565f69;
  --muted-dark: #8b96a3;
  --on-dark: #e9edf1;
  --yellow: #ffc629;
  --good: #4cc38a;
  --danger: #ff6b5b;
  --danger-ink: #c2372a;
  --brand: #0f5fa8;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --barlow: 'Barlow', system-ui, sans-serif;
  --gutter: 24px;
  --max: 1200px;
}

*,
*::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(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.amber { color: var(--yellow); }
.red { color: var(--danger); }
.good { color: var(--good); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  font: 700 16px/1 var(--body); letter-spacing: 0.01em; text-decoration: none;
  border: 2px solid transparent; border-radius: 0;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd35c; }
.btn-ghost { border-color: #3a424c; color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }

/* Announcement bar */
.announce { background: var(--yellow); color: var(--ink); font-size: 14px; }
.announce-in { display: flex; align-items: center; gap: 12px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.announce .tag { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 5px 7px; }
.announce .announce-link { margin-left: auto; font-weight: 700; white-space: nowrap; text-decoration: none; border-bottom: 2px solid var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20, 21, 24, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--ink-line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-logo img { width: 168px; height: auto; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a, .link-quiet { color: #b9c1ca; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .link-quiet:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--ink-line); padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--on-dark); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--ink-line); padding: 8px var(--gutter) 16px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--on-dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--ink-line); }

/* Hero */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden;
  padding: 80px 0 96px;
}
/* A faint panel-slot grid behind the hero. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--yellow); flex: none; }
.hero h1 {
  font-family: var(--display); font-weight: 900; font-stretch: 110%;
  font-size: clamp(38px, 4.6vw, 64px); line-height: .98; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--white);
}
.lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #c3cad2; max-width: 32em; }
/* The three-beat promise, set as the first thing read under the headline. */
.lead-steps { margin-top: 28px; font: 800 clamp(20px, 2vw, 26px)/1.25 var(--display); font-stretch: 112%; color: var(--white); }
.lead-steps span { display: block; }
.lead-steps span:last-child { color: var(--yellow); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-aside { margin-top: 28px; padding-left: 14px; border-left: 2px solid var(--ink-line); max-width: 30em; font-size: 14.5px; line-height: 1.5; color: var(--muted-dark); }

.hero-visual { position: relative; }
.hero-note { margin-top: 14px; line-height: 1.5; color: var(--muted-dark); font-size: 11px; }

/* The job builder: the app's own "pick the work" choice, live. */
.builder { background: var(--ink-2); border: 1px solid var(--ink-line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); color: var(--on-dark); }
.b-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--ink-line); color: var(--muted-dark); font-size: 11px; }
.b-block { padding: 18px 20px 20px; }
.b-step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted-dark); font-size: 11px; }
.b-step i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 700 11px/1 var(--mono); flex: none; }
.b-scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scope {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center;
  min-height: 64px; padding: 11px 14px; text-align: left;
  background: var(--ink); color: var(--on-dark); border: 1.5px solid var(--ink-line); border-radius: 10px;
  font-family: var(--body); transition: border-color .15s, background-color .15s;
}
button.scope { cursor: pointer; }
button.scope:hover { border-color: #46505b; }
.scope-box { grid-row: span 2; width: 22px; height: 22px; border: 1.5px solid #4a535d; border-radius: 6px; position: relative; flex: none; }
.scope b { font: 600 15px/1.2 var(--body); color: var(--white); }
.scope small { font-size: 12px; line-height: 1.35; color: var(--muted-dark); }
.scope[aria-pressed="true"], .scope.on { border-color: var(--yellow); background: #2a2616; }
.scope[aria-pressed="true"] .scope-box, .scope.on .scope-box { background: var(--yellow); border-color: var(--yellow); }
.scope[aria-pressed="true"] .scope-box::after, .scope.on .scope-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.b-rule { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted-dark); }

.b-divide { display: flex; align-items: center; gap: 12px; padding: 0 20px; color: var(--yellow); font-size: 11.5px; }
.b-divide::before, .b-divide::after { content: ''; flex: 1; height: 1px; background: var(--ink-line); }
.b-divide span::after { content: ' ↓'; }
.b-out { padding: 18px 20px 20px; }
.b-empty { padding: 30px 0; text-align: center; color: var(--muted-dark); font-size: 14px; }
.b-cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; }
.b-quote { border-left: 1px solid var(--ink-line); padding-left: 22px; }
.b-walk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.b-walk li { padding-left: 12px; border-left: 2px solid var(--ink-line); }
.b-walk li:first-child { border-left-color: var(--yellow); }
.b-walk b { display: block; font: 600 14px/1.3 var(--body); color: var(--white); }
.b-walk em { display: block; font-style: normal; font-size: 12px; line-height: 1.4; color: var(--muted-dark); }
.b-lines { list-style: none; margin: 0; padding: 0; }
.b-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ink-line); font-size: 13.5px; color: #c3cad2; }
.b-lines b { font: 600 14px/1.2 var(--mono); color: var(--white); white-space: nowrap; }
.b-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.b-total .mono { font-size: 11.5px; color: var(--muted-dark); }
.b-total b { font: 800 28px/1 var(--display); font-stretch: 112%; color: var(--yellow); transition: color .3s; }
.b-total b.flash { color: var(--white); }
.b-pkg { margin-top: 11.5px; font-size: 11.5px; line-height: 1.5; color: var(--muted-dark); text-transform: none; letter-spacing: .02em; }

/* Customer-mode bits reused in the example job */
.cm-logo { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; color: var(--brand); font: 800 15px/1 var(--cond); }
.cm-sign { display: flex; align-items: center; justify-content: center; min-height: 38px; background: var(--yellow); color: #0e1216; font: 800 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Sections ---------- */
.section-head { max-width: 780px; }
.kicker { color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.kicker::before { content: ''; width: 10px; height: 10px; background: var(--yellow); }
h2 {
  font-family: var(--display); font-weight: 850; font-stretch: 118%;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.015em;
}
.section-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40em; }
.on-dark .kicker { color: var(--muted-dark); }
.on-dark h2 { color: var(--white); }
.on-dark .section-lead { color: #b3bcc6; }

.pillars { padding: 112px 0 96px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.pillar { padding: 28px 32px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--rule); }
.pillar-no { color: var(--muted); font-size: 13px; }
.pillar h3 { font: 800 24px/1.15 var(--display); font-stretch: 112%; }
.pillar p { color: var(--muted); }

.stats { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid div { padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; }
.stats-grid div + div { border-left: 1px solid var(--rule); }
.stats-grid div:first-child { padding-left: 0; }
.stats-grid b { font: 900 64px/0.9 var(--display); font-stretch: 125%; }
.stats-grid span { color: var(--muted); font-size: 15px; line-height: 1.45; }

.feature { padding: 112px 0; }
.feature-alt { background: var(--paper-2); }
.feature-dark { background: var(--ink); color: var(--on-dark); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-visual { order: 1; }

.checks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; }
.checks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--rule); line-height: 1.5; font-size: 16px; }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.checks code { display: inline-block; margin-left: 6px; font-size: 11.5px; letter-spacing: .03em; color: var(--muted); background: rgba(20,21,24,.06); padding: 1px 6px; white-space: nowrap; }

.note { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--yellow); background: var(--white); color: var(--muted); font-size: 15px; }

/* Dark tool panel used in feature visuals */
.panel-dark { background: var(--ink); color: var(--on-dark); border: 1px solid var(--ink-line); }
.shot { padding: 18px; box-shadow: 0 30px 60px -30px rgba(20,21,24,.5); }
.shot-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted-dark); padding-bottom: 12px; }

/* Distributor hot sheet */
.review, .hotsheet { background: var(--ink-2); border: 1px solid var(--ink-line); }
.review-head { color: var(--white); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ink-line); font-weight: 600; flex-wrap: wrap; }
.review-head .mono { font-size: 10.5px; color: var(--muted-dark); }
.hotsheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hotsheet th, .hotsheet td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--ink-line); }
.hotsheet thead th { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.hotsheet th:first-child { text-align: left; }
.hotsheet tbody th { font-weight: 500; color: var(--on-dark); }
.hotsheet tbody th small { display: block; font: 500 10.5px/1.3 var(--mono); color: var(--muted-dark); }
.hotsheet td { font: 500 14px/1 var(--mono); color: #b9c1ca; }
.hotsheet td.best { color: var(--ink); background: var(--yellow); font-weight: 600; }
.hotsheet td.miss { font-size: 10.5px; color: var(--muted-dark); }
.hs-foot { padding: 14px; font-size: 10.5px; color: var(--muted-dark); }

/* Paperwork */
.docs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; align-items: start; }
.doc a { display: block; cursor: zoom-in; }
.doc { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: 12px 12px 0; box-shadow: 0 24px 48px -30px rgba(20,21,24,.45); transition: transform .25s; }
.doc:hover { transform: translateY(-6px); }
.doc img { width: 100%; height: 300px; object-fit: contain; object-position: top; background: #fff; }
.doc figcaption { border-top: 1px solid var(--rule); margin: 12px -12px 0; padding: 12px; font-size: 11px; color: var(--text); display: flex; justify-content: space-between; }
.doc figcaption::after { content: 'Open ↗'; color: var(--muted); }
.doc-b { margin-top: 28px; }
.doc-c { margin-top: 10px; }
.doc-d { margin-top: 38px; }
.packets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.packets article { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--rule); }
.packets article:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.packets h3 { font: 700 18px/1.3 var(--body); margin-bottom: 8px; }
.packets p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Load list */
.loadlist { font-size: 14px; }
.ll-bar { height: 4px; background: var(--ink-line); margin-bottom: 8px; }
.ll-bar i { display: block; height: 100%; width: var(--w); background: var(--yellow); }
.ll-group { font-size: 10.5px; color: var(--muted-dark); padding: 14px 0 6px; }
.ll-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; background: var(--ink-2); margin-top: 4px; border-radius: 8px; }
.ll-row i { width: 20px; height: 20px; border: 1.5px solid #4a535d; border-radius: 5px; flex: none; position: relative; }
.ll-row.done i { background: var(--yellow); border-color: var(--yellow); }
.ll-row.done i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ll-row.done span { color: var(--muted-dark); text-decoration: line-through; text-decoration-color: #4a535d; }
.ll-row span { flex: 1; }
.ll-row code { font-size: 11.5px; color: var(--yellow); white-space: nowrap; }

/* Solar */
.calc { margin: 0; background: var(--ink-2); border-radius: 10px; padding: 6px 16px; }
.calc div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.calc div + div { border-top: 1px solid var(--ink-line); }
.calc dt { color: #b9c1ca; }
.calc dd { margin: 0; font: 600 15px/1.2 var(--mono); color: var(--white); }
.calc .sum dt { color: var(--white); font-weight: 600; }
.calc .good dd, .calc .good dt { color: var(--good); }
.est { margin-top: 14px; border-top: 3px solid var(--yellow); background: var(--ink-2); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.est .mono { font-size: 10.5px; color: var(--muted-dark); }
.est b { font: 800 32px/1 var(--display); font-stretch: 112%; color: var(--white); }
.est small { font-size: 12.5px; color: var(--muted-dark); }

/* Integrations */
.integ-label { color: var(--muted); margin-bottom: 14px; }
.integ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.integ div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.integ div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
.integ b { font: 800 19px/1.2 var(--display); font-stretch: 112%; }
.integ span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--ink-line); }
.sec-grid p { color: #a6afb9; font-size: 15px; line-height: 1.55; }
.sec-grid > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--ink-line); }
.sec-grid > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.sec-grid h3 { font: 700 17px/1.3 var(--body); color: var(--white); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.sec-grid h3::before { content: ''; width: 8px; height: 8px; background: var(--yellow); flex: none; }

/* Coverage */
.coverage { padding: 96px 0; background: var(--yellow); }
.coverage-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.coverage .kicker { color: var(--ink); }
.coverage .kicker::before { background: var(--ink); }
.coverage .section-lead { margin-top: 0; color: var(--ink); }
.cities { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cities li { border: 1.5px solid var(--ink); padding: 7px 10px; font-size: 11.5px; }

/* Standards strip (sits under the local-rules section) */
/* Standards strip */
.standards { position: relative; margin-top: 72px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--st-line, var(--ink-line)); }
.standards-label { color: var(--muted-dark); margin-bottom: 18px; }
.standards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.standards li { padding: 4px 18px; border-left: 1px solid var(--st-line, var(--ink-line)); display: flex; flex-direction: column; gap: 4px; }
.standards li:first-child { padding-left: 0; border-left: 0; }
.standards b { font: 800 15px/1.2 var(--display); font-stretch: 112%; color: var(--white); letter-spacing: .01em; }
.standards span { font-size: 13px; line-height: 1.4; color: var(--muted-dark); }
.standards.on-paper { --st-line: var(--rule); margin-top: 72px; padding-top: 0; padding-bottom: 0; border-top: 0; }
.standards.on-paper .standards-label { color: var(--muted); }
.standards.on-paper b { color: var(--text); }
.standards.on-paper span { color: var(--muted); }

/* ---------- How it works: three steps ---------- */
.how { padding: 112px 0 104px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); }
.step-no { color: var(--muted); font-size: 13px; }
.step h3 { font: 800 24px/1.15 var(--display); font-stretch: 112%; }
.step p { color: var(--muted); margin-bottom: 12px; }
.step-vis { margin-top: auto; min-height: 310px; padding: 16px; background: var(--ink); border: 1px solid var(--ink-line); display: flex; flex-direction: column; justify-content: center; box-shadow: 0 30px 60px -36px rgba(20,21,24,.6); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scope-grid .scope { min-height: 60px; padding: 10px 12px; }
.scope-grid .scope-box { grid-row: auto; }

.walk-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.walk-mini li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--ink-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.walk-mini i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.walk-mini b { font-weight: 600; color: var(--white); }
.walk-mini em { font: 500 10.5px/1.3 var(--mono); letter-spacing: .02em; color: var(--muted-dark); text-align: right; font-style: normal; }
.walk-mini .shared em { color: var(--yellow); }
.walk-mini .skip i { background: transparent; box-shadow: inset 0 0 0 1.5px #4a535d; }
.walk-mini .skip b { color: var(--muted-dark); text-decoration: line-through; text-decoration-color: #4a535d; }

.mini-prop { background: #edeff1; color: #0e1216; font-family: var(--barlow); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; border-top: 4px solid var(--yellow); }
.mp-eyebrow { font: 700 10px/1 var(--barlow); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.mp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid #d3d8dd; }
.mp-row em, .mp-total em { font: 700 15px/1 var(--cond); font-style: normal; }
.mp-total { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 var(--barlow); text-transform: uppercase; letter-spacing: .08em; }
.mp-total em { font-size: 26px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark); background: var(--ink-2); border: 1px solid var(--ink-line); padding: 7px 8px; }

/* ---------- Example job ---------- */
.example { background: var(--ink); color: var(--on-dark); padding: 112px 0 104px; }
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; }
.node { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; background: var(--ink-2); border: 1px solid var(--ink-line); }
/* The yellow arrow that feeds each stage into the next. */
.node + .node::before {
  content: ''; position: absolute; left: -27px; top: 22px; width: 20px; height: 13px; background: var(--yellow);
  clip-path: polygon(0 34%, 55% 34%, 55% 0, 100% 50%, 55% 100%, 55% 66%, 0 66%);
}
.node-in { border-top: 3px solid var(--yellow); }
.node-tag { color: var(--muted-dark); font-size: 10.5px; }
.node h3 { font: 700 17px/1.25 var(--body); color: var(--white); }
.needs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.needs li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; color: var(--muted-dark); }
.needs i { width: 20px; height: 20px; border: 1.5px solid #4a535d; border-radius: 5px; flex: none; position: relative; }
.needs .on { color: var(--white); font-weight: 500; }
.needs .on i { background: var(--yellow); border-color: var(--yellow); }
.needs .on i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.node-list, .node-docs { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #c3cad2; }
.node-list li, .node-docs li { padding: 7px 0; border-top: 1px solid var(--ink-line); line-height: 1.35; }
.node-docs li { position: relative; padding-left: 16px; }
.node-docs li::before { content: ''; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; background: var(--yellow); }
.node-est { margin: 0; }
.node-est div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--ink-line); font-size: 14px; }
.node-est dt { color: #c3cad2; }
.node-est dd { margin: 0; font: 600 14px/1.3 var(--mono); color: var(--white); }
.node-est .sum dt { color: var(--white); font-weight: 600; }
.node-est .sum dd { color: var(--yellow); }
.node-foot { margin-top: auto; padding-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted-dark); }
.node-paper { background: #edeff1; border-color: #edeff1; }
.node-paper .node-tag { color: #5b6570; }
.prop { flex: 1; display: flex; flex-direction: column; background: #0e1216; color: #fff; font-family: var(--barlow); }
.prop-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--brand); }
.prop-bar b { font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.prop-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px; }
.prop-eyebrow { font: 700 10px/1 var(--barlow); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.prop-body p { font-size: 14.5px; line-height: 1.35; }
.prop-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 var(--barlow); text-transform: uppercase; letter-spacing: .08em; }
.prop-total em { font: 800 30px/1 var(--cond); font-style: normal; color: var(--yellow); letter-spacing: 0; }
.flow-note { margin-top: 44px; max-width: 34em; font: 700 clamp(18px, 2vw, 22px)/1.4 var(--body); color: var(--white); }
.cta-row { margin-top: 24px; }

/* ---------- Platform: four groups ---------- */
.platform { padding: 112px 0; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.group { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 12px; border-left: 1px solid var(--rule); }
.group:first-child { padding-left: 0; border-left: 0; }
.group:last-child { padding-right: 0; }
.group-tag { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.group-tag::before { content: ''; width: 10px; height: 10px; background: var(--yellow); }
.group h3 { font: 800 21px/1.15 var(--display); font-stretch: 110%; }
.g-vis { height: 104px; padding: 12px; background: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 8px; color: var(--on-dark); }
.g-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.g-tiers span { display: flex; flex-direction: column; gap: 3px; padding: 6px 7px; background: var(--ink-2); border: 1px solid var(--ink-line); font: 500 9.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dark); }
.g-tiers b { font: 600 12px/1.2 var(--mono); letter-spacing: 0; color: var(--white); }
.g-tiers .on { border-color: var(--yellow); }
.g-signed { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--good); }
.g-signed i { width: 12px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg) translate(1px, -2px); }
.g-margin { display: flex; flex-direction: column; gap: 6px; }
.g-margin .mono { font-size: 10px; color: var(--muted-dark); }
.g-margin b { font: 600 24px/1 var(--mono); color: var(--good); }
.g-margin i { display: block; height: 4px; background: var(--ink-line); position: relative; }
.g-margin i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 2); background: var(--good); }
.g-margin small { font: 500 10px/1 var(--mono); color: var(--muted-dark); }
.g-docs { display: flex; gap: 6px; }
.g-docs span { flex: 1; padding: 22px 4px 8px; background: #fff; color: var(--ink); font: 600 9.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; border-top: 3px solid var(--yellow); }
.g-pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.g-pipe span { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--ink-2); font: 500 9px/1.1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-dark); }
.g-pipe b { font: 600 22px/1 var(--mono); color: var(--white); }
.group ul { list-style: none; margin: 4px 0 0; padding: 0; }
.group li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); }
.group li b { font: 600 15.5px/1.3 var(--body); }
.group li span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.integ-block { margin-top: 64px; }
.integ-block .integ-label { color: var(--muted-dark); }
.integ.on-dark { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top-color: var(--ink-line); }
.integ.on-dark div { padding: 20px 20px 20px 0; border-bottom-color: var(--ink-line); }
.integ.on-dark div:nth-child(even) { padding-left: 0; border-left: 0; }
.integ.on-dark div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.integ.on-dark b { color: var(--white); }
.integ.on-dark span { color: #a6afb9; }

/* FAQ */
.faq { padding: 112px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 700 18px/1.35 var(--body); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 26px/1 var(--mono); flex: none; width: 24px; text-align: center; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* ---------- Early access ---------- */
.ea { background: var(--ink); color: var(--white); padding: 104px 0; border-bottom: 1px solid var(--ink-line); }
.ea-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ea-copy img { width: 56px; height: 56px; margin-bottom: 28px; }
.ea .kicker { color: var(--muted-dark); }
.ea h2 { color: var(--white); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; }
.ea-lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #b3bcc6; max-width: 30em; }
.ea-aside { margin-top: 24px; font-size: 14.5px; color: var(--muted-dark); }
.ea-aside a { color: var(--on-dark); }
.ea-form, .ea-done { background: var(--ink-2); border: 1px solid var(--ink-line); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.ea-form label, .ea-form legend { display: flex; flex-direction: column; gap: 7px; font: 500 13px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dark); }
.ea-form legend { padding: 0; margin-bottom: 9px; display: block; }
.ea-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ea-form .req { color: var(--yellow); }
.ea-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ea-form input[type="text"], .ea-form input[type="email"], .ea-form input[type="tel"], .ea-form select, .ea-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--ink); color: var(--white);
  border: 1.5px solid var(--ink-line); border-radius: 0; font: 400 16px/1.4 var(--body); text-transform: none; letter-spacing: 0;
}
.ea-form textarea { resize: vertical; min-height: 92px; }
.ea-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-dark) 50%), linear-gradient(135deg, var(--muted-dark) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.ea-form input:focus, .ea-form select:focus, .ea-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.ea-form [aria-invalid="true"] { border-color: var(--danger); }
.ea-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-form .pill { position: relative; display: block; cursor: pointer; }
.ea-form .pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ea-form .pill span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink-line); background: var(--ink); color: var(--on-dark); font: 500 14px/1 var(--body); text-transform: none; letter-spacing: 0; transition: border-color .15s, background-color .15s; }
.ea-form .pill input:checked + span { border-color: var(--yellow); background: #2a2616; color: var(--yellow); }
.ea-form .pill input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-form .ea-consent { flex-direction: row; align-items: flex-start; gap: 12px; font: 400 14px/1.5 var(--body); text-transform: none; letter-spacing: 0; color: #b3bcc6; cursor: pointer; }
.ea-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--yellow); }
.ea-consent a { color: var(--on-dark); }
.ea-form .btn { align-self: flex-start; }
.ea-form .btn[disabled] { opacity: .6; cursor: progress; }
.ea-status { min-height: 1.4em; font-size: 14.5px; color: var(--danger); }
.ea-done h3 { font: 800 26px/1.15 var(--display); font-stretch: 112%; text-transform: uppercase; color: var(--yellow); }
.ea-done p { color: #b3bcc6; }
.ea-done a { color: var(--on-dark); }

/* Footer */
.footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 168px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 24em; }
.footer nav { display: flex; flex-direction: column; gap: 0; }
.footer nav .mono { color: var(--on-dark); font-size: 11px; margin-bottom: 4px; }
.footer nav a { text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.footer nav a:hover { color: var(--white); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Touch and iOS ---------- */
/* Anchors land below the sticky bar instead of under it. */
section[id], main[id] { scroll-margin-top: 76px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
/* Hover effects only where there is a pointer that hovers; on iPhone and iPad they stick after a tap. */
@media (hover: none) {
  .doc:hover { transform: none; }
  .btn-yellow:hover { background: var(--yellow); }
  .btn-ghost:hover { border-color: #3a424c; }
}
/* The notch and home indicator in landscape: backgrounds run edge to edge, content stays inside the safe area. */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.mobile-menu { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.announce-short, .swipe { display: none; }

/* Swipeable rows on phones (drawings, options, pipeline). */
.snap { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.snap::-webkit-scrollbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-links { gap: 18px; }
  .standards ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .standards li:nth-child(4) { padding-left: 0; border-left: 0; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group, .group:last-child { padding: 26px 24px 20px 0; border-left: 0; }
  .group:nth-child(even) { padding: 26px 0 20px 24px; border-left: 1px solid var(--rule); }
  .group:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-b, .doc-c, .doc-d { margin-top: 0; }
  .feature-grid { gap: 48px; }
  /* Five stages side by side need the full desktop width; below it they stack, arrows pointing down. */
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; gap: 38px; }
  .node + .node::before { left: 22px; top: -29px; transform: rotate(90deg); }
}

/* iPad landscape (1000-1180): still two columns in the hero, a slightly smaller headline. */
@media (max-width: 1180px) and (min-width: 1000px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(42px, 4.6vw, 52px); }
  .lead { font-size: 17px; }
  .hero-grid { gap: 40px; }
  .b-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .b-quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-line); padding-top: 16px; }
}

/* iPad portrait and iPhone landscape: the hero stacks, with the builder under the copy. */
@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 680px; width: 100%; }
  .hero h1 { font-size: clamp(46px, 7vw, 64px); }
  .announce-long, .announce-link { display: none; }
  .announce .announce-short { display: inline; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 620px; }
  .step-vis { min-height: 0; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .link-quiet { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .feature-visual { order: 2; }
  /* A full-width mockup on an iPad looks stretched; hold it to the width a phone screen would be shown at. */
  .feature-visual { width: 100%; max-width: 620px; justify-self: center; }
  .pillar { padding: 24px 20px 8px 0; }
  .pillar + .pillar { padding-left: 20px; }
  .pillar h3 { font-size: 21px; }
  .packets, .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packets article, .sec-grid > div { padding-left: 0 !important; border-left: 0 !important; padding-right: 24px; }
  .packets article:nth-child(even), .sec-grid > div:nth-child(even) { padding-left: 24px !important; border-left: 1px solid var(--rule) !important; padding-right: 0; }
  .sec-grid > div:nth-child(even) { border-left-color: var(--ink-line) !important; }
  .integ.on-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integ.on-dark div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .integ.on-dark div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--ink-line); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .coverage-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ea-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* iPhone. */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .announce { font-size: 13.5px; }
  .announce-in { min-height: 40px; gap: 10px; }
  .nav-in { gap: 12px; height: 60px; }
  .nav-logo img { width: 136px; }
  section[id], main[id] { scroll-margin-top: 68px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 42px); }
  .eyebrow { margin-bottom: 16px; font-size: 12px; }
  .lead-steps { margin-top: 22px; }
  .lead { font-size: 16.5px; margin-top: 14px; }
  .hero-ctas { margin-top: 24px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-aside { margin-top: 22px; }
  .b-head { padding: 12px 16px; }
  .b-block, .b-out { padding: 16px; }
  .b-divide { padding: 0 16px; }
  .scope { padding: 10px 12px; column-gap: 10px; }
  .scope b { font-size: 14px; }
  .b-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .b-quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-line); padding-top: 16px; }
  .standards { margin-top: 32px; }
  .standards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards li { padding: 4px 0 4px 14px; }
  .standards li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .standards li:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--st-line, var(--ink-line)); }

  .how, .platform, .example, .pillars, .feature, .faq { padding: 60px 0; }
  .ea { padding: 72px 0; }
  .ea-form, .ea-done { padding: 20px 16px; }
  .ea-row { grid-template-columns: minmax(0, 1fr); }
  .ea-form .btn { align-self: stretch; }
  .section-lead { font-size: 17px; }
  .steps { margin-top: 36px; gap: 36px; }
  .flow { margin-top: 36px; }
  .flow-note { margin-top: 32px; }
  .groups { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .group, .group:last-child, .group:nth-child(even) { padding: 24px 0; border-left: 0; }
  .group + .group { border-top: 1px solid var(--rule); }
  .pillar-grid, .packets, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 22px 0 24px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .packets article, .sec-grid > div,
  .packets article:nth-child(even), .sec-grid > div:nth-child(even) { padding: 22px 0 !important; border-left: 0 !important; }

  .stats-grid div { padding: 22px 14px 22px 0; }
  .stats-grid div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .stats-grid b { font-size: 44px; }
  .stats-grid span { font-size: 14px; }

  .hotsheet { overflow-x: auto; }
  .hotsheet th, .hotsheet td { padding: 10px 8px; font-size: 13px; }

  /* The drawings: one at a time, swiped. */
  .docs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 40px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 24px; scroll-padding-inline: var(--gutter); }
  .doc { flex: 0 0 84%; scroll-snap-align: start; }
  .doc img { height: 300px; object-position: center; }
  .docs + .swipe { display: block; margin-top: 0; font-size: 10.5px; color: var(--muted); }

  .integ.on-dark { grid-template-columns: minmax(0, 1fr); }
  .integ.on-dark div, .integ.on-dark div:nth-child(even), .integ.on-dark div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .integ-block { margin-top: 44px; }
  .coverage { padding: 56px 0; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks li { font-size: 15.5px; }
  .checks code { white-space: normal; }
}

/* iPhone SE and mini. */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .announce .tag { display: none; }
  .stats-grid b { font-size: 38px; }
  .scope small { display: none; }
  .scope { min-height: 56px; }
}

/* ---------------------------------------------------------------------------------------------------------
   Legal pages (privacy, terms). One column of prose on paper, with the site's own type.
   --------------------------------------------------------------------------------------------------------- */
.legal { padding: 56px 0 96px; }
.legal-in { max-width: 760px; }
.legal h1 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.01em; }
.legal .stamp { margin-top: 14px; color: var(--muted); font-size: 13px; }
.legal .lead { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.legal h2 { margin-top: 44px; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 21px; line-height: 1.25; }
.legal h3 { margin-top: 26px; font-family: var(--body); font-weight: 700; font-size: 16px; }
.legal p, .legal li { margin-top: 12px; font-size: 15.5px; line-height: 1.7; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: square; }
.legal li::marker { color: var(--yellow); }
.legal a { color: var(--brand); }
.legal .toc { margin-top: 28px; padding: 18px 20px; background: var(--white); border: 1px solid var(--rule); }
.legal .toc p { margin: 0 0 6px; }
.legal .toc a { display: inline-block; margin-right: 14px; font-size: 14px; }
.legal table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--rule); }
.legal th { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.legal .back { display: inline-block; margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }


/* Header: the demo is the button; Sign in is for people who already have an account. */
@media (max-width: 960px) { .nav-in:has(.nav-toggle) .nav-signin { display: none; } }
@media (max-width: 720px) { .announce .announce-short { padding: 10px 0; } }
.ea-done .btn { align-self: flex-start; }
.err404 { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
