/* ==========================================================================
   Yardstick marketing site — design system
   Plain CSS, no build step. Tokens echo the product UI (dark panels,
   amber accent, teal success) so site and app read as one brand.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plexmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --paper: #f4f0e6;
  --paper-2: #ece7da;
  --paper-3: #e2dccb;
  --ink: #1b1e1c;
  --ink-2: #23272a;
  --ink-3: #2b302d;
  --ink-4: #3a3f3b;

  /* text on paper */
  --text: #1f2320;
  --text-dim: #585f59;
  --text-faint: #5f665f;   /* 5.1:1 on paper and 4.75:1 on paper-2, so 12-13px mono captions pass AA on both */

  /* text on ink */
  --on-ink: #eeeae1;
  --on-ink-dim: #a3aba3;
  --on-ink-faint: #949b94; /* same as the app's --text-faint: 5.9:1 on ink, 4.7:1 on ink-3, so meta text passes AA on dark cards too */

  /* accents */
  --amber: #e6a13a;
  --amber-hover: #f0b253;
  --amber-ink: #8a5a12;   /* amber-family text that passes AA on paper */
  --amber-soft: #f7e4c3;
  --teal: #4f93a0;
  --teal-ink: #2d6670;    /* teal-family text that passes AA on paper */
  --teal-soft: #d6e7ea;
  --brick: #c15b4d;

  /* lines */
  --line: #d6cfbf;
  --line-strong: #b9b09b;
  --line-ink: #3a3f3b;

  /* type */
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* shape and depth */
  --radius-sm: 6px;   /* buttons, inputs, small tiles: same 6px as the app's buttons */
  --radius: 8px;
  --radius-lg: 12px;  /* plan and tier cards: same as the app's cards and modals */
  --shadow-frame: 0 30px 80px -30px rgba(0, 0, 0, 0.55), 0 8px 24px -12px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 1px 0 rgba(27, 30, 28, 0.04), 0 10px 30px -22px rgba(27, 30, 28, 0.35);

  /* spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* layout */
  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;

  color-scheme: light;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
/* Focus ring: ink on light surfaces, amber on dark ones (both >= 3:1 against their background) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .plan__side :focus-visible, .contact-card :focus-visible, .notfound :focus-visible,
.tier--featured :focus-visible, .flow--dark :focus-visible { outline-color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; background: var(--amber); color: var(--ink);
  font-weight: 600; border-radius: var(--radius-sm);
  transform: translateY(-200%); transition: transform 120ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* mono eyebrow labels, the "spec sheet" voice */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-ink); display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 1px; flex: none; }
.eyebrow__num { color: var(--text-faint); }
.section--dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--amber); }
.section--dark .eyebrow__num, .hero .eyebrow__num { color: var(--on-ink-faint); }

/* the yardstick motif: a ruler edge drawn with gradients */
.ticks {
  height: 14px; width: 100%; border: 0; margin: 0;
  background:
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 50px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 100px) left bottom / 100% 14px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); background: rgba(27, 30, 28, 0.04); }
.btn--ghost-ink { background: transparent; color: var(--on-ink); border-color: rgba(238, 234, 225, 0.28); }
.btn--ghost-ink:hover { border-color: var(--on-ink); background: rgba(238, 234, 225, 0.06); }
.btn--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn .arrow { width: 16px; height: 16px; }
.btn-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--on-ink-faint); margin-top: var(--s-3); }
.section:not(.section--dark) .btn-note { color: var(--text-faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 30, 28, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-ink);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); }
.brand__word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }

/* ---------- Official logo (.ys-logo) ----------
   The ONE way the Yardstick mark appears on the site, matching the app's
   .ys-logo: the official icon (assets/brand/yardstick-icon.png; served as the
   proportionally scaled yardstick-icon-160.png) on a paper tile so the black
   artwork stays visible on ink. The PNG keeps its own transparent margin, so
   at 92% of the tile the visible mark lands inside the tile's safe area.
   Never redraw, recolor or invert the mark; change the tile size only. */
.ys-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; background: var(--paper); border-radius: 24%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.ys-logo img { display: block; width: 92%; height: auto; max-width: none; }
.ys-logo--lg { width: 52px; height: 52px; }
.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav__list { display: flex; align-items: center; gap: var(--s-5); list-style: none; }
.site-nav__list a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-ink-dim);
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { color: var(--on-ink); }
.site-nav__list a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--amber); }
.site-nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.site-nav__login { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-ink-dim); padding: 8px 10px; }
.site-nav__login:hover { color: var(--on-ink); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-ink); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: var(--on-ink); border-radius: 1px; transition: background 120ms; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--on-ink); border-radius: 1px;
  transition: transform 160ms ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-ink);
    padding: var(--s-3) var(--gutter) var(--s-5);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-ink); }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--line-ink); color: var(--amber); }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: var(--s-3); padding-top: var(--s-4); }
  .site-nav__actions .btn, .site-nav__login { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--on-ink);
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.hero::before {
  /* faint ruler ticks along the top edge of the page body */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 14px;
  background:
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.35) 0 1px, transparent 1px 10px) left top / 100% 5px no-repeat,
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.5) 0 1px, transparent 1px 50px) left top / 100% 9px no-repeat,
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.7) 0 1px, transparent 1px 100px) left top / 100% 14px no-repeat;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s-7); }
.hero__copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  margin-bottom: var(--s-5);
}
.hero h1 .accent { color: var(--amber); }
.hero__lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--on-ink-dim); max-width: 620px; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-5);
  font-family: var(--mono); font-size: 12.5px; color: var(--on-ink-faint); letter-spacing: 0.04em;
}
.hero__meta li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.hero__meta a { color: var(--on-ink-dim); text-decoration: none; }
.hero__meta a:hover { color: var(--on-ink); }
.hero__visual { position: relative; z-index: 1; margin-bottom: -1px; }
.hero__visual .frame { margin-inline: auto; max-width: 1040px; transform: translateY(1px); }
.hero--sub { padding-bottom: clamp(48px, 7vw, 88px); }
.hero--sub h1 { font-size: clamp(34px, 4.6vw, 56px); }
/* home hero: centred copy, then ONE wide product frame that straddles the ink/paper edge.
   The last --hero-overlap of the section is painted paper, so the frame sits half on ink,
   half on the Fleet section below it, and its shadow falls on paper. */
