/* MiraOps by DispatchWA. Built to match the design mockups (Nov 26, 2026).
   Dark, plain, one orange used sparingly (primary buttons, one headline word, the logo).
   Headings: Plus Jakarta Sans (self-hosted, SIL Open Font License, see fonts/OFL.txt).
   Body: the system font, for easy reading.
   Spacing: 8px grid in rem (1rem = 16px at 1440px wide; the root grows on big screens).
   Layout: one 12-column grid with the same gutter and gap everywhere, so edges line up. */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0b0d;
  --bg-2: #121418;
  --surface: #16191d;
  --field: #15181c;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f2f3f5;
  --body: #c9ced5;
  --muted: #9aa1ab;
  --accent: #f26522;
  --accent-2: #ff7d3d;
  --red: #ff5f5f;
  --green: #7ee2a8;

  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s6: 3rem;    --s8: 4rem;   --s12: 6rem;  --s16: 8rem;

  --t-xs: 0.875rem; --t-sm: 1rem; --t-md: 1.125rem; --t-lg: 1.25rem; --t-xl: 1.5rem; --t-2xl: 1.875rem;
  /* fluid sizes: phone value at ~390px, desktop value at 1440px, smooth in between */
  --t-h2: clamp(2.25rem, 1.8rem + 1.85vw, 3.5rem);
  --t-h1: clamp(2.125rem, 1.2rem + 4.46vw, 6.25rem);
  --f-lede: clamp(1.125rem, 0.95rem + 0.65vw, 1.5rem);
  --f-body: clamp(1.125rem, 1rem + 0.42vw, 1.375rem);
  --f-lg: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  --f-md: clamp(1rem, 0.85rem + 0.35vw, 1.125rem);
  --f-h3: clamp(1.25rem, 1rem + 0.56vw, 1.5rem);
  --f-h3-lg: clamp(1.25rem, 0.9rem + 1.1vw, 1.875rem);

  /* side gutters: 24px phones, ~32px tablets, 40px desktop */
  --gutter: clamp(24px, 17px + 1.8vw, 40px);
  /* gutters never smaller than a notch or rounded corner (landscape phones) */
  --pad-l: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
  /* layout grows with the window up to about 2200px; only text lines are capped (--measure) */
  --max: 2120px;
  --measure: 68ch;
  --gap: var(--s4);
  --section: var(--s16);
  --nav-h: 5rem;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Jakarta", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior: none; font-size: clamp(16px, 1.1111vw, 20px); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--s2)); }
