/* ==========================================================================
   CrewLineCRM — marketing site
   ONE THEME. DARK ONLY. There is no light fork and no prefers-color-scheme
   block; a second definition of any token is a build failure (see
   tools/check-contrast.py), because that is how a light theme survives a
   rewrite unnoticed.

   THE LAW OF THIS PALETTE, measured:
     gold on ground   10.74:1   legal
     bone on ground   17.39:1   legal
     black on gold    10.74:1   legal — the ONLY ink allowed on gold
     bone on gold      1.62:1   BANNED
     gold on white     1.79:1   BANNED (fails AA *and* the 3:1 non-text floor)
   Gold is a FILL. It means "this is the action" or "this is the number that
   matters", and nothing else. Never more than one gold fill in view.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.c9407645.woff2') format('woff2');
}

/* Metric-matched fallback so the swap does not reflow the page. */
@font-face {
  font-family: 'Inter fallback';
  src: local('Helvetica Neue'), local('Arial'), local('Roboto');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* ground and surfaces — bone composited over the ground, never grey over
     black, so every surface keeps a hair of warmth against the warm gold. */
  --bg:          #0E0E10;
  --raised:      #151517;
  --card:        #18181A;
  --card-hover:  #1C1C1D;
  --popover:     #202022;

  /* hairlines. Elevation on this site is lightness and edge — never shadow. */
  --line:        #202022;
  --line-2:      #2A292B;
  --line-3:      #333334;
  --line-4:      #414041;
  /* The one hairline that IS a control boundary. WCAG 2.2 1.4.11 wants 3:1
     and --line-3 gives 1.40 on the card, so a form field had no visible edge
     at rest. Kept separate from --line-3 precisely because the decorative
     hairlines must NOT be dragged up to control contrast. */
  --line-field:  #6E6B66;

  /* ink. Never #FFFFFF: white is 19.28:1 against bone's 17.39:1, and the
     extra 1.9 points buys nothing while costing halation. */
  --ink:         #F5F3EE;
  --ink-2:       #C9C7C1;
  --ink-3:       #A3A19B;
  --ink-4:       #8E8C86;

  --gold:        #FFB300;
  --on-gold:     #0E0E10;
  /* A ghost button's edge is its whole affordance, so it is non-text UI and
     owes 3:1. The old pair measured 1.69 and 2.25 on the ground. */
  --gold-edge:   #8A6916;
  --gold-edge-2: #A8811C;

  --sans: 'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --r-ctl: 4px;
  --r-card: 6px;
  --r-lg: 8px;
  --head-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  /* five percent looser than a light-mode equivalent: bloom eats the gap. */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  letter-spacing: -.022em;
  line-height: 1.04;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -.018em;
  line-height: 1.12;
}
h3 { font-weight: 650; font-size: 1.14rem; letter-spacing: -.008em; line-height: 1.3; }
h4 { font-weight: 600; font-size: 1rem; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
strong, b { color: var(--ink); font-weight: 650; }

/* Every currency figure, count and price. Ragged money reads as amateur. */
.num, .amount, td.num { font-variant-numeric: tabular-nums; }

/* Inline links: bone text, gold rule. Keeps gold to a line of pixels and
   never puts bone on a gold fill. */
a { color: inherit; }
/* The :not(.btn) guard is on all three selectors deliberately. Without it on
   the first one, a .btn-bone inside a .prose block inherited color:var(--ink)
   at higher specificity than .btn-bone's own rule — bone text on a bone fill,
   1:1, an invisible button. Caught by looking at the page, not by the contrast
   gate, which measures tokens and cannot evaluate the cascade. */
.prose a:not(.btn),
p > a:not(.btn),
li > a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .14s var(--ease);
}
.prose a:not(.btn):hover,
p > a:not(.btn):hover,
li > a:not(.btn):hover { text-decoration-thickness: 2px; }