.hero--home {
  --hero-overlap: clamp(96px, 16vw, 240px);
  padding-bottom: 48px;
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% calc(100% - var(--hero-overlap)) no-repeat,
    var(--paper);
}
.hero--home::after { display: none; }
.hero--home .hero__copy { max-width: 880px; margin-inline: auto; text-align: center; }
.hero--home .eyebrow { justify-content: center; }
.hero--home .eyebrow::before { display: none; }
.hero--home h1 { font-size: clamp(36px, 5vw, 62px); }
.hero--home .hero__lede { margin-inline: auto; max-width: 700px; }
.hero--home .hero__actions, .hero--home .hero__meta { justify-content: center; }
.hero--home .hero__visual { margin: clamp(40px, 6vw, 72px) auto 0; }
.hero--home .hero__visual .frame { max-width: 1240px; transform: none; }
/* product hero: copy on the left, ONE frame on the right showing the Fleet grid as a clean 2 x 2 of four
   units (captured at a 1000px viewport, where the app lays the grid out in two columns; the sidebar is
   cropped away exactly at its edge). After the crop the column is 760 wide; the frame stops at 916 of the
   capture's 1040 height, just under the second row of cards, so no fifth card peeks in at the bottom. */
.hero--product .hero__inner {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero--product .hero__copy { max-width: none; margin-inline: 0; text-align: left; }
.hero--product .eyebrow { justify-content: flex-start; }
.hero--product .eyebrow::before { display: inline-block; }
.hero--product h1 { font-size: clamp(36px, 4.4vw, 58px); }
.hero--product .hero__lede { margin-inline: 0; max-width: 560px; }
.hero--product .hero__actions { justify-content: flex-start; }
.hero--product .hero__visual { margin: 0; width: auto; }
.hero--product .hero__visual .frame { max-width: none; }
.hero--product { --hero-overlap: clamp(72px, 10vw, 150px); }
.frame--hero .frame__body { aspect-ratio: 760 / 916; }
@media (max-width: 880px) {
  .hero--product .hero__inner { grid-template-columns: 1fr; }
  .hero--product .hero__copy { text-align: center; }
  .hero--product .eyebrow { justify-content: center; }
  .hero--product .eyebrow::before { display: none; }
  .hero--product .hero__lede { margin-inline: auto; }
  .hero--product .hero__actions { justify-content: center; }
  .hero--product .hero__visual { margin-top: clamp(32px, 6vw, 56px); max-width: 560px; margin-inline: auto; width: 100%; }
}
.hero--split { padding-bottom: clamp(48px, 7vw, 88px); }
.hero--split .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero--split .hero__visual { align-self: center; margin-bottom: 0; }
.hero--split .hero__visual .frame { max-width: none; transform: none; }
.hero--split .hero__visual .frame--page .frame__body { aspect-ratio: 16 / 13; }
@media (max-width: 880px) { .hero--split .hero__inner { grid-template-columns: 1fr; } }

/* ---------- Device / browser frames ---------- */
.frame {
  background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 12px;
  box-shadow: var(--shadow-frame); overflow: hidden; width: 100%;
}
.frame__bar {
  height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid var(--line-ink); background: var(--ink-3);
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.frame__url {
  /* contain: inline-size so a long label never sets the frame's (and the column's) minimum width on phones */
  margin-left: 8px; flex: 1; min-width: 0; contain: inline-size; max-width: 360px; height: 22px; display: flex; align-items: center; padding: 0 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--on-ink-dim); background: var(--ink); border-radius: 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.frame__body {
  position: relative; aspect-ratio: 16 / 10; background: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.frame__body > picture { display: contents; }
.frame__body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame__body img.is-missing { display: none; }
/* placeholder sketch: a few bars so empty frames still look intentional */
.frame__body::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 10%; height: 10%;
  background: linear-gradient(90deg, var(--ink-3) 0 32%, transparent 32% 36%, var(--ink-3) 36% 60%, transparent 60% 64%, var(--ink-3) 64% 100%);
  border-radius: 4px; opacity: 0.9;
}
.frame__body::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26%; bottom: 10%;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / 30% 100% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 100% 0 / 66% 48% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 100% 100% / 66% 46% no-repeat;
  border-radius: 4px; opacity: 0.9;
}
.frame__body img:not(.is-missing) { z-index: 1; }

/* frame variants matched to the real captures (never distort, crop only) */
.frame--center .frame__body img { object-position: top center; }
.frame--form { max-width: 440px; margin-inline: auto; }
.frame--form .frame__body { aspect-ratio: 740 / 982; }
.frame--page .frame__body { aspect-ratio: 16 / 11; }
.frame--tall .frame__body { aspect-ratio: 16 / 12; }
.frame--strip { max-width: 640px; }
.frame--strip .frame__body { aspect-ratio: 1592 / 422; }
.frame--strip .frame__body::before, .frame--strip .frame__body::after { display: none; }
/* crop-zoom (no distortion): enlarges a capture whose content sits small in the centre */
.frame--zoom .frame__body img { width: 140%; max-width: none; height: 140%; inset: auto; left: -20%; top: -6%; object-position: center top; }
/* crop-focus: crops a wide capture to its main column (the app's sidebar is left out) */
.frame--focus .frame__body img { width: 150%; max-width: none; height: 150%; inset: auto; left: -34%; top: 0; object-position: left top; }
/* crop-main: the app's fixed 240px sidebar is cropped away so the content column fills the frame at a
   readable size. --crop is the sidebar's share of the capture width (240 / capture CSS width); --zoom
   enlarges the remaining column further (1 = fit the column's width). Never distorts: cover + top-left. */
.frame--main { --crop: 0.15; --zoom: 1; }            /* captures taken at 1600 CSS px wide */
.frame--main-1440 { --crop: 0.1667; }                 /* captures taken at 1440 CSS px wide */
.frame--main-1280 { --crop: 0.1875; }                 /* captures taken at 1280 CSS px wide */
.frame--main-1120 { --crop: 0.2143; }                 /* captures taken at 1120 CSS px wide */
.frame--main-1000 { --crop: 0.24; }                   /* captures taken at 1000 CSS px wide (two-column Fleet grid) */
.frame--main .frame__body img {
  width: calc(100% * var(--zoom) / (1 - var(--crop))); max-width: none; height: 100%;
  inset: auto; left: calc(-100% * var(--zoom) * var(--crop) / (1 - var(--crop))); top: 0;
  object-fit: cover; object-position: left top;
}
/* wide frame: a full-container product shot used for the Fleet showcase */
.frame--wide .frame__body { aspect-ratio: 16 / 9; }
@media (max-width: 640px) {
  /* on a phone, lead with the unit's photo and rates rather than the whole record shrunk down */
  .frame--wide.frame--main { --zoom: 1.35; }
  .frame--wide .frame__body { aspect-ratio: 4 / 3; }
}
/* light frame: the renter's side (storefront, Manage Rental) is a light, ecommerce-style surface */
.frame--light { background: #fbfaf7; border-color: var(--line); box-shadow: 0 30px 80px -30px rgba(27, 30, 28, 0.38), 0 8px 24px -12px rgba(27, 30, 28, 0.22); }
.frame--light .frame__bar { background: var(--paper-2); border-bottom-color: var(--line); }
.frame--light .frame__dots span { background: var(--line-strong); }
.frame--light .frame__url { background: var(--paper); color: var(--text-dim); }
.frame--light .frame__body { background: var(--paper); background-image: none; }
.frame--light .frame__body::before, .frame--light .frame__body::after { background-color: var(--paper-2); opacity: 1; }
.frame--light .frame__body::after {
  background:
    linear-gradient(var(--paper-2), var(--paper-2)) 0 0 / 30% 100% no-repeat,
    linear-gradient(var(--paper-2), var(--paper-2)) 100% 0 / 66% 48% no-repeat,
    linear-gradient(var(--paper-2), var(--paper-2)) 100% 100% / 66% 46% no-repeat;
}

/* phone frame */
.frame--phone {
  width: min(100%, 320px); border-radius: 36px; padding: 12px; background: var(--ink-3);
  border: 1px solid var(--line-ink); box-shadow: var(--shadow-frame); margin-inline: auto;
}
.frame--phone .frame__body {
  aspect-ratio: 1170 / 2532; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-ink);
}
.frame--phone .frame__body::before { left: 8%; right: 8%; top: 7%; height: 6%; }
.frame--phone .frame__body::after {
  left: 8%; right: 8%; top: 17%; bottom: 8%;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / 100% 22% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 0 28% / 100% 22% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 0 56% / 100% 22% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 0 100% / 100% 12% no-repeat;
}
/* No notch: the captures start with page content at the very top, so a notch would cover it. */
.frame--phone .frame__notch { display: none; }
.frame--phone .frame__body img { object-position: top center; }
.frame--phone-sm { width: min(100%, 260px); }
.frame--phone-xs { width: min(100%, 220px); border-radius: 28px; padding: 8px; }
.frame--phone-xs .frame__body { border-radius: 20px; }
.phone-pair { display: flex; justify-content: center; align-items: flex-end; gap: var(--s-5); }
.phone-pair .frame--phone { margin-inline: 0; }
@media (max-width: 640px) { .phone-pair { flex-direction: column; align-items: center; } }
/* desktop frame with a phone beside it (same business, both devices). Side by side, never overlapping:
   the phone used to sit over the frame's right edge and hid part of the record (live preview review
   2026-10-13). The phone drops a little below the frame's bottom edge for depth. */
.shot-combo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 26%); gap: clamp(14px, 2.4vw, 28px); align-items: end; padding-bottom: 28px; }
.shot-combo .frame--phone-xs { width: 100%; max-width: 210px; margin: 0; justify-self: end; transform: translateY(28px); }
@media (max-width: 640px) {
  .shot-combo { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .shot-combo .frame--phone-xs { width: min(100%, 200px); justify-self: center; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark { background: var(--ink); color: var(--on-ink); }
.section--panel { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em; margin-bottom: var(--s-4); }
.section__head p { font-size: 18px; color: var(--text-dim); max-width: 620px; }
.section--dark .section__head p { color: var(--on-ink-dim); }
/* the eyebrow is a <p> too: keep it the mono label, not the lede */
.section__head .eyebrow { font-size: 13px; color: var(--amber-ink); max-width: none; }
.section--dark .section__head .eyebrow { color: var(--amber); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center p { margin-inline: auto; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); max-width: none; }
.section__head--row > div { max-width: 720px; }
.section__head--row .btn { margin-bottom: 4px; }

/* the Fleet showcase: a two-column head (headline left, lede + list right) over a full-width frame,
   then a four-up spec strip. The section follows the hero's paper overlap, so it starts tighter. */
.section--fleet { padding-top: clamp(32px, 4vw, 56px); }
.showcase-head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px);
  align-items: start; margin-bottom: clamp(28px, 4vw, 48px);
}
.showcase-head h2 { font-size: clamp(30px, 3.9vw, 48px); letter-spacing: -0.028em; }
.showcase-head__aside p { font-size: 18px; color: var(--text-dim); }
.checklist--compact { gap: 8px; margin-top: var(--s-4); }
.checklist--compact li { font-size: 15.5px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.spec { padding: var(--s-5) var(--s-5) 0; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec:last-child { padding-right: 0; }
.spec__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 10px; }
.spec h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.spec p:not(.spec__label) { font-size: 15px; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec:nth-child(even) { padding-right: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: var(--s-5); }
}
@media (max-width: 880px) { .showcase-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec { border-left: 0; padding-left: 0; padding-right: 0; }
  .spec + .spec { border-top: 1px solid var(--line); margin-top: var(--s-5); }
}

/* feature "spec" rows: copy + framed screenshot, alternating */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line);
}
.feature-row:first-child, .section__head + .feature-row { border-top: 0; padding-top: 0; }
.feature-row:last-child { padding-bottom: 0; }
.feature-row--flip .feature-row__copy { order: 2; }
.feature-row--flip .feature-row__visual { order: 1; }
.feature-row h2, .feature-row h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; margin-bottom: var(--s-4); }
.feature-row__copy p { color: var(--text-dim); font-size: 17.5px; }
.feature-row__copy p + p { margin-top: var(--s-3); }
.feature-row__copy .eyebrow { margin-bottom: var(--s-3); }
.section--dark .feature-row { border-top-color: var(--line-ink); }
.section--dark .feature-row__copy p { color: var(--on-ink-dim); }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .feature-row--flip .feature-row__copy { order: 1; }
  .feature-row--flip .feature-row__visual { order: 2; }
}