body { overscroll-behavior: none; margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-md)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
/* thin dark scrollbars: standard properties for Firefox, ::-webkit-scrollbar for Chrome, Safari, Brave */
@supports not selector(::-webkit-scrollbar) {
  html, .menu, .toc-drop nav, textarea { scrollbar-width: thin; scrollbar-color: #3a3e45 var(--bg); }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3e45; border-radius: 8px; border: 1px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #5a5f68; }
::-webkit-scrollbar-corner { background: var(--bg); }
.menu, .toc-drop nav, textarea { overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--s2); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
/* per-glyph tightening for the heading font's wide punctuation (see build.py tighten) */
.pn { margin-left: -0.085em; }
.pa { margin: 0 -0.06em; }
/* the heading font's hyphen is as long as an en dash: draw it shorter, keep normal gaps */
.pd { display: inline-block; transform: scaleX(0.7); margin: 0 -0.11em; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad-l) + var(--pad-r)); margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: -9999px; top: var(--s1); z-index: 100; background: var(--accent); color: #000; padding: var(--s1) var(--s2); }
.skip:focus { left: var(--s1); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 var(--s3); border-radius: 6px; background: var(--accent); color: #fff; font: 700 var(--t-sm)/1 var(--head); letter-spacing: -0.01em; border: 1.5px solid var(--accent); white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-sm { min-height: 2.75rem; padding: 0 var(--s2); font-size: var(--t-sm); }
.btn-lg { min-height: 3.5rem; padding: 0 var(--s4); font-size: var(--t-lg); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: #fff; }
.btn:disabled { background: #34373c; border-color: #34373c; color: #9aa1ab; cursor: default; }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,0.6); }
.text-link:hover { text-decoration-color: var(--accent); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: rgba(10, 11, 13, 0.92); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; max-width: calc(var(--max) + var(--pad-l) + var(--pad-r)); margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); display: flex; align-items: center; gap: var(--s6); }
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; line-height: 1; min-height: 44px; padding: 0.375rem 0; white-space: nowrap; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.875rem; letter-spacing: -0.04em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-by { font-size: var(--t-md); font-weight: 500; color: var(--body); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(1.5rem, 2.4vw, 3rem); margin-left: clamp(1rem, 2vw, 2rem); white-space: nowrap; }
.nav-links a { color: var(--text); font-size: var(--t-md); font-weight: 500; padding: 0.75rem 0; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-2); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2rem); }
.nav-signin { color: var(--text); font-weight: 500; font-size: var(--t-md); padding: 0.75rem 0; white-space: nowrap; }
.nav-signin:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, top .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg); padding: var(--s6) var(--pad-r) calc(var(--s4) + env(safe-area-inset-bottom)) var(--pad-l); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: var(--s1); }
.menu nav a { font: 800 2.25rem/1.15 var(--head); letter-spacing: -0.03em; padding: var(--s1) 0; }
.menu-foot { display: grid; gap: var(--s2); margin-top: var(--s6); }
.menu-foot .btn { min-height: 3.75rem; }

/* hero */
.hero { padding: calc(var(--nav-h) + var(--s8)) 0 calc(var(--s8) + var(--s1)); }
.hero-kicker { color: var(--body); font-size: var(--f-lg); margin: 0 0 var(--s3); }
.hero h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.03em; max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: var(--f-body); line-height: 1.5; color: var(--body); margin: var(--s3) 0 0; max-width: var(--measure); }
.hero-actions { margin-top: var(--s4); display: flex; gap: var(--s3); flex-wrap: wrap; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; }
/* hero: text left, the hauler clip (or the dispatch screenshot once it exists) right, same height */
.hero-grid:has(.hero-media) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s6); align-items: stretch; }
.hero-media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); min-height: 20rem; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: top left; }

/* sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.03em; }
.section h2:first-child, .who-title, .sms-title { text-box: trim-start cap alphabetic; }
.features-more, .table-note, .form-fine, .rows-table > div:last-child dd, .who-list > div:nth-last-child(-n+2) p { text-box: trim-end cap alphabetic; }
.rows-table > div:last-child { padding-bottom: 0; }
h3 { font-size: var(--t-xl); line-height: 1.2; }
.section-lede { font-size: var(--f-lede); line-height: 1.5; color: var(--body); max-width: var(--measure); margin: var(--s2) 0 0; }

/* features: one 3x3 grid; screenshot row above it shows only once the files exist */
.shots:empty { display: none; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); }
.shots .shot { aspect-ratio: 16 / 9; }
.shots .shot img { height: 100%; object-fit: cover; object-position: top left; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); margin-top: var(--s6); }
.features > div { padding: var(--s3) 0; border-top: 1px solid var(--line-2); }
.features h3 { font-size: var(--f-h3); margin-bottom: var(--s1); white-space: nowrap; }
.features p { margin: 0; color: var(--body); font-size: var(--f-md); line-height: 1.55; max-width: var(--measure); }
.features-more { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); color: var(--body); font-size: var(--f-lg); }
.features-more strong { color: var(--text); font-family: var(--head); font-weight: 700; }

