/* Everhold Insurance */
:root {
  --green: #004638;
  --green-900: #00342a;
  --green-800: #003d31;
  --green-600: #0d5c4b;
  --green-100: #e3eeea;
  --green-50: #f1f6f4;
  --cream: #ecd59b;
  --cream-200: #e4c97f;
  --cream-line: #d6b968;
  --ink: #0a0f0d;
  --ink-2: #33403b;
  --muted: #5b6863;
  --line: #dfe5e2;
  --white: #fff;
  --amber: #b45309;
  --amber-bg: #fff4dc;
  --amber-line: #f4c76b;
  --red: #b42318;
  --red-bg: #fdecea;
  --red-line: #f2a7a0;
  --ok: #157f3c;
  --ok-bg: #e7f5ec;
  /* Spacing scale (4px grid). Every margin, padding and gap uses one of these steps. */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px; --space-32: 128px;
  /* Section rhythm: more room between sections than inside them. */
  --section-y: clamp(56px, 7vw, 96px);
  /* Type ramp: captions .75 / .8125, small .875, ui .9375, base 1, body 1.0625 (17px), lead 1.125, then headings. */
  --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-ui: 0.9375rem; --fs-body: 1.0625rem; --fs-lead: 1.125rem;
  --measure: 60ch;
  /* Corners: controls 8, compact cards 12, large cards 16, pills. */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(0 52 42 / 0.06), 0 8px 24px rgb(0 52 42 / 0.08);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.08), 0 24px 60px rgb(0 20 16 / 0.28);
  /* A quieter card shadow, mixed from the existing deep green. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--green-900) 6%, transparent), 0 4px 12px color-mix(in srgb, var(--green-900) 5%, transparent);
  --ease: 200ms ease;
  --f-head: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-script: 'Dancing Script', cursive;
  --trap: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
  --header-h: 72px;
}

*, *::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 { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid #2f8f73; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Placeholder tags: intentionally loud so nothing ships unfilled */
.ph { display: inline-block; font: 600 0.78em/1.3 var(--f-body); letter-spacing: 0; background: #fff3c4; color: #7a4b00; border: 1.5px dashed #d99a00; border-radius: 4px; padding: 1px 6px; vertical-align: middle; white-space: normal; text-transform: none; }
.ph-block { display: block; width: fit-content; margin-top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-sm); border: 2px solid transparent; font: 600 1rem/1.2 var(--f-head); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-cream { background: var(--cream); color: var(--green); }
.btn-cream:hover { background: #fff; color: var(--green); }
.btn-outline-light { border-color: rgb(236 213 155 / 0.6); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--green); }
.btn-lg { min-height: 56px; padding: 16px 24px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); flex-shrink: 0; }
.brand-mark { width: 30px; height: 36px; color: var(--green); }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-head); }
.brand-name { font-weight: 600; font-size: 1.28rem; letter-spacing: 0.14em; color: var(--ink); text-transform: uppercase; }
.brand-sub { font-weight: 500; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--green); margin-top: 4px; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; }
.site-nav a:not(.btn):hover { color: var(--green); background: var(--green-50); }
.site-nav a[aria-current='page'] { color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ''; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; 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: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgb(0 0 0 / 0.08); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: 16px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--green); padding-left: 16px; }
  .nav-cta { margin-top: 16px; min-height: 52px; }
}

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
/* Light sage band for alternating sections (cream is kept for small accents only). */
.section-tint { background: var(--green-50); }
.section-tint + .section-contact { background: #fff; border-top: 1px solid var(--line); }
.section-green { background: var(--green); color: var(--cream); }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a:not(.btn) { color: var(--cream); }
.pattern { background-image: url('/assets/img/pattern-e.svg?v=06cfd4cf'); background-size: 220px; }
.eyebrow { font: 600 0.8125rem/1.2 var(--f-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 18px; height: 12px; background: currentColor; clip-path: var(--trap); opacity: 0.85; }
.section-green .eyebrow { color: var(--cream); }
.lede { font-size: 1.125rem; color: var(--ink-2); }
.section-green .lede, .section-green p { color: rgb(236 213 155 / 0.88); }
.section-head { max-width: 760px; margin-bottom: var(--space-12); }
.section-head-split { max-width: none; display: grid; gap: 12px 64px; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1fr 1.1fr; align-items: end; } }
.fine { font-size: 0.9375rem; color: var(--muted); }
/* Muted gray is under 4.5:1 on the gold, so fine print on gold panels uses the darker ink. */
.hero .fine, .next-box .fine, .carry .fine, .building-banner .fine, .rsvp-event .fine, .guarantee .fine, .fast-lane .fine, .guide-box .fine { color: var(--ink-2); }
.muted { color: var(--muted); }

/* Hero */
.hero { background: var(--cream); padding: clamp(64px, 7vw, 96px) 0 clamp(72px, 7.5vw, 104px); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cream-line); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero h1 { color: var(--green-900); max-width: 15ch; }
.hero .lede { max-width: 56ch; }
.hero-note { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.hero-art { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.hero-frame { clip-path: var(--trap); background: var(--green); aspect-ratio: 1 / 1.02; overflow: hidden; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip { position: absolute; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 0.875rem; line-height: 1.35; max-width: 240px; color: var(--ink-2); }
.hero-chip strong { color: var(--ink); }
.hero-chip-1 { left: -18px; bottom: 22%; }
.hero-chip-2 { right: -12px; top: 12%; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.dot-red { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.dot-amber { background: #d97706; box-shadow: 0 0 0 4px var(--amber-bg); }
@media (max-width: 959px) { .hero-art { max-width: 340px; } }
@media (max-width: 520px) { .hero-art { max-width: 280px; margin-top: 8px; } .hero-chip { font-size: 0.8125rem; max-width: 200px; padding: 12px 12px; } .hero-chip-1 { left: -8px; } .hero-chip-2 { right: -8px; } .hero .btn-row .btn { width: 100%; } }

/* Problem */
.problem-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.problem { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 20px; background: #fff; position: relative; }
.problem::before { content: ''; position: absolute; top: -1px; left: 24px; width: 46px; height: 5px; background: var(--green); clip-path: var(--trap); }
.problem .icon { width: 34px; height: 34px; color: var(--green); margin-bottom: 16px; }
.problem h3 { font-size: 1.125rem; }
.problem p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.problem-close { margin: 40px 0 0; font: 600 clamp(1.1rem, 2vw, 1.35rem)/1.4 var(--f-head); color: var(--green); max-width: 760px; }

/* Ledger mockup */
.ledger { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.9375rem; }
.ledger-bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #f6f8f7; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ledger-dots { display: flex; gap: 8px; }
.ledger-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5dcd9; }
.ledger-title { font-family: var(--f-head); font-weight: 600; font-size: 0.9375rem; }
.ledger-title .muted { font-weight: 500; }
.ledger-example { margin-left: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: #7a4b00; background: #fff3c4; border: 1px solid #f0d27a; padding: 4px 8px; border-radius: 999px; }
.ledger-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ledger-stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 760px) { .stat { border-bottom: 0; } .stat:last-child { border-right: 0; } }
.stat-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.stat-v { font: 700 1.375rem/1.1 var(--f-body); color: var(--ink); letter-spacing: -0.01em; }
.stat-v small { font-size: 0.75rem; font-weight: 600; color: var(--amber); margin-left: 4px; letter-spacing: 0; }
.stat-alert .stat-v { color: var(--red); }
.stat-warn .stat-v { color: var(--ink); }
.ledger-tools { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { font: 600 0.875rem/1 var(--f-body); border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.seg .num { background: var(--green-50); color: var(--green); border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; }
.seg[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }
.seg[aria-pressed='true'] .num { background: rgb(255 255 255 / 0.18); color: #fff; }
.ledger-premium { margin-left: auto; color: var(--muted); font-size: 0.875rem; }
.ledger-premium strong { color: var(--ink); }
.ledger-table-wrap { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; min-width: 0; }
.ledger-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #fbfcfb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger-table tbody tr { transition: background 0.15s; }
.ledger-table tbody tr:hover { background: #f9fbfa; }
.ledger-table tr.row-alert { box-shadow: inset 3px 0 0 var(--red); }
.ledger-table tr.row-warn { box-shadow: inset 3px 0 0 #d97706; }
.ledger-table .r { text-align: right; }
.ledger-table .c { text-align: center; }
.ledger-table strong { font-weight: 600; display: block; white-space: nowrap; }
.sub { display: block; font-size: 0.8125rem; color: var(--muted); }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.chip-rented { background: var(--green-100); color: var(--green); }
.chip-rehab { background: #ece9fb; color: #4b3aa8; }
.chip-vacant { background: #eef0f2; color: #475467; }
.chip-contract { background: #e6f0fb; color: #1d4f91; }
.cov { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.cov .num { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.cov-bar { height: 7px; border-radius: 999px; background: #e9eeec; overflow: hidden; }
.cov-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.cov-short .cov-bar span { background: var(--red); }
.cov-short .num { color: var(--red); font-weight: 600; }
.ok, .warn-ico { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; }
.ok { background: var(--ok-bg); color: var(--ok); }
.warn-ico { background: var(--red-bg); color: var(--red); }
.ok svg, .warn-ico svg { width: 15px; height: 15px; }
.flag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; line-height: 1.3; }
.flag-ok { color: var(--ok); background: var(--ok-bg); }
.flag-warn { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); }
.flag-alert { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); }
.ledger[data-view='flagged'] tbody tr:not([data-flagged]) { display: none; }

.ledger-renewal { padding: 20px 20px 24px; background: #fbfcfb; }
.ledger-renewal-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 16px; }
.ledger-renewal-head .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.tl-wrap { position: relative; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tl-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 32px; position: relative; font-size: 0.8125rem; }
.tl-step::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #c6d0cc; z-index: 1; }
.tl-step.done::before { background: var(--green); border-color: var(--green); }
.tl-step.now::before { background: #d97706; border-color: #d97706; box-shadow: 0 0 0 5px var(--amber-bg); }
.tl-day { font-weight: 700; font-family: var(--f-head); }
.tl-what { color: var(--ink-2); }
.tl-state { font-size: 0.75rem; color: var(--muted); }
.tl-step.now .tl-state { color: var(--amber); font-weight: 600; }
.tl-track { position: absolute; top: 11px; left: 12.5%; right: 12.5%; height: 3px; background: #dde4e1; border-radius: 4px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 4px; }
.tl-today { position: absolute; top: -26px; transform: translateX(-50%); white-space: nowrap; }
.tl-today span { font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 4px; }
.tl-today::after { content: ''; position: absolute; left: 50%; top: 16px; width: 2px; height: 16px; background: var(--ink); transform: translateX(-50%); }
.ledger-renewal { padding-top: 32px; }
.ledger-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.ledger-cta p { margin: 0; }

@media (max-width: 860px) {
  .ledger-table thead { display: none; }
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td { display: block; width: 100%; }
  .ledger-table tr { padding: 16px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .ledger-table td { border: 0; padding: 0; }
  .ledger-table td::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .ledger-table td[data-label='Property'] { grid-column: 1 / -1; }
  .ledger-table td[data-label='Property']::before { display: none; }
  .ledger-table td[data-label='Flag'] { grid-column: 1 / -1; }
  .ledger-table td[data-label='Flag']::before { display: none; }
  .ledger-table .r, .ledger-table .c { text-align: left; }
  .ledger-table td[data-label='Status'] { justify-self: start; }
  .ledger-premium { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 16px; }
  .tl-step { flex-direction: row; flex-wrap: wrap; align-items: baseline; text-align: left; padding: 0 0 0 32px; gap: 2px 8px; }
  .tl-step::before { left: 0; top: 3px; transform: none; }
  .tl-what { flex-basis: 100%; }
  .tl-track { left: 7px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .tl-fill { width: 100% !important; height: 72%; }
  .tl-today { display: none; }
  .ledger-renewal { padding-top: 20px; }
  .ledger-example { margin-left: 0; }
}

/* Commitments */
.speed-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 760px) { .speed-grid { grid-template-columns: repeat(3, 1fr); } }
.speed { background: var(--green); color: var(--cream); border-radius: var(--radius-lg); padding: 32px 24px; position: relative; overflow: hidden; }
.speed::after { content: ''; position: absolute; right: -20px; bottom: -30px; width: 120px; height: 110px; background: rgb(236 213 155 / 0.06); clip-path: var(--trap); }
.speed-k { display: block; font: 600 0.8125rem/1 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.speed-v { display: block; font: 700 2rem/1.2 var(--f-head); color: #fff; margin: 12px 0 12px; }
.speed-v .ph { font-size: 1rem; }
.speed p { margin: 0; color: rgb(236 213 155 / 0.85); font-size: 0.9375rem; }
.commit-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .commit-grid { grid-template-columns: repeat(4, 1fr); } }
.commit { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.commit h3 { font-size: 1.0625rem; color: var(--green); }
.commit p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.protocol { margin-top: 64px; background: var(--green-50); border-radius: var(--radius-lg); padding: 40px 32px; border: 1px solid #d6e4de; }
@media (min-width: 900px) { .protocol { padding: 48px 48px; } }
.protocol-head { margin-bottom: 24px; }
.protocol-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--green-900); }
.protocol-head p { margin: 0; color: var(--ink-2); }
.protocol-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 860px) { .protocol-steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.pstep { display: flex; gap: 20px; align-items: flex-start; position: relative; }
@media (min-width: 860px) {
  .pstep { flex-direction: column; padding-right: 32px; }
  .pstep:not(:last-child)::after { content: ''; position: absolute; top: 44px; left: 104px; right: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 14px); opacity: 0.45; }
}
.pstep-num { flex-shrink: 0; width: 92px; height: 88px; background: var(--green); color: #fff; clip-path: var(--trap); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 4px; }
.pstep-num span { font: 700 2rem/1 var(--f-head); }
.pstep-num small { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }
.pstep h4 { margin-bottom: 4px; }
.pstep p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Who we serve */
.serve-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .serve-grid { grid-template-columns: repeat(3, 1fr); } }
.serve-grid li { background: #fff; border: 1px solid #d6e4de; border-radius: var(--radius); padding: 24px 24px 20px 64px; position: relative; }
.serve-grid li::before { content: ''; position: absolute; left: 22px; top: 25px; width: 26px; height: 24px; background: var(--green); clip-path: var(--trap); }
.serve-grid h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.serve-grid p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* Coverage */
.coverage-list { margin: 0 0 24px; display: grid; gap: 0 48px; }
@media (min-width: 860px) { .coverage-list { grid-template-columns: repeat(2, 1fr); } }
.coverage-list > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.coverage-list dt { font: 700 1.0625rem/1.3 var(--f-head); color: var(--green); margin-bottom: 4px; }
.coverage-list dd { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Cost */
.cost { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .cost { grid-template-columns: 200px 1fr; gap: 64px; } }
.cost-mark img { width: 160px; height: 160px; }
@media (min-width: 860px) { .cost-mark img { width: 200px; height: 200px; } }
.cost .lede { max-width: 62ch; margin: 0; }

/* Offer + forms */
.offer-grid, .contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .offer-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .card { padding: 32px 32px; } }
.form-title { font-size: 1.25rem; color: var(--green-900); margin-bottom: 20px; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label, fieldset legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; color: var(--ink); }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); }
input[type='text'], input:not([type]), input[type='email'], input[type='tel'], input[type='url'], input[type='number'], input[type='date'], input[type='password'], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #c9d2ce; border-radius: var(--radius-sm); padding: 12px 16px; min-height: 48px; transition: border-color var(--ease), box-shadow var(--ease); -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23004638' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(0 70 56 / 0.18); }
input::placeholder, textarea::placeholder { color: #8a9692; }
input[type='file'] { width: 100%; font-size: 0.9375rem; padding: 12px; border: 1.5px dashed #b8c4bf; border-radius: 8px; background: var(--green-50); min-height: 0; }
input[type='file']::file-selector-button { font: 600 0.875rem var(--f-body); background: var(--green); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.hint { font-size: 0.875rem; color: var(--muted); margin: 8px 0 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea, fieldset.invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: 0.875rem; font-weight: 500; margin: 8px 0 0; display: flex; gap: 8px; }
.field-error::before { content: '!'; flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.form-error-summary, .step-error { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); border-radius: 8px; padding: 12px 16px; font-size: 0.9375rem; margin-bottom: 16px; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--green); }
.field-consent .check span { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.check-grid { display: grid; gap: 8px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-grid .check { border: 1.5px solid #d6ded9; border-radius: 8px; padding: 12px 12px; font-size: 0.9375rem; align-items: center; min-height: 48px; }
.check-grid .check input { margin: 0; }
.check-grid .check:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row .check { border: 1.5px solid #d6ded9; border-radius: 8px; padding: 12px 16px; align-items: center; min-height: 48px; }
.radio-row .check:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 0.8125rem; color: var(--muted); margin: 16px 0 0; }
/* Address list preview (forms split pasted lists) */
.addr-preview { margin-top: 12px; background: var(--green-50); border: 1px solid #c5dbd3; border-radius: 8px; padding: 12px 16px; font-size: 0.875rem; color: var(--green-900); }
.addr-preview p { margin: 0; }
.addr-preview ol { margin: 8px 0 0; padding-left: 24px; max-height: 220px; overflow-y: auto; }
.addr-preview li { padding: 1px 0; overflow-wrap: anywhere; }
.addr-preview ol + p { margin-top: 4px; color: var(--muted); }
/* Life Changes Survey */
.callout.lc-hello { margin: 0 0 24px; }
.lc-hint { margin: -8px 0 16px; }
.lc-section { margin-top: 32px; }
.lc-legend-hint { margin: -2px 0 4px; }
.lc-group { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.check-hint { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.lc-none { margin-top: 12px; }
.lc-none .check { border: 1.5px dashed #c9d3ce; border-radius: 8px; padding: 12px 12px; align-items: center; min-height: 48px; }
.lc-none .check:has(input:checked) { border-style: solid; border-color: var(--green); background: var(--green-50); }
.lc-changes + .field, #lc-addr-wrap { margin-top: -4px; }
.upload-status { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.form-success { text-align: left; padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success .success-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.form-success .success-ico svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 1.375rem; color: var(--green-900); }
.form-success p { color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.contact-list .k { width: 64px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.section-contact { background: var(--green-50); }

/* Page heros (inner pages) */
.page-hero { background: var(--green); color: var(--cream); padding: clamp(56px, 6vw, 80px) 0 clamp(48px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero.pattern { background-color: var(--green); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lede { color: rgb(236 213 155 / 0.9); max-width: 62ch; }
.page-hero .eyebrow { color: var(--cream); }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.3fr 0.7fr; } }
.page-hero-mark { justify-self: center; width: 220px; opacity: 0.95; }
@media (max-width: 959px) { .page-hero-mark { display: none; } }

/* Generic layouts */
.two-col { display: grid; gap: 32px 64px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px; background: #fff; }
.feature h3 { color: var(--green); font-size: 1.125rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.section-tint .feature { border-color: #d6e4de; }

.quote-block { position: relative; margin: 0; padding: 40px 0 0; }
.quote-block p { font: 600 clamp(1.4rem, 2.8vw, 2rem)/1.35 var(--f-head); color: var(--green-900); letter-spacing: -0.01em; margin: 0 0 20px; }
.quote-block::before { content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 14px; background: var(--green); clip-path: var(--trap); }
.quote-block cite { font-style: normal; font-weight: 600; color: var(--muted); }
.tagline { font-family: var(--f-script); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green); line-height: 1.3; margin: 0; }
.section-green .tagline { color: var(--cream); }

.founder { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .founder { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.founder-photo img, .photo-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.photo-ph { background: var(--cream) url('/assets/img/emark-green.svg?v=34028997') center 42% / 30% no-repeat; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14%; border: 0; }

/* Steps (3 step processes) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px 24px; position: relative; }
.section-tint .step { border-color: #d6e4de; }
.step-num { width: 52px; height: 46px; background: var(--green); color: #fff; clip-path: var(--trap); display: flex; align-items: center; justify-content: center; font: 700 1.25rem/1 var(--f-head); margin-bottom: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Quote page */
.quote-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: 1.35fr 0.65fr; gap: 48px; } }
.next-box { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius-lg); padding: 32px 24px; }
@media (min-width: 1000px) { .next-box { position: sticky; top: calc(var(--header-h) + 24px); } }
.next-box h2 { font-size: 1.375rem; color: var(--green-900); }
.next-list { list-style: none; margin: 0 0 20px; padding: 0; }
.next-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--cream-line); }
.next-list .n { width: 36px; height: 32px; background: var(--green); color: #fff; clip-path: var(--trap); display: flex; align-items: center; justify-content: center; font: 700 0.9375rem var(--f-head); }
.next-list h3 { font-size: 1rem; margin: 0 0 2px; }
.next-list p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; list-style: none; padding: 0; }
.stepper li { flex: 1; font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.stepper li[aria-current='step'], .stepper li.done { color: var(--green); border-color: var(--green); }
.form-step[hidden] { display: none; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.callout { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 8px; padding: 12px 16px; font-size: 0.9375rem; color: #6b3a05; margin: 8px 0 0; }
.callout-green { background: var(--green-50); border-color: #c5dbd3; color: var(--green-900); }

/* Join page */
.hook { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hook { grid-template-columns: 1fr 1fr; gap: 64px; } }
.compare { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 0.9375rem; }
.compare-row > div { padding: 16px 16px; }
.compare-row .old { background: #f6f7f7; color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(0 0 0 / 0.3); }
.compare-row .new { background: var(--green-50); color: var(--green-900); font-weight: 600; }
.compare-head { display: grid; grid-template-columns: 1fr 1fr; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); padding: 0 16px; }

/* Sell page */
.terms-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .terms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .terms-grid { grid-template-columns: repeat(4, 1fr); } }
.term { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-lg); padding: 24px 24px; }
.term-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; display: block; margin-bottom: 8px; }
.term-v { display: block; font: 700 1.5rem/1.15 var(--f-head); color: var(--green-900); margin-bottom: 8px; }
.term p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }

.estimator { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
.est-head { padding: 24px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: #f8faf9; }
.est-head h3 { margin: 0; font-size: 1.25rem; color: var(--green-900) !important; }
.est-body { padding: 24px 24px; }
@media (min-width: 640px) { .est-body { padding: 32px 32px; } }
.est-grid { display: grid; gap: 0 20px; }
@media (min-width: 720px) { .est-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .est-grid { grid-template-columns: 1fr 1fr 1fr; } }
.est-grid .span-all { grid-column: 1 / -1; }
.input-affix { position: relative; }
.input-affix input { padding-left: 32px; }
.input-affix.suffix input { padding-left: 12px; padding-right: 40px; }
.input-affix .affix { position: absolute; top: 50%; transform: translateY(-50%); left: 13px; color: var(--muted); font-weight: 600; pointer-events: none; }
.input-affix.suffix .affix { left: auto; right: 14px; }
.mix { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.mix-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--green-100); overflow: hidden; display: flex; }
.mix-bar span { background: var(--green); height: 100%; }
.gate-note { display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); border: 1px solid #c5dbd3; border-radius: 12px; padding: 16px 16px; font-size: 0.9375rem; color: var(--green-900); margin-bottom: 20px; }
.gate-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); margin-top: 1px; }
.result-hero { background: var(--green); color: var(--cream); border-radius: 12px; padding: 24px 24px; margin-bottom: 24px; position: relative; overflow: hidden; }
.result-hero::after { content: ''; position: absolute; right: -30px; top: -20px; width: 180px; height: 170px; background: rgb(236 213 155 / 0.07); clip-path: var(--trap); }
.result-k { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.result-v { font: 700 clamp(1.7rem, 4.5vw, 2.6rem)/1.15 var(--f-body); color: #fff; margin: 8px 0 8px; letter-spacing: -0.02em; }
.result-m { font-size: 1rem; color: rgb(236 213 155 / 0.9); margin: 0; }
.result-cols { display: grid; gap: 20px; }
@media (min-width: 860px) { .result-cols { grid-template-columns: 1.1fr 0.9fr; } }
.factor-list { list-style: none; padding: 0; margin: 0; }
.factor-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; align-items: start; }
.factor-adj { font-weight: 700; font-size: 0.875rem; text-align: center; border-radius: 8px; padding: 4px 0; }
.factor-adj.up { background: var(--ok-bg); color: var(--ok); }
.factor-adj.down { background: var(--red-bg); color: var(--red); }
.factor-adj.flat { background: #f0f2f1; color: var(--muted); }
.carry { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 12px; padding: 24px; }
.carry h4 { margin-bottom: 12px; }
.carry dl { margin: 0; display: grid; gap: 0; }
.carry dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cream-line); font-size: 0.9375rem; }
.carry dt { color: var(--ink-2); }
.carry dd { margin: 0; font-weight: 700; text-align: right; }
.carry .big dd { font-size: 1.25rem; color: var(--green-900); }
.disclaimer { font-size: 0.875rem; color: var(--ink-2); background: #f6f7f7; border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 24px 0 0; }

/* Footer */
.site-footer { background: var(--green-900); color: rgb(236 213 155 / 0.85); padding: 64px 0 32px; font-size: 0.9375rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img { width: 200px; height: auto; }
.footer-h { font: 700 0.8125rem/1 var(--f-head); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(236 213 155 / 0.15); font-size: 0.875rem; color: rgb(236 213 155 / 0.7); }
.footer-legal p { margin-bottom: 12px; max-width: 90ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.footer-nap { font-style: normal; line-height: 1.6; margin-bottom: 16px; }
.footer-nap strong { color: #fff; font-weight: 600; }

/* Home: one plain sentence under the hero that says who Everhold is, for people and search engines. */
.entity-strip { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 20px 0; }
.entity-strip p { margin: 0; max-width: 90ch; font-size: 1rem; color: var(--ink-2); }
.entity-strip a { color: var(--green); font-weight: 600; }

/* Admin */
.admin-body { background: #f4f6f5; }
.admin-top { background: var(--green-900); color: #fff; }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.admin-top .brand { color: #fff; }
.admin-top .brand-name { color: #fff; }
.admin-top .brand-sub { color: var(--cream); }
.admin-main { padding: 32px 0 64px; }
.admin-login { max-width: 420px; margin: 64px auto; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.admin-toolbar select, .admin-toolbar input { width: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.admin-toolbar input[type='search'] { min-width: 220px; flex: 1; max-width: 360px; border: 1.5px solid #c9d2ce; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 15px; }
.admin-count { color: var(--muted); font-size: 0.9375rem; margin-left: auto; }
.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.admin-table th { text-align: left; padding: 12px 16px; background: #fafbfb; border-bottom: 1px solid var(--line); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover, .admin-table tbody tr:focus-within { background: var(--green-50); }
.admin-table .open-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; text-align: left; }
.type-pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--green-100); color: var(--green); white-space: nowrap; }
.type-pill[data-t='Book Valuation'] { background: #fff3c4; color: #7a4b00; }
.type-pill[data-t='Agent Application'] { background: #e6f0fb; color: #1d4f91; }
.type-pill[data-t='Quote Request'] { background: #ece9fb; color: #4b3aa8; }
.type-pill[data-t='Contact'] { background: #eef0f2; color: #475467; }
.drawer-backdrop { position: fixed; inset: 0; background: rgb(0 20 16 / 0.4); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100%); background: #fff; z-index: 81; overflow-y: auto; box-shadow: -20px 0 60px rgb(0 0 0 / 0.2); }
.drawer-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 1; }
.drawer-head h2 { font-size: 1.125rem; margin: 0; }
.drawer-body { padding: 20px 24px 40px; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.kv th { text-align: left; width: 40%; color: var(--muted); font-weight: 500; padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.kv tr.sec th { color: var(--green); font-weight: 700; padding-top: 20px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { margin-bottom: 8px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.settings-card { max-width: 640px; }
.status-line { font-size: 0.9375rem; margin-top: 12px; }
.badge-ok { color: var(--ok); font-weight: 600; }
.badge-no { color: var(--red); font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound img { width: 90px; margin: 0 auto 24px; }

/* Light cards placed on green sections */
.section-green .estimator h3, .section-green .estimator h4, .section-green .ledger h3 { color: var(--green-900); }
.section-green .estimator p, .section-green .ledger p { color: var(--ink-2); }
.section-green .estimator .fine { color: var(--muted); }
.section-green .estimator a:not(.btn) { color: var(--green); }
.estimator .result-hero .result-v { color: #fff; }
.estimator .result-hero .result-m { color: rgb(236 213 155 / 0.9); }
.section-green > .wrap > .fine { color: rgb(236 213 155 / 0.75); }
.ledger-table td.num { white-space: nowrap; }
.tl-today { top: -30px; }
.tl-today::after { top: 18px; height: 14px; }
.speed::after { background: rgb(236 213 155 / 0.04); }
.est-result:focus { outline: none; }
.photo-ph { background-color: #fff; outline: 1.5px dashed var(--cream-line); outline-offset: -10px; }

/* Home hero on brand green */
.hero { background: var(--green); color: var(--cream); }
.hero::after { display: none; }
.hero h1 { color: #fff; }
.hero .lede { color: rgb(236 213 155 / 0.9); }
.hero .eyebrow { color: var(--cream); }
.hero-note { color: rgb(236 213 155 / 0.75); }
.hero-frame { box-shadow: inset 0 0 0 1px rgb(236 213 155 / 0.15); }

/* Coverage groups */
.cov-groups { display: grid; gap: 8px 40px; margin-bottom: 24px; }
@media (min-width: 960px) { .cov-groups { grid-template-columns: repeat(3, 1fr); } }
.cov-group h3 { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 20px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.cov-groups .coverage-list { grid-template-columns: 1fr; margin: 0; }

/* Join: role details */
.role-meta { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .role-meta { grid-template-columns: 1fr 1fr; } }
.role-meta > div { background: var(--green-50); border-radius: var(--radius-lg); padding: 20px 24px; }
.role-meta .k { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.role-meta p { margin: 0; font-weight: 600; color: var(--green-900); }

/* Founder headshot */
.founder-photo img { object-position: center 30%; }

/* Education calendar */
.cal-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cal-embed { display: block; width: 100%; height: 680px; border: 0; }
@media (max-width: 640px) { .cal-embed { height: 560px; } }
.cal-ph { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 20px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7)), var(--green-50); }
.cal-ph img { width: 40px; height: auto; }
.cal-ph p { margin: 0; color: var(--ink-2); background: var(--green-50); padding: 4px 12px; }

/* Header has one more nav item: collapse a bit earlier */
@media (max-width: 1140px) and (min-width: 1041px) {
  .site-nav a:not(.btn) { padding: 8px 8px; font-size: 0.9375rem; }
}
.speed-v::first-letter { text-transform: uppercase; }

/* ---------- Client portal ---------- */
.portal-body { background: #f6f8f7; }
.portal { padding: 40px 0 64px; min-height: 60vh; }
.portal-loading { color: var(--muted); padding: 40px 0; }
.portal-signin { max-width: 460px; margin: 32px auto; }
.portal-signin img { width: 36px; height: auto; margin-bottom: 16px; }
.portal-signin h1 { font-size: 1.5rem; }
.signin-sent { background: var(--green-50); border: 1px solid #c5dbd3; color: var(--green-900); border-radius: 8px; padding: 16px; margin: 0; }
.code-form { margin-top: 20px; }
.code-form #login-code { font-size: 1.375rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.code-form .code-restart { display: flex; width: fit-content; margin: 12px auto 0; }
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.portal-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 2px; }
.portal-head .eyebrow { margin-bottom: 8px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview-bar { background: #fff3c4; border: 1px solid #f0d27a; color: #7a4b00; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600; font-size: 0.9375rem; }
.building-banner { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; color: var(--green-900); }
.portal-ledger { box-shadow: var(--shadow); }
.portal-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .portal-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .portal-stats { grid-template-columns: repeat(6, 1fr); } .portal-stats .stat { border-bottom: 0; } }
@media (min-width: 760px) and (max-width: 1099px) { .portal-stats .stat:nth-child(3n) { border-right: 0; } }
.portal-stats .stat-v { font-size: 1.25rem; }
.portal-stats .muted { font-size: 0.9375rem; font-weight: 500; }
.attention { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fffdf5; }
.attention h2 { font-size: 0.9375rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.attention .count { background: var(--red); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 1px 8px; }
.attention ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .attention ul { grid-template-columns: 1fr 1fr; } }
.flag-line { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
.flag-line strong { display: block; font-weight: 600; }
.attention-ok { display: flex; gap: 12px; align-items: center; background: #f6fbf8; color: var(--green-900); font-weight: 500; }
.row-toggle { all: unset; cursor: pointer; display: block; }
.row-toggle strong { text-decoration: underline; text-decoration-color: rgb(0 70 56 / 0.3); text-underline-offset: 3px; }
.row-toggle:focus-visible { outline: 3px solid #2f8f73; outline-offset: 2px; border-radius: 4px; }
.row-toggle[aria-expanded='true'] strong { text-decoration-color: var(--green); }
.prop-row { cursor: pointer; }
.pending-row td { background: #fbfcfb; }
.detail-row > td { background: #f9fbfa; padding: 0 !important; }
.detail { padding: 20px 20px 24px; }
.detail h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 20px 0 12px; }
.detail h3:first-of-type { margin-top: 4px; }
.detail-flags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-note { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px; font-size: 0.9375rem; white-space: pre-wrap; margin: 12px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9375rem; word-break: break-word; }
.facts dd .muted { font-weight: 400; }
.policy-cards { display: grid; gap: 12px; }
.policy-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; }
.policy-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.mini-protocol { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; }
.mini-protocol li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.mini-protocol li.done { border-color: #c5dbd3; background: var(--green-50); color: var(--green-900); font-weight: 600; }
.mini-protocol li span { font-weight: 400; color: var(--muted); }
.portal-section { margin-top: 32px; }
.portal-section h2 { font-size: 1.25rem; }
.doc-list, .req-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc-list li, .req-list li { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.9375rem; }
.doc-list li:last-child, .req-list li:last-child { border-bottom: 0; }
.req-list li { justify-content: flex-start; }
.req-status { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 4px 8px; height: fit-content; white-space: nowrap; background: var(--amber-bg); color: var(--amber); }
.req-status.done { background: var(--ok-bg); color: var(--ok); }
.portal-fine { margin-top: 32px; }
.chip-owner { background: #fdf0e6; color: #8a4b12; }
.flag-info { color: var(--green-900); background: var(--green-50); }
@media (max-width: 860px) {
  .detail-row td[colspan] { grid-column: 1 / -1; }
  .ledger-table tr.detail-row { display: block; padding: 0; }
  .ledger-table tr.pending-row td[colspan] { grid-column: 1 / -1; }
}

/* Modal + toast */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 24px)); box-shadow: var(--shadow-lg); }
.modal-wide { width: min(860px, calc(100% - 24px)); }
.modal::backdrop { background: rgb(0 20 16 / 0.45); }
.modal-inner { display: flex; flex-direction: column; max-height: 88vh; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.125rem; margin: 0; }
.modal-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-body { padding: 20px 20px 4px; overflow-y: auto; }
.modal .form-error-summary { margin: 0 20px 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; font-weight: 500; max-width: calc(100% - 32px); }
.toast-bad { background: var(--red); }

/* ---------- Admin editor ---------- */
.ed-bar { position: sticky; top: 0; z-index: 20; background: #f4f6f5; padding: 12px 0 12px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ed-title { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.ed-title h2 { font-size: 1.375rem; margin: 0; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dirty-dot { font-size: 0.8125rem; font-weight: 700; color: var(--amber); background: var(--amber-bg); border-radius: 999px; padding: 4px 12px; }
.ed-flags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ed-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px; margin-bottom: 16px; }
.ed-card h3 { font-size: 1.0625rem; margin: 0 0 16px; display: flex; gap: 12px; align-items: center; }
.ed-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ed-card-head h3 { margin: 0; }
.ef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; }
.ef { margin-bottom: 12px; }
.ef label { font-size: 0.8rem !important; font-weight: 600; color: var(--ink-2); margin-bottom: 4px !important; }
.ef input, .ef select, .ef textarea { min-height: 40px; padding: 8px 12px; font-size: 15px; }
.ef .input-affix input { padding-left: 24px; }
.ef .input-affix .affix { left: 10px; }
.ef textarea { min-height: 64px; }
.ef-wide { grid-column: 1 / -1; }
.ef-protocol { background: var(--green-50); border-radius: 8px; padding: 12px 12px 0; margin-top: 4px; }
.ed-prop { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.ed-prop.alert { border-left: 4px solid var(--red); }
.ed-prop.warn { border-left: 4px solid #d97706; }
.ed-prop summary { padding: 12px 16px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ed-prop[open] summary { border-bottom: 1px solid var(--line); }
.ed-prop-body { padding: 16px 16px 16px; }
.ed-prop h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 12px; }
.ed-policy { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 4px; margin-bottom: 12px; background: #fbfcfb; }
.ed-policy-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; }
.ed-policy-head .btn-link { margin-left: auto; }
.ed-row-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.btn-link.danger { color: var(--red); font-weight: 500; font-size: 0.9375rem; }
.ed-reqs { list-style: none; padding: 0; margin: 0; }
.ed-reqs li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; align-items: flex-start; }
.ed-reqs li.done { opacity: 0.6; }
.ed-reqs .check { white-space: nowrap; font-size: 0.875rem; }
.ed-docs td { vertical-align: middle; }
.ed-docs select { min-height: 38px; padding: 8px 32px 8px 12px; font-size: 14px; width: auto; max-width: 260px; }
.ed-doc-actions { white-space: nowrap; text-align: right; }
.ed-doc-actions .btn { margin-right: 12px; }
.ed-upload { margin-top: 12px; cursor: pointer; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ed-hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0 16px; }
.unsure-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-line); border-radius: 4px; padding: 0 4px; margin-left: 4px; text-transform: uppercase; }
.renewal-preview { background: #f6f8f7; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 0.875rem; white-space: pre-wrap; margin-top: 12px; }
.nav-login { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; padding: 8px 8px; white-space: nowrap; }
.nav-login:hover { color: var(--green); }
.nav-login[aria-current='page'] { color: var(--green); }
@media (max-width: 1180px) and (min-width: 1041px) { .site-nav ul { gap: 0; } .site-nav a:not(.btn) { padding: 8px 8px; font-size: 0.9375rem; } }
@media (max-width: 1040px) { .nav-login { padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; } }
.btn-outline-light { background: transparent; }
.status-pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.status-pill.active { background: var(--ok-bg); color: var(--ok); }
.status-pill.building { background: var(--amber-bg); color: var(--amber); }
@media (max-width: 1100px) {
  .portal-table thead { display: none; }
  .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; width: 100%; }
  .portal-table tr.prop-row, .portal-table tr.pending-row { padding: 16px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
  .portal-table td { border: 0; padding: 0; }
  .portal-table td::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .portal-table td[data-label='Property'], .portal-table td[data-label='Flag'] { grid-column: 1 / -1; }
  .portal-table td[data-label='Property']::before, .portal-table td[data-label='Flag']::before, .portal-table .detail-row td::before { display: none; }
  .portal-table .r, .portal-table .c { text-align: left; }
  .portal-table tr.detail-row { display: block; padding: 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 640px) and (max-width: 1100px) {
  .portal-table tr.prop-row { grid-template-columns: repeat(3, 1fr); }
}

/* Admin: pipelines */
.tab-badge { display: inline-block; margin-left: 4px; font-size: 0.75rem; font-weight: 700; background: var(--amber-bg); color: var(--amber); border-radius: 999px; padding: 1px 8px; }
.seg[aria-pressed='true'] .tab-badge { background: rgb(255 255 255 / 0.2); color: #fff; }
.pipe-box { background: var(--green-50); border: 1px solid #c5dbd3; border-radius: 12px; padding: 16px 16px 8px; margin-bottom: 16px; }
.pipe-box .step-actions { margin: 0 0 12px; }
.pipe-table td { font-size: 0.9375rem; }
.pipe-table td a { color: var(--green); }
.pipe-select { min-height: 36px !important; padding: 8px 32px 8px 12px !important; font-size: 0.85rem !important; font-weight: 600; width: auto; border-radius: 999px !important; }
.pipe-select.st-new { background-color: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.pipe-select.st-closed, .pipe-select.st-hired { background-color: var(--ok-bg); border-color: #b9e0c6; color: var(--ok); }
.pipe-select.st-passed, .pipe-select.st-not-a-fit { background-color: #f0f2f1; color: var(--muted); }

/* Header: keep every nav label on one line; collapse to the menu before it gets crowded */
.site-header .wrap { max-width: 1320px; }
.site-nav a, .nav-cta { white-space: nowrap; }
.brand { margin-right: 8px; }
@media (min-width: 1241px) {
  .site-nav { gap: 12px; }
  .site-nav ul { gap: 0; }
  .site-nav a:not(.btn) { padding: 8px 8px; font-size: 0.9375rem; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgb(0 0 0 / 0.08); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: 16px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .site-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--green); padding-left: 16px; }
  .nav-cta { margin-top: 16px; min-height: 52px; }
}
.admin-main .wrap, .admin-top .wrap { max-width: 1440px; }
.admin-table a[href^='tel'], .pipe-table td:first-child, .pipe-table .num { white-space: nowrap; }

/* ---------- CRM layout ---------- */
.admin-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-me { color: var(--cream); font-size: 0.875rem; opacity: 0.85; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .admin-me { display: none; } .admin-top .btn { white-space: nowrap; } }
@media (max-width: 360px) { .admin-top .wrap { gap: 8px; } .admin-top .btn { padding-inline: 12px; } }
.admin-main .wrap { max-width: 1560px; }
.crm { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.crm-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.crm-tab { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.crm-tab:hover { background: var(--green-50); color: var(--green); }
.crm-tab[aria-pressed='true'] { background: var(--green); color: #fff; }
.crm-tab[aria-pressed='true'] .tab-badge { background: rgb(255 255 255 / 0.2); color: #fff; }
.crm-tab:focus-visible { outline: 3px solid #2f8f73; outline-offset: 1px; }
.crm-nav-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.crm-body { min-width: 0; }
/* Phones and tablets: no sidebar. The logo in the banner opens the section menu (see admin.js). */
.crm-nav-site, .brand-sub-section { display: none; }
@media (max-width: 900px) {
  .crm { grid-template-columns: 1fr; }
  .admin-top { position: sticky; top: 0; z-index: 75; }
  .admin-top .brand { margin-left: -8px; padding: 4px 8px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.15s; }
  .admin-top .brand:active, .admin-top .brand[aria-expanded='true'] { background: rgb(236 213 155 / 0.12); }
  .admin-top .brand { flex-shrink: 1; min-width: 0; }
  .admin-top .brand-word { min-width: 0; }
  .admin-top .admin-user { flex-shrink: 0; }
  .admin-top .brand[aria-controls] .brand-sub-default { display: none; }
  .admin-top .brand[aria-controls] .brand-sub-section { display: block; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .crm-nav { position: fixed; top: var(--admin-top-h, 64px); left: 0; right: 0; z-index: 72; flex-direction: column; gap: 2px; border-width: 0 0 1px; border-radius: 0 0 16px 16px; padding: 12px 12px 16px; max-height: calc(100dvh - var(--admin-top-h, 64px)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 40px rgb(0 20 16 / 0.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s; }
  .crm-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s; }
  .crm-nav .crm-tab { min-height: 48px; padding: 12px 16px; font-size: 1rem; }
  .crm-nav-sep { width: auto; height: 1px; margin: 8px 4px; }
  .crm-nav-site { display: flex; color: var(--muted); font-weight: 600; text-decoration: none; }
  .crm-nav-backdrop { position: fixed; inset: var(--admin-top-h, 64px) 0 0 0; z-index: 71; background: rgb(0 20 16 / 0.35); }
  body.crm-menu-open { overflow: hidden; }
}
.crm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.crm-head h1 { font-size: 1.5rem; margin: 0; }
.small { font-size: 0.875rem; }

/* KPIs + dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.kpi:hover { border-color: var(--green); }
.kpi-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.kpi-v { font: 700 1.75rem/1.1 var(--f-body); font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 0.8125rem; color: var(--muted); }
.kpi-alert { border-color: var(--red-line); background: #fffafa; }
.kpi-alert .kpi-v { color: var(--red); }
.kpi-warn .kpi-v { color: var(--amber); }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dash-grid .ed-card { margin: 0; }
.dash-sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 8px; }
.dash-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-weight: 600; font-size: 0.9375rem; }
.stage-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stage-bars li { display: grid; grid-template-columns: 110px 1fr 28px 90px; gap: 12px; align-items: center; font-size: 0.9375rem; }
.sb-bar { height: 10px; background: #eef2f0; border-radius: 999px; overflow: hidden; }
.sb-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; min-width: 2px; }
.sb-bar .sb-won { background: var(--ok); }
.sb-bar .sb-lost { background: #b7c0bc; }
.sb-n { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sb-v { color: var(--muted); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; align-items: start; }
.feed li:first-child { border-top: 0; }
.feed-main a { font-weight: 600; color: var(--green); }
.feed-when { display: block; font-size: 0.8125rem; margin-top: 2px; }
.feed-type { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 8px; background: #eef2f0; color: var(--ink-2); text-align: center; white-space: nowrap; height: fit-content; }
.t-call, .t-meeting { background: #e6f0fb; color: #1d4f91; }
.t-text { background: #ece9fb; color: #4b3aa8; }
.t-email, .t-email-sent { background: #e7f5ec; color: var(--ok); }
.t-submission, .t-request { background: #fff3c4; color: #7a4b00; }
.t-stage, .t-task-done, .t-ledger { background: var(--green-50); color: var(--green); }
.t-alert { background: var(--red-bg); color: var(--red); }
.t-warn { background: var(--amber-bg); color: var(--amber); }

/* Tasks */
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.task-list li:first-child { border-top: 0; }
.task-list li.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-list .check input { margin-top: 4px; }
.task-main { display: flex; flex-direction: column; font-size: 0.9375rem; min-width: 0; }
.task-main .muted { font-size: 0.8125rem; }
.task-main a { color: var(--green); font-weight: 600; }
.task-title { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); }
.task-title:hover { color: var(--green); text-decoration: underline; }
.task-title:focus-visible { outline: 3px solid #2f8f73; border-radius: 4px; }
.task-due { font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.task-due.today { color: var(--amber); }
.task-due.overdue { color: var(--red); }
.tg-overdue { border-color: var(--red-line); }
.quick-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.seg-group { display: inline-flex; gap: 4px; }

/* Contacts */
.ct-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 0 4px 4px 0; white-space: nowrap; background: #eef0f2; color: #475467; }
.ct-client { background: var(--ok-bg); color: var(--ok); }
.ct-lead { background: var(--green-50); color: var(--green); }
.ct-seller { background: #fff3c4; color: #7a4b00; }
.ct-recruit { background: #e6f0fb; color: #1d4f91; }
.stage-pill { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--green-50); color: var(--green); white-space: nowrap; }
.sp-new { background: var(--amber-bg); color: var(--amber); }
.sp-won { background: var(--ok-bg); color: var(--ok); }
.sp-lost { background: #f0f2f1; color: var(--muted); }
.ct-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 16px; }
.ct-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; }
.ct-title h1 { font-size: 1.5rem; margin: 0; }
.ct-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .ct-grid { grid-template-columns: 360px 1fr; } }
.ct-side .ed-card, .ct-main .ed-card { margin-bottom: 16px; }
.ct-pipe { grid-template-columns: 1fr 1fr; }
.ct-pipe .ef:first-child { grid-column: 1 / -1; }
.composer { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; background: #fbfcfb; }
.composer textarea { min-height: 70px; margin: 8px 0; }
.composer-types { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; cursor: pointer; background: #fff; }
.seg-radio input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid #2f8f73; outline-offset: 1px; }
.composer-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { padding: 12px 0; border-top: 1px solid var(--line); }
.tl-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 0.875rem; }
.tl-del { margin-left: auto; }
.tl-text { white-space: pre-wrap; font-size: 0.9375rem; margin-top: 8px; color: var(--ink-2); word-break: break-word; }
.tl-text.clamp { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.team-table input { min-height: 36px; padding: 8px 12px; font-size: 14px; max-width: 220px; }
.team-table td { padding-right: 12px; vertical-align: middle; }
.team-table td:first-child { width: 42%; }
.team-table td:nth-child(2) { overflow-wrap: break-word; font-size: 0.9375rem; }
.tpl summary { flex-wrap: nowrap; }
.tpl summary .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pipeline board */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: #eef2f0; border-radius: 12px; padding: 12px; min-height: 200px; }
.kcol header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 8px; }
.kcol h3 { font-size: 0.9375rem; margin: 0; }
.kcount { display: inline-block; background: #fff; border-radius: 999px; padding: 0 8px; font-size: 0.8125rem; margin-left: 4px; color: var(--muted); }
.kc-won { background: #e3f3e9; }
.kc-lost { background: #f1f2f2; }
.kcards { display: flex; flex-direction: column; gap: 8px; min-height: 120px; border-radius: 8px; transition: background 0.15s; }
.kcards.over { background: rgb(0 70 56 / 0.08); outline: 2px dashed rgb(0 70 56 / 0.35); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px; display: flex; flex-direction: column; gap: 4px; cursor: grab; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.kcard.dragging { opacity: 0.5; }
.kname { font-weight: 700; color: var(--ink); text-decoration: none; }
.kname:hover { color: var(--green); text-decoration: underline; }
.kmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8125rem; font-weight: 600; }
.kstage { min-height: 30px !important; padding: 4px 24px 4px 8px !important; font-size: 0.8rem !important; margin-top: 8px; background-position: right 6px center; background-size: 12px; }
.kempty { text-align: center; padding: 20px 0; }

/* ---------- Portal fixes ---------- */
.portal-table td { padding: 12px 12px; }
.portal-table th { padding: 12px; }
.portal-table strong { white-space: normal; }
.portal-table td[data-label='Property'] { min-width: 170px; max-width: 240px; }
.portal-table td[data-label='Carrier & policy'] { max-width: 170px; }
.portal-table .cov { min-width: 100px; }
.portal-table td.num { white-space: nowrap; }
.portal-table .flag { white-space: normal; }
.stat-v small.calm { color: var(--muted); }
.crm-head .ed-actions { align-items: center; }
.crm-head select, .admin-toolbar select { width: auto; }
.kanban { grid-auto-columns: minmax(168px, 1fr); }
.crm { grid-template-columns: 228px 1fr; }
.crm-tab { white-space: nowrap; }
@media (max-width: 900px) { .crm { grid-template-columns: 1fr; } }
.ed-title h2 { white-space: nowrap; }
[data-panel='settings']:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1200px) { [data-panel='settings']:not([hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
[data-panel='settings'] .settings-card { margin-top: 0 !important; max-width: none; }
.board-switch { flex: 1; justify-content: center; }
.crm-head .board-switch .seg { min-height: 38px; }
.kc-closed, .kc-hired { background: #e3f3e9; }
.kc-passed, .kc-not-a-fit { background: #f1f2f2; }
.kcard a.small { color: var(--green); font-weight: 600; }
.dash-funnel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dash-funnel .stage-bars li { font-size: 0.875rem; }
.sb-bar .sb-closed, .sb-bar .sb-hired { background: var(--ok); }
.sb-bar .sb-passed, .sb-bar .sb-not-a-fit { background: #b7c0bc; }
@media (max-width: 900px) { .board-switch { flex-basis: 100%; justify-content: flex-start; order: 3; } }
.tab-badge[hidden] { display: none; }
.kcol header { flex-direction: column; align-items: flex-start; gap: 2px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* Education: events */
.event-list { display: grid; gap: 12px; margin-bottom: 32px; }
.event-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 20px; box-shadow: var(--shadow); }
.event-date { width: 64px; height: 64px; background: var(--green); color: #fff; clip-path: var(--trap); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.event-date span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.event-date strong { font: 700 1.5rem var(--f-head); }
.event-main h3 { margin: 0 0 4px; font-size: 1.125rem; }
.event-when { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.event-desc { margin: 8px 0 0; color: var(--ink-2); font-size: 0.9375rem; white-space: pre-line; }
.event-spots { margin: 8px 0 0; font-size: 0.875rem; font-weight: 600; color: var(--green); }
.event-spots.low { color: var(--amber); }
.event-spots.full { color: var(--red); }
.event-empty { margin: 0 0 24px; }
.cal-head { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 8px 0 12px; }
.rsvp-event { background: var(--cream); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
@media (max-width: 640px) { .event-card { grid-template-columns: 56px 1fr; } .event-date { width: 56px; height: 56px; } .event-cta { grid-column: 1 / -1; } .event-cta .btn { width: 100%; } }

/* CRM add-ons */
.t-email-in { background: #fff3c4; color: #7a4b00; }
.sla-badge { display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-50); color: var(--green); white-space: nowrap; vertical-align: middle; }
.sla-badge.soon { background: var(--amber-bg); color: var(--amber); }
.sla-badge.over { background: var(--red-bg); color: var(--red); }
.sla-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; background: var(--green-50); border: 1px solid #c5dbd3; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.9375rem; }
.sla-bar.soon { background: var(--amber-bg); border-color: var(--amber-line); }
.sla-bar.over { background: var(--red-bg); border-color: var(--red-line); color: #7a1a12; }
.waiting-card { margin-bottom: 16px; border-color: var(--amber-line); }
.cl-table td { vertical-align: top; }
.cl-count { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.cl-alert .cl-count { color: var(--red); }
.cl-warn .cl-count { color: var(--amber); }
.cl-alert { box-shadow: inset 3px 0 0 var(--red); }
.cl-ok .cl-count { color: var(--ok); }
.cl-actions { white-space: nowrap; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.month-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 180px; align-items: end; }
.mb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mb-bar { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; }
.mb-v { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }
.mb-l { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.book-val { font-size: 1.0625rem; margin: 8px 0 12px; }
.book-val strong { font-size: 1.375rem; color: var(--green-900); }
.ref-link { font-size: 0.8125rem; background: var(--green-50); padding: 2px 8px; border-radius: 4px; word-break: break-all; }
.sla-days { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0; }
.setup-steps { margin: 0 0 16px; }
.setup-steps ol { padding-left: 20px; }
.setup-steps li { margin-bottom: 8px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); }
.waiting-card .feed-type { text-transform: none; }
.cl-table td { overflow-wrap: anywhere; }
.cl-table td:first-child { white-space: nowrap; overflow-wrap: normal; }
.cl-table td:nth-child(2) { min-width: 170px; }
.cl-table td:last-child { width: 1%; }
.cl-actions { flex-direction: column; align-items: flex-start; white-space: normal; }
.cl-actions .btn { white-space: nowrap; }
.ed-card-head select { width: auto; min-height: 38px; }
input[type='time'] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #c9d2ce; border-radius: 8px; padding: 12px 12px; min-height: 48px; }
.ef input[type='time'] { min-height: 40px; padding: 8px 12px; font-size: 15px; }
/* Narrow phones: long example links wrap, toolbar selects shrink */
.admin-main code { overflow-wrap: anywhere; }
.ed-actions { min-width: 0; flex-wrap: wrap; }
.ed-actions select { max-width: 100%; min-width: 0; }
/* Book Sale Preview (/sell) */
.hero-note { font-size: 0.9375rem; color: rgb(236 213 155 / 0.85); margin: -4px 0 0; }
.spots-line { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 700; font-size: 0.9375rem; color: var(--cream); }
.spots-line::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #7dd3a8; box-shadow: 0 0 0 4px rgb(125 211 168 / 0.22); }
.spots-line-dark { color: var(--green-900); margin: 4px 0 0; }
.sched { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sched th, .sched td { padding: 8px 0; border-bottom: 1px solid var(--cream-line); text-align: right; }
.sched thead th { font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sched tbody th { text-align: left; font-weight: 400; color: var(--ink-2); padding-right: 12px; }
.sched td { font-weight: 700; white-space: nowrap; padding-left: 12px; }
.sched tr.big td { color: var(--green-900); font-size: 1.0625rem; }
.result-note { margin: -8px 0 16px; }
.result-more { margin-top: 24px; }
.result-more h4 { margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 1rem; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.ticks-wide { margin-top: 32px; max-width: 900px; }
@media (min-width: 860px) { .ticks-wide { grid-template-columns: 1fr 1fr; gap: 16px 40px; } }
.next-step { margin-top: 24px; background: var(--green-50); border: 1px solid #c5dbd3; border-radius: 12px; padding: 20px 20px; }
.next-step p { margin: 0; }
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--ink-2); }
.settings-sub { font-size: 1rem; color: var(--green-900); margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check-row .check { font-size: 0.9375rem; }
.tier { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-50); color: var(--green-900); border: 1px solid #c5dbd3; white-space: nowrap; }
.tier-hot { background: #fde8e7; color: #9b1c14; border-color: #f3c3bf; }
.tier-warm { background: #fff3dc; color: #7a4b00; border-color: #f0d9a8; }
.tier-cold { background: #eef2f7; color: #2f4a6a; border-color: #d3dcea; }
.tier-not-a-fit, .tier-nurture { background: #f1f1f1; color: #555; border-color: #ddd; }
.btn[hidden], .spots-line[hidden], .result-cols[hidden] { display: none; }

/* =====================================================================
   Refinement pass: reading width, focus visibility, touch targets,
   CRM table density, and small affordances. Refines the rules above;
   nothing here changes layout structure.
   ===================================================================== */

/* Reading width: notes and fine print stop at a comfortable line length. */
.fine, .form-fine, .hint, .next-step p { max-width: 75ch; }

/* Focus rings stay visible on dark green surfaces (white cards inside them keep the green ring). */
.section-green :focus-visible, .page-hero :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .admin-top :focus-visible { outline-color: var(--cream); }
.section-green .estimator :focus-visible, .section-green .card :focus-visible, .section-green .ledger :focus-visible { outline-color: #2f8f73; }

/* Phones: a little less air under section headings so content starts sooner. */
@media (max-width: 720px) { .section-head { margin-bottom: 32px; } }

/* Small helper text a touch larger for legibility. */
.check-hint { font-size: 0.875rem; }

/* Touch targets: 44px minimum on phones and touch screens. */
@media (pointer: coarse), (max-width: 767px) {
  .brand { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .btn-link { display: inline-flex; align-items: center; min-height: 44px; }
  .seg { min-height: 44px; }
  .contact-list li { padding: 2px 0; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .setup-steps summary, details.small > summary { padding: 12px 0; }
  .admin-table .open-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .pipe-select { min-height: 44px !important; }
  .crm-head .board-switch .seg { min-height: 44px; }
  .kcard a.small, .dash-sub a.small, a.small[href] { display: inline-block; padding: 12px 0; }
  .modal-x { min-width: 44px; min-height: 44px; }
  .admin-toolbar select, .admin-toolbar input { min-height: 44px; }
}

/* Pop-up close button: a real target with hover feedback. */
.modal-x { min-width: 40px; min-height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.modal-x:hover { background: var(--green-50); color: var(--green); }

/* CRM tables: long emails and names wrap instead of stretching columns off screen. */
.admin-table td { overflow-wrap: break-word; }
/* Email addresses are the one thing allowed to break mid-word, so a long one can't stretch a column. */
.admin-table .email, .admin-table a[href^='mailto'] { overflow-wrap: anywhere; }
.admin-table th { font-size: 0.75rem; }

/* Dashboard tiles and board cards: hover feedback, and text values sized as text. */
.kpi { transition: border-color 0.15s, box-shadow 0.15s; }
.kpi:hover { box-shadow: 0 4px 14px rgb(0 52 42 / 0.08); }
.kpi-v-text { font-size: 1.125rem; line-height: 1.87rem; }
.kcard { transition: border-color 0.15s, box-shadow 0.15s; }
.kcard:hover { border-color: #c5dbd3; box-shadow: 0 4px 12px rgb(0 52 42 / 0.08); }

/* Empty states: a little more presence so an empty list reads as intentional. */
.empty { padding: 48px 24px; font-size: 1rem; }
/* Dense CRM tables: multi-word headers wrap, cells a bit tighter, ranges may wrap at "to". */
.admin-table th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.admin-table th, .admin-table td { padding-left: 12px; padding-right: 12px; }
/* Numbers and money never split across lines; only names and emails wrap. */
.admin-table .num, .admin-table td.num { white-space: nowrap; overflow-wrap: normal; }
.pipe-select { max-width: 176px; }
@media (pointer: coarse), (max-width: 767px) { .ef input, .ef select { min-height: 44px; } }
/* Book Valuations and Applications: the name cell carries name, agency, email, and phone, so give it room. */
.pipe-table td:nth-child(2) { min-width: 170px; }
.pipe-table td .muted.small { display: inline-block; margin-top: 2px; line-height: 1.35; }
/* Contact details on narrow phones: label above value so a long email doesn't leave an odd gap. */
@media (max-width: 480px) {
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 2px; }
  .contact-list .k { width: auto; }
}

/* ===== Growth Playbook (Oct 2026): Ledger offer, contact strip, phone bar, landing pages ===== */
.site-nav a.nav-owners { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 1040px) { .site-nav a.nav-owners { font-size: 1rem; } }

.hero-proof { margin: 12px 0 0; font-size: 0.9375rem; color: rgb(236 213 155 / 0.86); }
.hero-proof[hidden], [data-ledger-guarantee][hidden], .sticky-cta[hidden] { display: none; }
.spots-line.is-full::before { background: #f5c26b; box-shadow: 0 0 0 4px rgb(245 194 107 / 0.25); }
.form-sub { margin: -12px 0 20px; color: var(--muted); font-size: 0.9375rem; }

.named-checks { list-style: none; padding: 0; margin: 20px 0 20px; display: grid; gap: 12px; }
.named-checks li { padding: 12px 16px 12px 48px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.named-checks li::before { content: ''; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.named-checks strong { display: block; color: var(--green-900); }
.named-checks span { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.guarantee { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 12px; padding: 12px 16px; color: var(--green-900); font-size: 0.9375rem; margin: 0 0 8px; }

.contact-strip { background: var(--green-50); border-top: 1px solid var(--line); padding: 32px 0; }
.section-tint + .contact-strip { background: #fff; }
.contact-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.contact-strip p { margin: 0; color: var(--ink-2); }
.contact-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.contact-strip a { font-weight: 600; color: var(--green); display: inline-flex; align-items: center; min-height: 44px; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(0 0 0 / 0.08); }
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-text { font-weight: 700; color: var(--green); padding: 12px 8px; min-height: 48px; display: inline-flex; align-items: center; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

.fast-lane { background: var(--cream); border-bottom: 1px solid var(--cream-line); }
.fast-lane-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0; }
.fast-lane p { margin: 0; color: var(--green-900); }

.offer-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.offer-band > div { max-width: 62ch; }
.offer-band h2, .offer-band h3 { margin-bottom: 8px; }
.offer-band-light { margin-top: 40px; background: var(--green-50); border: 1px solid #d6e4de; border-radius: var(--radius-lg); padding: 24px 32px; }
.offer-band-light h3 { color: var(--green-900); }
.offer-band-light p { margin: 0; color: var(--ink-2); }

.section-video { padding-top: 64px; }
.video-wrap { max-width: 880px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-900); box-shadow: 0 18px 50px rgb(0 0 0 / 0.14); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.warn-text { color: #9a5b00; font-weight: 600; }
.cov-uncovered { color: #b42318; font-weight: 600; }
.ed-uncovered { margin: 8px 0 12px; color: #b42318; } .ed-uncovered strong { color: #b42318; }
.hero h1 { max-width: 21ch; }
@media (max-width: 480px) { .hero h1 { font-size: 1.85rem; } }
/* Keep hidden labels inside the scrolling board, and let the 12 month chart scroll on narrow phones */
.kanban { position: relative; }
.month-bars { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 520px) { .ed-card:has(> .month-bars) { overflow-x: auto; } .month-bars { min-width: 440px; } }
.dash-grid > .ed-card { min-width: 0; }
.landing-header .brand { cursor: default; }
.landing-call { font-weight: 700; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.landing-footer { padding-top: 32px; }

/* ----- Growth Playbook phase 2: lead magnets, events, guides ----- */
.hero a:not(.btn), .page-hero a:not(.btn) { color: var(--cream); text-underline-offset: 3px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr repeat(3, 1fr); } }

.rs-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .rs-layout { grid-template-columns: 1.4fr 0.8fr; gap: 48px; } }
.rs-q { border: 0; padding: 0; margin: 0 0 24px; }
.rs-q legend { font-weight: 700; color: var(--green-900); margin-bottom: 12px; font-size: 1rem; }
.rs-n { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.rs-opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .rs-opts { grid-template-columns: 1fr 1fr; } }
.rs-opts .check:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.rs-result:focus { outline: none; }
.rs-score { display: flex; align-items: baseline; gap: 12px; }
.rs-num { font: 700 clamp(3.2rem, 9vw, 4.6rem)/1 var(--f-head); color: var(--green-900); }
.rs-bad .rs-num { color: #b42318; }
.rs-mid .rs-num { color: #9a5b00; }
.rs-of { color: var(--muted); font-weight: 600; }
.rs-band { font-size: 1.375rem; color: var(--green-900); margin: 8px 0 20px; }
.rs-risks { padding-left: 24px; margin: 0 0 24px; display: grid; gap: 16px; }
.rs-risks li strong { display: block; color: var(--green-900); }
.rs-risks li span { display: block; color: var(--ink-2); }
.rs-fix { margin-top: 4px; font-weight: 600; color: var(--green) !important; }
.rs-next { background: var(--green-50); border: 1px solid #d6e4de; border-radius: 12px; padding: 20px 20px; margin: 0 0 16px; }
.rs-next h3 { color: var(--green-900); margin-bottom: 8px; }
.llc-status { display: inline-block; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; border-radius: 999px; padding: 4px 12px; margin: 0 0 12px; background: var(--green-50); color: var(--green-900); }
.llc-mismatch { background: #fde8e7; color: #b42318; }
.llc-unclear, .llc-manual { background: #fdf3df; color: #7a4b00; }
.llc-compare { display: grid; gap: 12px; margin: 16px 0 20px; }
@media (min-width: 640px) { .llc-compare { grid-template-columns: 1fr 1fr; } }
.llc-compare div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.llc-compare dt { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.llc-compare dd { margin: 4px 0 0; font-weight: 700; color: var(--green-900); overflow-wrap: anywhere; }

.checklist { display: grid; gap: 24px; max-width: 860px; }
.cl-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px; box-shadow: var(--shadow); }
.cl-stage h3 { display: flex; align-items: center; gap: 12px; color: var(--green-900); font-size: 1.25rem; margin-bottom: 12px; }
.cl-n { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; flex-shrink: 0; }
.cl-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cl-items li { padding-left: 32px; position: relative; color: var(--ink-2); }
.cl-items li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border: 2px solid var(--green); border-radius: 4px; }
.cl-items strong { color: var(--green-900); }

.guide-wrap { max-width: 820px; }
.guide h2 { color: var(--green-900); margin-top: 32px; }
.guide-box { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius-lg); padding: 20px 24px; margin: 32px 0 20px; }
.guide-box h3 { color: var(--green-900); margin-bottom: 8px; }

.event-page { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .event-page { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.event-where { font-weight: 700; color: var(--green-900); }
.seo-prose { max-width: 820px; }
.seo-prose h2 { color: var(--green-900); margin-top: 32px; }
.seo-prose h3 { color: var(--green-900); margin-top: 20px; font-size: 1.125rem; }
.cg-out { display: grid; gap: 20px; align-items: start; margin-top: 8px; }
@media (min-width: 720px) { .cg-out { grid-template-columns: 180px 1fr; } }
.cg-qr { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cg-qr svg { width: 100%; height: 100%; display: block; }
.cg-link input { width: 100%; font-size: 0.9375rem; }
.llc-compare[hidden], .rs-result[hidden], .checklist[hidden] { display: none; }
.rs-opts .check { border: 1.5px solid #d6ded9; border-radius: 8px; padding: 12px 12px; font-size: 0.9375rem; align-items: center; min-height: 48px; cursor: pointer; } .rs-opts .check input { margin: 0; flex-shrink: 0; }
.auto-list { display: grid; gap: 8px; margin-bottom: 8px; }
.auto-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.auto-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: #fff; }
.tool-box summary { cursor: pointer; min-height: 32px; }
.tool-box .file-list { margin: 8px 0; }
.memo { white-space: pre-wrap; background: var(--green-50); border: 1px solid #d6e4de; border-radius: 8px; padding: 12px; font-size: 0.875rem; max-height: 360px; overflow: auto; }
.memo-link { width: 100%; font-size: 0.875rem; margin: 4px 0 8px; }
.ed-draft-note { margin: 8px 0; }
.ed-rounding { margin: 8px 0; color: var(--green-900); }
.kpi-line { font-size: 1.125rem; margin: 0 0 8px; }
.sb-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.sb-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.sb-card .k { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.sb-card .v { font: 700 1.5rem/1.15 var(--f-head); color: var(--green-900); }
.sb-bar { height: 6px; background: var(--green-50); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.sb-bar span { display: block; height: 100%; background: var(--green); }
.sb-table td:first-child { min-width: 200px; }
.pr-touches { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 8px; }
.seq-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.seq-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* =====================================================================
   Answer engine additions (October 19, 2026): In short blocks, bylines,
   answer pages, comparison tables, the glossary, the Answers hub, and
   More about Gabe. New components only; nothing above changes.
   ===================================================================== */
.inshort-section { padding: 48px 0 8px; }
.inshort { max-width: 860px; background: var(--green-50); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-lg); padding: 24px 32px; }
.inshort-h { font: 600 0.8125rem/1.2 var(--f-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.inshort-answer { font-size: 1.125rem; color: var(--ink); margin: 0 0 16px; }
.inshort-points { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.inshort .byline { margin: 16px 0 0; }
.byline { font-size: 0.9375rem; color: var(--muted); margin: 0 0 20px; }
.byline a { font-weight: 600; }
.answer-lead { font-size: 1.125rem; color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline: 3px solid #2f8f73; outline-offset: 2px; }
.aeo-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.aeo-table th, .aeo-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.aeo-table thead th { background: var(--green-50); color: var(--green-900); font-family: var(--f-head); font-size: 0.9375rem; }
.aeo-table tbody th { color: var(--green-900); font-weight: 700; width: 26%; }
.aeo-table tbody tr:last-child th, .aeo-table tbody tr:last-child td { border-bottom: 0; }
.gl-index ul { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-index li { margin: 0; }
.gl-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.gl-index a:hover { border-color: var(--green); }
.gl-term { padding: 24px 0; border-top: 1px solid var(--line); }
.seo-prose .gl-term h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.gl-def { font-size: 1.0625rem; color: var(--ink); margin: 0 0 8px; }
.gl-why { color: var(--ink-2); margin: 0; }
.answers-group { max-width: 860px; margin-bottom: 40px; }
.answers-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--green-900); }
.answers-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.answers-list li { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 20px 16px; }
.answers-list a { display: inline-flex; align-items: center; min-height: 44px; font: 700 1rem/1.3 var(--f-head); }
.answers-list span { display: block; color: var(--ink-2); }
.aeo-anchor { display: block; height: 0; }
.more-gabe-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 960px; }
.more-gabe-grid h3 { color: var(--green-900); }
.more-gabe-grid ul { padding-left: 1.2em; margin: 0; }
.more-gabe-links { list-style: none; padding-left: 0 !important; }
.more-gabe-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) {
  .inshort-section { padding-top: 40px; }
  .inshort { padding: 20px 20px; }
  .answers-list li { padding: 8px 16px 12px; }
}

/* Book Acquisition */
.crm-subtab { padding-left: 24px; font-size: 0.875rem; font-weight: 500; }
.acq-score { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; font-weight: 700; font-size: 0.875rem; background: #eef2f0; color: var(--ink-2); }
.acq-s4, .acq-s5 { background: var(--green); color: #fff; }
.acq-s3 { background: var(--green-50); color: var(--green-900); }
.acq-views { flex-wrap: wrap; margin-top: 16px; }
.acq-cols { display: grid; gap: 20px; }
@media (min-width: 1100px) { .acq-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.acq-gates, .acq-list, .acq-rules { margin: 8px 0 0; padding-left: 0; list-style: none; }
.acq-gates li { padding: 4px 0; font-size: 0.875rem; }
.acq-gates li.gate-ok span { color: var(--ok); font-weight: 700; }
.acq-gates li.gate-no { color: var(--red); }
.acq-sb { list-style: none; margin: 8px 0 0; padding: 0; }
.acq-sb li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line, #eee); font-size: 0.9375rem; }
.acq-warn { margin: 8px 0; font-size: 0.9375rem; }
.acq-list li { padding: 4px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.acq-list li:first-child { border-top: 0; }
.acq-rules { padding-left: 20px; list-style: disc; }

/* =====================================================================
   Design system pass (Oct 2026): one spacing scale, one type ramp, a
   reading measure, and consistent cards, buttons and fields. Layout,
   colors and words are unchanged; only rhythm, size and polish.
   ===================================================================== */

/* Reading measure: running text on public pages stops around 70 to 75 characters. */
main:not(.admin-main) :is(p, li) { max-width: var(--measure); }
main:not(.admin-main) :is(td, th, .ledger, .ledger-mock, .estimator, .hero-chip, .tl-step) :is(p, li) { max-width: none; }
main :is(.empty, .notfound, .cal-ph, .kempty) p { margin-inline: auto; }
.footer-legal p { max-width: 72ch; }
.entity-strip p { max-width: var(--measure); }

/* Small uppercase labels read better with a touch more tracking. */
.kpi-k, .dash-sub { letter-spacing: 0.08em; }
.feed-type, .ct-badge { letter-spacing: 0.06em; }

/* Buttons: one size system, one motion, a soft lift on hover, a clear focus ring. */
.btn { transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.btn-primary:hover, .btn-cream:hover { box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline-offset: 3px; }
.btn-lg { padding: 16px 32px; }
.btn-sm { padding: 8px 16px; }

/* Cards on light sections share one corner, one border weight and one soft shadow. */
.problem, .feature, .step, .commit, .guide-box { box-shadow: var(--shadow-sm); }
.problem, .feature, .step, .card { transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease); }
a.feature:hover, a.card:hover, a.problem:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Card rows: equal heights (grid rows stretch their cards). */
.problem-grid, .feature-grid, .steps, .commit-grid { align-items: stretch; }

/* Admin cards and tiles: the same corner and shadow family as the site. */
.ed-card, .kpi, .crm-nav { border-radius: var(--radius); }
.kpi, .ed-card { box-shadow: var(--shadow-sm); transition: border-color var(--ease), box-shadow var(--ease); }
a.kpi:hover { box-shadow: var(--shadow); }

/* Links and tabs: the same short ease everywhere. */
.site-nav a:not(.btn), .crm-tab, .site-footer a, .btn-link { transition: color var(--ease), background var(--ease), box-shadow var(--ease); }

/* Dashboard tiles: eight tiles split evenly (4 by 2) instead of leaving one alone on a row. */
@media (min-width: 760px) { .kpis:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); } }

/* Card headers on phones: the title keeps its line and the action link wraps under it, not mid phrase. */
.ed-card-head { flex-wrap: wrap; row-gap: 4px; }
.ed-card-head > a, .ed-card-head > .small { white-space: nowrap; }

/* Phone numbers never break in the middle. */
a[href^="tel:"] { white-space: nowrap; }

/* Pipeline columns: a one line rule under each stage name. */
.kcol header .kdef { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

/* Contacts: saved views above the filters. */
.ct-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* Ledger lines and policy status (Oct 2026): filter chips, status labels, the status block,
   vehicles, drivers and entities in the editor. Existing tokens only. */
.line-chips, .ed-lines { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; }
.line-chip .sub { font-weight: 500; }
.pol-state { display: inline-block; margin-top: var(--space-1); }
.policy-card header .pol-state { margin-left: var(--space-2); }
.ef-status { background: var(--green-50); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-3) 0; margin-bottom: var(--space-3); }
.ef-attach { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); grid-column: 1 / -1; }
.ef-attach legend { font-size: var(--fs-sm); font-weight: 600; padding: 0 var(--space-1); }
.ed-item { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4) var(--space-1); margin-bottom: var(--space-3); }
.ef .hint { margin-top: var(--space-1); font-size: var(--fs-xs); }
.seg[aria-pressed='true'] .muted, .seg[aria-pressed='true'] .sub { color: inherit; }
.ef .hint { display: block; line-height: 1.4; }
.co-box { margin: var(--space-2) 0 var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--green-50); max-width: none; }
.co-box.co-short { border-left: 3px solid currentColor; }
.opp-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.opp-list li { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: baseline; }
.kgroup { list-style: none; margin: var(--space-1) 0 0; padding: 0; font-size: var(--fs-sm); display: grid; gap: 2px; }
.co-review { display: grid; gap: var(--space-1); }
.co-review + .co-review { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.co-review h4 { margin: 0; }
.qn-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 var(--space-4); }
.qn-nav .seg { text-decoration: none; }
.qn-sec { scroll-margin-top: calc(var(--admin-top-h, 60px) + var(--space-4)); }
.qn-list { display: grid; gap: var(--space-2); }
.qn-list h4 { margin: 0; }
.qn-multi { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.qn-sealed { display: flex; gap: var(--space-3); align-items: baseline; min-height: 44px; }
.qn-mask { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* The audience switch (standard site and investor site): a clear outlined button in the header. */
/* The audience switch: a slim bar above the header, so the nav keeps its shape */
.aud-bar { background: var(--cream); color: var(--green-900); font-size: 0.875rem; }
.aud-bar .wrap { display: flex; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.aud-bar a.nav-switch { color: var(--green-900); font-weight: 600; text-decoration: none; }
.aud-bar a.nav-switch::after { content: " \2192"; }
.aud-bar a.nav-switch:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .aud-bar .wrap { justify-content: center; } }
.co-box strong { display: inline; }

/* Lead Magnet Library: Document Checks editor */
.dc-edit td { vertical-align: top; }
.dc-edit input, .dc-edit textarea, .dc-edit select { width: 100%; min-width: 120px; font: inherit; font-size: 0.875rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white, #fff); }
.dc-reasons { padding-left: 20px; margin: 0 0 8px; }
.dc-reasons li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.dc-reasons textarea { flex: 1; font: inherit; font-size: 0.9rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }

/* Lead Magnet Library: instant calculator results */
.step-error[hidden] { display: none; }
.rs-num-long { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.calc-rows { margin: 0 0 20px; display: grid; gap: 6px; }
.calc-rows div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.calc-rows dt { color: var(--ink-2); }
.calc-rows dd { margin: 0; font-weight: 700; color: var(--green-900); text-align: right; }
.calc-inputs { display: grid; gap: 4px; }
.kit-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0 12px; }
.kit-table th, .kit-table td { border: 1px solid var(--line); padding: 8px; text-align: left; height: 34px; }
.kit-table th { background: var(--green-100, #eef5f2); color: var(--green-900); font-weight: 600; }
.checklist .cl-stage { min-width: 0; } /* a wide kit table scrolls inside its box instead of stretching the page */

/* Lead Magnet Library: the homepage's flagship tools and the footer band */
.tool-grid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 820px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-card h3 { font-size: 1.125rem; color: var(--green-900); margin: 0; text-wrap: balance; }
.tool-card p { margin: 0; color: var(--ink-2); }
.tool-card .btn { margin-top: auto; align-self: flex-start; }
.tool-line { font: 700 0.75rem/1 var(--f-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green) !important; }
.footer-tools { display: grid; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgb(236 213 155 / 0.15); }
@media (min-width: 640px) { .footer-tools { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-tools { grid-template-columns: repeat(4, 1fr); } .footer-tools .footer-h { line-height: 1.35; min-height: 2.7em; } } /* two line labels, so the four lists start level */
.footer-tools:empty { display: none; }