/* check lists */
.checklist { list-style: none; display: grid; gap: 10px; margin-top: var(--s-5); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--text); font-size: 16.5px; }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%232d6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}
.checklist li.is-soon { color: var(--text-dim); }
.checklist li.is-soon::before {
  background: transparent; border: 1px dashed var(--line-strong); background-image: none;
}
.section--dark .checklist li { color: var(--on-ink); }
.section--dark .checklist li.is-soon { color: var(--on-ink-dim); }
.section--dark .checklist li::before {
  background-color: rgba(79, 147, 160, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%234f93a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .checklist li.is-soon::before { background: transparent; border-color: var(--line-ink); background-image: none; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-card); position: relative;
}
.card h2, .card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.card p { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; }
.card p + p { margin-top: var(--s-2); }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--ink); color: var(--amber); margin-bottom: var(--s-4);
}
.card__icon svg { width: 20px; height: 20px; }
.card__num { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--amber-ink); letter-spacing: 0.08em; margin-bottom: 10px; }
.section--dark .card__num { color: var(--amber); }
.card--soon { border-style: dashed; background: transparent; box-shadow: none; }
.card--soon .card__icon { background: var(--paper-3); color: var(--text-dim); }
.card--plain { box-shadow: none; }
.section--panel .card { background: var(--paper); }
.section--dark .card { background: var(--ink-2); border-color: var(--line-ink); box-shadow: none; }
.section--dark .card p { color: var(--on-ink-dim); }
.section--dark .card__icon { background: var(--ink); border: 1px solid var(--line-ink); }
.section--dark .card--soon { background: transparent; }
.section--dark .card--soon .card__icon { background: var(--ink-3); color: var(--on-ink-dim); border: 0; }
.card ul { list-style: none; display: grid; gap: 6px; margin-top: var(--s-3); }
.card ul li { font-size: 15px; color: var(--text-dim); padding-left: 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 2px; background: var(--amber); }
.section--dark .card ul li { color: var(--on-ink-dim); }
.card .frame { margin-top: var(--s-4); box-shadow: none; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-dim); vertical-align: middle; white-space: nowrap;
}
.badge--soon { border-color: var(--amber); color: var(--amber-ink); background: var(--amber-soft); }
.badge--live { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }
.section--dark .badge--soon, .hero .badge--soon { background: rgba(230, 161, 58, 0.14); color: var(--amber); }
.section--dark .badge--live { background: rgba(79, 147, 160, 0.16); color: #8cc3cc; }
.badge--draft { border-color: var(--brick); color: #8f3d31; background: #f3dcd7; }
.hero .badge--draft { background: rgba(193, 91, 77, 0.18); color: #e59a8c; border-color: #a24e42; }

/* ---------- Process flow (home "how it works") ---------- */
.flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); position: relative; }
.flow__step {
  counter-increment: flow; position: relative; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow-card); display: grid; gap: var(--s-2); align-content: start;
}
.flow__num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--amber-ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2);
}
.flow__num::before { content: counter(flow, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--ink); color: var(--amber); font-size: 13px; }
.flow__step h3 { font-size: 19px; letter-spacing: -0.01em; }
.flow__step p { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; }
.flow__who { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: var(--s-2); }
.flow__step::after {
  content: ""; position: absolute; top: 50%; right: -17px; width: 16px; height: 2px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 3px, transparent 3px 6px);
}
.flow__step:last-child::after { display: none; }
.flow--dark .flow__step { background: var(--ink-2); border-color: var(--line-ink); box-shadow: none; }
.flow--dark .flow__step p { color: var(--on-ink-dim); }
.flow--dark .flow__num { color: var(--amber); }
.flow--dark .flow__num::before { border: 1px solid var(--line-ink); }
.flow--dark .flow__who { color: var(--on-ink-faint); }
.flow--dark .flow__step::after { background: repeating-linear-gradient(to right, var(--line-ink) 0 3px, transparent 3px 6px); }
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow__step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow__step::after { display: none; } }

