/* Pitman landing page. Dark theme only, values from the brand tokens (brand/tokens.css, dark). */

@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --brick: #B8432D;
  --brick-pressed: #9E3826;
  --brick-deep: #7E2C1E;
  --on-accent: #FBF3EA;
  --accent-disabled: #4D2E26;

  --bg: #14110F;
  --surface: #1E1A17;
  --surface-2: #2A2521;
  --border: rgba(255, 236, 214, 0.10);
  --border-strong: #7A7065;
  --text: #F2ECE3;
  --text-muted: #BEB4A7;
  --text-faint: #9B9185;
  --focus: #8FA3B5;
  --safety: #E8684A;
  --tone-finished: #D2A54F;

  --r-edge: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --lip: inset 0 -2px 0 var(--brick-deep);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.30);
  --shadow-pop: 0 18px 40px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255, 236, 214, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms;

  --gutter: 20px;
  --max: 1120px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--surface-2); color: var(--text);
  font-weight: 600; border-radius: var(--r-sm); text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* Buttons: 10 on top, 6 underneath, 2px brick.deep lip, no glow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-md) var(--r-md) var(--r-sm) var(--r-sm);
  background: var(--brick); color: var(--on-accent);
  box-shadow: var(--lip);
  font: 600 16px/1 var(--font-text); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--brick-pressed); }
.btn:active { background: var(--brick-pressed); box-shadow: inset 0 -1px 0 var(--brick-deep); transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--accent-disabled); color: var(--text); box-shadow: none; cursor: default; transform: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; padding: 4px 0; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { width: auto; height: 15px; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.link-quiet {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text);
  border-radius: var(--r-sm);
}
.link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; max-width: 22rem;
  font: 600 12px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); opacity: 0.6; }
h1 {
  font: 800 clamp(2.5rem, 9.6vw, 4.25rem)/1.02 var(--font-text);
  letter-spacing: -0.015em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede { margin: 20px 0 32px; max-width: 35rem; text-wrap: pretty; font-size: 18px; line-height: 1.55; color: var(--text-muted); }

/* Hero visual: the advisor side panel, sample data. No grain on the panel (brand rule 6). */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.pv-caption { margin: 0.5rem 0 0; font-size: 0.8125rem; opacity: 0.75; text-align: center; }
.pv {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border-radius: var(--r-edge) var(--r-lg) var(--r-lg) var(--r-edge);
  box-shadow: inset 3px 0 0 var(--tone-finished), var(--shadow-pop);
  padding: 16px 18px 6px 21px;
  font-size: 14.5px; line-height: 1.4;
}
.pv-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.pv-chip {
  font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums;
  padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
.pv-veh { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-item { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.pv-box {
  width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--border-strong); border-radius: 5px;
  display: grid; place-items: center;
}
.pv-box.is-on { background: var(--surface-2); border-color: var(--text-muted); }
.pv-box svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-name { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pv-hist { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-faint); }
.pv-hist svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pv-timer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0 12px; border-top: 1px solid var(--border);
}
.pv-timer-label { font-weight: 600; font-size: 14px; color: var(--tone-finished); }
.pv-clock { font: 500 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.02em; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--border); scroll-margin-top: 8px; }
.section:focus { outline: none; }
.section-title { font: 800 clamp(1.75rem, 6vw, 2.25rem)/1.1 var(--font-text); letter-spacing: -0.01em; margin-bottom: 28px; }

/* Ticket cards: radius 3 on the status side (left), 12 on the open side. */
.ticket {
  position: relative; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-edge) var(--r-lg) var(--r-lg) var(--r-edge);
  box-shadow: var(--shadow-card);
}
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.steps { display: grid; gap: 12px; counter-reset: step; }
.step { padding: 22px 22px 24px; counter-increment: step; }
.step::after {
  content: counter(step); position: absolute; top: 22px; right: 22px;
  font: 600 14px/1 var(--font-text); color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.step h3 { font: 700 20px/1.2 var(--font-text); margin-bottom: 10px; padding-right: 28px; }
.step p { color: var(--text-muted); font-size: 16.5px; }

.nots li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.nots li:last-child { border-bottom: 1px solid var(--border); }
.not-icon { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--text-faint); stroke-width: 1.6; stroke-linecap: round; }
.nots p { font-size: 18px; color: var(--text-muted); }
.nots strong { color: var(--text); font-weight: 600; }

/* Request access */
.ra-body { color: var(--text-muted); font-size: 18px; max-width: 30rem; margin-bottom: 28px; }
.form-card { padding: 22px 18px 20px; }
.fields { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; }
label, legend { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--text); }
legend { margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: 400 16px/1.3 var(--font-text);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast) var(--ease-out);
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:hover { border-color: var(--text-faint); }
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); border-radius: var(--r-sm); }
input[aria-invalid="true"] { border-color: var(--safety); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  cursor: pointer; font-weight: 600;
}
.choice input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--text-muted); background: transparent; display: grid; place-items: center;
}
.choice input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); transform: scale(0); }
.choice input:checked { border-color: var(--text); }
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.choice input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
.choice:has(input:focus-visible) { border-color: var(--focus); }
fieldset[aria-invalid="true"] .choice { border-color: var(--safety); }

.field-error { font-size: 14px; line-height: 1.35; color: var(--safety); font-weight: 600; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.form-error { font-size: 15px; font-weight: 600; color: var(--safety); }
.form-error:empty { display: none; }
.note { font-size: 14px; color: var(--text-muted); }
.form-done { font: 700 20px/1.35 var(--font-text); padding: 8px 2px; }
.form-done:focus { outline: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 15px; }
.footer-row { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--text-muted); }

/* 404 */
.lost { padding: 72px 0 96px; }
.lost h1 { margin-bottom: 28px; }

/* Small phones */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-word { height: 13px; }
  .brand { gap: 8px; }
  .link-quiet { padding: 0 8px; }
  .btn-sm { padding: 0 12px; }
}

@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .field-wide { grid-column: 1 / -1; }
  .form-card { padding: 28px 28px 26px; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 96px 0; }
}

@media (min-width: 960px) {
  .header-row { min-height: 72px; }
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 64px; }
  .hero-visual { align-items: flex-end; }
  .pv { max-width: 380px; }
  .split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .split .section-title { margin-bottom: 0; }
  .ra-intro .section-title { margin-bottom: 20px; }
  .ra-intro { position: sticky; top: 32px; }
  .footer-row { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; }
}

@media (min-width: 1400px) {
  .hero { padding: 72px 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

/* Pitman draft */
.brand-text { font: 800 20px/1 var(--font-text); letter-spacing: 0.12em; color: var(--text); }
.pv-letter { display: inline-grid; place-items: center; font: 700 11px/1 var(--font-text); color: var(--text); }
.section-lede { color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: -8px 0 24px; }
.form-card > .ra-body { margin-bottom: 20px; }