/* The dark companion ring is mandatory: a gold ring is 10.74:1 on the page
   but 1.79:1 where it crosses a light screenshot, and 1.62:1 on a bone
   button. The companion guarantees >=3:1 against whatever is underneath. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--bg);
  border-radius: inherit;
}

/* WCAG 2.4.11 — a sticky header must not cover the thing you jumped to. */
:target,
h1, h2, h3, section[id], [id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--gold); color: var(--on-gold);
  padding: 11px 18px; border-radius: 0 0 var(--r-ctl) var(--r-ctl);
  font-weight: 650; text-decoration: none;
  transition: top .16s var(--ease);
}
.skip:focus { top: 0; }

/* --- buttons -------------------------------------------------------------
   Hierarchy without a second gold: gold fill, then BONE fill, then a quiet
   warm-edged ghost. Hover moves colour only — never transform. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  font: inherit; font-weight: 600; font-size: .96rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .14s var(--ease), border-color .14s var(--ease),
              color .14s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 26px; font-size: 1.01rem; }
.btn-block { width: 100%; }

/* THE primary. One per viewport. */
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: #FFC233; color: var(--on-gold); }

/* High-authority secondary — bone fill, so hierarchy costs no gold. */
.btn-bone { background: var(--ink); color: var(--on-gold); }
.btn-bone:hover { background: #FFFFFF; color: var(--on-gold); }

/* Quiet secondary: a warm edge, visible as an edge and never as a glow. */
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--gold-edge);
}
.btn-ghost:hover { border-color: var(--gold-edge-2); background: var(--raised); }

/* --- header --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line-2); }
.head-in { display: flex; align-items: center; gap: 14px; min-height: var(--head-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: -.02em; font-size: 1.02rem;
}
.brand .mark { width: 26px; height: 26px; flex: none; display: block; color: var(--gold); }
.brand .wm-line { color: var(--gold); }
.foot-about .brand .mark { width: 30px; height: 30px; }

.head-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.head-nav a.navlink {
  color: var(--ink-3); text-decoration: none;
  font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-ctl);
  transition: color .14s var(--ease), background-color .14s var(--ease);
}
.head-nav a.navlink:hover { color: var(--ink); background: var(--raised); }
.head-nav a.navlink[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.head-cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  width: 40px; height: 40px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--line-3); }

@media (max-width: 900px) {
  .head-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head.nav-open .head-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset: 100% 20px auto 20px;
    background: var(--popover); border: 1px solid var(--line-2);
    border-radius: var(--r-card); padding: 8px; gap: 2px; margin-left: 0;
    /* dvh, not vh: mobile browser chrome changes height as you scroll, and
       vh measures the tallest state, which is the one that clips. */
    max-height: calc(100dvh - var(--head-h, 64px) - 16px);
    overflow-y: auto; overscroll-behavior: contain;
    animation: fade-in .15s var(--ease);
  }
  .site-head.nav-open .head-nav a.navlink { padding: 12px 14px; }
  .site-head.nav-open .head-cta {
    flex-direction: column; align-items: stretch; margin: 8px 0 2px;
  }
  .site-head.nav-open .head-cta .btn { width: 100%; }
}
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

/* --- section rhythm ------------------------------------------------------- */
section { padding-block: clamp(56px, 7vw, 92px); }
.section-edge { border-top: 1px solid var(--line); }

.eyebrow {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; margin-top: 14px; }

.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 16px; }
.prose h2 { margin-top: 44px; margin-bottom: 12px; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose ul { margin-top: 14px; display: grid; gap: 10px; }
.prose ul li { padding-left: 20px; position: relative; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-4);
}

/* The answer sentence directly under a question heading. */
.answer-first { color: var(--ink); font-size: 1.06rem; }

/* --- hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(44px, 5.5vw, 72px); }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}
.hero h1 { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note {
  margin-top: 20px; color: var(--ink-4); font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* --- screenshots ---------------------------------------------------------
   The product UI is light grey on white and the page is near-black. This is
   an AREA problem, not a brightness problem: dimming a 65%-of-viewport white
   rectangle to 88% still leaves it at 14.61:1. So we cap the area and frame
   the edge. A small light rectangle reads as a specimen under glass; a large
   one reads as a hole punched in the page. */