/* ---------- Step flow (storefront / onboarding) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4);
  padding: var(--s-5) 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__num {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--ink); color: var(--amber);
  font-family: var(--mono); font-size: 14px; display: grid; place-items: center;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3, .step h4 { font-size: 20px; margin-bottom: var(--s-2); }
.step p { color: var(--text-dim); font-size: 16px; }
.step__note { margin-top: var(--s-2); font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em; }
.step--done .step__num { background: var(--teal-soft); color: var(--teal-ink); }
.section--dark .step { border-top-color: var(--line-ink); }
.section--dark .step p { color: var(--on-ink-dim); }
.section--dark .step__note { color: var(--on-ink-faint); }
.section--dark .step__num { border: 1px solid var(--line-ink); }
.section--dark .step--done .step__num { background: rgba(79, 147, 160, 0.22); color: #8cc3cc; }

/* two-column walkthrough layout: sticky visual beside steps */
.walk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.walk__visual { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 880px) {
  .walk { grid-template-columns: 1fr; }
  .walk__visual { position: static; order: -1; }
}
.shot-stack { display: grid; gap: var(--s-5); }
.shot-caption {
  margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; text-align: center;
}
.section--dark .shot-caption { color: var(--on-ink-faint); }

/* ---------- Stat-free "facts" strip (plain statements, never numbers) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: var(--s-5); border-left: 1px solid var(--line); background: var(--paper); }
.facts > div:first-child { border-left: 0; }
.facts h3 { font-size: 16px; margin-bottom: 6px; }
.facts p { font-size: 14.5px; color: var(--text-dim); }
@media (max-width: 880px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div:nth-child(odd) { border-left: 0; } .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div { border-left: 0; } .facts > div + div { border-top: 1px solid var(--line); } }

/* ---------- Roles table ---------- */
.roles { width: 100%; border-collapse: collapse; font-size: 15px; }
.roles th, .roles td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.roles th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 400; }
.roles tr:last-child td { border-bottom: 0; }
.roles td:first-child { font-weight: 600; }
.roles .yes { color: var(--teal-ink); font-weight: 600; }
.roles .no { color: var(--text-faint); }
.roles-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.roles-wrap:focus-visible { outline-offset: 2px; }
.section--dark .roles th, .section--dark .roles td { border-bottom-color: var(--line-ink); }
.section--dark .roles-wrap { background: var(--ink-2); border-color: var(--line-ink); }
.section--dark .roles th { color: var(--on-ink-dim); }
.section--dark .roles .yes { color: #8cc3cc; }
.section--dark .roles .no { color: var(--on-ink-faint); }

/* ---------- FAQ (native details) ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--amber-ink), var(--amber-ink)) center / 12px 2px no-repeat, linear-gradient(var(--amber-ink), var(--amber-ink)) center / 2px 12px no-repeat;
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq__body { padding: var(--s-4) var(--s-5) var(--s-5); color: var(--text-dim); font-size: 16px; }
.faq__body p + p { margin-top: var(--s-3); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.section--dark .faq details { background: var(--ink-2); border-color: var(--line-ink); box-shadow: none; }
.section--dark .faq details[open] summary { border-bottom-color: var(--line-ink); }
.section--dark .faq__body { color: var(--on-ink-dim); }
.section--dark .faq summary::after { background: linear-gradient(var(--amber), var(--amber)) center / 12px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 2px 12px no-repeat; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
  background:
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.35) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.5) 0 1px, transparent 1px 50px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(to right, rgba(230, 161, 58, 0.7) 0 1px, transparent 1px 100px) left bottom / 100% 14px no-repeat;
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; margin-bottom: var(--s-3); }
.cta-band p { color: var(--on-ink-dim); font-size: 18px; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-band__meta { margin-top: var(--s-4); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--on-ink-faint); }
@media (max-width: 880px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plan {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  box-shadow: var(--shadow-card);
}
.plan__main { padding: clamp(28px, 4vw, 48px); }
.plan__side { padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.plan h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; margin-bottom: var(--s-3); }
.plan__main > p { color: var(--text-dim); font-size: 17px; }
.plan__side h3 { font-size: 20px; margin-bottom: var(--s-2); }
.plan__side p { color: var(--on-ink-dim); font-size: 16px; }
.plan__side a { color: var(--on-ink); }
@media (max-width: 880px) { .plan { grid-template-columns: 1fr; } }

.pricing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: clamp(24px, 3vw, 36px); }
.pricing__head .section__head { margin-bottom: 0; }
.pricing__draft {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: var(--s-5); padding: 12px 16px;
  border: 1px dashed var(--amber); border-radius: var(--radius); background: var(--amber-soft);
  font-size: 15px; color: var(--text);
}
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.tier {
  display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-card); position: relative;
}
.tier--featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tier__name { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier--featured .tier__name { color: var(--amber); }
.tier h3 { font-size: 28px; letter-spacing: -0.025em; }
.tier__for { color: var(--text-dim); font-size: 15.5px; min-height: 3.2em; }
.tier--featured .tier__for { color: var(--on-ink-dim); }
.tier__price { padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier--featured .tier__price { border-color: var(--line-ink); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.price__amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price__per { font-size: 16px; color: var(--text-dim); }
.price__note { flex-basis: 100%; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-faint); }
.tier--featured .price__per { color: var(--on-ink-dim); }
.tier--featured .price__note { color: var(--on-ink-faint); }
.tier__limits { list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--text); }
.tier__limits li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.tier__limits li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%232d6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}
.tier__limits li.is-soon { color: var(--text-dim); }
.tier__limits li.is-soon::before { background: transparent; background-image: none; border: 1px dashed var(--line-strong); }
.tier__limits li.is-later { color: var(--text-dim); }
.tier__limits li.is-later::before { background: transparent; background-image: none; border: 1px dashed var(--line-strong); }
.tier--featured .tier__limits li.is-later { color: var(--on-ink-dim); }
.tier--featured .tier__limits li.is-later::before { border-color: var(--line-ink); }
.tier__best { font-weight: 600; font-size: 15.5px; color: var(--text); }
.tier--featured .tier__best { color: var(--on-ink); }
.price__alt { flex-basis: 100%; margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.tier--featured .price__alt { color: var(--on-ink-dim); }

/* monthly / annual toggle (added by pricing.js; the no-JS fallback shows monthly with the annual price beside it) */
.price-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: var(--s-6); }
.price-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper-2); }
.price-toggle__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-dim); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.price-toggle__btn:hover { color: var(--text); }
.price-toggle__btn.is-active { background: var(--ink); color: var(--on-ink); }
.price-toggle__badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink);
}
.price-toggle__btn.is-active .price-toggle__badge { background: var(--amber); color: var(--ink); }
.price-toggle__note { font-size: 14px; color: var(--text-dim); text-align: center; }

