/* ============================================================
   VRABC — design system  (v4, "operator instrument")
   Restrained, data-credible: a soft neutral canvas with white
   surfaces floated on top, hairline rules, monospace accents for
   labels/prices/numbers, ONE confident accent colour, tight
   radii, minimal shadow (used deliberately, not decoratively).
   Single sans stack throughout — no display/marketing typeface.
   ============================================================ */

:root {
    /* canvas + ink — the page itself is a soft neutral, not pure
       white; cards/header are --card (pure white) floated on it */
    --ink: #0f141b;
    --ink-soft: #38424f;
    --muted: #647082;
    /* the canvas carries a barely-there warm cream cast so the page
       feels like paper, not a spreadsheet — the difference between
       "restrained" and "clinical" is about 2 points of warmth */
    --paper: #f7f6f2;
    --paper-deep: #ffffff;
    --card: #ffffff;
    /* a step of tone for banding INSIDE a white card (readout
       header strip, progress-bar tracks) — distinct from both
       the page canvas and the card itself */
    --surface-2: #f0eee9;
    --line: #e4e1da;
    --line-soft: #efece6;

    /* accent — one confident blue, used deliberately for every
       interactive/brand moment (buttons, links, eyebrow rule,
       active states). Nothing else competes with it. */
    --brand: #1257e0;
    --brand-deep: #0a3aa6;
    --brand-bright: #6e97f2;
    --brand-tint: #e7eefd;
    --brand-tint-2: #f2f6fe;

    /* warm counterpoint — a soft terracotta. NOT interactive and never
       a button; it lives in illustration fills, the signature wash,
       and the occasional highlight so the blue has something to sit
       against. Used sparingly, it's what keeps the page from reading
       as a bank statement. */
    --warm: #d97757;
    --warm-deep: #b95c3e;
    --warm-tint: #fbeae2;
    --warm-tint-2: #fdf4ef;

    /* the ONE decorative gradient in the system: a soft warm→cool wash
       for hero-art backdrops and photo-card frames. One per page. */
    --wash: linear-gradient(135deg, #fdf0e8 0%, #f3f0fb 48%, #e6eefc 100%);
    --wash-strong: linear-gradient(135deg, #f8d9c9 0%, #dfd8f6 50%, #c9daf8 100%);

    /* secondary signal colour (non-interactive, used sparingly) */
    --accent: #b8791b;
    --accent-deep: #8a5a12;
    --accent-tint: #f9f0dd;

    --danger: #d6483b;
    --danger-tint: #fbe7e4;
    --ok: #0f9d6b;
    --ok-tint: #e4f5ee;
    --watch: #c8890a;
    --watch-tint: #fbf0d9;

    /* geometry — tighter than v2 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    /* shadow — barely there; borders do the work. Reserved for
       the one or two elements per page that should visibly float. */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px -18px rgba(16, 24, 40, .28);
    --shadow-brand: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 24px -14px rgba(18, 87, 224, .35);

    --grad-brand: linear-gradient(120deg, #0a3aa6 0%, #1257e0 55%, #4779ea 100%);
    --grad-dark: linear-gradient(155deg, #0b1f1d 0%, #0e3b37 60%, #0f766e 140%);

    /* one sans stack for everything — headings and body alike.
       Native system UI font (Segoe UI / SF Pro / Roboto): crisp,
       zero download, no flash-of-wrong-font. Deliberately NOT a
       downloaded web font — the reference design was approved
       rendering in the system font. No separate "display" face:
       that's the single biggest tell of a template-generated page. */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-body: var(--font-sans);
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { vertical-align: middle; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--ink);
    text-wrap: balance;
}

/* Monospace utility — the signature accent of the system.
   Used for labels, prices, stats and anything that should read
   as an instrument readout rather than marketing copy. */
.mono, .metric-num, .dl-price, .plan-price, .tier .price {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font: 600 14px/1 var(--font-mono);
    letter-spacing: .01em;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg, button svg, .pain-fix svg, .res-meta .cta svg { pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-tint-2); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 7px;
    background: var(--brand); color: #fff;
}
.brand-name { font: 700 18px/1 var(--font-mono); color: var(--ink); letter-spacing: -.01em; }
.brand-name span { color: var(--brand); }
.main-nav { display: flex; gap: 2px; margin-left: 8px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 14px; padding: 7px 11px; border-radius: 7px; transition: background .14s, color .14s; }
.main-nav a:hover { color: var(--brand); background: var(--brand-tint-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-account { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 500; font-size: 14px; }
.nav-account:hover { color: var(--brand); }
.nav-toggle { display: none; }

/* ---------- flash ---------- */
.flash { padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.flash-success { background: var(--ok-tint); color: #06724f; }
.flash-info { background: var(--brand-tint); color: var(--brand-deep); }
.flash-error { background: var(--danger-tint); color: #b5281b; }

/* ---------- hero (full-bleed photographic) ---------- */
.hero { position: relative; padding: 130px 0 116px; overflow: hidden; color: #fff; background: #06231f; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(6,35,31,.94) 0%, rgba(12,74,67,.86) 40%, rgba(13,148,136,.5) 100%);
}
.hero .container { position: relative; }
.hero-inner { max-width: 760px; }
/* Eyebrow — a monospace label preceded by a short accent rule.
   No pill, no chrome: it reads as a section marker, not a badge. */
.eyebrow {
    display: inline-flex; align-items: center; gap: .7em;
    font: 600 11.5px var(--font-mono);
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0; border-radius: 0;
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand); flex: 0 0 auto; }
.eyebrow svg { color: var(--brand); }
.hero .eyebrow, .section-dark .eyebrow { color: rgba(255, 255, 255, .72); }
.hero .eyebrow::before, .section-dark .eyebrow::before { background: var(--brand-bright); }
.hero .eyebrow svg, .section-dark .eyebrow svg { color: var(--brand-bright); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 58px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero .lede { font-size: 18.5px; color: rgba(255, 255, 255, .88); max-width: 58ch; margin-bottom: 30px; line-height: 1.58; }
.hero .hero-note { color: rgba(255, 255, 255, .82); }
.hero .hero-note svg { color: var(--brand-bright); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

/* Light-canvas defaults (plain heroes with no photo/dark band).
   .hero and .section-dark override these back to white below. */
.lede { font-size: 18px; color: var(--ink-soft); max-width: 58ch; margin-bottom: 30px; line-height: 1.58; }
.hero-note { color: var(--muted); font-size: 13.5px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.hero-note svg { color: var(--brand); }

/* ---------- metrics strip ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { text-align: center; padding: 6px 8px; }
.metric-num { font: 700 28px/1 var(--font-mono); letter-spacing: -.02em; color: var(--brand); }
.metric-num.grad-text { display: inline-block; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--brand); }
.metric-lbl { color: var(--muted); font-size: 12px; margin-top: 8px; font-weight: 500; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-deep { background: var(--paper-deep); }
.section-dark {
    background: var(--grad-dark);
    color: #d6efe9;
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(40% 60% at 85% 0%, rgba(45, 212, 191, .22), transparent 60%);
}
.section-dark .container { position: relative; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 64ch; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.section-dark .section-head p { color: #b6ddd5; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- pain points (stat-led, bold) ---------- */
.pains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
    position: relative; overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: border-color .16s ease;
}
.pain-card:hover { border-color: var(--brand); }
.pain-stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
/* One accent, deliberately. Per-card --g1 hues from the old
   palette are ignored here: uniform stats read as instrument
   data, which is what makes the set feel considered. */
.pain-stat b {
    font: 700 clamp(28px, 3.2vw, 34px)/1 var(--font-mono);
    letter-spacing: -.03em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pain-stat b svg { color: var(--brand); }
.pain-stat span { color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.35; max-width: 22ch; font-family: var(--font-mono); letter-spacing: .02em; }
.pain-num { font: 600 11.5px var(--font-mono); color: var(--muted); letter-spacing: .14em; margin-bottom: 12px; display: inline-flex; align-items: center; gap: .6em; text-transform: uppercase; }
.pain-num svg { color: var(--brand); flex: 0 0 auto; }
.pain-card h3 { font-size: 18px; margin-bottom: 8px; }
.pain-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.pain-fix { font: 600 13px var(--font-mono); color: var(--brand); display: inline-flex; align-items: center; gap: 7px; }
.pain-fix:hover { gap: 10px; }

/* ---------- resource cards (photo-led) ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    color: var(--ink);
}
.res-card:hover { border-color: var(--brand); color: var(--ink); }
.res-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #0c1626; }
.res-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.res-card:hover .res-cover img { transform: scale(1.06); }
.cover-tint { position: absolute; inset: 0; background: linear-gradient(150deg, var(--ovl-from), var(--ovl-to)); opacity: .55; mix-blend-mode: multiply; }
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,14,13,.93) 0%, rgba(4,14,13,.25) 46%, rgba(4,14,13,0) 72%); }
.cover-fmt {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font: 800 11px var(--font-body); letter-spacing: .08em; color: #fff;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .42);
    backdrop-filter: blur(5px); padding: 5px 10px; border-radius: 8px;
}
.cover-badge { position: absolute; top: 13px; right: 13px; z-index: 2; }
.cover-title {
    position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff;
    font: 800 19.5px/1.16 var(--font-display); letter-spacing: -.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.format-chip {
    font: 600 10.5px var(--font-mono);
    letter-spacing: .1em;
    color: var(--brand-deep);
    background: var(--brand-tint-2);
    border: 1px solid var(--brand-tint);
    border-radius: 5px;
    padding: 4px 8px;
}
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font: 700 10.5px var(--font-mono);
    letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 5px;
}
.badge-free { background: var(--ok-tint); color: #0b7a53; }
.badge-pro { background: var(--accent-tint); color: var(--accent-deep); }
.res-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.res-card-body .blurb { color: var(--ink-soft); font-size: 14px; flex: 1; line-height: 1.55; }
.res-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.res-meta .cta { margin-left: auto; color: var(--brand-deep); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.res-card:hover .res-meta .cta { gap: 9px; }
.res-hero { margin: 18px 0 6px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.res-hero .res-cover { aspect-ratio: 24 / 9; border-radius: 0; }
.res-hero .cover-title { font-size: clamp(24px, 3.6vw, 38px); left: 30px; right: 30px; bottom: 26px; }
.res-hero .cover-fmt { top: 20px; left: 20px; }
.res-hero .cover-badge { top: 19px; right: 22px; }
@media (max-width: 640px) { .res-hero .res-cover { aspect-ratio: 16 / 9; } }

/* ---------- library filters ---------- */
.page-title { padding: 60px 0 8px; }
.page-title h1 { font-size: clamp(34px, 4.2vw, 46px); margin-bottom: 14px; letter-spacing: -.03em; }
.page-title p { color: var(--ink-soft); font-size: 17.5px; max-width: 64ch; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 36px; align-items: center; }
.filter-pill {
    font: 500 13px var(--font-mono);
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 7px;
    transition: all .14s ease;
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand); }
.filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-sep { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
.lib-count { color: var(--muted); font-size: 14px; margin-left: auto; }

.cat-block { margin-bottom: 56px; }
.cat-block h2 { font-size: 25px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; letter-spacing: -.02em; }
.cat-block h2 .count { font: 600 13px var(--font-body); color: var(--muted); }

/* ---------- resource detail ---------- */
.crumbs { padding: 28px 0 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-deep); }
.res-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 28px 0 84px; align-items: start; }
.res-detail h1 { font-size: clamp(32px, 3.8vw, 44px); margin: 14px 0 18px; letter-spacing: -.03em; }
.res-detail .desc p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; line-height: 1.65; }
.pain-callout {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--accent-tint);
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 8px 0 22px;
    font-size: 15px;
    color: #7a4d10;
}
.pain-callout svg { color: var(--accent-deep); }
.pain-callout strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; color: var(--accent-deep); }
.includes { margin: 28px 0; }
.includes h2 { font-size: 23px; margin-bottom: 14px; letter-spacing: -.02em; }
.includes ul { list-style: none; }
.includes li { display: flex; gap: 12px; padding: 11px 0; color: var(--ink-soft); font-size: 15.5px; border-bottom: 1px solid var(--line-soft); }
.includes li svg { flex-shrink: 0; color: var(--ok); margin-top: 4px; }

.dl-card {
    position: sticky; top: 96px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}
.dl-card .badge { margin-bottom: 14px; }
.dl-price { font: 800 32px var(--font-display); margin-bottom: 4px; letter-spacing: -.03em; }
.dl-price small { font: 500 14px var(--font-body); color: var(--muted); letter-spacing: 0; }
.dl-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.dl-facts { list-style: none; margin: 18px 0 0; }
.dl-facts li { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.dl-facts li:last-child { border-bottom: 0; }
.dl-facts b { color: var(--ink); font-weight: 600; }
.dl-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.dl-note a { font-weight: 600; }

/* ---------- playbook ---------- */
.play-toc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 10px 0 44px;
    box-shadow: var(--shadow-sm);
}
.play-toc strong { display: block; margin-bottom: 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.play-toc ol { columns: 2; gap: 36px; padding-left: 20px; font-size: 15px; }
.play-toc li { margin-bottom: 8px; }
.play-section { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.play-section:first-of-type { border-top: 0; }
.play-section--plain { display: block; }
.play-big b { display: block; font: 800 clamp(40px, 5vw, 54px)/.88 var(--font-display); letter-spacing: -.045em; background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.play-big span { display: block; margin-top: 10px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.3; max-width: 26ch; }
.play-kicker { font: 800 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gd, var(--brand)); display: block; margin-bottom: 6px; }
.play-content h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; letter-spacing: -.025em; }
.play-section h2 { letter-spacing: -.025em; }
.play-source { font-size: 14px; color: var(--muted); border-left: 3px solid var(--g1, var(--brand)); padding-left: 14px; margin: 0 0 16px; line-height: 1.5; }
.play-content p { color: var(--ink-soft); margin: 12px 0; max-width: 72ch; line-height: 1.65; }
.play-content p:last-of-type { margin-bottom: 0; }
.play-section p { color: var(--ink-soft); margin: 12px 0; max-width: 76ch; line-height: 1.65; }
.play-fixes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fix-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px; font-weight: 600; color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: all .14s ease;
}
.fix-chip:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
.fix-chip .badge { padding: 3px 8px; font-size: 10px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 24px;
}
.step::before {
    counter-increment: step;
    content: "STEP " counter(step, decimal-leading-zero);
    font: 600 11.5px var(--font-mono);
    letter-spacing: .14em;
    color: var(--brand-bright);
    display: block; margin-bottom: 14px;
}
.step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.step p { color: #b6ddd5; font-size: 14.5px; line-height: 1.55; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 24px; justify-content: center; align-items: stretch; }
.plan {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex; flex-direction: column;
    position: relative;
}
.plan.plan-hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-flag {
    align-self: flex-start;
    background: var(--brand-tint-2); color: var(--brand-deep);
    border: 1px solid var(--brand-tint);
    font: 600 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 5px; margin-bottom: 14px;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .plan-price { font: 700 36px var(--font-mono); margin: 10px 0 2px; letter-spacing: -.03em; }
.plan .plan-price small { font: 500 13px var(--font-body); color: var(--muted); letter-spacing: 0; display: block; margin-top: 5px; }
.plan .plan-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; color: var(--ink-soft); }
.plan li svg { color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.plan li.no svg { color: var(--line); }
.plan li.no { color: var(--muted); }

/* ---------- forms ---------- */
.auth-wrap { display: grid; place-items: center; padding: 72px 24px 96px; position: relative; }
.form-card {
    width: 100%; max-width: 440px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-md);
}
.form-card h1 { font-size: 29px; margin-bottom: 6px; letter-spacing: -.025em; }
.form-card .form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.field input {
    width: 100%;
    font: 500 15px var(--font-body);
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    transition: border-color .14s, box-shadow .14s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint-2); }
.form-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.form-error {
    background: var(--danger-tint); color: #b5281b;
    font-size: 14px; font-weight: 500;
    padding: 12px 14px; border-radius: 11px; margin-bottom: 16px;
}

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 24px 0 84px; align-items: start; }
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 20px; margin-bottom: 16px; letter-spacing: -.02em; }
.plan-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
    padding: 7px 14px; border-radius: 999px;
}
.plan-pill.free { background: var(--surface-2); color: var(--ink-soft); }
.plan-pill.pro { background: var(--accent-tint); color: var(--accent-deep); }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.dl-row:last-child { border-bottom: 0; }
.dl-row .when { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 30px 0 84px; align-items: start; }
.test-banner {
    background: var(--accent-tint); color: #7a4d10;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: var(--radius);
    padding: 15px 18px;
    font-size: 14px; margin-bottom: 22px;
}
.order-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-soft); }
.order-line.total { border-bottom: 0; font-weight: 700; color: var(--ink); font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .14s;
}
.faq details[open] { border-color: var(--brand-tint); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; letter-spacing: -.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding-top: 12px; font-size: 15px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 92px 0; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 14px; color: #fff; letter-spacing: -.03em; }
.cta-band p { color: #b6ddd5; font-size: 17.5px; margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #0b1623; color: #93a1b5; margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1.2fr;
    gap: 40px;
    padding: 64px 24px 40px;
    max-width: 1160px; margin: 0 auto;
}
.footer-grid h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid a { display: block; color: #93a1b5; font-size: 14.5px; padding: 5px 0; transition: color .14s; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 38ch; line-height: 1.6; }
.news-form { display: flex; gap: 10px; margin-top: 14px; }
.news-form input {
    flex: 1;
    font: 500 14px var(--font-body);
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid #29384a;
    background: #14202f;
    color: #fff;
    min-width: 0;
}
.news-form input::placeholder { color: #647489; }
.news-form input:focus { outline: none; border-color: var(--brand); }
.footer-base {
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    max-width: 1160px; margin: 0 auto;
    padding: 26px 24px 36px;
    border-top: 1px solid #1c2a3a;
    font-size: 13px; color: #647489;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .res-detail, .checkout-grid, .account-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .pains-grid, .res-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .metrics { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .plans { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* 1fr = minmax(auto, 1fr): without min-width:0 the newsletter form's min-content
       (~323px input+button) inflates its column and the footer overflows narrow viewports. */
    .footer-grid > * { min-width: 0; }
    .dl-card { position: static; }
    /* Hamburger nav from 960px down (was 640px): the full nav row — brand + 7 links +
       account actions — needs ~850px logged-out and ~930px for a logged-in admin, so
       between 641px and ~930px it overflowed the viewport horizontally. */
    .main-nav {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        padding: 16px 24px;
        flex-direction: column; gap: 6px;
        box-shadow: var(--shadow-md);
    }
    body.nav-open .main-nav { display: flex; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; gap: 4.5px;
        background: none; border: 0; cursor: pointer; padding: 6px;
    }
    .nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 64px 0 72px; }
    .footer-grid { grid-template-columns: 1fr; }
    .pains-grid, .res-grid, .steps { grid-template-columns: 1fr; }
    .play-section { grid-template-columns: 1fr; gap: 12px; }
    .play-big b { font-size: 40px; }
    .play-toc ol { columns: 1; }
    .nav-actions .btn { display: none; }
    /* Long button labels (e.g. the "Read the full Host's Playbook — …" ghost button on
       the home page) may wrap on phones instead of forcing horizontal overflow. */
    .btn { white-space: normal; line-height: 1.25; text-align: center; }
}

/* ============================================================
   Host tools (Home Manuals + Turnover Tracker)
   ============================================================ */

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row input[type="text"], .btn-row input[type="date"], .btn-row select {
    font: 500 14px var(--font-body); padding: 10px 13px;
    border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
}
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 28px; }
.tool-card h3 { font-size: 20px; letter-spacing: -.02em; }
.tool-new { border-style: dashed; background: transparent; box-shadow: none; }

.edit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding-bottom: 84px; align-items: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field textarea, textarea {
    width: 100%; font: 500 14.5px/1.55 var(--font-body); padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); resize: vertical;
}
.field textarea:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint-2); }
select { font: 500 14.5px var(--font-body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }

.sec-card { margin-bottom: 14px; padding: 20px 22px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-tint-2); color: var(--brand); align-items: center; justify-content: center; flex-shrink: 0; }
.sec-heading { flex: 1; font: 700 16px var(--font-body); border: 1.5px solid transparent; border-radius: 9px; padding: 8px 10px; background: transparent; color: var(--ink); min-width: 0; }
.sec-heading:hover, .sec-heading:focus { border-color: var(--line); background: #fff; outline: none; }
.sec-tools { display: flex; gap: 6px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .14s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.sec-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.icon-pick { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.share-url { display: flex; gap: 8px; }
.share-url input { flex: 1; font: 500 12.5px var(--font-body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink-soft); background: var(--surface-2); min-width: 0; }
.linklike { background: none; border: 0; color: var(--brand-deep); font: 600 13px var(--font-body); cursor: pointer; padding: 0; }
.linklike:hover { color: var(--brand); text-decoration: underline; }

/* ---------- guest guidebook (g.php) ---------- */
/* The page a guest actually opens from the QR sign. It was the last thing still
   wearing the old dark-teal hero; it now uses the same light paper canvas, blue
   accent and system type as the rest of the site. A host-supplied photo becomes
   a banner above the title rather than a scrim behind it — arbitrary photos make
   overlaid text a coin toss, and a guest reading this is often in poor light. */
.gb-body { background: var(--paper); }
.gb-wrap { max-width: 660px; margin: 0 auto; padding: 0 18px; }
.gb-draft {
    background: var(--accent-tint); color: var(--accent-deep); text-align: center;
    font: 600 13px var(--font-body); padding: 10px;
}
.gb-draft a { color: var(--accent-deep); text-decoration: underline; }

.gb-hero { background: var(--paper); padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.gb-photo { margin-bottom: 22px; background: var(--surface-2); }
.gb-photo img {
    display: block; width: 100%; height: clamp(170px, 34vw, 280px);
    object-fit: cover;
}
.gb-hero-copy { padding-top: 34px; }
.gb-hero.has-photo .gb-hero-copy { padding-top: 0; }
.gb-kicker { font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.gb-hero h1 { color: var(--ink); font-size: clamp(28px, 6vw, 38px); margin: 9px 0 5px; letter-spacing: -.025em; }
.gb-tagline { color: var(--ink-soft); font-size: 15.5px; }
.gb-host-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gb-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1.5px solid var(--line); color: var(--ink);
    font: 600 13.5px var(--font-body);
    padding: 10px 16px; border-radius: 999px;
    transition: border-color .15s ease, color .15s ease;
}
.gb-pill:hover { border-color: var(--brand); color: var(--brand-deep); }

.gb-chips { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gb-chiprow { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.gb-chiprow::-webkit-scrollbar { display: none; }
.gb-chiprow a {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    font: 600 12.5px var(--font-body); color: var(--ink-soft);
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
    transition: border-color .15s ease, color .15s ease;
}
.gb-chiprow a:hover { border-color: var(--brand); color: var(--brand-deep); }

.gb-main { padding: 24px 18px 44px; }
.gb-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); scroll-margin-top: 64px; }
.gb-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 12px; letter-spacing: -.015em; }
.gb-icon { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint-2); color: var(--brand); align-items: center; justify-content: center; flex-shrink: 0; }
.gb-body-text p { color: var(--ink-soft); font-size: 15px; margin: 8px 0; line-height: 1.6; }
.gb-body-text ul { margin: 8px 0 8px 20px; color: var(--ink-soft); font-size: 15px; }
.gb-body-text li { margin-bottom: 6px; }
.gb-body-text mark { background: var(--accent-tint); color: var(--accent-deep); padding: 1px 5px; border-radius: 5px; font-weight: 600; }
.gb-copy {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--brand-tint-2); border: 1px solid rgba(18, 87, 224, .16);
    border-radius: 13px; padding: 12px 15px; margin: 8px 0;
}
.gb-copy small { display: block; font: 700 10px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.gb-copy b { font-size: 16.5px; color: var(--ink); word-break: break-all; }
.gb-copy button {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    font: 600 13px var(--font-body); color: var(--brand-deep);
    background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; padding: 9px 15px; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gb-copy button:hover { background: var(--brand); color: #fff; }
.gb-foot { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px 0 8px; }
.gb-powered a { font-weight: 700; }

/* ---------- cleaner / vendor page (clean.php, fix.php) ---------- */
.cl-body { background: var(--paper); }
.cl-wrap { max-width: 620px; margin: 0 auto; padding: 0 16px; }
.cl-head { background: var(--paper); color: var(--ink); padding: 34px 0 28px; border-bottom: 1px solid var(--line); }


.cl-head h1 { color: var(--ink); font-size: clamp(24px, 6vw, 32px); margin: 6px 0 4px; letter-spacing: -.025em; }
.cl-meta { color: var(--ink-soft); font-size: 14px; }
.cl-meta b { color: var(--ink); }
.cl-progress { height: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; margin-top: 18px; overflow: hidden; }
.cl-progress div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .25s ease; }
.cl-count { font: 600 12.5px var(--font-body); color: var(--muted); margin-top: 7px; }
.cl-done-banner {
    display: flex; gap: 10px; align-items: center;
    background: var(--ok-tint); color: #06724f;
    font: 600 14.5px var(--font-body); border-radius: 13px; padding: 14px 16px; margin: 14px 0;
}
.cl-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 13px 12px; border-radius: 11px; cursor: pointer;
    font-size: 15px; color: var(--ink-soft);
    border-bottom: 1px solid var(--line-soft);
    transition: background .12s;
}
.cl-item:last-child { border-bottom: 0; }
.cl-item:active { background: var(--surface-2); }
.cl-item input { width: 22px; height: 22px; accent-color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.cl-item.is-done span { text-decoration: line-through; color: var(--muted); }
.cl-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cl-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cl-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cl-form input[type="file"] { font: 500 13.5px var(--font-body); padding: 11px; border: 1.5px dashed var(--line); border-radius: 11px; background: var(--surface-2); }
.cl-form input[type="text"] { font: 500 14.5px var(--font-body); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; }
.cl-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.cl-flag { background: var(--accent-tint); border-radius: 11px; padding: 11px 14px; font-size: 14px; color: #7a4d10; margin-bottom: 8px; }
.cl-complete { margin: 20px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.cl-body .gb-card { background: #fff; }

@media (max-width: 760px) {
    .tool-grid, .edit-grid, .field-row { grid-template-columns: 1fr; }
    .cl-photos { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Coaching page + Lexaily landing
   ============================================================ */
mark {
    background: var(--accent-tint);
    color: var(--accent-deep);
    padding: 1px 6px;
    border-radius: 5px;
    font-weight: 600;
    font-size: .92em;
}
.coach-avatar-wrap { display: grid; place-items: center; }
.coach-avatar {
    width: 320px; height: 320px; border-radius: 50%;
    background: var(--grad-dark);
    display: grid; place-items: center; position: relative;
    box-shadow: var(--shadow-md);
    border: 8px solid #fff;
}
.coach-monogram { font: 800 150px var(--font-display); color: rgba(255,255,255,.94); }
.coach-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Coach hero photo (property, no face) */
.coach-shot { position: relative; margin: 0 auto; max-width: 300px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }
.coach-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-shot-tint { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(13,148,136,.28), rgba(124,58,237,.28)); mix-blend-mode: multiply; }
.coach-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 24px 22px; background: linear-gradient(to top, rgba(8,22,38,.86), transparent); color: #fff; }
.coach-shot figcaption b { display: block; font: 800 26px var(--font-display); letter-spacing: -.01em; }
.coach-shot figcaption span { font-size: 12.5px; color: #cfe0dc; }

/* Host-tools split feature cards */
.tool-feature { display: grid; grid-template-columns: 1.02fr 1.1fr; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.tool-feature-media { position: relative; min-height: 360px; }
.tool-feature--rev .tool-feature-media { order: 2; }
.tool-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool-feature-media .tf-tint { position: absolute; inset: 0; background: linear-gradient(150deg, var(--g1), var(--g2)); mix-blend-mode: multiply; opacity: .60; }
.tool-feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,38,.34), transparent 55%); }
.tf-badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.tf-ico { position: absolute; left: 22px; bottom: 22px; z-index: 2; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(4px); }
.tool-feature-body { padding: 36px 38px; }
.tf-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.tool-feature-body h2 { font-size: 27px; margin: 8px 0 12px; letter-spacing: -.01em; }
.tool-feature-body > p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; margin-bottom: 18px; }
.tf-list { list-style: none; margin: 0 0 22px; padding: 0; }
.tf-list li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.tf-list li svg { flex: none; color: var(--brand); margin-top: 2px; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.tool-trust > div { background: #f6f8fb; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tool-trust b { display: block; font: 800 17px var(--font-display); margin-bottom: 2px; }
.tool-trust span { font-size: 13px; color: var(--muted); }

/* "Open without Office" help on resource download card */
.dl-open { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.dl-open summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--brand); display: flex; align-items: center; gap: 7px; list-style: none; }
.dl-open summary::-webkit-details-marker { display: none; }
.dl-open[open] summary { margin-bottom: 9px; }
.dl-open p { font-size: 13px; color: var(--ink-soft); margin: 0 0 9px; }
.dl-open ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-open li { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.dl-open a { color: var(--brand); font-weight: 600; }
.dl-open-pdf { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.dl-open-pdf svg { color: var(--brand); flex: none; }

/* Admin link in the top nav */
.nav-admin { color: var(--brand) !important; font-weight: 700; }
.nav-admin svg { color: var(--accent); }

/* Reusable photographic page header */
.page-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 6px 0 30px; padding: 58px 30px; text-align: center; color: #fff; isolation: isolate; box-shadow: var(--shadow-md); }
.page-hero .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(155deg, rgba(15,118,110,.88), rgba(8,22,38,.82)); }
.page-hero h1 { color: #fff; margin: 6px 0 0; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 700px; margin: 12px auto 0; }

/* Admin pricing input */
.price-input { position: relative; }
.price-input .price-cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.price-input input { padding-left: 28px; }
.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 820px) {
    .tool-feature { grid-template-columns: 1fr; }
    .tool-feature-media { min-height: 220px; }
    .tool-feature--rev .tool-feature-media { order: 0; }
    .tool-trust { grid-template-columns: 1fr; }
    .coach-shot { aspect-ratio: 16 / 10; }
}
.coach-avatar-note { position: absolute; bottom: 26px; font-size: 11px; }
.lx-logo-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg);
    padding: 44px 56px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
}
.lx-logo-card img { border-radius: 20px; }
.lx-wordmark { font: 800 34px var(--font-display); margin-top: 14px; letter-spacing: -.02em; }
.lx-logo-card p { color: #b6ddd5; font-size: 14px; margin-top: 4px; }

/* Feature tiles (Lexaily + reusable) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}
.feature-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.feature-card:hover {
    border-color: var(--brand);
    box-shadow: 0 16px 38px -20px rgba(13,148,136,.45);
    transform: translateY(-3px);
}
.feature-ico {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px -8px rgba(13,148,136,.55);
}
.feature-card h3 { font-size: 18.5px; line-height: 1.25; margin: 0 0 9px; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 960px) {
    .coach-avatar { width: 220px; height: 220px; }
    .coach-monogram { font-size: 100px; }
    .coach-avatar-wrap { display: grid !important; min-height: 240px; }
}

/* ── Cabin / Lakefront / Mountain premium collection ─────────────────── */
.badge-premium{background:linear-gradient(135deg,#15803d,#4ade80);color:#fff;border:none}

.premium-cta{margin:26px 0;border-radius:22px;padding:30px 32px;color:#fff;
  background:radial-gradient(120% 140% at 0% 0%,#1a6b3a 0%,#0f3d24 60%,#0a2a19 100%);
  box-shadow:0 18px 40px -18px rgba(10,42,25,.65)}
.premium-cta-eyebrow{display:inline-block;font-weight:700;font-size:12.5px;letter-spacing:.12em;
  text-transform:uppercase;color:#86efac;margin-bottom:10px}
.premium-cta h3{font-family:var(--font-sans);font-size:26px;line-height:1.15;margin:0 0 8px;color:#fff}
.premium-cta p{color:#d5e8dc;max-width:64ch;margin:0 0 18px;font-size:15px;line-height:1.55}
.premium-cta-actions{display:flex;gap:12px;flex-wrap:wrap}

.btn-light{background:#fff;color:#0f3d24;border:none}
.btn-light:hover{background:#eafff2}
.btn-outline-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5)}
.btn-outline-light:hover{border-color:#fff;background:rgba(255,255,255,.10)}

.premium-band{margin:22px 0 60px;border-radius:24px;overflow:hidden;color:#fff;
  background:radial-gradient(120% 130% at 100% 0%,#1a6b3a 0%,#0f3d24 55%,#0a2a19 100%);
  box-shadow:0 26px 60px -26px rgba(10,42,25,.7)}
.premium-band-head{padding:38px 40px 6px}
.premium-band-head .eyebrow{color:#86efac;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:12.5px}
.premium-band-head h2{font-family:var(--font-sans);font-size:32px;margin:8px 0 10px;color:#fff}
.premium-band-head p{color:#d5e8dc;max-width:72ch;font-size:15.5px;line-height:1.6;margin:0}
.premium-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:18px 40px 6px}
.premium-item{display:flex;flex-direction:column;gap:4px;padding:15px 18px;border-radius:14px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);text-decoration:none;transition:.15s}
.premium-item:hover{background:rgba(255,255,255,.13)}
.premium-item strong{color:#fff;font-size:15px}
.premium-item span{color:#bcd8c6;font-size:12.5px;line-height:1.45}
.premium-band-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:22px 40px 40px}
.premium-band-cta .premium-price{font-family:var(--font-sans);font-size:30px;font-weight:800;color:#fff}
.premium-band-cta .premium-price small{font-size:14px;font-weight:600;color:#9fd3b0}
.premium-band-cta p{color:#bcd8c6;font-size:13.5px;max-width:46ch;margin:0}
@media(max-width:680px){
  .premium-grid{grid-template-columns:1fr}
  .premium-band-head,.premium-grid,.premium-band-cta{padding-left:24px;padding-right:24px}
  .premium-cta{padding:24px}
  .premium-band-head h2{font-size:26px}
}

/* ── Legal / policy pages + footer legal nav ──────────────────────── */
.legal{max-width:760px;margin:0 auto;padding:30px 0 72px}
.legal h1{font-size:clamp(26px,4vw,34px);letter-spacing:-.02em;margin:0 0 18px;line-height:1.15}
.legal h2{font-size:20px;letter-spacing:-.01em;margin:34px 0 10px}
.legal h3{font-size:16px;margin:22px 0 8px}
.legal p,.legal li{color:var(--ink-soft);line-height:1.7;font-size:15.5px}
.legal p{margin:0 0 14px}
.legal ul{margin:0 0 16px;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.legal a{color:#15635a;text-decoration:underline}
.legal strong{color:var(--ink)}
.legal em{color:var(--muted)}
.footer-legal{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.footer-legal a{font-size:13px}

/* ============================================================
   v3 components — the "instrument" set.
   Signature pieces carried over from the audit design: a live
   readout scorecard, numbered checklist groups, and tier cards.
   ============================================================ */

/* Dark-band hero headings (pages that lead with .section-dark
   rather than the photographic .hero) */
.section-dark h1 { color: #fff; font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -.035em; line-height: 1.06; }
.section-dark h1 em, .section-dark h2 em { font-style: normal; color: var(--brand-bright); }
.section-dark .lede { font-size: 18px; line-height: 1.58; }
.section-dark .hero-note { color: rgba(255, 255, 255, .8); font-size: 13.5px; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.section-dark .hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.section-dark .hero-note svg { color: var(--brand-bright); }

/* ── Split hero layout (text + instrument panel) ── */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
/* The mobile collapse MUST come after the desktop rule above — same specificity,
   so source order decides. (An earlier @media collapse at ~line 615 was being
   overridden by this desktop rule at every width — squeezed heroes on phones.) */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ── Readout card (hero-side scorecard) ── */
.readout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.readout-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.readout-top .label { font: 600 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.readout-top .live { font: 500 10.5px var(--font-mono); color: var(--muted); display: flex; align-items: center; gap: .5em; }
.readout-top .live b { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; animation: rdpulse 2.4s ease-in-out infinite; }
@keyframes rdpulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.score-row { display: flex; align-items: baseline; gap: 12px; padding: 18px 16px 6px; }
.score-num { font: 700 3rem/1 var(--font-mono); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-max { font: 400 1rem var(--font-mono); color: var(--muted); }
.score-tag { margin-left: auto; align-self: center; }
.score-note { padding: 0 16px 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.areas { border-top: 1px solid var(--line); }
.area { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.area:last-child { border-bottom: 0; }
.area .n { font: 500 11.5px var(--font-mono); color: var(--muted); width: 1.4em; }
.area .name { flex: 1; color: var(--ink-soft); }
.area .bar { width: 64px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; flex: 0 0 auto; }
.area .bar span { display: block; height: 100%; border-radius: 3px; }
.area .val { font: 500 12.5px var(--font-mono); color: var(--muted); width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; }

/* status chips */
.chip { font: 700 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; white-space: nowrap; display: inline-block; }
.chip.pass { background: var(--ok-tint); color: var(--ok); }
.chip.watch { background: var(--watch-tint); color: var(--watch); }
.chip.fail { background: var(--danger-tint); color: var(--danger); }

/* ── Numbered checklist groups ── */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.group.wide { grid-column: 1 / -1; }
/* groups always sit on the card surface, whatever section wraps
   them — banding is handled by the section itself, not the card */
.group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.group-h .idx { font: 700 11px var(--font-mono); color: var(--brand); background: var(--brand-tint-2); border-radius: 5px; padding: .4em .55em; letter-spacing: .06em; }
.group-h h3 { font-size: 16px; margin: 0; }
.group-h .sub { font: 500 11px var(--font-mono); color: var(--muted); margin-left: auto; letter-spacing: .04em; text-align: right; }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.group li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.group li::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: .3em; border-radius: 4px; background: var(--brand-tint-2); border: 1px solid var(--brand); }
.group li b, .group code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: .06em .35em; border-radius: 4px; color: var(--ink); font-weight: 600; }

/* ── Tier cards (pricing ladder) ── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tiers.four { grid-template-columns: repeat(4, 1fr); }
.tiers.four .tier .price { font-size: 1.25rem; }
@media (max-width: 1000px) { .tiers.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tiers.four { grid-template-columns: 1fr; } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; }
.tier.feature { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tier .type { font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tier h3 { margin: 10px 0 12px; font-size: 19px; }
.tier .price { font: 700 1.5rem var(--font-mono); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.tier .price small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 5px; font-family: var(--font-body); }
.tier .flag { align-self: flex-start; margin-bottom: 8px; }
.tier ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
/* Block flow with a positioned arrow (NOT flex) so inline links, bold runs
   and parentheses inside a bullet wrap as one sentence — flex would split
   them into separate columns. */
.tier li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; position: relative; padding-left: 20px; }
.tier li::before { content: "→"; color: var(--brand); font-family: var(--font-mono); position: absolute; left: 0; top: 0; }
.tier .btn { margin-top: 18px; }

/* ── Promise / callout block ── */
.promise { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 24px 26px; }
.promise h3 { margin-bottom: 8px; font-size: 17px; }
.promise p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 72ch; }

/* ── Spec list (label/value rows, e.g. credentials) ── */
.specs { font: 500 13px var(--font-mono); color: var(--muted); line-height: 1.8; }
.specs div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs b { color: var(--ink); font-weight: 600; text-align: right; }

@media (max-width: 860px) {
    .groups, .tiers { grid-template-columns: 1fr; }
}

/* ============================================================
   Audit page — remaining reference components (ported 1:1 from
   the approved AI Search Visibility Audit design)
   ============================================================ */

/* hero: the operator line under the lede */
.operator { font-size: 15px; color: var(--muted); border-left: 2px solid var(--brand); padding-left: 14px; margin: 22px 0 26px; max-width: 48ch; line-height: 1.55; }

/* problem section: prose left, promise card right */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.problem-copy p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.problem-copy p + p { margin-top: 14px; }

/* plain cards (five failures) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; font-size: 17px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .tok { font-family: var(--font-mono); font-size: .84em; color: var(--danger); background: var(--danger-tint); padding: .1em .4em; border-radius: 4px; font-weight: 600; white-space: nowrap; }

/* two-column bullet list inside a wide group */
.group ul.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }

/* how it works — hairline-divided strip (light; distinct from the
   homepage's dark .steps band, which .step also belongs to) */
.steps-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; counter-reset: none; }
.steps-strip .step { background: var(--card); padding: 24px; border: 0; border-radius: 0; box-shadow: none; }
.steps-strip .step::before { content: none; }
.steps-strip .step .num { font: 700 12px var(--font-mono); color: var(--brand); letter-spacing: .06em; }
.steps-strip .step h3 { margin: 12px 0 8px; font-size: 16px; color: var(--ink); }
.steps-strip .step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* why me — dashed fact ledger left, prose right */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.who { font: 500 13px/1.9 var(--font-mono); color: var(--muted); letter-spacing: .01em; }
.who div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.who b { color: var(--ink); font-weight: 600; text-align: right; }
.why-copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.why-copy p + p { margin-top: 16px; }

/* pricing footnote + final CTA */
.pricing-note { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 74ch; line-height: 1.6; }
.finalcta { text-align: center; }
.finalcta .eyebrow { justify-content: center; }
.finalcta h2 { max-width: 22ch; margin: 0 auto 14px; font-size: clamp(24px, 3vw, 32px); }
.finalcta p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }

@media (max-width: 860px) {
    .problem-grid, .why { grid-template-columns: 1fr; gap: 26px; }
    .group ul.two-col { grid-template-columns: 1fr; }
}

/* honeypot field — invisible to people, irresistible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ============================================================
   Warmth layer — icons, photo cards, the signature wash, motion.
   Everything here is ADDITIVE to the restrained system: it gives
   the eye something to rest on without reintroducing gradient
   bands, white-on-teal heroes, or template energy.
   ============================================================ */

/* ── Illustrated icons (illo()) — two-tone: warm blob + blue line ── */
.illo { display: inline-block; vertical-align: middle; color: var(--brand); flex: 0 0 auto; }
.illo .illo-fill { fill: var(--warm-tint); }
.illo .illo-line { color: var(--brand); }
.illo .illo-pop  { fill: var(--warm); color: var(--warm); }
/* on hover the parent card warms the blob and nudges the icon */
.card:hover .illo .illo-fill, .tier:hover .illo .illo-fill, .step:hover .illo .illo-fill { fill: var(--warm-tint); filter: saturate(1.25); }
.card .illo, .group .illo, .step .illo { margin-bottom: 12px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .illo, .step:hover .illo { transform: translateY(-2px) rotate(-3deg); }
/* icon sitting inline before a heading */
.h-illo { display: flex; align-items: center; gap: 12px; }
.h-illo .illo { margin: 0; }

/* ── Photo card — the ONLY way photos appear: contained, framed,
      with a soft warm-to-cool wash frame so the image feels placed,
      not pasted. Never a full-bleed text-overlay hero. ── */
.photo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--wash); padding: 10px; box-shadow: var(--shadow-md); }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 6px); aspect-ratio: 4 / 3; }
.photo-card.wide img { aspect-ratio: 16 / 10; }
.photo-card.tall img { aspect-ratio: 3 / 4; }
.photo-card .photo-cap { position: absolute; left: 20px; bottom: 20px; font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(15,20,27,.62); backdrop-filter: blur(6px); padding: 7px 10px; border-radius: 6px; }
/* a photo card sitting in the hero-art slot gets a soft glow halo */
.hero-grid .photo-card::before { content: ""; position: absolute; inset: -18px; background: var(--wash-strong); filter: blur(28px); opacity: .55; z-index: -1; border-radius: 30px; }
.hero-grid .photo-card { overflow: visible; }
.hero-grid .photo-card img { position: relative; }

/* ── The signature wash — one per page, behind hero art or a
      featured card. A soft warm→cool gradient. ── */
.wash { background: var(--wash); }
.wash-card { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }

/* ── Section tone — a faint textured band instead of flat white,
      so alternating sections have depth. ── */
.section-deep { background: var(--paper-deep) radial-gradient(1200px 400px at 85% -10%, var(--warm-tint-2), transparent 60%) no-repeat; }
.section-deep.section-cool { background: var(--paper-deep) radial-gradient(1200px 400px at 10% -10%, var(--brand-tint-2), transparent 60%) no-repeat; }

/* ── Cards come alive on hover: lift, border warms toward the accent ── */
.card, .tier, .group, .step, .res-card, .promise { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; }
.card:hover, .tier:hover, .group:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 18px 34px -20px rgba(18,87,224,.35); border-color: rgba(18,87,224,.35); }
.tier.feature:hover { box-shadow: 0 0 0 1px var(--brand), 0 18px 34px -20px rgba(18,87,224,.45); }
.res-card:hover { transform: translateY(-4px); }

/* ── Buttons: a soft glow on hover, an accent underline sweep on ghost ── */
.btn-primary { transition: transform .2s ease, box-shadow .3s ease, background .2s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(18,87,224,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { position: relative; overflow: hidden; }
.btn-ghost::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8px; height: 2px; background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); border-radius: 2px; }
.btn-ghost:hover::after { transform: scaleX(1); }

/* ── Readout bars animate their fill when they scroll into view ── */
html.motion-on .area .bar span { transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.readout.is-in .area .bar span { transform: scaleX(1); }
.readout.is-in .area:nth-child(2) .bar span { transition-delay: .08s; }
.readout.is-in .area:nth-child(3) .bar span { transition-delay: .16s; }
.readout.is-in .area:nth-child(4) .bar span { transition-delay: .24s; }
.readout.is-in .area:nth-child(5) .bar span { transition-delay: .32s; }
/* the score number counts itself in via JS; give it a settle */
.score-num { transition: color .4s ease; }

/* ── Sections fade + rise once as they enter the viewport ── */
html.motion-on .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.motion-on .rise.is-in { opacity: 1; transform: none; }
/* stagger children of a card grid */
html.motion-on .stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
html.motion-on .stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .35s; }

/* ── The eyebrow rule draws itself in ── */
.eyebrow::before { transform-origin: left; animation: eyebrow-draw .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes eyebrow-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── A gentle live-dot pulse already exists on .readout .live b; keep it ── */

/* ── Respect reduced motion: everything settles instantly ── */
@media (prefers-reduced-motion: reduce) {
    .rise, .stagger > *, .area .bar span { opacity: 1 !important; transform: none !important; transition: none !important; }
    .eyebrow::before { animation: none; }
    .card, .tier, .group, .step, .res-card, .btn-primary, .illo { transition: none !important; }
    .card:hover, .tier:hover, .group:hover, .res-card:hover, .btn-primary:hover { transform: none; }
}

/* ── Password show/hide toggle (added by main.js) ── */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; width: 100%; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0;
    background: none; border: 0; border-radius: var(--radius-sm);
    color: var(--muted); cursor: pointer; transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: var(--brand); background: var(--surface-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; color: var(--brand); }
.pw-toggle[aria-pressed="true"] { color: var(--brand); }

/* ── The plain answer: the one line that says what this is, in ordinary
      words. Sits above the operator line in a hero. Deliberately quiet
      styling — it earns attention by being the clearest sentence, not the
      loudest one. ── */
.plain-answer {
    font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
    background: var(--warm-tint-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; max-width: 62ch;
}
.plain-answer b { color: var(--ink); font-weight: 600; }

/* ---------- manual editor: in-place feedback ---------- */
/* The editor saves, adds, reorders and deletes without reloading, so the page
   has to say what happened itself — a reload used to be the only confirmation. */
.sec-status {
    margin-left: auto;
    font: 600 13px var(--font-body);
    color: var(--brand);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}
.sec-status.is-on { opacity: 1; transform: none; }

.sec-card { transition: border-color .3s ease, box-shadow .3s ease; }
.sec-card.sec-new {
    animation: secIn .45s ease both;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 87, 224, .13);
}
.sec-card.sec-moved {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 87, 224, .10);
}
@keyframes secIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.hero-preview { margin-top: 10px; }
.hero-preview img {
    display: block; width: 100%; max-height: 190px; object-fit: cover;
    border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2);
}
.hero-preview-bad { display: block; margin-top: 8px; font-size: 13px; color: var(--warm); }
.hero-preview[hidden], .hero-preview-bad[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .sec-card.sec-new { animation: none; }
    .sec-status, .sec-card { transition: none; }
}

/* The editor toggles [hidden] on the empty-state card and the photo preview.
   A later display rule would silently defeat it, so state the intent once. */
[hidden] { display: none !important; }

/* ---------- help & how-to (help.php) ---------- */
.help-steps { list-style: none; counter-reset: hs; padding: 0; margin: 0 0 8px; }
.help-steps > li {
    counter-increment: hs; position: relative;
    padding: 0 0 18px 46px; margin-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.help-steps > li:last-child { border-bottom: 0; margin-bottom: 0; }
.help-steps > li::before {
    content: counter(hs); position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--brand-tint-2); color: var(--brand);
    font: 700 13px var(--font-body);
    display: grid; place-items: center;
}
.help-steps h4 { font-size: 16.5px; margin: 3px 0 6px; letter-spacing: -.01em; }
.help-steps p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; max-width: 72ch; }
.help-label {
    display: inline-block; margin-top: 9px;
    font: 500 12.5px var(--font-body);
    color: var(--muted); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px;
}
.help-label b { color: var(--ink); font-weight: 700; }
.help-example {
    white-space: pre-wrap; word-break: break-word;
    font: 500 13.5px var(--font-mono); color: var(--ink);
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 11px; padding: 14px 16px; margin: 0; overflow-x: auto;
}
.help-list { list-style: none; padding: 0; margin: 0; }
.help-list li {
    position: relative; padding: 9px 0 9px 26px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 76ch;
}
.help-list li:last-child { border-bottom: 0; }
.help-list li::before {
    content: ""; position: absolute; left: 4px; top: 17px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
/* the "what it does not do" list — same shape, deliberately quieter */
.help-list-no li::before { background: var(--muted); }
@media (max-width: 640px) {
    .help-steps > li { padding-left: 38px; }
    .help-steps > li::before { width: 26px; height: 26px; }
}
/* Destructive actions read as destructive — the delete controls on manuals and
   properties sit beside ordinary ghost buttons and must not look like them. */
.btn-danger, .btn-ghost.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}
.btn-danger:hover, .btn-ghost.btn-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Radios and checkboxes are not text boxes. The .field input rule above sets
   width:100% with padding and a border for inputs you type into; applied to a
   radio inside a flex row it stretches to fill and pushes its own label across
   the card. Opt them out rather than narrowing the rule the whole site uses. */
.field input[type="radio"],
.field input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
    accent-color: var(--brand);
    box-shadow: none;
}
.field input[type="radio"] { width: 17px; height: 17px; }
.field input[type="checkbox"] { width: 16px; height: 16px; }
.field input[type="radio"]:focus,
.field input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--brand-tint-2);
}
/* A radio's own label is a row, not a block heading — undo .field label. */
.field label.opt {
    display: flex; align-items: center; gap: 9px;
    font-weight: 500; font-size: 14.5px; margin: 0 0 8px;
    cursor: pointer;
}
.field label.opt:last-of-type { margin-bottom: 0; }
.field label.opt-sm { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 10px; }

/* ---------- dashboard shell (dash_header / dash_footer) ---------- */
/* The logged-in side of the site. Sidebar plus one content column, no
   marketing chrome. Sized so the sidebar collapses to a drawer on a phone,
   because half the people using the Turnover Tracker are holding one. */
.dash-body { background: var(--paper-deep, #f4f3ef); }
.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.dash-top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    height: 58px; padding: 0 18px;
    background: #fff; border-bottom: 1px solid var(--line);
}
.dash-brand { display: inline-flex; align-items: center; gap: 9px; font: 800 17px var(--font-body); color: var(--ink); letter-spacing: -.02em; }
.dash-brand .brand-mark { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-tint-2); color: var(--brand); align-items: center; justify-content: center; }
.dash-brand .brand-name span { color: var(--brand); }
.dash-top-spacer { flex: 1; }
.dash-top-link { font: 600 13.5px var(--font-body); color: var(--ink-soft); }
.dash-top-link:hover { color: var(--brand-deep); }

.dash-burger { display: none; flex-direction: column; gap: 4px; width: 34px; height: 34px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.dash-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.dash-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); align-items: start; }

.dash-side {
    position: sticky; top: 58px; align-self: start;
    height: calc(100vh - 58px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px;
    padding: 16px 12px; background: #fff; border-right: 1px solid var(--line);
}
.dash-nav {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 9px;
    font: 600 14px var(--font-body); color: var(--ink-soft);
    transition: background .12s ease, color .12s ease;
}
.dash-nav:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav.is-on { background: var(--brand-tint-2); color: var(--brand-deep); }
.dash-nav-ico { display: inline-flex; flex-shrink: 0; opacity: .85; }
.dash-nav.is-on .dash-nav-ico { opacity: 1; }
.dash-nav-label { flex: 1; min-width: 0; }
.dash-nav-badge {
    flex-shrink: 0; min-width: 20px; text-align: center;
    font: 700 11.5px var(--font-mono); padding: 2px 6px; border-radius: 99px;
    background: var(--surface-2); color: var(--ink-soft);
}
.dash-nav-badge.is-urgent { background: var(--danger-tint); color: var(--danger); }

.dash-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dash-plan { display: block; font: 600 12px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.dash-main { padding: 26px 30px 70px; max-width: 1180px; }

.dash-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(24px, 3vw, 31px); letter-spacing: -.025em; margin: 0 0 6px; }
.dash-lede { color: var(--ink-soft); font-size: 15.5px; max-width: 68ch; margin: 0; }
.dash-head-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 26px; }
.dash-stat { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
a.dash-stat { transition: border-color .14s ease; }
a.dash-stat:hover { border-color: var(--brand); }
.dash-stat-n { display: block; font: 700 26px var(--font-mono); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-stat-n.is-urgent { color: var(--danger); }
.dash-stat-n.is-good { color: var(--ok); }
.dash-stat-l { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.dash-scrim { display: none; }

@media (max-width: 900px) {
    .dash-burger { display: flex; }
    .dash-shell { grid-template-columns: minmax(0, 1fr); }
    .dash-side {
        position: fixed; top: 58px; left: 0; width: 262px; z-index: 45;
        transform: translateX(-100%); transition: transform .22s ease;
        box-shadow: 0 12px 40px -12px rgba(20,26,38,.3);
    }
    body.dash-open .dash-side { transform: none; }
    body.dash-open .dash-scrim { display: block; position: fixed; inset: 58px 0 0; z-index: 44; background: rgba(20,26,38,.35); }
    .dash-main { padding: 20px 18px 60px; }
}
@media (prefers-reduced-motion: reduce) { .dash-side { transition: none; } }

/* Pages written for the marketing shell now render inside .dash-main. Rather
   than rewrite six pages of working markup, neutralise the two wrappers that
   assume a full-width page: .section supplies its own vertical rhythm and
   .container its own gutters, both of which .dash-main already provides. */
.dash-main .section { padding: 0 0 26px !important; }
.dash-main .container { max-width: none; padding-left: 0; padding-right: 0; }
.dash-main .page-title { margin-bottom: 20px; }
.dash-main .crumbs { display: none; }
.dash-main .edit-grid { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1100px) { .dash-main .edit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Dashboard tabs ───────────────────────────────────────────────────────
   A second level of navigation inside one tool. The sidebar says which tool
   you are in; this says which part of it. Scrolls sideways rather than
   wrapping, so a narrow phone gets a swipe instead of a three-line stack. */
.dash-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 22px;
    padding-bottom: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.dash-tab:hover { color: var(--ink); }
.dash-tab.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.dash-tab-n {
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
}
.dash-tab.is-on .dash-tab-n { background: var(--brand-tint); color: var(--brand-deep); }

/* ── Loan calendar ────────────────────────────────────────────────────────
   A month grid. The three states a host asks about get three different
   visual weights: something LEAVING is a solid chip, something COMING BACK
   is an outlined one, and a day merely covered by a loan already gone out
   gets a tinted cell and no chip — otherwise a two-week hire would print the
   same label fourteen times and drown out the days that need action. */
.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cal-head h3 { font-size: 17px; margin: 0; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.cal-dow {
    background: var(--surface-2);
    padding: 7px 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}
.cal-day {
    background: var(--card);
    min-height: 96px;
    padding: 6px 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-day.is-pad { background: var(--paper); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day.is-busy { background: var(--brand-tint-2); }
.cal-dnum { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-day.is-today .cal-dnum { color: var(--brand); }
.cal-ev {
    display: block;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 3px 6px;
    border-radius: 5px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-ev-out  { background: var(--brand); color: #fff; }
.cal-ev-back { background: var(--card); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.cal-ev-late { background: var(--danger-tint); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); font-weight: 700; }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; font-style: normal; }

@media (max-width: 720px) {
    /* A seven-column month is unreadable on a phone. The grid collapses to a
       list of the days that actually have something on them — same data, and
       the empty squares were never the point. */
    .cal-grid { display: block; border: 0; background: none; border-radius: 0; }
    .cal-dow { display: none; }
    .cal-day { min-height: 0; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; }
    .cal-day.is-empty { display: none; }
    .cal-ev { white-space: normal; }
}

/* A short list of links inside a .promise box. Not a bullet list: the items
   are names, and a bullet in a tinted box reads as clutter at this size. */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { padding: 5px 0; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.tick-list li:last-child { border-bottom: 0; }
.tick-list a { text-decoration: none; font-weight: 600; }
.tick-list a:hover { text-decoration: underline; }

/* ---------- Articles ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Columns follow the available width rather than being pinned at three, which
   left them cramped at every size between the mobile breakpoint and full
   width. minmax(0,1fr) lets a column shrink below its content's intrinsic
   width so long titles cannot force an overflow. */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px; margin-top: 24px;
}
.art-card {
    display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px;
    background: var(--paper-deep); border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); transition: border-color .14s;
}
.art-card:hover { border-color: var(--brand); color: var(--ink); }
/* Clamped so a long headline or description cannot stretch its whole grid row.
   Rows size to the tallest card, so one runaway card made every neighbour tall. */
.art-card h2 {
    font-size: 17px; line-height: 1.32; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-card p {
    font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-card-cat { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); }
.art-card-meta { font: 500 12px var(--font-mono); color: var(--ink-soft); }
.art-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 30px; }
.art-pager span { font: 500 13px var(--font-mono); color: var(--ink-soft); }
.art-wrap { max-width: 760px; }
.art-crumbs { font: 500 12.5px var(--font-mono); color: var(--ink-soft); margin-bottom: 14px; }
.art-page h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.015em; }
.art-meta { font: 500 13px var(--font-mono); color: var(--ink-soft); margin: 12px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.art-body { font-size: 16.5px; line-height: 1.68; color: var(--ink); }
.art-body p { margin: 0 0 16px; }
.art-body h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 12px; letter-spacing: -.01em; }
.art-body h3 { font-size: 17.5px; margin: 24px 0 10px; }
.art-body ul, .art-body ol { margin: 0 0 16px 22px; }
.art-body li { margin-bottom: 7px; }
.art-body blockquote {
    margin: 0 0 16px; padding: 14px 18px; border-left: 2px solid var(--brand);
    background: var(--paper); border-radius: 0 8px 8px 0; color: var(--ink-soft);
}
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.art-body th, .art-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-body th { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.art-cta {
    margin: 34px 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper-deep);
}
.art-cta h2 { font-size: 20px; margin: 10px 0 8px; }
.art-cta p { color: var(--ink-soft); margin-bottom: 16px; max-width: 56ch; }
.art-author { margin: 34px 0; padding: 24px 24px 12px; border-top: 1px solid var(--line); }
.art-author p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; margin-bottom: 12px; max-width: 62ch; }
.art-related { margin-top: 8px; }
/* The related row sits inside the 760px article column, so it keeps three
   narrower cards rather than reflowing and orphaning the third. */
.art-related .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.art-related h2 { font-size: 15px; -webkit-line-clamp: 3; }
.art-related .art-card p { -webkit-line-clamp: 2; }
@media (max-width: 700px) {
    .art-grid, .art-related .art-grid { grid-template-columns: 1fr; }
}

/* Plain data table (admin article calendar). */
.plain-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plain-table th { font: 600 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.plain-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

/* ---------- Article images (topic photography) ---------- */
/* Cards are photo-led like the library cards, so the articles index stops
   reading as a wall of text blocks. Text moves into its own padded box. */
.art-card { padding: 0; overflow: hidden; }
.art-card-img {
    /* height:auto is load-bearing. The img carries width/height attributes so
       the browser can reserve the box before the file arrives; without
       height:auto that attribute height wins, aspect-ratio is ignored, and the
       card renders the image at its full natural height. */
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
    transition: transform .35s ease;
}
.art-card:hover .art-card-img { transform: scale(1.02); }
.art-card-text { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 16px; flex: 1; }
.art-hero {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--line);
    margin: 0 0 28px; background: var(--paper-deep);
}
@media (prefers-reduced-motion: reduce) {
    .art-card-img { transition: none; }
    .art-card:hover .art-card-img { transform: none; }
}

/* ── message library (document-messages.php) ────────────────────────────
   A page you copy from, not one you print. The three kinds of blank are
   colour-coded because the difference matters: green is already done for
   you, blue is something the platform can fill, amber is yours to write. */
.msg-bar {
    /* top is set from JS to the live header height; this is the fallback.
       z-index sits above the page but below the site header at 50. */
    position: sticky; top: 0; z-index: 30;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px;
    box-shadow: var(--shadow-sm);
}
.msg-bar-in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.msg-count { font-size: 13.5px; color: var(--muted); margin-right: auto; }
.msg-key { font-size: 12.5px; color: var(--muted); margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--line-soft); line-height: 2; }
.msg-count b { color: var(--ok); font-size: 15px; }
.msg-sens { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.msg-sens input, #msgFind {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 7px 10px; font-size: 13.5px; font: inherit; font-size: 13.5px;
    background: var(--paper-deep); color: var(--ink);
}
.msg-sens input { width: 210px; }
#msgFind { width: 190px; }

.msg-note {
    background: var(--warm-tint-2); border: 1px solid var(--warm-tint);
    border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px;
}
.msg-note p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.msg-note p:last-child { margin-bottom: 0; }
.msg-note code {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 4px; padding: 1px 5px; font-size: 13px;
}
/* var(--danger) sits at 3.99:1 on this tint, under AA. */
.msg-note .warn { color: #96271c; }
.msg-plat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.msg-plat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; }
.msg-plat-card.on { border-color: var(--brand-bright); box-shadow: 0 0 0 2px var(--brand-tint); }
.msg-plat-card h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.msg-plat-card p { font-size: 13px; margin: 0 0 6px; }
.msg-plat-card .path { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--brand-deep); }
.msg-plat-card .det { color: var(--muted); }
.msg-plat-card .src { font-size: 12px; color: var(--muted); margin-bottom: 0; }

.msg-section { font-size: 19px; margin: 34px 0 12px; color: var(--ink); }
.msg-sub { font-size: 15.5px; margin: 22px 0 8px; color: var(--ink); }
.msg-prose { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; }
.msg-prose.sm { font-size: 13px; color: var(--muted); }
.msg-prose mark { background: var(--warm-tint); color: var(--warm-deep); padding: 0 3px; border-radius: 3px; }
.msg-table { overflow-x: auto; margin: 0 0 18px; }
.msg-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.msg-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.msg-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

.msg {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 15px 17px; margin: 0 0 12px;
}
.msg-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg-head h3 { margin: 0; font-size: 15.5px; color: var(--ink); flex: 1; min-width: 160px; }
.msg-id {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 12px; font-weight: 700; color: var(--brand-deep);
    background: var(--brand-tint); border-radius: 4px; padding: 3px 7px;
}
.chip.auto { background: var(--ok-tint); color: var(--ok); font-size: 11.5px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.msg-copy.done { background: var(--ok); border-color: var(--ok); }
.msg-when { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.msg-body {
    margin: 10px 0 0; padding: 13px 15px;
    background: var(--paper); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    font-size: 14.5px; line-height: 1.62; color: var(--ink);
    white-space: normal; overflow-wrap: break-word;
}
/* The negative margin cancels the padding's optical gap, so a blank followed
   by a comma still reads as "[NAME], thanks" rather than "[NAME] , thanks".
   Copied text is unaffected either way — padding is not a character. */
.mtok { border-radius: 4px; padding: 1px 3px; margin: 0 -2px; }
.mtok-filled { background: var(--ok-tint); color: #085f40; box-shadow: inset 0 -1px 0 rgba(15,157,107,.35); }
.mtok-guest  { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
/* These two sat at roughly 3.5:1 on their own tints. Darkened to clear AA
   at this size, since the colour is carrying meaning. */
.mtok-fill   { background: var(--warm-tint); color: #8a3c1f; font-weight: 600; }
.mtok-sens   { background: var(--danger-tint); color: #96271c; font-weight: 600; }
/* A code typed in the bar just now. Deliberately NOT the green "saved"
   style: nothing about it is saved. */
.mtok-typed  { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -1px 0 var(--line); }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msg-none { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: 14.5px; text-align: center; }
.msg-sched { margin: 10px 0 0; font-size: 13.5px; }
.msg-sched summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; }
.msg-sched p, .msg-sched li { color: var(--ink-soft); }
.msg-sched .src { font-size: 12.5px; color: var(--muted); }
.msg-why { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 640px) {
    .msg-bar-in { gap: 8px; }
    .msg-sens input, #msgFind { width: 100%; }
    .msg-count { width: 100%; margin-right: 0; }
}

/* Playbook stat pairs: the number and its caption read as one statement.
   The caption was 12px mono grey under a 66px number, which the tester read
   as two unrelated things. Scoped to .why so the gradient number keeps its
   own rule and only the balance changes. */
.why .score-num { font-size: clamp(38px, 4.5vw, 50px); }
.why .metric-lbl { font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--ink); max-width: 28ch; margin-top: 8px; }