/* who: heading on top, the tall clip on the left, four rows on the right */
.who-title { margin-bottom: var(--s6); }
/* four audiences as a 2 x 2 grid across the full width */
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); border-top: 1px solid var(--line-2); }
.who-list > div { padding: var(--s4) 0; border-top: 1px solid var(--line-2); }
.who-list > div:nth-child(-n+2) { border-top: 0; }
.who-list > div:nth-last-child(-n+2) { padding-bottom: 0; }
.who-list h3 { font-size: var(--f-h3-lg); margin-bottom: var(--s1); }
.who-list p { margin: 0; color: var(--body); font-size: var(--f-lg); line-height: 1.5; max-width: var(--measure); }
.sms-copy > p:first-child { text-box: trim-start cap alphabetic; }
.video-toggle { position: absolute; right: var(--s1); bottom: var(--s1); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.45); cursor: pointer; opacity: 0.75; transition: opacity .2s; }
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; background: rgba(0,0,0,0.7); }
.video-toggle::before, .video-toggle::after { content: ""; position: absolute; top: 15px; width: 4px; height: 14px; background: #fff; border-radius: 1px; }
.video-toggle::before { left: 16px; }
.video-toggle::after { left: 24px; }
.video-toggle[aria-pressed="true"]::before { left: 18px; width: 0; height: 0; background: none; border-radius: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.video-toggle[aria-pressed="true"]::after { display: none; }

/* connections and security: label | value table */
.rows-table { margin: var(--s6) 0 0; border-top: 1px solid var(--line-2); }
.rows-table > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--line-2); }
.rows-table > div:first-child { border-top: 0; }
.rows-table dt { font: 700 var(--t-xl)/1.25 var(--head); letter-spacing: -0.02em; }
.rows-table dd { margin: 0; color: var(--text); font-size: var(--f-body); line-height: 1.5; max-width: var(--measure); }
.table-note { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); color: var(--body); font-size: var(--t-md); }

/* text messages */
.sms-title { grid-column: 1 / -1; margin-bottom: var(--s6); }
.sms-thread { grid-column: 1 / span 5; }
.sms-copy { grid-column: 7 / span 6; }
.sms-copy p { color: var(--text); font-size: var(--f-body); line-height: 1.55; margin-bottom: var(--s3); max-width: var(--measure); }
.sms-copy .text-link { font-size: var(--f-body); display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -0.5rem; }
.thread { display: flex; flex-direction: column; gap: var(--s2); }
.bubble { position: relative; margin: 0; padding: 0.875rem 1.25rem; border-radius: 22px; font-size: var(--f-lg); line-height: 1.4; max-width: 92%; color: #fff; background: #4a4d53; }
.bubble.in { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; border-bottom-right-radius: 6px; background: #e8eaed; color: #111316; font-weight: 500; }
.sample-note { color: var(--body); font-size: var(--t-sm); margin: var(--s3) 0 0; }

/* request a demo */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1240px) {
  /* heading and intro on the left; the form, at most 45rem wide, on the right, tops level */
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 45rem); column-gap: var(--s8); align-items: start; }
  .contact-grid .quote-form { margin-top: 0; }
  .contact-grid .field label { text-box: trim-both cap alphabetic; }
}
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.quote-form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 0.75rem; align-content: start; }
.field label { font: 700 var(--t-md)/1.2 var(--head); letter-spacing: -0.01em; color: var(--text); }
.field input, .field textarea, .field select { width: 100%; min-height: 3.5rem; font: inherit; font-size: var(--t-md); color: var(--text); background: var(--field); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius); padding: 0.875rem 1rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #e6e8eb 50%), linear-gradient(135deg, #e6e8eb 50%, transparent 50%); background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 3rem; }
.field select:invalid { color: var(--body); }
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8b919a; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border: 2px solid var(--red); }
.form-alert { margin: 0; color: var(--red); font-weight: 650; font-size: var(--t-md); }
.form-alert:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); margin-top: var(--s1); }
.form-status { margin: 0; font-size: var(--t-md); color: var(--body); }
.form-status:empty { display: none; }
.form-status.error { color: var(--red); font-weight: 600; }
.form-status.ok { color: var(--green); background: rgba(46, 160, 90, 0.14); border: 1px solid rgba(80, 200, 120, 0.45); border-radius: var(--radius); padding: var(--s2) var(--s3); font-size: var(--t-lg); width: 100%; max-width: 40rem; }
.form-fine { margin: 0; color: var(--body); font-size: var(--t-sm); }
.form-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.quote-form.sent .field, .quote-form.sent button, .quote-form.sent .form-fine, .quote-form.sent .form-alert { display: none; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: var(--s12); background: var(--bg); }
.footer-brand .brand { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
.footer-brand .brand-name { font-size: 3rem; }
.footer-brand .brand-by { font-size: var(--t-xl); }
.footer-brand p { color: var(--body); margin-top: var(--s3); max-width: 24rem; font-size: var(--t-lg); line-height: 1.45; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: end; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: var(--s4); row-gap: 0; }
.footer-links a { color: var(--body); font-size: var(--f-lg); width: fit-content; min-height: 44px; display: inline-flex; align-items: center; padding: 0.25rem 0; }
.footer-links a:hover { color: #fff; }
.footer-links { justify-self: end; }
.footer-base { margin-top: var(--s8); padding-top: var(--s3); padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom)); }
.footer-base p { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); color: var(--body); font-size: var(--t-md); }