/* "every plan includes" block under the cards */
.every-plan {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  margin-top: var(--s-7); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
}
.every-plan__head h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.every-plan__head p:not(.eyebrow) { color: var(--text-dim); font-size: 16px; }
.every-plan .checklist { margin-top: 0; }
.checklist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checklist--two li { font-size: 15.5px; }
@media (max-width: 880px) { .every-plan { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .checklist--two { grid-template-columns: 1fr; } }

/* add-on / allowance cards (dark section) */
.addons .card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addon__fine { margin-top: var(--s-3); font-size: 14px; color: var(--on-ink-faint); }
.addons .card ul li b { color: var(--on-ink); font-weight: 600; }

/* compact comparison */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-card); }
.compare > summary {
  cursor: pointer; list-style: none; padding: var(--s-5); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.compare > summary::-webkit-details-marker { display: none; }
.compare > summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--amber-ink), var(--amber-ink)) center / 12px 2px no-repeat, linear-gradient(var(--amber-ink), var(--amber-ink)) center / 2px 12px no-repeat;
  transition: transform 160ms ease;
}
.compare[open] > summary::after { transform: rotate(45deg); }
.compare[open] > summary { border-bottom: 1px solid var(--line); }
.compare > summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.compare__body { padding: var(--s-5); }
.compare__body .roles-wrap { border: 0; background: transparent; }
.compare__table th[scope="row"] { font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text); width: 30%; }
.compare__table td { font-size: 15px; color: var(--text-dim); }
.compare__table td b { color: var(--text); }
.compare__roadmap { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px dashed var(--line-strong); }
.compare__roadmap-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--text-dim); margin-bottom: var(--s-3); }
.compare__roadmap ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--text-dim); }
.compare__roadmap li b { color: var(--text); }
.tier--featured .tier__limits { color: var(--on-ink); }
.tier--featured .tier__limits li.is-soon { color: var(--on-ink-dim); }
.tier--featured .tier__limits li::before {
  background-color: rgba(79, 147, 160, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%234f93a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tier--featured .tier__limits li.is-soon::before { background: transparent; background-image: none; border-color: var(--line-ink); }
.tier__limits b { font-weight: 700; }
.tier__muted { color: var(--text-dim); }
.tier--featured .tier__muted, .section--dark .tier__muted { color: var(--on-ink-dim); }
.tier .btn { margin-top: auto; }
.tier__cta-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-faint); text-align: center; margin-top: -6px; }
.tier--featured .tier__cta-note { color: var(--on-ink-faint); }
.tiers-note { margin-top: var(--s-5); font-size: 15px; color: var(--text-dim); max-width: 820px; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } .tier__for { min-height: 0; } }

/* pricing teaser on the home page */
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.teaser__item { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: 6px; }
.teaser__name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.teaser__price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.teaser__price small { font-size: 14px; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.teaser__alt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-faint); }
.teaser__for { color: var(--text-dim); font-size: 15px; }
.teaser__spec { margin-top: 4px; font-size: 14px; color: var(--text); font-weight: 500; }
@media (max-width: 720px) { .teaser { grid-template-columns: 1fr; } }