.bezel {
  border: 1px solid var(--line-3);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
  max-width: 100%;
}
.bezel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  background: var(--raised);
  border-bottom: 1px solid var(--line-3);
}
.bezel-dots { display: flex; gap: 6px; }
.bezel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-4); display: block; }
.bezel-url {
  margin-inline: auto;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-4);
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bezel-body { padding: 10px; background: var(--card); }
.bezel img { width: 100%; display: block; border-radius: 3px; }

/* A cropped specimen: shows one card of evidence, not a whole glaring page. */
.specimen { max-width: 480px; }
.shot-phone { max-width: 264px; margin-inline: auto; }
/* The phone capture is 420x1343 — at 264px wide it stands 844px tall, which
   drags the headline beside it halfway down the page. Crop to the top of the
   screen rather than shrinking it into illegibility: the evidence is the day's
   jobs, and on the phone those sit at the top too. A fixed height also means
   the image cannot shift the layout as it loads. */
.shot-phone img {
  border-radius: var(--r-ctl);
  height: 500px;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 880px) {
  .shot-phone { max-width: 300px; }
  .shot-phone img { height: 430px; }
}

figure { margin: 0; }
figcaption { color: var(--ink-4); font-size: .86rem; margin-top: 10px; }

/* --- cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  transition: background-color .14s var(--ease), border-color .14s var(--ease);
}
.card:hover { background: var(--card-hover); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: .95rem; }
.card-icon {
  width: 34px; height: 34px; border-radius: var(--r-ctl);
  display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--line-2);
  color: var(--ink-3); margin-bottom: 14px;
}
.card-icon svg { width: 18px; height: 18px; }

/* --- stat block — the number may be gold, the label never ----------------- */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat b {
  display: block; font-size: 2.1rem; font-weight: 750; letter-spacing: -.03em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat.key b { color: var(--gold); }
.stat span { color: var(--ink-4); font-size: .92rem; }

/* --- feature rows --------------------------------------------------------- */
.feature-row {
  display: grid; align-items: center; gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.feature-row + .feature-row { margin-top: clamp(52px, 7vw, 84px); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--ink-2); margin-top: 14px; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
}

.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: .97rem; }
.ticks svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ink-3); }
.ticks li.no svg { color: var(--ink-4); }
.ticks li.no { color: var(--ink-3); }

/* --- tables (pricing, comparison) ---------------------------------------- */
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line-3);
  vertical-align: top;
}
table.data thead th {
  color: var(--ink-4); font-weight: 600; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
}
table.data tbody th { color: var(--ink); font-weight: 600; }
table.data td { color: var(--ink-2); }
table.data caption { text-align: left; color: var(--ink-4); font-size: .86rem; padding-bottom: 12px; }

/* --- pricing -------------------------------------------------------------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px;
  display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--gold-edge-2); }
.plan h3 {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4);
}
.plan .amount {
  font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em;
  margin-top: 10px; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan .amount small { font-size: .9rem; font-weight: 500; color: var(--ink-4); letter-spacing: 0; }
.plan .plan-for { color: var(--ink-3); font-size: .93rem; margin-top: 12px; }
.plan ul { margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ink-3); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-tag {
  display: inline-block; margin-bottom: 10px;
  font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-4); border: 1px solid var(--line-3);
  padding: 3px 9px; border-radius: 999px;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; padding: 17px 20px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; gap: 14px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); font-size: .98rem; }
.faq .answer p + p { margin-top: 12px; }

/* --- trust module --------------------------------------------------------
   Checkable commitments only. No logo strip, no stars, no customer count,
   no badges. An empty but visible trust strip announces the absence. */
.trust {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px);
  background: var(--raised);
}
.trust ul { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); margin-top: 24px; }
.trust li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: .96rem; }
.trust li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ink-3); }

