@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

/* =============================================================================
   PoweredByXP — platform design system
   =============================================================================

   DESIGN BRIEF
   ───────────────────────────────────────────────────────────────────────────
   Theme        "Field Ops" — control-room precision with outdoor-sport energy.
                Software for people who run paintball and airsoft fields: it
                should feel capable and a little adrenal, never corporate-beige,
                but stay calm and legible where the actual work happens.
   Palette      Deep treeline charcoal base / warm bone surfaces /
                muzzle-flash orange accent / signal lime for live states.
   Typography   Barlow Condensed (display — athletic, signage-derived)
                × Barlow (body — same family, low contrast, very legible).
   Motion DNA   "Settle": short confident rise on entrance, slight overshoot on
                press, slow drift on decorative layers. Nothing bouncy —
                this is equipment, not a toy.
   Layout       Marketing: full-bleed dark hero → bento feature grid.
                Admin: fixed rail + fluid content + sticky page header.
   Depth        3 z-layers — gradient field (0), glow + grid (1), content (10).
   Mood         Kinetic-Premium.
   ───────────────────────────────────────────────────────────────────────────

   Covers the marketing site, the platform admin, and the tenant admin. Tenant
   PUBLIC sites are styled by site.css, which re-themes from per-tenant CSS
   variables — that separation is why this file can hard-code its palette.
============================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* Dark base — treeline charcoal with a green cast, not a neutral grey */
  --ink-950:  #070A09;
  --ink-900:  #0B0F0D;
  --ink-850:  #0F1512;
  --ink-800:  #131B17;
  --ink-700:  #1C2620;
  --ink-600:  #29372F;
  --ink-500:  #3D4E44;

  /* Warm light surfaces */
  --bone-50:  #FBFAF8;
  --bone-100: #F6F4F0;
  --bone-200: #EDEAE4;
  --bone-300: #DFDBD3;
  --paper:    #FFFFFF;

  /* Text */
  --text:         #121815;
  --text-soft:    #56635C;
  --text-faint:   #8A9690;
  --text-on-dark: #F2F5F3;
  --text-on-dark-soft: #A7B5AD;

  /* Accent — muzzle flash.
     `--accent` is tuned for dark backgrounds (6.4:1 on --ink-950). It is far
     too light for text on a bone or white surface, so `--accent-deep` is the
     one to use there: 4.9:1 on --bone-100 and 5.4:1 on white, both clearing
     WCAG AA for normal text. */
  --accent:      #FF5A1F;
  --accent-hot:  #FF7A45;
  --accent-deep: #C23A0B;
  --accent-wash: #FFF1EB;

  /* Filled buttons carry white labels, and white on --accent is only 3.1:1.
     These are the same hue pulled down until the label clears WCAG AA at any
     size: 4.8:1 at rest, 6.0:1 on hover. --accent stays for decoration —
     icons, rules, bars, and eyebrows on dark. */
  --accent-btn:       #D23C0B;
  --accent-btn-hover: #B8330A;

  /* Signal lime — "live", "available", "connected" */
  --lime:      #7CC00B;
  --lime-soft: #A8E832;
  --lime-wash: #F2FBE2;

  /* Semantic */
  --ok:      #1F9D55;
  --ok-wash: #E8F6EE;
  --warn:      #B8770B;
  --warn-wash: #FDF4E3;
  --bad:      #C42B1C;
  --bad-wash: #FDECEA;
  --info:      #1F6FEB;
  --info-wash: #EAF1FE;

  --line:      #E4E0D9;
  --line-dark: rgba(255, 255, 255, 0.10);

  /* Type */
  --font-display: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* Rhythm — a 4px base scale, used everywhere */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 20, 16, .06), 0 1px 3px rgba(12, 20, 16, .04);
  --shadow:    0 4px 12px rgba(12, 20, 16, .07), 0 1px 3px rgba(12, 20, 16, .05);
  --shadow-lg: 0 18px 40px rgba(12, 20, 16, .12), 0 4px 12px rgba(12, 20, 16, .06);
  --shadow-accent: 0 8px 28px rgba(255, 90, 31, .28);

  /* "Settle" easing — decisive out, gentle in */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.34, 1.3, .64, 1);
  --t-fast: .14s;
  --t:      .22s;
  --t-slow: .5s;

  --z-background: 0;
  --z-decoration: 1;
  --z-content:    10;
  --z-sticky:     50;
  --z-overlay:    100;
  --z-modal:      200;
  --z-toast:      300;

  --rail: 244px;   /* admin sidebar width */
  --topbar: 60px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bone-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