/* home: the "instead of" strip */
.replaces { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.replaces__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.replaces__item { padding: var(--s-5) var(--s-4) var(--s-5) var(--s-4); border-left: 1px solid var(--line); }
.replaces__item:first-child { border-left: 0; padding-left: 0; }
.replaces__was { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--brick); text-decoration-thickness: 1.5px; margin-bottom: 6px; }
.replaces__now { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
@media (max-width: 1024px) {
  .replaces__inner { grid-template-columns: repeat(3, 1fr); }
  .replaces__item:nth-child(4) { border-left: 0; padding-left: 0; }
  .replaces__item:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .replaces__inner { grid-template-columns: 1fr 1fr; }
  .replaces__item, .replaces__item:nth-child(4) { border-left: 0; padding-left: 0; border-top: 0; }
  .replaces__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: var(--s-4); }
  .replaces__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Legal pages (rendered from docs/legal-drafts) ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-layout .legal-meta { grid-column: 1 / -1; }
.legal-layout .legal-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 8px; }
.legal-meta { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em; }
.legal-toc__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.legal-toc .toc { margin: 0; gap: 2px; }
.legal-toc .toc li { font-family: var(--sans); font-size: 14px; line-height: 1.35; }
.legal-toc .toc li::before { display: none; }
.legal-toc .toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text-dim); text-decoration: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-toc .toc a:hover { color: var(--text); border-left-color: var(--amber); background: var(--paper-2); }
.legal-body { font-size: 16.5px; line-height: 1.7; }
.legal-body h2 { font-size: 24px; margin: var(--s-8) 0 var(--s-3); scroll-margin-top: calc(var(--header-h) + 16px); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.legal-body h2:first-of-type { margin-top: var(--s-5); }
.legal-body h3 { font-size: 18px; margin: var(--s-5) 0 var(--s-2); }
.legal-body h4 { font-size: 16px; margin: var(--s-4) 0 var(--s-2); }
.legal-body p, .legal-body li { color: var(--text-dim); }
.legal-body strong { color: var(--text); }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul, .legal-body ol + p, .legal-body p + ol { margin-top: var(--s-3); }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: var(--s-3) 0; display: grid; gap: 6px; }
.legal-body blockquote { margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--amber); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.legal-body code { font-family: var(--mono); font-size: 0.9em; }
.legal-body a { color: var(--text); }
.table-wrap { overflow-x: auto; margin: var(--s-4) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); font-weight: 400; }
.legal-body tr:last-child td { border-bottom: 0; }
mark.marker { font-family: var(--mono); font-size: 0.82em; padding: 1px 6px; border-radius: 3px; background: var(--amber-soft); color: var(--amber-ink); border: 1px dashed var(--amber); }
mark.marker--counsel { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); }
mark.marker--confirm { background: var(--paper-3); color: var(--text); border-color: var(--line-strong); }
mark.marker--owner { background: #f3dcd7; color: #8f3d31; border: 1px solid #a24e42; font-weight: 600; }
.legal-related { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.legal-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-related a { color: var(--text-dim); font-size: 14.5px; }
.legal-related a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }
.marker-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: var(--text-dim); margin-top: var(--s-3); }
.notice--draft { border-color: var(--amber); background: var(--amber-soft); }
.notice--draft .notice__body p { color: var(--text); }
.legal-body a, .legal-body code { overflow-wrap: anywhere; }
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-layout .legal-toc { position: static; max-height: none; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
}

/* ---------- Prose (security, contact) ---------- */
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: var(--s-8) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: var(--s-6) 0 var(--s-2); }
.prose p + p { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 22px; margin: var(--s-3) 0; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); }
.prose .lead { font-size: 20px; color: var(--text); }
.notice {
  display: grid; grid-template-columns: 4px 1fr; gap: var(--s-4); margin: 0 0 var(--s-6);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); overflow: hidden;
}
.notice::before { content: ""; background: var(--amber); }
.notice__body { padding: var(--s-4) var(--s-5) var(--s-4) 0; }
.notice__body p { color: var(--text); font-size: 15.5px; }
.notice__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 6px; }
.toc { list-style: none; display: grid; gap: 4px; margin: var(--s-5) 0 var(--s-7); padding: 0; }
.toc li { font-family: var(--mono); font-size: 13.5px; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc li::before { content: "—"; margin-right: 10px; color: var(--amber); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: start; }
.contact-card {
  display: grid; gap: var(--s-4); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line-ink);
  border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink);
}
.contact-card .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.contact-card a.mail { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; word-break: break-all; }
.contact-card a.mail:hover { color: var(--amber); }
.contact-card p { color: var(--on-ink-dim); }
.contact-card .btn { justify-self: start; }
.contact-list { display: grid; gap: var(--s-3); }
.contact-list .card h2, .contact-list .card h3 { font-size: 17px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-dim); padding: var(--s-8) 0 var(--s-6); border-top: 1px solid var(--line-ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
.site-footer h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-faint); font-weight: 400; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-ink-dim); font-size: 15px; }
.site-footer a:hover { color: var(--on-ink); }
.site-footer__brand p { max-width: 320px; font-size: 15px; margin-top: var(--s-3); }
.site-footer__brand .site-footer__mail { display: inline-block; margin-top: var(--s-3); font-family: var(--mono); font-size: 13px; color: var(--on-ink); border-bottom: 1px solid var(--line-ink); }
.site-footer__brand .site-footer__mail:hover { border-bottom-color: var(--amber); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-ink);
  font-family: var(--mono); font-size: 12.5px; color: var(--on-ink-faint); letter-spacing: 0.03em;
}
.site-footer__bottom a { font-size: inherit; color: var(--on-ink-dim); }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--on-ink); padding: var(--s-9) 0; }
.notfound .code { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; color: var(--amber); margin-bottom: var(--s-3); }
.notfound h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.notfound p { color: var(--on-ink-dim); font-size: 18px; margin-bottom: var(--s-6); }
.notfound .hero__actions { justify-content: center; }

/* ---------- Small helpers ---------- */
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.text-dim { color: var(--text-dim); }
.inline-note { font-size: 14.5px; color: var(--text-faint); margin-top: var(--s-4); }
.section--dark .inline-note { color: var(--on-ink-faint); }
.lede { font-size: 19px; color: var(--text-dim); max-width: 640px; }
.section--dark .lede { color: var(--on-ink-dim); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-top: var(--s-5); border-bottom: 1px solid var(--amber); padding-bottom: 2px; }
.link-more:hover { color: var(--amber-ink); }
.section--dark .link-more:hover { color: var(--amber); }
.link-more svg { width: 16px; height: 16px; }