/* --- forms ---------------------------------------------------------------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 28px);
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .87rem; font-weight: 550; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-4); font-weight: 400; }
.field input, .field select, .field textarea {
  /* 1rem, not .96rem: below 16px iOS Safari zooms the viewport on focus and
     does not zoom back out, leaving the rest of the form to be panned. */
  font: inherit; font-size: 1rem;
  padding: 11px 13px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-field);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 82px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-4); }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #A3A19B 50%),
    linear-gradient(135deg, #A3A19B 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form-legal { margin-top: 14px; font-size: .82rem; color: var(--ink-4); }
/* Always rendered, so the live region exists before it is written to.
   Empty it collapses to nothing; it never uses display:none. */
.form-status { margin-top: 0; font-size: .93rem; border-radius: var(--r-ctl); padding: 0; border: 0; }
.form-status.show { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-3); }
/* Success and failure differed only by a 1.44:1 vs 2.13:1 border, i.e. not at
   all. A gold rule is a FILL on an edge, which the palette law allows. */
.form-status.ok  { background: var(--raised); border-color: var(--line-field); border-left: 3px solid var(--ink-3); color: var(--ink); }
.form-status.err { background: var(--raised); border-color: var(--gold-edge-2); border-left: 3px solid var(--gold); color: var(--ink); }

/* The submit button is disabled while a request is in flight; it used to stay
   a full-strength gold primary and look entirely live. */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; filter: saturate(.7);
}

/* Off-screen but still rendered is exactly the shape browser and password
   manager autofill target, and a filled honeypot silently discards a real
   lead. display:none is not autofilled and is still submitted. */
.hp { display: none; }

.split {
  display: grid; gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --- footer --------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 36px; }
.foot-grid {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about p { color: var(--ink-4); font-size: .9rem; margin-top: 14px; max-width: 34ch; }
.foot-col h3 {
  font-size: .76rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.foot-col li + li { margin-top: 8px; }
.foot-col a { color: var(--ink-3); text-decoration: none; font-size: .93rem; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-base {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  color: var(--ink-4); font-size: .85rem;
}
.foot-base .spacer { margin-left: auto; }

/* --- legal pages ---------------------------------------------------------- */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-4); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.32rem; margin-top: 38px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }

/* --- motion --------------------------------------------------------------
   There are no scroll reveals on this site. Content that only appears on
   scroll does not exist for someone scrolling fast on a phone between jobs,
   and the pattern reads as slick-software-marketing to this audience. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- print ----------------------------------------------------------------
   A dark-only site prints as a black rectangle, and the plan prices are the
   first thing a toner-saving browser drops. Contractors print pricing to take
   into a meeting, so the printed page is a real surface, not an afterthought.
   Ink is forced back to black-on-white here ONLY: the palette law governs the
   screen, where gold is a fill on a dark ground. On paper there is no gold. */
@media print {
  :root {
    --bg: #FFFFFF; --raised: #FFFFFF; --card: #FFFFFF; --card-hover: #FFFFFF;
    --popover: #FFFFFF;
    --ink: #000000; --ink-2: #1A1A1A; --ink-3: #333333; --ink-4: #4A4A4A;
    --line: #BBBBBB; --line-2: #BBBBBB; --line-3: #999999; --line-4: #777777;
    --line-field: #777777;
    /* Gold never prints: it is 1.79:1 on white and would vanish. */
    --gold: #000000; --on-gold: #FFFFFF;
    --gold-edge: #777777; --gold-edge-2: #555555;
  }
  html, body { background: #FFFFFF !important; color: #000000 !important; }
  .site-head, .nav-toggle, .head-nav, .skip, .form-status, form, .hp { display: none !important; }
  a { color: #000000 !important; text-decoration: underline; }
  /* A printed link's destination is otherwise lost entirely. */
  .prose a[href^="/"]::after { content: " (crewlinecrm.com" attr(href) ")"; font-size: .85em; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .plan, .trust, table, figure, .shot { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  img { max-width: 100% !important; }
  section { padding-block: 18px !important; }
  footer { border-top: 1px solid #999999; }
}