/* Focus: visible and consistent, never removed. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent); color: #fff; }

/* Keyboard users land here first; invisible until focused. */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: var(--z-toast);
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: var(--s4); text-decoration: none; }

/* ------------------------------------------------------------ typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.12rem; }
h5 { font-size: .98rem; }

p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: .96;
  letter-spacing: -0.025em;
}

/* Defaults to the darker accent, because the common case is a light surface.
   `.band-dark .eyebrow` below swaps in the bright one, where it belongs. */
.eyebrow {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.lede    { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--text-soft); line-height: 1.62; }
.muted   { color: var(--text-soft); }
.faint   { color: var(--text-faint); }
.small   { font-size: .875rem; }
.tiny    { font-size: .78rem; }
.mono    { font-family: var(--font-mono); font-size: .86em; font-variant-numeric: tabular-nums; }
.num     { font-variant-numeric: tabular-nums; }
.strong  { font-weight: 600; }
.upper   { text-transform: uppercase; letter-spacing: .08em; }
.center  { text-align: center; }
.right   { text-align: right; }
.nowrap  { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- layout */
.container { width: min(1180px, 100% - 2 * var(--s5)); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2 * var(--s5)); margin-inline: auto; }
.container-wide   { width: min(1420px, 100% - 2 * var(--s5)); margin-inline: auto; }

.stack > * + * { margin-top: var(--gap, var(--s4)); }
.stack-lg > * + * { margin-top: var(--s6); }
.stack-sm > * + * { margin-top: var(--s2); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--s3));
}
.cluster-between { justify-content: space-between; }
.cluster-end     { justify-content: flex-end; }
.cluster-center  { justify-content: center; }
.cluster-top     { align-items: flex-start; }

.grid { display: grid; gap: var(--gap, var(--s5)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.spacer { flex: 1; }
.hide   { display: none !important; }

.section    { padding-block: clamp(var(--s7), 9vw, var(--s10)); }
.section-sm { padding-block: var(--s7); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  --btn-bd: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 10px 18px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-snap),
              box-shadow var(--t) var(--ease),
              background-color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              opacity var(--t) var(--ease);
}
.btn:hover  { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.btn-primary { --btn-bg: var(--accent-btn); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--accent-btn-hover); box-shadow: var(--shadow-accent); }

.btn-dark  { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--ink-700); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
}
.btn-ghost:hover { --btn-bg: var(--paper); --btn-bd: var(--text-faint); }

.btn-quiet { --btn-bg: transparent; --btn-fg: var(--text-soft); }
.btn-quiet:hover { --btn-bg: var(--bone-200); --btn-fg: var(--text); box-shadow: none; }

.btn-danger { --btn-bg: var(--bad); --btn-fg: #fff; }
.btn-danger:hover { --btn-bg: #a82316; }

.btn-on-dark {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover { --btn-bg: rgba(255, 255, 255, .16); }

.btn-lg  { padding: 14px 26px; font-size: 1.02rem; border-radius: var(--r-lg); }
.btn-sm  { padding: 6px 12px; font-size: .84rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; aspect-ratio: 1; }

/* Spinner shown while a form submits. */
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- forms */
.field { display: block; }
.field + .field { margin-top: var(--s4); }

.label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
}
.label .req { color: var(--accent); }

.hint  { margin-top: 5px; font-size: .82rem; color: var(--text-faint); }
.error { margin-top: 5px; font-size: .82rem; color: var(--bad); font-weight: 500; }

.input, .select, .textarea {
  display: block;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .14);
}
.input[aria-invalid="true"], .input.has-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(196, 43, 28, .12);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--bone-200);
  color: var(--text-faint);
  cursor: not-allowed;
}