/* long pages */
.doc-hero { padding: calc(var(--nav-h) + var(--s6)) 0 var(--s2); }
.doc-hero .kicker { color: var(--body); font-size: var(--t-md); margin: 0 0 var(--s2); }
.doc-hero h1 { font-size: clamp(2.75rem, 5vw, 5rem); letter-spacing: -0.03em; line-height: 1; }
.doc-hero h1 em { font-style: normal; color: var(--accent); }
/* subtitle and intro share one line length (about 68 characters of body text) */
.doc-hero p:not(.kicker) { color: var(--body); margin: var(--s2) 0 0; font-size: var(--f-lede); line-height: 1.45; max-width: 62rem; text-wrap: pretty; }

.doc { padding-top: var(--s6); padding-bottom: var(--section); }
.doc-rows > .lrow:last-child { padding-bottom: 0; }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; display: flex; flex-direction: column; padding-right: var(--s3); border-right: 1px solid var(--line-2); }
.toc strong { font: 700 var(--t-lg)/1.3 var(--head); color: var(--text); margin-bottom: var(--s2); }
.toc a { color: var(--body); font-size: var(--t-sm); line-height: 1.35; padding: 0.5rem 0 0.5rem var(--s2); border-left: 3px solid transparent; margin-left: -1px; }
.toc a:hover { color: #fff; }
.toc a.on { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.toc-drop { display: none; }
.prose { grid-column: 4 / span 8; padding-left: var(--s4); color: var(--text); font-size: var(--t-md); line-height: 1.65; max-width: 48rem; }
.prose h2, .lrow h2 { font-size: var(--t-2xl); letter-spacing: -0.025em; color: var(--text); line-height: 1.2; }
.prose h2 { margin: var(--s6) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-lg); color: var(--text); margin: var(--s4) 0 var(--s1); }
.prose ul, .lrow ul { padding-left: var(--s3); margin: 0 0 var(--s2); }
.prose li, .lrow li { margin-bottom: var(--s1); }
.prose strong, .lrow strong { color: #fff; }
.prose a, .lrow a, .doc-intro a, .doc-credits a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose a:hover, .lrow a:hover { color: var(--accent-2); }

/* terms and text policy: heading | text rows */
.doc-r { padding-top: var(--s4); }
.doc-rows { grid-column: 1 / -1; }
.page-sms .doc-rows { grid-column: 1 / span 8; }
.doc-intro { color: var(--text); font-size: var(--t-md); line-height: 1.6; max-width: var(--measure); margin: 0 0 var(--s4); }
.lrow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--nav-h) + var(--s2)); }
.page-sms .lrow { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); }
.lrow-body { color: var(--text); font-size: var(--t-md); line-height: 1.6; }
.lrow-body > * { max-width: var(--measure); }
.lrow-body > :last-child { margin-bottom: 0; }
.lrow-body > :first-child { margin-top: 0; }
.lrow h3 { font-size: var(--t-lg); margin: var(--s3) 0 var(--s1); }
.sample-card { grid-column: 9 / span 4; align-self: start; position: sticky; top: calc(var(--nav-h) + var(--s4)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); }
.sample-card h2 { font-size: var(--t-2xl); margin-bottom: var(--s3); }
.sample-card { display: flex; flex-direction: column; gap: var(--s1); }
.sample-card .bubble { max-width: 92%; }
.sample-card .bubble.in { background: #3c3f45; }
.sample-card .sample-note { margin-top: var(--s2); }

/* credits */
.doc-credits { padding-top: var(--s4); padding-bottom: var(--section); }
.doc-credits p:last-child { margin-bottom: 0; text-box: trim-end cap alphabetic; }
.doc-credits p { color: var(--body); font-size: var(--t-lg); line-height: 1.55; max-width: var(--measure); }

/* 404 */
/* the block sits in the middle of the space between the nav and the footer */
.notfound { min-height: 82vh; min-height: 82svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + var(--s8)) var(--pad-r) var(--s8) var(--pad-l); }
.notfound h1 { font-size: clamp(8rem, 22vw, 21rem); letter-spacing: -0.03em; line-height: 0.85; }
.notfound h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); font-weight: 700; letter-spacing: -0.03em; margin: var(--s4) auto var(--s6); max-width: 9.5em; }