/* ---------- Rescue campaign: demo-request form (/rescue/) ----------
   Plain HTML form posting to the app (CSP form-action allows it). Field
   borders use --text-dim so they meet the 3:1 non-text contrast minimum on
   paper; the focus ring is the global :focus-visible. Server-side errors
   come back as /rescue/#form-error or #form-retry and are revealed with
   :target, so they work without JavaScript. */
.lead-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lead-layout__aside p { color: var(--text-dim); }
.lead-layout__aside p + p { margin-top: var(--s-3); }
@media (max-width: 880px) { .lead-layout { grid-template-columns: minmax(0, 1fr); } }
.lead-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-card); display: grid; gap: var(--s-5);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15.5px; color: var(--text); }
.field__hint, .req { font-weight: 400; font-size: 13.5px; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: #fffdf8; border: 1px solid var(--text-dim); border-radius: var(--radius-sm);
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: auto; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--brick); box-shadow: inset 0 0 0 1px var(--brick); }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
@media (max-width: 640px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.consent .check { font-size: 15px; }
.consent__note { font-size: 14px; color: var(--text-dim); }
.consent__note a { color: var(--text); }
.lead-form .btn { justify-self: start; }
@media (max-width: 480px) { .lead-form .btn { justify-self: stretch; } }
/* off-screen bot trap: never visible, never focusable, hidden from AT */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  display: none; padding: var(--s-4) var(--s-5); border-radius: var(--radius); border: 1px solid #a24e42;
  background: #f3dcd7; color: #6e2d24; font-size: 15.5px;
}
.form-alert:target { display: block; }
.form-alert strong { display: block; margin-bottom: 4px; color: #5a241d; }
.form-alert a { color: inherit; }
.offer-list { list-style: none; display: grid; gap: 10px; margin-top: var(--s-4); }
.offer-list li { padding-left: 18px; position: relative; color: var(--on-ink); }
.offer-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--amber); }
.thanks-steps { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-5); counter-reset: thanks; }
.thanks-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--text-dim); counter-increment: thanks; }
.thanks-steps li::before {
  content: counter(thanks); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--amber); font-family: var(--mono); font-size: 13px;
}
.thanks-steps strong { color: var(--text); }

/* ---------- Academy (/academy/, generated by scripts/render-academy.mjs) ----------
   Existing tokens only. Cards use a "stretched link": the title link's ::after
   covers the card, so the whole card is one large touch target while the
   accessible name stays the title. Lessons are a single column capped at ~70ch. */
.calc-layout [hidden], .calc[hidden], .calc-results[hidden] { display: none !important; }
.hero--academy .hero__copy { max-width: 820px; }
.hero--academy .hero__meta li a { min-height: 44px; }
.crumbs { margin-bottom: var(--s-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--on-ink-faint); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--on-ink-faint); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--on-ink-dim); text-decoration: underline; text-decoration-color: var(--line-ink); }
.crumbs a:hover { color: var(--on-ink); text-decoration-color: var(--amber); }
.crumbs [aria-current="page"] { color: var(--on-ink-faint); overflow-wrap: anywhere; }
.academy-fixture { margin: var(--s-5) 0 0; }
.acad-h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; margin-bottom: var(--s-5); }

.acad-cards, .acad-paths { list-style: none; display: grid; gap: var(--s-4); margin: 0; padding: 0; }
.acad-cards--grid, .acad-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acad-cards--stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .acad-cards--grid, .acad-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acad-cards--grid, .acad-paths { grid-template-columns: minmax(0, 1fr); } }
.acad-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2); min-height: 44px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-card); transition: border-color 140ms ease;
}
.acad-card:hover { border-color: var(--text-faint); }
.acad-card:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.acad-card__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acad-card__title { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.acad-card__link { text-decoration: none; color: var(--text); }
.acad-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.acad-card__link:focus-visible { outline: none; }
.acad-card__text { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; }
.acad-card__cta { margin-top: auto; padding-top: var(--s-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.acad-card__cta svg { width: 16px; height: 16px; flex: none; }
.acad-card--path { counter-increment: none; }
.acad-card--gated { background: var(--paper-2); border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.section--panel .acad-card { background: var(--paper); }
.section--panel .acad-card--gated { background: var(--paper-2); }
.acad-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0; padding: 0; }
.acad-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--amber); }

/* hub: featured calculator beside the stacked cards */
.acad-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4); align-items: stretch; }
.acad-feature__main { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); }
.acad-feature__main .acad-card__kicker { color: var(--amber); }
.acad-feature__main h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.acad-feature__main h3 a { color: var(--on-ink); text-decoration: none; }
.acad-feature__main h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.acad-feature__main p { color: var(--on-ink-dim); }
.acad-feature__main .checklist { margin: 0 0 var(--s-3); }
.acad-feature__main .checklist li { color: var(--on-ink); }
.acad-feature__main .checklist li::before {
  background-color: rgba(79, 147, 160, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%234f93a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.acad-feature__main :focus-visible { outline-color: var(--amber); }
@media (max-width: 880px) { .acad-feature { grid-template-columns: minmax(0, 1fr); } }

/* lessons */
.lesson { max-width: 70ch; }
.lesson__part + .lesson__part, .lesson__part + .next-step { margin-top: var(--s-7); }
.lesson h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin-bottom: var(--s-3); scroll-margin-top: calc(var(--header-h) + 16px); }
.lesson-body { font-size: 17px; line-height: 1.7; color: var(--text-dim); }
.lesson-body > * + * { margin-top: var(--s-3); }
.lesson-body h3 { font-size: 19px; color: var(--text); margin-top: var(--s-5); }
.lesson-body ul, .lesson-body ol { padding-left: 22px; display: grid; gap: 6px; }
.lesson-body strong, .lesson-body code { color: var(--text); }
.lesson-body code { font-family: var(--mono); font-size: 0.9em; }
.lesson-body a { color: var(--text); text-decoration-color: var(--amber); overflow-wrap: anywhere; }
.lesson-body blockquote { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--amber); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lesson-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.lesson-body th, .lesson-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lesson-body th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.next-step { margin-top: var(--s-7); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--amber); border-radius: var(--radius-lg); background: var(--amber-soft); }
.next-step__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 6px; }
.next-step .lesson-body { color: var(--text); }
.next-step .lesson-body blockquote { background: var(--paper); }
.lesson__following { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-dim); }
.lesson__following a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text); text-decoration-color: var(--amber); }
.lesson--tool { margin-top: var(--s-7); }
.lesson--checklist .lesson-body ul { list-style: none; padding-left: 0; gap: 10px; }
.lesson--checklist .lesson-body li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text); }
.lesson--checklist .lesson-body li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border: 2px solid var(--text-dim); border-radius: 3px; }