.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2356635C' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

/* Prefix/suffix affixes — "$" on money fields, ".poweredbyxp.com" on the
   subdomain field, "%" on rates. */
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 0; }
.input-group > :first-child { border-top-left-radius: var(--r); border-bottom-left-radius: var(--r); }
.input-group > :last-child  { border-top-right-radius: var(--r); border-bottom-right-radius: var(--r); }
.input-group .input:focus { position: relative; z-index: 1; }

.affix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--bone-100);
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.affix + .input, .input + .affix { border-left: 0; }
.input + .affix { border-left: 1px solid var(--line); }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  cursor: pointer;
  font-size: .92rem;
}
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Card-style radio group, used for cycle pickers and plan selection. */
.choices { display: grid; gap: var(--s3); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.choice:hover { border-color: var(--text-faint); }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.choice input { flex: none; margin-top: 3px; accent-color: var(--accent); }

.fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  background: var(--paper);
}
.fieldset > legend {
  padding: 0 var(--s2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); }
.form-actions {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding-top: var(--s5);
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
}

/* Toggle switch — used for enable/disable on billing settings. */
.switch { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: relative;
  width: 42px; height: 24px;
  border-radius: var(--r-pill);
  background: var(--bone-300);
  transition: background var(--t) var(--ease);
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-snap);
}
.switch input:checked + .track { background: var(--lime); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.card-flush { padding: 0; overflow: hidden; }
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}
.card-hd h3, .card-hd h4 { margin: 0; }
.card-bd { padding: var(--s5); }
.card-ft {
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--line);
  background: var(--bone-50);
}
.card-hover { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Stat tile */
.stat {
  padding: var(--s5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-meta { margin-top: 6px; font-size: .84rem; color: var(--text-soft); }
.stat-delta { font-weight: 600; }
.stat-delta.up   { color: var(--ok); }
.stat-delta.down { color: var(--bad); }
.stat-accent { border-left: 3px solid var(--accent); }

/* ---------------------------------------------------------------- tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }

.table th {
  padding: 11px var(--s4);
  text-align: left;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bone-50);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px var(--s4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover { background: var(--bone-50); }
.table .num, .table .right { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; color: var(--text); }
.table a:hover { color: var(--accent-deep); }

.table-linked tbody tr { cursor: pointer; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.badge-ok      { background: var(--ok-wash);   color: #14663a; }
.badge-info    { background: var(--info-wash); color: #14428f; }
.badge-warn    { background: var(--warn-wash); color: #8a5a08; }
.badge-bad     { background: var(--bad-wash);  color: #94180d; }
.badge-neutral { background: var(--bone-200);  color: var(--text-soft); }
.badge-accent  { background: var(--accent-wash); color: var(--accent-deep); }

/* Live pulse for "connected" / "taking bookings" */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot-live { background: var(--lime); box-shadow: 0 0 0 0 rgba(124, 192, 11, .6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(124, 192, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 192, 11, 0); }
}

/* ---------------------------------------------------------------- alerts */
.alert {
  display: flex;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r);
  border-left: 3px solid;
  font-size: .92rem;
}
.alert-success { background: var(--ok-wash);   border-color: var(--ok);   color: #14663a; }
.alert-info    { background: var(--info-wash); border-color: var(--info); color: #14428f; }
.alert-warning { background: var(--warn-wash); border-color: var(--warn); color: #8a5a08; }
.alert-error,
.alert-danger  { background: var(--bad-wash);  border-color: var(--bad);  color: #94180d; }
.alert strong { font-weight: 700; }

/* Toast stack for flash messages */
.toasts {
  position: fixed;
  top: var(--s4);
  right: var(--s4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: min(400px, calc(100vw - 2 * var(--s4)));
}
.toast {
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn .34s var(--ease-snap) both;
}
.toast-success { background: #15603a; }
.toast-error   { background: #8f1a10; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(.96); }
}

/* ----------------------------------------------------------- empty state */
.empty {
  padding: var(--s8) var(--s5);
  text-align: center;
  color: var(--text-soft);
}
.empty-icon {
  width: 46px; height: 46px;
  margin: 0 auto var(--s4);
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  background: var(--bone-200);
  color: var(--text-faint);
}
.empty h3 { margin-bottom: var(--s2); color: var(--text); }

/* ================================ ADMIN SHELL ============================ */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-900);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line-dark);
}
.rail-brand-mark {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .96rem;
}
.rail-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .01em;
  line-height: 1.1;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-brand-sub { font-size: .72rem; color: var(--text-on-dark-soft); }

.rail-nav { flex: 1; padding: var(--s4) var(--s3); }
.rail-group + .rail-group { margin-top: var(--s5); }
.rail-group-label {
  padding: 0 var(--s3) var(--s2);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6D7F74;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 8px var(--s3);
  border-radius: var(--r-sm);
  color: var(--text-on-dark-soft);
  font-size: .91rem;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rail-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.rail-link.is-active { background: rgba(255, 90, 31, .16); color: #fff; font-weight: 600; }
.rail-link.is-active .rail-icon { color: var(--accent); }
.rail-icon { width: 17px; height: 17px; flex: none; opacity: .9; }
.rail-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  font-size: .72rem;
  font-weight: 700;
}

.rail-foot { padding: var(--s3); border-top: 1px solid var(--line-dark); }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--topbar);
  padding: 0 var(--s6);
  background: rgba(251, 250, 248, .88);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.32rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

.page { flex: 1; padding: var(--s6); }
.page-head { margin-bottom: var(--s5); }
.page-head h2 { margin-bottom: 4px; }

.breadcrumb { display: flex; gap: var(--s2); align-items: center; font-size: .84rem; color: var(--text-faint); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--text-soft); }

/* Impersonation banner — deliberately loud. Acting as someone else should
   never be something you forget you're doing. */
.impersonation-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 9px var(--s5);
  background: repeating-linear-gradient(45deg, #B8770B, #B8770B 12px, #a56a09 12px, #a56a09 24px);
  color: #fff;
  font-size: .87rem;
  font-weight: 600;
}
.impersonation-bar .btn { margin-left: auto; }

.trial-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 9px var(--s5);
  background: var(--ink-800);
  color: var(--text-on-dark);
  font-size: .88rem;
}
.trial-bar .btn { margin-left: auto; }

/* Sub-navigation for tabbed detail pages */
.tabs {
  display: flex;
  gap: var(--s1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s5);
  overflow-x: auto;
}
.tab {
  padding: 9px var(--s4);
  border-bottom: 2px solid transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* Definition list used across detail panels */
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px var(--s4); font-size: .92rem; }
.dl dt { color: var(--text-faint); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; }

/* ================================ MARKETING ==============================

   BANDS
   -----
   A marketing page is a vertical stack of full-width bands, and each band
   declares its OWN theme. That's deliberate: the previous version applied a
   dark theme to a page-level wrapper, so `h1,h2,h3 { color:#fff }` reached
   into light sections nested inside it and rendered white headings on a bone
   background — invisible.

   With the theme owned by the band, a light section cannot inherit dark rules,
   because it is a sibling of the dark one rather than a descendant. The bug is
   structurally unavailable rather than merely fixed.
========================================================================== */
.band {
  position: relative;
  padding-block: clamp(var(--s7), 9vw, var(--s10));
}
.band-tight { padding-block: clamp(var(--s6), 6vw, var(--s8)); }
.band-flush { padding-block: 0; }

.band-light { background: var(--bone-100); color: var(--text); }
.band-paper { background: var(--paper);    color: var(--text); }

.band-dark {
  background: var(--ink-950);
  color: var(--text-on-dark);
  isolation: isolate;
  overflow: hidden;
}
/* Text colours for dark surfaces live in the DARK CONTEXT block near the end
   of this file, not here. They have to be declared after the component rules
   they override — `.bento-tile p` and `.band-dark p` have identical
   specificity, so whichever is written last wins, and getting that backwards
   put grey body text on a near-black tile at 3:1. */

/* Decoration: a slow radial wash (layer 0) and a faint survey grid (layer 1).
   Both are confined to the band, so they can't bleed across the page. */
.band-dark::before {
  content: '';
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 150%;
  z-index: var(--z-background);
  background:
    radial-gradient(58% 50% at 22% 8%,  rgba(255, 90, 31, .20), transparent 62%),
    radial-gradient(46% 44% at 84% 26%, rgba(124, 192, 11, .12), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
.band-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--z-decoration);
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: var(--z-content); }

/* Optional photographic backdrop.
 *
 * Drop a wide, dark, low-detail image at public/assets/img/hero.jpg and add
 * `style="--hero-photo:url('/assets/img/hero.jpg')"` to the hero section. The
 * gradient wash and grid stay on top, and the image is dimmed hard so the
 * headline keeps its contrast — the hero currently passes AA on the flat
 * background, and a photo must not quietly break that.
 *
 * Left unset, nothing renders and the hero looks exactly as it does now.
 */
.band-dark[style*="--hero-photo"]::before {
  background-image:
    linear-gradient(90deg, var(--ink-950) 18%, rgba(7, 10, 9, .78) 55%, rgba(7, 10, 9, .55)),
    radial-gradient(58% 50% at 22% 8%,  rgba(255, 90, 31, .20), transparent 62%),
    var(--hero-photo);
  background-size: cover, auto, cover;
  background-position: center, center, center right;
  animation: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* Two-column feature row. A CLASS, not an inline grid-template — inline styles
   can't be overridden by a media query, which previously left these locked at
   two columns on a phone. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s5), 5vw, var(--s8));
  align-items: center;
}
.split-media-first > :first-child { order: -1; }

/* --------------------------------------------------------- product shots */
/* Screenshots are rendered from the real stylesheet by design/build-mockups.php
   and captured at 2x, so they stay sharp on retina. The frame here is what
   makes a flat PNG read as a window rather than a picture. */
.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(12, 20, 16, .10);
  box-shadow:
    0 1px 2px rgba(12, 20, 16, .06),
    0 24px 56px rgba(12, 20, 16, .16);
}
.shot img { display: block; width: 100%; height: auto; }