/* full nav links need about 1200px; below 1240 the menu button takes over so links never squish */
@media (max-width: 1239px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}
/* "On this page": a dropdown below 1240px on every legal page */
@media (max-width: 1239px) {
  .toc-drop { display: block; grid-column: 1 / -1; margin-bottom: var(--s4); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
  .toc-drop summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; padding: 0 var(--s3); font: 700 var(--t-lg)/1 var(--head); }
  .toc-drop summary::-webkit-details-marker { display: none; }
  .toc-drop summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
  .toc-drop[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc-drop nav { display: flex; flex-direction: column; padding: 0 var(--s3) var(--s2); }
  .toc-drop nav a { color: var(--body); padding: 0.625rem 0; border-top: 1px solid var(--line); }
  .page-sms .toc-drop { order: 0; }
}
/* from 1240px, Privacy and Terms: section title | text | sticky "On this page" column */
@media (min-width: 1240px) {
  .page-privacy .doc-r, .page-terms .doc-r { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; column-gap: var(--s8); align-items: start; }
  .page-privacy .doc-rows, .page-terms .doc-rows { grid-column: 1; grid-row: 1; }
  .page-privacy .lrow, .page-terms .lrow { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .page-privacy .toc-drop, .page-terms .toc-drop { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav-h) + var(--s4)); max-height: calc(100vh - var(--nav-h) - var(--s8)); overflow-y: auto; overscroll-behavior: none; padding-left: var(--s3); border-left: 1px solid var(--line-2); }
  .page-privacy .toc-drop summary, .page-terms .toc-drop summary { pointer-events: none; }
  .toc-drop summary { list-style: none; cursor: default; font: 700 var(--t-lg)/1.3 var(--head); color: var(--text); margin-bottom: var(--s2); }
  .toc-drop summary::-webkit-details-marker { display: none; }
  .toc-drop nav { display: flex; flex-direction: column; }
  .toc-drop nav a { color: var(--body); font-size: var(--t-sm); line-height: 1.35; min-height: 44px; display: flex; align-items: center; padding: 0.25rem 0 0.25rem var(--s2); border-left: 3px solid transparent; margin-left: calc(-1 * var(--s3) - 2px); padding-left: calc(var(--s3) + 2px); }
  .toc-drop nav a:hover { color: #fff; }
  .toc-drop nav a.on { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
}
/* tablet */
@media (max-width: 1080px) {
  :root { --section: var(--s12); --gap: var(--s3); }
  /* tablets: clip above the rows, text thread above the copy, features as label | text rows */
  .sms-thread, .sms-copy { grid-column: 1 / -1; }
  .hero-grid:has(.hero-media) { grid-template-columns: 1fr; }
  .hero-media { margin-top: var(--s6); aspect-ratio: 16 / 10; max-height: 75vh; max-height: 75svh; min-height: 0; }
  .who-list > div { padding: var(--s3) 0; }
  .sms-thread { max-width: 36rem; }
  .sms-copy { margin-top: var(--s4); max-width: 44rem; }
  .features { grid-template-columns: 1fr; }
  .features > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); align-items: baseline; }
  .features h3 { margin-bottom: 0; }
  .shots { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: var(--s2); }
  .footer-links { justify-self: start; }
  .toc { display: none; }
  .prose { grid-column: 1 / -1; padding-left: 0; }
  .page-sms .doc-rows { grid-column: 1 / -1; order: 2; }
  .sample-card { grid-column: 1 / -1; position: static; margin-bottom: var(--s4); }
  .page-sms .sample-card { order: 1; }
}
/* Who it's for: one column once two would be narrower than about 380px */
@media (max-width: 819px) {
  .who-list { grid-template-columns: 1fr; }
  .who-list > div:nth-child(2) { border-top: 1px solid var(--line-2); }
  .who-list > div:nth-last-child(2) { padding-bottom: var(--s3); }
  .who-list > div:nth-last-child(2) p { text-box: none; }
}
/* phone */
@media (max-width: 760px) {
  :root { --nav-h: 4.5rem; --section: var(--s8); --gap: var(--s2); }
  .nav-cta .btn, .nav-signin { display: none; }
  .brand-name { font-size: 1.625rem; }
  .nav .brand, .menu .brand { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .nav .brand-by { font-size: var(--t-xs); }
  .hero { padding: calc(var(--nav-h) + var(--s4)) 0 var(--s6); }
  .hero-kicker { margin-bottom: var(--s2); }
  .bubble { max-width: 88%; }
  .features > div { display: block; }
  .features h3 { margin-bottom: var(--s1); }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
  .features { grid-template-columns: 1fr; }
  .features > div { padding: var(--s2) 0; }
  .features h3 { white-space: normal; }
  .who-title, .sms-title { margin-bottom: var(--s4); }
  .hero-media { margin-top: var(--s4); border-radius: 10px; }
  .rows-table { margin-top: var(--s4); border-top: 1px solid var(--line-2); }
  .rows-table > div, .rows-table > div:first-child { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s2); padding: var(--s2) 0; }
  .rows-table > div:first-child { border-top: 0; }
  .rows-table dt { font-size: var(--t-md); }
  .rows-wide > div, .rows-wide > div:first-child { grid-template-columns: 1fr; gap: 0.25rem; }
  .quote-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer { padding-top: var(--s8); }
  .footer-brand .brand-name { font-size: 2.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 0; padding-bottom: var(--s4); border-bottom: 1px solid var(--line-2); }
  .footer-links { justify-self: stretch; flex-direction: column; padding: var(--s3) 0; border-bottom: 1px solid var(--line-2); }
  .footer-base { margin-top: 0; padding-top: 0; }
  .footer-base p { border-top: 0; }
  .doc-hero { padding: calc(var(--nav-h) + var(--s4)) 0 var(--s4); }
  .doc { padding-top: var(--s4); padding-bottom: var(--s8); }
  .prose h2, .lrow h2 { font-size: var(--t-xl); }
  .lrow, .page-sms .lrow { grid-template-columns: 1fr; gap: var(--s2); }
  .notfound h2 { margin-bottom: var(--s4); }
  .notfound .btn { width: 100%; max-width: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-toggle { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