/* calculators */
.calc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5); align-items: start; }
@media (max-width: 880px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }
.calc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-card); min-width: 0; }
.calc-panel--results { background: var(--paper-2); box-shadow: none; }
.calc { display: grid; gap: var(--s-5); }
.calc__group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); min-width: 0; }
.calc__group legend { padding: 0; margin-bottom: var(--s-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.calc__mode { display: flex; flex-wrap: wrap; gap: 4px var(--s-5); }
.calc__mode .check { min-height: 44px; align-items: center; cursor: pointer; }
.calc__mode .check input { margin: 0; }
.calc .field input[aria-invalid="true"] { border-color: var(--brick); box-shadow: inset 0 0 0 1px var(--brick); }
.calc-error { font-size: 14px; color: #8f3d31; font-weight: 600; }
.calc .btn { justify-self: start; }
@media (max-width: 480px) { .calc .btn { justify-self: stretch; } }
.calc-noscript { padding: var(--s-4); border: 1px dashed var(--amber); border-radius: var(--radius); background: var(--amber-soft); color: var(--text); }
.calc-results__label { margin-bottom: var(--s-3); }
.calc-status:empty { display: none; }
.calc-status { margin-bottom: var(--s-3); color: #8f3d31; font-weight: 600; }
.calc-dl { display: grid; gap: 0; margin: 0; }
.calc-dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-dl dt { color: var(--text-dim); font-size: 15.5px; }
.calc-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.calc-dl__key dt { color: var(--text); font-weight: 600; }
.calc-dl__key dd { font-size: 24px; letter-spacing: -0.02em; }
.calc-h3 { font-size: 17px; margin: var(--s-5) 0 var(--s-3); }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc-table th, .calc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.calc-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: var(--text-dim); }
.calc-table tbody th { font-weight: 600; }
.calc-table tr:last-child td, .calc-table tr:last-child th { border-bottom: 0; }
.calc-panel .table-wrap { margin: 0; }
/* phones: each scenario becomes a small labelled block instead of a cramped, scrolling table */
@media (max-width: 560px) {
  .calc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .calc-table, .calc-table tbody, .calc-table tr, .calc-table th, .calc-table td { display: block; width: 100%; }
  .calc-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .calc-table tr:last-child { border-bottom: 0; }
  .calc-table tbody th, .calc-table td { padding: 2px 0; border-bottom: 0; }
  .calc-table td { display: flex; justify-content: space-between; gap: 12px; }
  .calc-table td::before { content: attr(data-label); color: var(--text-dim); }
}
.calc-notes { list-style: none; display: grid; gap: 6px; margin-top: var(--s-3); font-size: 15px; color: var(--text); }
.calc-disclaimer { margin-top: var(--s-4); font-size: 14px; color: var(--text-dim); }
.calc-explain { max-width: 70ch; margin-top: var(--s-7); }
.calc-explain h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.calc-explain p { color: var(--text-dim); }
.calc-formulas, .calc-assumptions { padding-left: 22px; display: grid; gap: 6px; color: var(--text-dim); }
.calc-formulas strong { color: var(--text); }

/* Coach entry (only when academy.coachLink is true) */
.academy-coach__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
.academy-coach__inner h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.academy-coach__inner p:not(.eyebrow) { color: var(--on-ink-dim); max-width: 620px; }
.academy-coach .btn svg { width: 16px; height: 16px; }
@media (max-width: 880px) { .academy-coach__inner { grid-template-columns: minmax(0, 1fr); } .academy-coach__inner .btn { justify-self: start; white-space: normal; } }

/* home page section (only when academy.homeSection is true) */
.academy-home .section__head--row h2 { max-width: 760px; }

/* /review/academy-preview/ only */
.review-label { margin: var(--s-6) 0 0; padding: 8px 12px; font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--paper-3); border-left: 3px solid var(--brick); }

/* ---------- Live preview polish (2026-10-13) ---------- */
/* Pricing: the fair-use note used .tier__cta-note's -6px top margin and slid under the cards. */
.tier__cta-note.pricing__fair-use { margin-top: var(--s-4); }
/* Pricing: every card's rows line up (name, title, best for, description, price, limits, button, note),
   whatever the Growth badge or a longer line does. Subgrid where supported; the flex layout otherwise. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 881px) {
    .tiers { grid-template-rows: repeat(8, auto); row-gap: 0; }
    .tier { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: var(--s-4); }
    .tier__name { min-height: 26px; }
    .tier .btn { margin-top: 0; align-self: end; }
    .tier__limits { align-content: start; }
  }
}
/* Pricing: "how Yardstick grows with you" (replaces the four large allowance cards) */
.grow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.grow__item { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: var(--s-2); align-content: start; }
.grow__item h3 { font-size: 19px; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grow__item p { color: var(--text-dim); font-size: 15.5px; }
.grow__item ul { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--text-dim); }
.grow__item ul li { padding-left: 16px; position: relative; }
.grow__item ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 2px; background: var(--amber); }
.grow__item b { color: var(--text); font-weight: 600; }
.grow-after { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.grow-help { font-size: 16px; color: var(--text-dim); }
.grow-help a { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); }
@media (max-width: 880px) { .grow { grid-template-columns: minmax(0, 1fr); } }
/* Legal: long words or addresses never widen a phone page */
.legal-body p, .legal-body li, .legal-body td { overflow-wrap: break-word; }
/* Academy: lessons and checklists read in one centred column, title included (no half-empty screen) */
.lesson { max-width: 700px; }
.hero--reading .hero__copy, .hero--reading + .section .lesson:not(.lesson--tool) { max-width: 700px; margin-inline: auto; }
.hero--reading .hero__copy { width: 100%; }
/* Academy: teaser call-to-action stays on one line with its arrow */
.acad-card__cta { white-space: nowrap; }
/* Calculator: short column headings on one line; the key below spells them out */
.calc-table thead th, .calc-table tbody th { white-space: nowrap; }
.calc-key { margin-top: var(--s-2); font-size: 13.5px; color: var(--text-dim); }
@media (max-width: 560px) { .calc-key { display: none; } }