/* On a dark band the light border disappears; lift it instead. */
.band-dark .shot {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .55);
}

/* Runs past the right edge of its column so the hero feels like a window onto
   something larger. The band's own overflow:hidden does the clipping, so this
   can never introduce a horizontal scrollbar. */
.shot-bleed { width: 132%; max-width: none; }

/* A phone screenshot overlapping a desktop one — the "same thing, both
   places" idea, without needing a second illustration. */
.shot-pair { position: relative; padding-bottom: var(--s6); }
.shot-pair .shot-phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 27%;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 48px rgba(12, 20, 16, .28);
}

/* --text-faint is a 2.8:1 grey — fine for a decorative hint, not for a caption
   that carries meaning. --text-soft clears AA on both bone and white. */
.shot-caption {
  margin-top: var(--s3);
  font-size: .8rem;
  color: var(--text-soft);
  text-align: center;
}
.band-dark .shot-caption { color: var(--text-on-dark-soft); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding-block: var(--s3);
  background: rgba(7, 10, 9, .82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.site-header .container { display: flex; align-items: center; gap: var(--s4); }

/* Mobile menu button — hidden on desktop, shown below the nav breakpoint. */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border-radius: var(--r-sm);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .14); }

.nav-panel { display: contents; }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -.01em;
  color: #fff;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  /* Explicit, so the monogram doesn't inherit the footer's 70%-white link
     colour and fade to 1.5:1. A brand mark is exempt from contrast rules, but
     it should still look deliberate. */
  color: #fff;
  font-size: .92rem;
  box-shadow: var(--shadow-accent);
}

.nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.nav a { color: var(--text-on-dark-soft); font-weight: 500; font-size: .94rem; transition: color var(--t) var(--ease); }
.nav a:hover { color: #fff; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }

.hero { padding-block: clamp(var(--s7), 9vw, 128px) clamp(var(--s7), 8vw, var(--s8)); }
.hero-inner { max-width: 810px; }
.hero .display { margin-block: var(--s4) var(--s5); }

/* Product-led hero: copy on the left, the app on the right. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: center;
}
.hero-grid .hero-inner { max-width: none; }
/* Accent phrase in the display headline. The rule is drawn as a box-shadow
   rather than a background gradient so it sits BELOW the descenders instead of
   slicing through them — at this type size a gradient stop reads as a
   highlighter bar, which is not the effect. */
.hero .display em {
  font-style: normal;
  color: var(--accent);
  box-shadow: inset 0 -0.09em 0 rgba(255, 90, 31, .32);
  padding-bottom: .04em;
}
.hero-actions { margin-top: var(--s6); }
.hero-note { margin-top: var(--s4); font-size: .88rem; color: var(--text-on-dark-soft); }

/* Bento feature grid — mixed tile sizes so the eye has somewhere to land. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.bento-tile {
  grid-column: span 2;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-wide  { grid-column: span 3; }
.bento-full  { grid-column: span 6; }
.bento-tall  { grid-row: span 2; }
.bento-dark {
  background: var(--ink-900);
  border-color: var(--ink-700);
  color: var(--text-on-dark);
}

.tile-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s4);
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent-deep);
}
.bento-dark .tile-icon { background: rgba(255, 90, 31, .16); color: var(--accent-hot); }
.bento-tile h3 { font-size: 1.18rem; margin-bottom: 6px; }
.bento-tile p  { font-size: .92rem; color: var(--text-soft); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s5); align-items: start; }
.price-card {
  position: relative;
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
}
.price-card.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.price-flag {
  position: absolute;
  top: -12px; left: var(--s6);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-btn);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-block: var(--s3) var(--s2);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.price-amount .per { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--text-soft); }
.price-list { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: 10px; font-size: .93rem; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before {
  content: '';
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath fill='none' stroke='%235d9109' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 4.6 4 7.5 10 1.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  width: 100%;
  padding: var(--s4) 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  text-align: left;
}
.faq-q::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--t) var(--ease);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding-bottom: var(--s4); color: var(--text-soft); }

.site-footer { padding-block: var(--s7) var(--s5); background: var(--ink-950); color: var(--text-on-dark-soft); }
.site-footer a { color: var(--text-on-dark-soft); font-size: .91rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
.footer-col h5 { color: #fff; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: .85rem;
}

/* ============================== AUTH / SIGNUP ============================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s5);
  background: var(--bone-100);
}
.auth-card {
  width: min(440px, 100%);
  padding: var(--s6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.auth-card .logo { color: var(--text); margin-bottom: var(--s5); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .89rem; text-align: center; color: var(--text-soft); }

/* Signup is a two-column split: form on the left, reassurance on the right. */
.signup-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.signup-form-side { display: flex; align-items: center; justify-content: center; padding: var(--s6); background: var(--bone-50); }
.signup-form-inner { width: min(470px, 100%); }
.signup-aside { padding: var(--s7) var(--s6); display: flex; flex-direction: column; justify-content: center; }
.signup-aside ul { list-style: none; padding: 0; display: grid; gap: var(--s4); margin-top: var(--s6); }
.signup-aside li { display: flex; gap: var(--s3); align-items: flex-start; }
.signup-aside li strong { display: block; color: #fff; }
.signup-aside li span { font-size: .91rem; }

.steps { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s6); }
.step { display: flex; align-items: center; gap: var(--s2); font-size: .84rem; color: var(--text-faint); font-weight: 600; }
.step-num {
  width: 23px; height: 23px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: .78rem;
}
.step.is-done .step-num { background: var(--lime); border-color: var(--lime); color: #fff; }
.step.is-current { color: var(--text); }
.step.is-current .step-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-line { width: 26px; height: 1.5px; background: var(--line); }

/* Live subdomain availability feedback */
.subdomain-status { margin-top: 6px; font-size: .84rem; font-weight: 600; min-height: 20px; }
.subdomain-status.is-free  { color: var(--ok); }
.subdomain-status.is-taken { color: var(--bad); }
.subdomain-status.is-checking { color: var(--text-faint); font-weight: 500; }

/* Stripe Elements host */
.stripe-field {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.stripe-field.StripeElement--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .14);
}
.stripe-field.StripeElement--invalid { border-color: var(--bad); }

/* ============================== ERROR PAGE =============================== */
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink-950); color: var(--text-on-dark); padding: var(--s5); }
.error-card { text-align: center; max-width: 460px; }
.error-code { font-family: var(--font-display); font-size: 5.5rem; font-weight: 800; line-height: 1; color: var(--accent); }
.error-card h1 { color: #fff; margin-bottom: var(--s3); }
.error-message { color: var(--text-on-dark-soft); margin-bottom: var(--s5); }
.error-brand { margin-top: var(--s6); font-size: .8rem; color: #4C5B52; letter-spacing: .1em; text-transform: uppercase; }

/* ============================ DARK CONTEXT ===============================

   Text colours for any dark surface, in one place, declared AFTER every
   component rule they need to beat.

   `.band-dark`  a full-width dark section
   `.bento-dark` a dark tile sitting inside a light band
   `.on-dark`    any other dark island — a mockup panel, a preview pane

   Ordering is the whole point. `.bento-tile p` and `.bento-dark p` have
   identical specificity (0,0,1,1), so the later declaration wins. When these
   lived above the component styles, a dark tile rendered --text-soft grey on
   near-black at 3:1. Keep this block last.
========================================================================== */
.band-dark,
.bento-dark,
.on-dark { color: var(--text-on-dark); }

.band-dark h1,  .band-dark h2,  .band-dark h3,  .band-dark h4,
.bento-dark h1, .bento-dark h2, .bento-dark h3, .bento-dark h4,
.on-dark h1,    .on-dark h2,    .on-dark h3,    .on-dark h4 { color: #fff; }

.band-dark p,  .band-dark .lede,  .band-dark .muted,
.bento-dark p, .bento-dark .lede, .bento-dark .muted,
.on-dark p,    .on-dark .lede,    .on-dark .muted { color: var(--text-on-dark-soft); }

.band-dark strong, .bento-dark strong, .on-dark strong { color: #fff; }

.band-dark a:not(.btn),
.bento-dark a:not(.btn),
.on-dark a:not(.btn) { color: #fff; }

.band-dark hr, .bento-dark hr, .on-dark hr { border-color: var(--line-dark); }

/* The bright accent is legible only against the dark base; on bone it drops
   to 2.8:1, which is why `.eyebrow` defaults to the deeper tone. */
.band-dark .eyebrow,
.bento-dark .eyebrow,
.on-dark .eyebrow { color: var(--accent); }

.band-dark .tiny, .on-dark .tiny { color: var(--text-on-dark-soft); }

/* ================================ MOTION ================================= */
/* Scroll reveals are gated on `.js`, which an inline script in <head> sets.
   Without that gate, `opacity: 0` is the default state — so a blocked, failed
   or slow script would leave the entire page invisible. Content must never
   depend on JavaScript to be readable; only the animation does. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* Stagger children of a revealed group. */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: riseIn .5s var(--ease) both; }

/* ============================== RESPONSIVE =============================== */
@media (max-width: 1024px) {
  .bento-tile { grid-column: span 3; }
  .bento-wide { grid-column: span 6; }
  .signup-split { grid-template-columns: 1fr; }
  .signup-aside { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------- marketing: tablet down */
@media (max-width: 900px) {
  /* Feature rows stack. Media always goes above the copy, whichever side it
     sits on at desktop, so the reading order stays image-then-explanation. */
  .split { grid-template-columns: 1fr; gap: var(--s5); }
  .split-media-first > :first-child,
  .split > .split-media { order: -1; }

  /* Hero image drops below the copy and stops bleeding. */
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .shot-bleed { width: 100%; }

  /* A 27% phone over a stacked screenshot would be unreadable; show it inline. */
  .shot-pair { padding-bottom: 0; display: grid; gap: var(--s4); }
  .shot-pair .shot-phone {
    position: static;
    width: 62%;
    margin-inline: auto;
  }

  /* Swap the desktop links for a disclosure panel. */
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions { margin-left: 0; }

  .nav-panel {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    padding: var(--s4) clamp(var(--s4), 5vw, var(--s5)) var(--s5);
    background: rgba(7, 10, 9, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  }
  .nav-panel.is-open { display: block; }

  .nav-panel .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  .nav-panel .nav a {
    padding: 13px 0;
    font-size: 1.05rem;
    color: #fff;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-panel .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    margin: var(--s4) 0 0;
  }
  .nav-panel .nav-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  :root { --rail: 0px; }

  .shell { grid-template-columns: 1fr; }

  /* Off-canvas rail on small screens; toggled by [data-rail-toggle]. */
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--t) var(--ease);
  }
  .rail.is-open { transform: none; box-shadow: var(--shadow-lg); }

  .rail-scrim {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(7, 10, 9, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t) var(--ease);
  }
  .rail-scrim.is-open { opacity: 1; pointer-events: auto; }

  .page, .topbar { padding-inline: var(--s4); }
  .bento-tile, .bento-wide { grid-column: span 6; }
  .dl { grid-template-columns: 1fr; gap: 2px var(--s4); }
  .dl dd + dt { margin-top: var(--s3); }
}

/* ------------------------------------------------------ marketing: phone */
@media (max-width: 620px) {
  /* Slightly gentler floor than the fluid clamp gives on its own, so a long
     headline doesn't run out of room on a 360px screen. */
  .display { font-size: clamp(2.15rem, 10.5vw, 3rem); letter-spacing: -.02em; }
  h1        { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  h2        { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }

  .hero { padding-block: var(--s7) var(--s7); }
  .hero .lede { font-size: 1rem; }
  .hero-actions { margin-top: var(--s5); }
  /* Full-width stacked CTAs — easier to hit, and they stop the row wrapping
     into a ragged two-and-a-half button shape. */
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-note { font-size: .84rem; }

  .price-card { padding: var(--s5); }
  .price-amount { font-size: 2.5rem; }

  .faq-q { font-size: 1.02rem; gap: var(--s3); }
  .bento-tile { padding: var(--s4); }
  .tile-icon { width: 34px; height: 34px; margin-bottom: var(--s3); }
}

@media (max-width: 620px) {
  /* Footer links are an 18px line box on their own — under WCAG 2.2's 24px
     minimum target size, and fiddly with a thumb. Pad them into a real target
     and drop the list gap so the column doesn't grow. */
  .footer-col ul { gap: 0; }
  .footer-col ul a {
    display: inline-block;
    padding-block: 8px;
  }

  .nav-toggle { min-width: 42px; min-height: 42px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-bottom { flex-direction: column; gap: var(--s2); }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .container, .container-narrow, .container-wide {
    width: min(100%, 100% - 2 * var(--s4));
  }
}

/* Anyone who's asked for less motion gets none of the decorative kind. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .rail, .topbar, .site-header, .site-footer, .form-actions, .btn { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  body { background: #fff; }
  .card, .table-wrap { border-color: #ccc; box-shadow: none; }
}
