/* ═══════════════════════════════════════════════════════════════════════
   DEBT DIGEST: Marketing Site Shared Design System (v1.0)
   Source of truth: landing/UI_UPGRADE_BRIEF_2026-05-18.md, Part 4
   Date: 2026-05-18

   Linked by every marketing page. Token base lives in
   /assets/css/dd-design-system.css (loaded first). This file adds:
     - Marketing-only token aliases (Part 4.3)
     - The 22 homepage-extracted components (Part 4.1)
     - Utility classes (Part 4.4)
     - Scaffolds for the 28 new components (Part 4.2)

   Naming: classes prefixed `dd-` are new shared components.
   Unprefixed component classes (.hero, .section, .compliance, .price-card,
   etc.) are the canonical homepage component names. Page agents must
   reuse, not redefine.

   Zero visual regression on landing/index.html is the gold standard.
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── 1. TOKENS (extend, do not redefine) ───────────────────────────────
   The full palette + typography ships from /assets/css/dd-design-system.css.
   This block adds the marketing-only additions from Part 4.3 of the brief. */

:root {
    /* Marketing layout */
    --max-w:              1180px;
    --pad-x:              1.25rem;
    --section-y:          4rem;
    --section-y-mobile:   4rem;
    --section-y-tablet:   6rem;
    --section-y-desktop:  7.5rem;

    /* Radii (extend) */
    --radius-card:    18px;
    --radius-pill:    999px;
    --radius-feature: 22px;   /* persona-art, pricing card, payoff-date card */
    --radius-ios:     16px;   /* consumer-facing surfaces */

    /* Light-green accent for use ONLY on navy backgrounds */
    --green-300:    #7FE2A0;

    /* Cream bg gradient stops (consumer surfaces) */
    --cream-start:  #FFFFFF;
    --cream-end:    var(--bg, #F7F6F3);

    /* Dark gradient stops (homepage already uses these literals) */
    --navy-grad-start:  var(--navy-dark);
    --navy-grad-mid:    var(--navy);
    --navy-grad-end:    var(--navy-light);

    /* Radial spotlight standard alphas */
    --spot-green-strong:  rgba(30,132,73,0.22);
    --spot-green-mid:     rgba(30,132,73,0.16);
    --spot-green-soft:    rgba(30,132,73,0.10);
    --spot-navy-light:    rgba(43,82,140,0.35);

    /* Semantic financial-dashboard colors (product-UI mockups only)
       These are NOT brand colors. They are the conventional aging-bucket
       palette used on creditor dashboards across the industry. Use ONLY
       inside .ps-aging-* and similar portfolio-aging visualizations. */
    --ui-aging-current:   var(--green);     /* 0–30 DPD */
    --ui-aging-warn:      #F59E0B;          /* 31-60 DPD, amber */
    --ui-aging-overdue:   #EA580C;          /* 61-90 DPD, overdue orange */
    --ui-aging-severe:    var(--red);       /* 90+ DPD, muted red */
    --ui-aging-co:        #6B7280;          /* charged off, neutral gray */

    /* Hero browser-mockup shadow (Mercury move) */
    --shadow-mockup:  0 30px 60px -20px rgba(0,0,0,0.4),
                      0 18px 36px -18px rgba(0,0,0,0.3);

    /* Card shadows used across marketing. These now alias the layered
       micro-shadow elevation defined in dd-design-system.css, so every
       marketing card lifts on the same research-calibrated 3-layer recipe
       (hairline near + soft mid + diffuse ambient) instead of one fat drop. */
    --shadow-card:        var(--elevation-card);
    --shadow-card-hover:  var(--elevation-card-hover);
    --shadow-nav:         0 4px 20px rgba(10,22,40,0.08);

    /* Motion (curated for financial-credible restraint) */
    --motion-fast:    0.15s;
    --motion-base:    0.18s;
    --motion-slow:    0.28s;
    --motion-hero:    0.55s;
}
@media (min-width: 768px) {
    :root { --pad-x: 1.75rem; --section-y: 6rem; }
}
@media (min-width: 1024px) {
    :root { --pad-x: 2rem; --section-y: 7.5rem; }
}


/* ─── 2. GLOBAL PRIMITIVES ──────────────────────────────────────────────
   Used on every page. Do NOT redefine on a per-page basis. */

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--green); color: var(--white);
    padding: 0.75rem 1.25rem; z-index: 200;
    text-decoration: none; font-weight: 700;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--green-deep);
}
.eyebrow.on-dark { color: var(--green-300); }

.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--white);
    background: rgba(30,132,73,0.92);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
}
.eyebrow-pill svg { width: 12px; height: 12px; }

.section { padding: var(--section-y) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}
.section-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-mid);
    max-width: 580px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    border: 0;
    transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background: var(--green); color: var(--white);
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,42,74,0.18);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
}
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-ghost:active { transform: translateY(0); }
.btn-primary:focus-visible, .btn-ghost:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; }

/* On-dark primary button variant, for use on light pages */
.btn-primary--on-dark {
    background: var(--white);
    color: var(--navy);
}
.btn-primary--on-dark:hover {
    background: var(--off-white);
    color: var(--navy);
}


/* ─── 3. HERO (dark gradient + dot-grid + product mockup) ───────────────
   Lifted from landing/index.html lines 106–296. The dark hero is shared
   by index, for-creditors, pricing, how-it-works.

   Page-specific moves (warmer cream hero on for-borrowers) override
   .hero with their own background gradient. */

.hero {
    position: relative;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
    background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(30,132,73,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 90%, rgba(43,82,140,0.35) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(127,226,160,0.08) 1px, transparent 0);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.7) 0%, transparent 70%);
    mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.7) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; }
}

.hero-copy { max-width: 640px; }
.hero-copy .eyebrow-pill { margin-bottom: 1.5rem; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 1.4rem;
}
.hero h1 .h1-line {
    display: block;
    opacity: 0;
    transform: translateY(14px);
    animation: heroFadeUp var(--motion-hero) cubic-bezier(0.2,0.7,0.2,1) forwards;
}
.hero h1 .h1-line.delay-1 { animation-delay: 0.08s; }
.hero h1 .h1-line.delay-2 { animation-delay: 0.16s; }
.hero h1 .h1-line.accent { color: var(--green-300); }
@media (prefers-reduced-motion: reduce) {
    .hero h1 .h1-line { animation: none; opacity: 1; transform: none; }
}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.55;
    color: rgba(255,255,255,0.82);
    max-width: 580px;
    margin-bottom: 2.25rem;
    text-wrap: pretty;
    font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-trust {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 1.75rem;
    color: rgba(255,255,255,0.74);
    font-size: 0.94rem;
    font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--green-300); flex-shrink: 0; }


/* ─── 4. HERO BROWSER-MOCKUP (Mercury move) ────────────────────────────
   The right column of the hero. Drop into any persona page hero. */

.hero-preview-wrap {
    position: relative;
    perspective: 1400px;
}
.hero-preview {
    background: var(--white);
    color: var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow-mockup);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform: rotateY(0deg) rotateX(0deg);
}
@media (min-width: 1024px) {
    .hero-preview {
        transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
        transform-origin: left center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-preview { transform: none !important; }
}

.browser-chrome {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-cool);
}
.browser-dots { display: inline-flex; gap: 0.35rem; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-soft); display: block; }
.browser-dots i:nth-child(1) { background: hsl(3, 100%, 67%); }
.browser-dots i:nth-child(2) { background: hsl(42, 99%, 59%); }
.browser-dots i:nth-child(3) { background: hsl(132, 65%, 47%); }
.browser-url {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 6px;
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
    color: var(--ink-mid);
    font-family: var(--font-mono);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.browser-url svg { width: 10px; height: 10px; color: var(--green-deep); }

.preview-body {
    padding: 1.1rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--bg-alt) 100%);
}
.preview-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.preview-head-left {
    display: flex; align-items: center; gap: 0.55rem;
    font-weight: 700; font-size: 0.92rem; color: var(--ink);
}
.preview-head-left svg { width: 22px; height: 22px; color: var(--navy); }
.preview-head-meta { font-size: 0.74rem; color: var(--ink-muted); font-weight: 500; }
.preview-head-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 700; color: var(--green-deep);
    padding: 0.25rem 0.6rem;
    background: var(--green-light);
    border-radius: var(--radius-pill);
}
.preview-head-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 3px rgba(30,132,73,0.18);
}

.preview-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
@media (min-width: 480px) { .preview-kpis { grid-template-columns: repeat(4, 1fr); } }
.preview-kpis-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .preview-kpis-3 { grid-template-columns: repeat(3, 1fr); } }

.preview-illustrative {
    color: var(--green);
    background: rgba(29,185,84,0.1);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}
.preview-illustrative::before { background: var(--green); box-shadow: 0 0 0 3px rgba(30,132,73,0.18); }

.preview-disclaimer {
    margin-top: 0.85rem;
    font-size: 0.72rem;
    color: var(--ink-muted);
    font-style: italic;
    text-align: center;
    line-height: 1.45;
}

.preview-kpi {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}
.preview-kpi-label {
    font-size: 0.65rem; font-weight: 700; color: var(--ink-muted);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.preview-kpi-value {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em;
}
.preview-kpi-foot {
    font-size: 0.68rem; color: var(--green-deep);
    margin-top: 0.2rem; font-weight: 600;
}

.preview-chart {
    margin-top: 0.9rem;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 12px;
    padding: 0.85rem 0.9rem 0.6rem;
}
.preview-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.preview-chart-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.preview-chart-legend { font-size: 0.68rem; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.preview-chart-legend::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.preview-chart svg { width: 100%; height: 90px; }


/* ─── 5. TRUST STRIP ────────────────────────────────────────────────────
   Two stacked rows: category list + 3 trust pillars with green checks. */

.trust-strip {
    padding: 2rem 0 1.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-cool);
}
.trust-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
}
.trust-cats-label, .trust-pillars-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-muted); text-align: center;
}
.trust-cats {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0.45rem 0.85rem;
    font-family: var(--font-display);
    font-weight: 700; font-size: 0.95rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.trust-cats .trust-dot { color: var(--ink-muted); font-weight: 400; user-select: none; }
.trust-divider {
    height: 1px; background: var(--border-cool);
    width: 100%; max-width: 480px; margin: 0 auto;
}
.trust-pillars {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.6rem 1.4rem;
}
.trust-pillar {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--ink-mid);
}
.trust-pillar svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
@media (min-width: 768px) {
    .trust-cats { font-size: 1.05rem; gap: 0.5rem 1.1rem; }
    .trust-pillar { font-size: 0.9rem; }
}


/* ─── 6. MARQUEE STRIP ──────────────────────────────────────────────────
   Infinite-scrolling mono list with edge mask. Pauses on hover. */

.marquee-strip {
    padding: 2.5rem 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border-cool);
}
.marquee-label {
    text-align: center;
    font-size: 0.78rem; font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 1.4rem;
    letter-spacing: 0.04em;
}
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 38s linear infinite;
    padding-left: 3rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        padding-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}
.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex; align-items: center;
}
.marquee-item::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    margin-right: 0.85rem;
    opacity: 0.55;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ─── 7. WEDGE CARDS ────────────────────────────────────────────────────
   Numbered product cards (Intercept / Tollbooth). */

.wedge { background: var(--paper); padding: var(--section-y) 0; }
.wedge-eyebrow {
    text-align: center; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--green-deep); margin-bottom: 2.5rem;
}
.wedge-cards {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wedge-cards { grid-template-columns: repeat(3, 1fr); } }
.wedge-card {
    background: var(--paper);
    border: 1.5px solid var(--gray-200, #E2E8F0);
    border-radius: var(--radius-card); padding: 2rem;
}
.wedge-card h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.wedge-sub { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.wedge-card p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-muted); }


/* ─── 7B. MARKETING CARD VOCABULARY ─────────────────────────────────────
   Canonical marketing-surface cards. One base + composable modifiers, so a
   card pattern that appears on more than one page lives here once instead of
   being re-hand-rolled per page (plan principle #5). Promoted out of
   index.html's page-local <style> in the home-cards pass.
     .dd-card-marketing  generic surface card (the base)
     .dd-compare-card    "vs alternative X" comparison (base + anatomy)
     .dd-feature-tile    icon + name + sub tile */

.dd-card-marketing {
    background: var(--surface);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.6rem;
    transition: var(--transition-interactive);
}
@media (hover: hover) {
    .dd-card-marketing:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}
@media (prefers-reduced-motion: reduce) {
    .dd-card-marketing { transition: none; }
    .dd-card-marketing:hover { transform: none; }
}

/* Comparison card: header + "them" row (muted danger) + "you" win row (green). */
.dd-compare-card { display: flex; flex-direction: column; }
.dd-compare-card-head {
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    padding-bottom: 0.9rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-cool);
}
.dd-compare-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.94rem;
    line-height: 1.55;
    padding: 0.85rem 0;
}
.dd-compare-label {                      /* chip ABOVE the text: removes the 64px column */
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.5rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;                 /* "In-house" never wraps */
}
.dd-compare-row.is-them .dd-compare-label { color: var(--danger); background: rgba(165,52,44,0.08); }
.dd-compare-row.is-them .dd-compare-text { color: var(--ink-mid); }
.dd-compare-row.is-us {                  /* the win block */
    background: var(--green-light);
    border-left: 3px solid var(--green);
    border-radius: 12px;
    padding: 0.9rem;
    margin-top: 0.3rem;
}
.dd-compare-row.is-us .dd-compare-label { color: var(--green-deep); background: rgba(30,132,73,0.12); }
.dd-compare-row.is-us .dd-compare-label svg { width: 13px; height: 13px; }
.dd-compare-row.is-us .dd-compare-text { color: var(--ink); font-weight: 600; }

/* ─── CANONICAL COMPARISON / EVIDENCE TABLE (.dd-compare-table) ──────────
   The dense-matrix sibling of .dd-compare-card above: a hairline
   feature x option / feature x tier / controls matrix. First column is
   the row label (left-aligned); value columns center. The winning column
   (Debt Digest here, or a recommended pricing tier) takes .is-win on its
   <th> / <td> cells for green emphasis. Figures use tabular-nums so they
   align. Wrap the table in .dd-compare-table-wrap so it scrolls
   horizontally on narrow screens instead of squishing. Seeds the
   hairline-table vocabulary the Mercury-cool pricing + trust evidence
   surfaces reuse. */
.dd-compare-table-wrap {
    margin-top: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dd-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    min-width: 520px;
}
.dd-compare-table th {
    padding: 0.6rem 0.8rem;
    border-bottom: 2px solid var(--border);
    text-align: center;
}
.dd-compare-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--surface-cool);
    text-align: center;
}
.dd-compare-table th:first-child,
.dd-compare-table td:first-child { text-align: left; }
.dd-compare-table tbody tr:last-child td { border-bottom: none; }
.dd-compare-table .is-win { color: var(--green); }
.dd-compare-table th.is-win { font-weight: 700; }
.dd-compare-table td.is-win { font-weight: 600; }

/* Feature tile: icon chip + name + sub. Solid hairline (was a dashed
   placeholder treatment) + subtle lift so it reads finished, not wireframe. */
.dd-feature-tile {
    background: var(--surface);
    border: 1px solid var(--border-cool);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition-interactive);
}
@media (hover: hover) {
    .dd-feature-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}
@media (prefers-reduced-motion: reduce) {
    .dd-feature-tile { transition: none; }
    .dd-feature-tile:hover { transform: none; }
}
.dd-feature-tile-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--navy);
    color: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dd-feature-tile-icon svg { width: 18px; height: 18px; }
.dd-feature-tile-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}
.dd-feature-tile-sub {
    font-size: 0.78rem;
    color: var(--ink);
    opacity: 0.65;
    text-align: center;
}


/* ─── 8. PERSONA TAB SWITCHER (CSS-only) ────────────────────────────────
   Pill tabs that swap panels via :checked radios. No JS. */

.personas { background: var(--white); }
.persona-tabs {
    display: inline-flex;
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    margin: 0 auto;
    gap: 0.25rem;
}
.persona-tabs-wrap {
    display: flex; justify-content: center;
    margin: 0 auto 2.5rem;
    overflow-x: auto;
    padding: 0 1rem 0.5rem;
}
.persona-radio { position: absolute; opacity: 0; pointer-events: none; }
.persona-tab-label {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 0.88rem;
    color: var(--ink-mid);
    cursor: pointer;
    transition: background var(--motion-fast), color var(--motion-fast);
    min-height: 44px;
    white-space: nowrap;
}
.persona-tab-label:hover { color: var(--ink); }
.persona-tab-label svg { width: 16px; height: 16px; }
.persona-radio:focus-visible + .persona-tab-label {
    outline: 3px solid var(--green); outline-offset: 2px;
}
/* Active tab: page wires the :checked sibling selector; see how-it-works
   note in HANDOFF.md. Pages that use 3 personas (cu/bw/fr) get the
   homepage default for free; pages with different ids must redeclare. */
#persona-cu:checked  ~ .persona-tabs-wrap label[for="persona-cu"],
#persona-bw:checked  ~ .persona-tabs-wrap label[for="persona-bw"],
#persona-fr:checked  ~ .persona-tabs-wrap label[for="persona-fr"] {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(27,42,74,0.25);
}

.persona-panel { display: none; }
#persona-cu:checked ~ .persona-content .persona-panel[data-id="cu"],
#persona-bw:checked ~ .persona-content .persona-panel[data-id="bw"],
#persona-fr:checked ~ .persona-content .persona-panel[data-id="fr"] {
    display: block;
    animation: panelFade 0.35s ease both;
}
@keyframes panelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    #persona-cu:checked ~ .persona-content .persona-panel[data-id="cu"],
    #persona-bw:checked ~ .persona-content .persona-panel[data-id="bw"],
    #persona-fr:checked ~ .persona-content .persona-panel[data-id="fr"] { animation: none; }
}

.persona-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 1024px) {
    .persona-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
}


/* ─── 9. FEATURE CARD GRID (6-up) ───────────────────────────────────────
   Stripe-density icon cards. */

.feat-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 540px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
.feat-card {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.35rem 1.25rem;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.feat-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.feat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-deep);
    margin-bottom: 0.85rem;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-title {
    font-size: 1rem; font-weight: 700;
    color: var(--ink); margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.feat-body { font-size: 0.9rem; line-height: 1.55; color: var(--ink-mid); }


/* ─── 10. PERSONA ART (mini product fragment) ───────────────────────────
   The artifact card on the right of each persona panel. */

.persona-art {
    background: linear-gradient(160deg, var(--off-white) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border-cool);
    border-radius: 22px;
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 0.85rem;
    min-height: 360px;
}
.art-head { display: flex; align-items: center; justify-content: space-between; }
.art-head-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.art-head-title svg { width: 18px; height: 18px; color: var(--navy); }
.art-head-meta { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; }
.art-row {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex; align-items: center; gap: 0.85rem;
}
.art-row-ic {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--green-light); color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
}
.art-row-ic.navy { background: rgba(43,82,140,0.10); color: var(--navy); }
.art-row-ic.copper { background: var(--copper-tint); color: var(--copper-deep); }
.art-row-ic svg { width: 16px; height: 16px; }
.art-row-main { flex: 1; }
.art-row-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.art-row-sub { font-size: 0.76rem; color: var(--ink-muted); margin-top: 0.15rem; }
.art-row-num {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1rem; color: var(--ink); letter-spacing: -0.01em;
}
.art-progress { height: 6px; background: var(--border-cool); border-radius: 999px; overflow: hidden; }
.art-progress > i { display: block; height: 100%; background: var(--green); border-radius: inherit; }


/* ─── 11. STEP RAIL (3-step dashed connector) ───────────────────────────
   Used for "place → automate → cure" and "import → configure → resolve". */

.how {
    background: var(--off-white);
    border-top: 1px solid var(--border-cool);
    border-bottom: 1px solid var(--border-cool);
}
.steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    counter-reset: step;
    position: relative;
}
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .steps::before {
        content: '';
        position: absolute;
        top: 28px;
        left: 16.67%; right: 16.67%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
        z-index: 0;
    }
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.3rem;
    box-shadow: 0 8px 22px rgba(27,42,74,0.25), 0 0 0 8px var(--off-white);
}
.step:last-child .step-num {        /* green payoff badge: mirrors the #creditor-sends climax */
    background: var(--green);
    box-shadow: 0 8px 22px rgba(30,132,73,0.28), 0 0 0 8px var(--off-white);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700; color: var(--ink);
    margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.step p {
    font-size: 0.95rem; line-height: 1.6; color: var(--ink-mid);
    max-width: 320px; margin: 0 auto;
}


/* ─── CANONICAL STEP CARD (.dd-step) ─────────────────────────────────────
   Process-flow step card: numbered badge + heading + body, with an
   optional .is-trigger green "payoff" state and a desktop connector
   arrow. Promoted from the byte-identical page-local .cs-step blocks
   that were duplicated on index.html and for-creditors.html; now one
   definition referenced by both. Complements the centered .step
   milestone vocabulary above; the 56px navy badge is shared by design
   so the process flow and the how-it-works steps read as one system. */
.dd-step-flow {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .dd-step-flow { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
}
.dd-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.6rem;
    transition: var(--transition-interactive);
}
@media (hover: hover) {
    .dd-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}
.dd-step.is-trigger {
    background: var(--green-light);
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), 0 14px 32px rgba(30,132,73,0.16);
}
.dd-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 8px 20px rgba(27,42,74,0.22);
    flex-shrink: 0;
}
.dd-step.is-trigger .dd-step-num { background: var(--green); box-shadow: 0 8px 20px rgba(30,132,73,0.30); }
.dd-step h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}
.dd-step p {
    color: var(--ink-mid);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.dd-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-deep);
    background: rgba(30,132,73,0.10);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-pill);
}
.dd-step-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.dd-step-arrow { display: none; }
@media (min-width: 768px) {
    .dd-step-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 3.5rem;
        right: -0.75rem;
        transform: translate(50%, -50%);
        width: 30px; height: 30px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--ink-muted);
        box-shadow: var(--shadow-card);
        z-index: 3;
    }
    .dd-step:last-child .dd-step-arrow { display: none; }
}
.dd-step-arrow svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) {
    .dd-step { transition: none; }
    .dd-step:hover { transform: none; }
}


/* ─── 12. COMPLIANCE DARK BAND ──────────────────────────────────────────
   Navy gradient + green spotlight + 4-card grid. Replicate per page. */

.compliance {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.compliance::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30,132,73,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.compliance .section-head { position: relative; z-index: 1; }
.compliance .section-title { color: var(--white); }
.compliance .section-sub { color: rgba(255,255,255,0.78); }
.compliance-grid {
    position: relative; z-index: 1;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .compliance-grid { grid-template-columns: repeat(4, 1fr); } }
.comp-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-card);
    padding: 1.35rem 1.2rem;
}
.comp-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(30,132,73,0.18);
    color: var(--green-300);
    margin-bottom: 0.85rem;
}
.comp-icon svg { width: 18px; height: 18px; }
.comp-title {
    font-size: 1rem; font-weight: 700; color: var(--white);
    margin-bottom: 0.35rem; letter-spacing: -0.01em;
}
.comp-body {
    font-size: 0.88rem; line-height: 1.55;
    color: rgba(255,255,255,0.72);
}
/* Inline statute-citation chip used inside compliance cards. */
.comp-cite {
    display: inline-block;
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--green-300);
    background: rgba(127,226,160,0.08);
    border: 1px solid rgba(127,226,160,0.16);
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
}


/* ─── 13. PRICING CARD TRIO ─────────────────────────────────────────────
   3 cards: standard / featured / enterprise. */

.pricing { background: var(--white); }
.pricing-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 22px;
    padding: 2rem 1.75rem 1.75rem;
    display: flex; flex-direction: column;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.price-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.price-card.featured {
    border: 2px solid var(--green);
    box-shadow: 0 14px 36px rgba(30,132,73,0.18);
}
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: var(--white);
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 14px rgba(30,132,73,0.35);
}
.price-name {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--ink); letter-spacing: -0.01em;
}
.price-tag {
    margin: 0.85rem 0 0.4rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1;
}
.price-tag .currency {
    font-size: 0.65em; color: var(--ink-muted);
    font-weight: 600; vertical-align: top; margin-right: 0.15rem;
}
.price-tag .per {
    font-size: 0.45em; color: var(--ink-muted);
    font-weight: 600; margin-left: 0.3rem;
}
.price-fee {
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    color: var(--green-deep);
    font-weight: 600;
}
.price-fee strong { font-weight: 800; }
.price-desc {
    font-size: 0.92rem; color: var(--ink-mid);
    margin-bottom: 1.4rem; line-height: 1.55;
}
.price-features {
    list-style: none; padding: 0; margin: 0 0 1.6rem;
    display: flex; flex-direction: column; gap: 0.65rem; flex: 1;
}
.price-features li {
    display: flex; gap: 0.55rem;
    font-size: 0.92rem; color: var(--ink); line-height: 1.5;
}
.price-features li svg {
    width: 16px; height: 16px; color: var(--green);
    flex-shrink: 0; margin-top: 0.2rem;
}
.price-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--navy);
    background: transparent; color: var(--navy);
    transition: background var(--motion-fast), color var(--motion-fast);
    cursor: pointer;
}
.price-cta:hover { background: var(--navy); color: var(--white); }
.price-card.featured .price-cta {
    background: var(--green); color: var(--white); border-color: var(--green);
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
}
.price-card.featured .price-cta:hover {
    background: var(--green-dark); border-color: var(--green-dark);
}
.price-footnote {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-muted);
    max-width: 640px;
    margin-left: auto; margin-right: auto;
}


/* ─── 14. STAT PLINTH ───────────────────────────────────────────────────
   3 big-number stat cards on off-white band. */

.social-proof {
    background: var(--off-white);
    border-top: 1px solid var(--border-cool);
    border-bottom: 1px solid var(--border-cool);
}
.sp-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .sp-stats { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.sp-stat {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.sp-stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--green-deep);
    margin-bottom: 0.6rem;
}
.sp-stat-label {
    font-size: 0.92rem;
    color: var(--ink-mid);
    line-height: 1.45;
    max-width: 240px;
    margin: 0 auto;
}


/* ─── 15. FOUNDER QUOTE CARD ────────────────────────────────────────────
   Green left-border + big quote mark + disclosure under. */

.sp-quotes {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 2.25rem;
}
@media (min-width: 768px) { .sp-quotes { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.sp-quote {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.4rem 1.35rem;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
}
.sp-quote-mark {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 0.8;
    color: var(--green);
    opacity: 0.55;
    margin-bottom: 0.35rem;
}
.sp-quote-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 1rem;
    text-wrap: pretty;
}
.sp-quote-attr {
    font-size: 0.82rem;
    color: var(--ink-mid);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}
.sp-quote-disclaimer {
    font-size: 0.72rem;
    color: var(--ink-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Sp-badges (compliance pill row below quotes) */
.sp-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem 0.4rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-cool);
}
.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-mid);
    padding: 0.4rem 0.85rem;
}
.sp-badge svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.sp-badge-dot { color: var(--ink-muted); font-weight: 400; user-select: none; }
@media (min-width: 768px) { .sp-badge { font-size: 0.88rem; } }


/* ─── 16. PRODUCT DEMO CARDS (legacy 3-up) ──────────────────────────────
   Used on homepage section that links to /demo. */

.product-demo { background: var(--white); }
.pd-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-bottom: 2.75rem;
}
@media (min-width: 768px) { .pd-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.pd-card {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
    display: flex; flex-direction: column;
}
.pd-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.pd-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green-deep);
    margin-bottom: 1.15rem;
}
.pd-icon svg { width: 24px; height: 24px; }
.pd-title {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700; color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 0.55rem; line-height: 1.25;
}
.pd-body { font-size: 0.95rem; line-height: 1.6; color: var(--ink-mid); }
.pd-cta-wrap { display: flex; justify-content: center; }
.pd-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.7rem;
    border-radius: 10px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    background: var(--green); color: var(--white);
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
    transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
    cursor: pointer;
}
.pd-cta:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,42,74,0.18);
}
.pd-cta:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(27,42,74,0.16); }
.pd-cta:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pd-cta svg { width: 16px; height: 16px; }


/* ─── 17. CTA BAND (Dark Gradient) ──────────────────────────────────────
   Navy gradient with double-radial spotlight. */

.cta-band {
    position: relative;
    padding: var(--section-y) 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 0%, rgba(30,132,73,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(127,226,160,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--white);
}
.cta-band p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    line-height: 1.55;
}
.cta-band .hero-ctas { justify-content: center; }


/* ─── 17.5. TRUST BAND (between CTA band and footer) ────────────────────
   Institutional compliance-posture strip: linked SVG-icon pills.
   No marketing language; only verifiable posture signals. Compliance
   officer can click through to /trust and /security for the long-form. */

.dd-trust-band {
    background: var(--off-white);
    border-top: 1px solid var(--border-cool);
    border-bottom: 1px solid var(--border-cool);
    padding: 1.5rem var(--pad-x);
}
.dd-trust-band-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1rem;
}
.dd-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-mid);
    letter-spacing: 0.005em;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dd-trust-pill svg {
    width: 14px; height: 14px;
    color: var(--green-deep);
    flex-shrink: 0;
}
.dd-trust-pill strong {
    color: var(--ink);
    font-weight: 700;
}
@media (hover: hover) {
    .dd-trust-pill:hover {
        border-color: var(--green);
        background: var(--green-light);
        color: var(--ink);
        transform: translateY(-1px);
    }
}
.dd-trust-pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--green);
}
@media (max-width: 480px) {
    .dd-trust-band { padding: 1.25rem var(--pad-x); }
    .dd-trust-band-inner { gap: 0.5rem 0.6rem; }
    .dd-trust-pill { font-size: 0.72rem; padding: 0.38rem 0.7rem; gap: 0.4rem; }
    .dd-trust-pill svg { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .dd-trust-pill { transition: none; }
    .dd-trust-pill:hover { transform: none; }
}


/* ─── 18. SITE FOOTER (Dark) ────────────────────────────────────────────
   4-col grid: brand / product / trust / company. */

footer, .footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
    max-width: 320px;
    line-height: 1.55;
}
.footer-social { display: inline-flex; gap: 0.6rem; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    transition: background var(--motion-fast);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-social svg { width: 16px; height: 16px; }
.footer h4 {
    font-size: 0.75rem; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--motion-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem; padding-top: 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}
@media (min-width: 700px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
}


/* ─── 19. BRAND NAV (Sticky → frosted on scroll) ────────────────────────
   Ships to every marketing page. JS toggles .is-scrolled in shared/system.js. */

.nav {
    position: sticky; top: 0; z-index: 100;
    padding: 0.55rem 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
.nav.is-scrolled {
    background: rgba(255,255,255,0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
            backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(10,22,40,0.06), 0 8px 24px -12px rgba(10,22,40,0.18);
    border-bottom-color: transparent;
}
.nav-inner {
    max-width: var(--max-w, 1200px); margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex; align-items: center; gap: 1rem;
    min-height: 56px;
}
.nav-logo {
    display: inline-flex; align-items: center; gap: 0.55rem;
    text-decoration: none; color: var(--white);
    font-family: var(--font-display, var(--font));
    font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
    white-space: nowrap; flex-shrink: 0; min-height: 44px;
}
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo .spiral-outer { fill: var(--white); transition: fill 0.2s; }
.nav-logo span { white-space: nowrap; }
.nav.is-scrolled .nav-logo { color: var(--ink); }
.nav.is-scrolled .nav-logo .spiral-outer { fill: var(--navy); }

.nav-links { display: none; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-link {
    color: rgba(255,255,255,0.82); text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    padding: 0.55rem 0.85rem; border-radius: 8px;
    white-space: nowrap;
    transition: background-color var(--motion-fast), color var(--motion-fast);
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav.is-scrolled .nav-link { color: var(--ink-mid, #3A4A66); }
.nav.is-scrolled .nav-link:hover { background: rgba(10,22,40,0.06); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.12); }
.nav.is-scrolled .nav-link[aria-current="page"] { color: var(--navy); background: rgba(27,42,74,0.08); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: auto; }
.nav-links + .nav-right { margin-left: 0; }
.nav-signin {
    display: none;
    color: rgba(255,255,255,0.82); text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    padding: 0.55rem 0.85rem; white-space: nowrap;
    transition: color var(--motion-fast);
}
.nav-signin:hover { color: var(--white); }
.nav-signin[aria-current="page"] { color: var(--white); }
.nav.is-scrolled .nav-signin { color: var(--ink-mid, #3A4A66); }
.nav.is-scrolled .nav-signin:hover { color: var(--ink); }
.nav.is-scrolled .nav-signin[aria-current="page"] { color: var(--navy); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--green); color: var(--white); text-decoration: none;
    padding: 0.55rem 1.05rem; border-radius: 10px;
    font-size: 0.88rem; font-weight: 700;
    min-height: 40px; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
    transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.nav-cta:hover {
    background: var(--green-dark, #186D3B);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,42,74,0.18);
}
.nav-cta:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(27,42,74,0.16); }
.nav-cta:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-cta svg { width: 14px; height: 14px; }

.nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-height: 44px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--white); border-radius: 8px;
}
.nav.is-scrolled .nav-burger { color: var(--ink); }
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .ic-close { display: none; }
.nav-burger[aria-expanded="true"] .ic-open { display: none; }
.nav-burger[aria-expanded="true"] .ic-close { display: inline-block; }

.nav-link:focus-visible,
.nav-signin:focus-visible,
.nav-cta:focus-visible,
.nav-logo:focus-visible,
.nav-burger:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 8px; }

/* Mobile drawer */
.mobile-menu {
    position: fixed; inset: 0; z-index: 99;
    background: var(--white);
    padding: 5rem clamp(1rem, 3vw, 2rem) 2rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-menu.is-open {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu a {
    display: block; padding: 1rem 0.5rem;
    color: var(--ink); text-decoration: none;
    font-size: 1.1rem; font-weight: 600;
    border-bottom: 1px solid var(--border-cool, #E5E8EE);
}
.mobile-menu a[aria-current="page"] { color: var(--green-deep, #155C32); }
.mobile-menu .mobile-cta {
    margin-top: 1.5rem;
    background: var(--green); color: var(--white);
    text-align: center; border: 0; border-radius: 999px;
    padding: 1rem 1.5rem; font-weight: 700;
    border-bottom: 0;
}
body.no-scroll { overflow: hidden; }
body.no-scroll .nav .nav-logo,
body.no-scroll .nav .nav-burger { color: var(--ink); }
body.no-scroll .nav .nav-logo .spiral-outer { fill: var(--navy); }

@media (min-width: 1024px) {
    .nav-links { display: inline-flex; }
    .nav-signin { display: inline-flex; }
    .nav-burger { display: none; }
    .nav-inner { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .nav, .nav-cta, .mobile-menu { transition: none; }
}


/* ─── 20. PRODUCT SHOWCASE TABS (Dark) ──────────────────────────────────
   The biggest tier-lift component. 3 tabs over navy gradient.
   JS toggles .is-active on .ps-tab-btn and the matching .ps-pane. */

.product-showcase {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}
.product-showcase::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 80% 15%, rgba(30,132,73,0.16) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 15% 85%, rgba(43,82,140,0.22) 0%, transparent 65%);
    pointer-events: none;
}
.product-showcase .section-head { position: relative; z-index: 1; }
.product-showcase .section-title { color: var(--white); }
.product-showcase .section-sub { color: rgba(255,255,255,0.72); }

/* Tab pill group */
.ps-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.ps-tab-group {
    display: inline-flex;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-pill);
    padding: 0.32rem;
    gap: 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ps-tab-btn {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.62);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    min-height: 40px;
    letter-spacing: -0.01em;
}
.ps-tab-btn:hover { color: var(--white); }
.ps-tab-btn.is-active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.ps-tab-btn:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: var(--radius-pill);
}

/* Pane */
.ps-pane { display: none; position: relative; z-index: 1; }
.ps-pane.is-active { display: block; animation: panelFade 0.28s ease both; }

/* Browser mockup shell */
.ps-browser {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0,0,0,0.38), 0 8px 24px rgba(0,0,0,0.2);
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.06);
}
.ps-chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-cool);
}
.ps-dots { display: inline-flex; gap: 0.35rem; }
.ps-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.ps-dots i:nth-child(1) { background: hsl(3,100%,67%); }
.ps-dots i:nth-child(2) { background: hsl(42,99%,59%); }
.ps-dots i:nth-child(3) { background: hsl(132,65%,47%); }
.ps-url {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 6px;
    padding: 0.28rem 0.6rem;
    font-size: 0.73rem;
    color: var(--ink-mid);
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ps-url-lock { width: 10px; height: 10px; color: var(--green-deep); flex-shrink: 0; }

.ps-body { padding: 1.25rem 1.35rem 1.5rem; background: var(--off-white); }

/* KPI strip */
.ps-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}
@media (min-width: 600px) { .ps-kpis { grid-template-columns: repeat(4, 1fr); } }
.ps-kpi {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    padding: 0.8rem 0.95rem;
}
.ps-kpi-label {
    font-size: 0.66rem; font-weight: 700; color: var(--ink-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem;
}
.ps-kpi-value {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.3rem; color: var(--ink); letter-spacing: -0.025em; line-height: 1;
}
.ps-kpi-value.c-green { color: var(--green-deep); }
.ps-kpi-value.c-amber { color: var(--amber); }
.ps-kpi-sub { font-size: 0.67rem; color: var(--ink-muted); margin-top: 0.2rem; }

/* Aging bar */
.ps-aging {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    padding: 0.95rem 1.1rem;
    margin-bottom: 0.9rem;
}
.ps-aging-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.ps-aging-bar {
    display: flex;
    height: 18px;
    border-radius: 6px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 0.5rem;
}
.ps-aging-seg { flex-shrink: 0; }
.ps-aging-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.ps-aging-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.7rem; color: var(--ink-mid); font-weight: 600;
}
.ps-aging-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }

/* Mini table shared */
.ps-table-wrap {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
}
.ps-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 480px; }
.ps-table th {
    font-size: 0.66rem; font-weight: 700; color: var(--ink-muted);
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 0.6rem 0.9rem;
    background: var(--off-white);
    border-bottom: 1px solid var(--border-cool);
    text-align: left; white-space: nowrap;
}
.ps-table td {
    padding: 0.65rem 0.9rem; color: var(--ink);
    border-bottom: 1px solid var(--border-cool);
}
.ps-table tr:last-child td { border-bottom: 0; }
.ps-table td.fw6 { font-weight: 600; }
.ps-table td.muted { color: var(--ink-muted); font-size: 0.78rem; }

/* Status pills */
.ps-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.71rem; font-weight: 700;
    white-space: nowrap;
}
.ps-pill.green { background: var(--green-light); color: var(--green-deep); }
.ps-pill.amber { background: var(--amber-light); color: var(--amber); }
.ps-pill.red { background: var(--red-light); color: var(--red); }
.ps-pill.muted { background: var(--border-cool); color: var(--ink-muted); }
.ps-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ps-dot.green { background: var(--green); }
.ps-dot.amber { background: #F59E0B; }
.ps-dot.red { background: var(--red); }

/* Settlement tab extras */
.ps-offers-hd {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}
.ps-offers-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.ps-status-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ps-status-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.71rem; font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--border-cool); color: var(--ink-mid);
}
.ps-callout {
    margin-top: 0.85rem;
    background: var(--green-light);
    border: 1px solid rgba(30,132,73,0.2);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; font-weight: 600; color: var(--green-deep);
}
.ps-callout svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Compliance tab */
.ps-comp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 580px) { .ps-comp-grid { grid-template-columns: 1fr 1fr; } }
.ps-comp-card {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.ps-comp-card-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.ps-sol-row {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--border-cool);
    font-size: 0.76rem;
}
.ps-sol-row:last-child { border-bottom: 0; }
.ps-sol-name { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.ps-sol-state { color: var(--ink-muted); font-size: 0.7rem; width: 26px; flex-shrink: 0; }
.ps-sol-date { color: var(--ink-muted); font-size: 0.7rem; min-width: 76px; flex-shrink: 0; }
.ps-audit-row {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--border-cool);
    font-size: 0.75rem;
}
.ps-audit-row:last-child { border-bottom: 0; }
.ps-audit-ic {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--green-light);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.ps-audit-ic svg { width: 10px; height: 10px; color: var(--green-deep); }
.ps-audit-main { flex: 1; }
.ps-audit-action { font-weight: 600; color: var(--ink); }
.ps-audit-meta { font-size: 0.68rem; color: var(--ink-muted); margin-top: 0.1rem; }
.ps-comp-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.ps-comp-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 600; color: var(--ink-mid);
    background: var(--border-cool);
    padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
}

/* CTA row below tabs */
.ps-cta-row {
    text-align: center;
    margin-top: 2.5rem;
    position: relative; z-index: 1;
}
.ps-cta-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 1.1rem;
    font-weight: 500;
}
.ps-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 50px; padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 700; font-size: 0.98rem;
    text-decoration: none;
    background: var(--green); color: var(--white);
    box-shadow: 0 1px 2px rgba(27,42,74,0.16);
    transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.ps-cta-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,42,74,0.18);
}
.ps-cta-btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(27,42,74,0.16); }
.ps-cta-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ps-cta-btn svg { width: 16px; height: 16px; }


/* ═══════════════════════════════════════════════════════════════════════
   PART 4.4: UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════ */

/* Numeric display rules */
.num-tabular { font-variant-numeric: tabular-nums; }
.num-display {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}
.num-hero {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
    font-weight: 800;
}

/* Text-wrap rules */
.tw-balance { text-wrap: balance; }
.tw-pretty  { text-wrap: pretty; }

/* Illustrative-data disclaimer (every mockup gets one) */
.illustrative-disclaimer {
    font-size: 0.72rem;
    color: var(--ink-muted);
    font-style: italic;
    text-align: center;
    line-height: 1.45;
}

/* Sticky CTA helper (positioned via .dd-sticky-cta) */
.is-sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    box-shadow: 0 6px 16px rgba(27,42,74,0.20);
}

/* Dotted background utility, for hero or feature sections */
.bg-dotted {
    background-image: radial-gradient(circle at 1px 1px, rgba(127,226,160,0.08) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Cream gradient backdrop, for consumer-facing pages */
.bg-cream-gradient {
    background: linear-gradient(165deg, var(--cream-start) 0%, var(--cream-end) 100%);
}

/* Visually-hidden but screen-reader-accessible */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   PART 4.2: SCAFFOLDS FOR 28 NEW COMPONENTS
   Each class is a real, ready-to-use base. Page agents extend with
   page-specific content, not new tokens. Anti-pattern: redefining
   .dd-* base classes locally; instead, override with modifier classes.
   ═══════════════════════════════════════════════════════════════════════ */

/* 4.2.1 Sticky bottom-right CTA: for-creditors, for-firms, pricing, how-it-works */
.dd-sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center; gap: 0.45rem;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-weight: 700; font-size: 0.95rem;
    min-height: 48px;
    padding: 0 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(27,42,74,0.20);
    opacity: 0; pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background var(--motion-fast);
}
.dd-sticky-cta.is-visible {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dd-sticky-cta:hover { background: var(--green-dark); }
.dd-sticky-cta svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
    .dd-sticky-cta { transition: none; }
}

/* 4.2.2 Language Toggle: for-borrowers */
.dd-lang-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    gap: 0.15rem;
}
.dd-lang-toggle button {
    background: transparent;
    border: 0;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    cursor: pointer;
    transition: color var(--motion-fast), background var(--motion-fast);
}
.dd-lang-toggle button.is-active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 1px 3px rgba(10,22,40,0.08);
}
.dd-lang-toggle button:focus-visible {
    outline: 3px solid var(--green); outline-offset: 2px;
}

/* 4.2.3 Payoff-Date Card: for-borrowers, demo */
.dd-payoff-card {
    background: var(--cream, #F6F2EA);
    border: 1px solid var(--border-warm, #E3DED0);
    border-radius: var(--radius-feature);
    padding: 1.5rem 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 0.35rem;
}
.dd-payoff-eyebrow {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--green-deep);
}
.dd-payoff-date {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 1.95rem);
    letter-spacing: -0.02em;
    color: var(--green-deep);
    line-height: 1.1;
}
.dd-payoff-sub {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 0.15rem;
}
.dd-payoff-progress {
    margin-top: 0.85rem;
    height: 6px;
    background: var(--border-warm, #E3DED0);
    border-radius: 999px;
    overflow: hidden;
}
.dd-payoff-progress > i {
    display: block; height: 100%;
    background: var(--green);
    border-radius: inherit;
}
.dd-payoff-progress-label {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--ink-mid);
    font-weight: 600;
}

/* 4.2.4 iOS Phone-Frame Mockup: for-borrowers, demo */
.dd-phone-frame {
    width: 320px;
    max-width: 100%;
    aspect-ratio: 320 / 640;
    border-radius: 60px;
    padding: 18px;
    background: var(--ink);
    box-shadow: var(--shadow-3, 0 12px 40px rgba(0,0,0,0.16), 0 4px 8px rgba(0,0,0,0.08));
    position: relative;
    margin: 0 auto;
}
.dd-phone-frame::before {
    /* Notch */
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: var(--ink);
    border-radius: 14px;
    z-index: 2;
}
.dd-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 44px;
    background: var(--cream-end, #F7F6F3);
    overflow: hidden;
    padding: 1.75rem 1.1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.85rem;
}
@media (min-width: 1024px) {
    .dd-phone-frame { transform: rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dd-phone-frame { transform: none !important; }
}

/* 4.2.5 Consumer Card List (iOS FAQ): for-borrowers, pricing, how-it-works */
.dd-card-list { display: flex; flex-direction: column; gap: 0.75rem; }
.dd-card-list-item {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-ios);
    box-shadow: var(--shadow-1, 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04));
    overflow: hidden;
    transition: box-shadow var(--motion-fast);
}
.dd-card-list-item.is-open { box-shadow: var(--shadow-2, 0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06)); }
.dd-card-list-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 0; background: transparent;
    font-weight: 700; font-size: 1rem;
    color: var(--ink);
    text-align: left; cursor: pointer;
    min-height: 56px;
}
.dd-card-list-q::after {
    content: '+';
    color: var(--green);
    font-size: 1.5rem; font-weight: 400;
    transition: transform var(--motion-base);
    flex-shrink: 0;
}
.dd-card-list-item.is-open .dd-card-list-q::after {
    transform: rotate(45deg);
}
.dd-card-list-body {
    padding: 0 1.25rem 1.1rem;
    color: var(--ink-mid);
    font-size: 0.94rem;
    line-height: 1.6;
    display: none;
}
.dd-card-list-item.is-open .dd-card-list-body { display: block; }
@media (prefers-reduced-motion: reduce) {
    .dd-card-list-q::after { transition: none; }
}

/* 4.2.6 Plan Visualizer: for-borrowers, pricing */
.dd-plan-visualizer {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .dd-plan-visualizer { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.dd-plan-input-row {
    display: flex; flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.dd-plan-input-row label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
}
.dd-plan-input-row input[type="range"] {
    accent-color: var(--green);
    width: 100%;
}
.dd-plan-segmented {
    display: inline-flex;
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    gap: 0.15rem;
}
.dd-plan-segmented button {
    border: 0; background: transparent;
    font-weight: 600; font-size: 0.85rem;
    color: var(--ink-mid);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
}
.dd-plan-segmented button.is-active {
    background: var(--navy);
    color: var(--white);
}
.dd-plan-output {
    background: var(--off-white);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}

/* 4.2.7 Cure Lift Math Calculator: for-creditors (exists), pricing (new) */
.dd-cure-calculator {
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .dd-cure-calculator { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}
.dd-cure-inputs { display: flex; flex-direction: column; gap: 1rem; }
.dd-cure-input-row {
    display: flex; flex-direction: column; gap: 0.35rem;
}
.dd-cure-input-row label {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ink-muted);
}
.dd-cure-input-row input {
    font: inherit;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-variant-numeric: tabular-nums;
}
.dd-cure-input-row input:focus { outline: 3px solid var(--green); outline-offset: 2px; }
.dd-cure-ledger {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.4rem;
    display: flex; flex-direction: column; gap: 0.7rem;
}
.dd-cure-row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-cool);
    font-size: 0.92rem;
}
.dd-cure-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dd-cure-row span:first-child { color: var(--ink-mid); }
.dd-cure-row span:last-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.dd-cure-row.is-total span:last-child { color: var(--green-deep); font-weight: 800; }

/* 4.2.8 Feature Comparison Matrix: pricing */
.dd-feature-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.dd-feature-matrix th, .dd-feature-matrix td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-cool);
    vertical-align: middle;
}
.dd-feature-matrix th {
    background: var(--off-white);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-muted);
}
.dd-feature-matrix th.is-featured {
    background: var(--green-light);
    color: var(--green-deep);
}
.dd-feature-matrix td.cell-yes { color: var(--green-deep); font-weight: 700; }
.dd-feature-matrix td.cell-no { color: var(--ink-muted); }
.dd-feature-matrix tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
    .dd-feature-matrix { display: block; overflow-x: auto; }
}

/* 4.2.9 Alternative Anchoring 3-Card: pricing */
.dd-anchor-vs {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) { .dd-anchor-vs { grid-template-columns: repeat(3, 1fr); } }
.dd-anchor-card {
    background: var(--white);
    border: 1.5px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.4rem;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.dd-anchor-card.is-featured {
    border-color: var(--green);
    box-shadow: 0 10px 24px rgba(30,132,73,0.12);
}
.dd-anchor-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--ink); letter-spacing: -0.01em;
}
.dd-anchor-stat {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: -0.025em;
    color: var(--green-deep);
}
.dd-anchor-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-mid);
}

/* 4.2.10 Horizontal Timeline: for-creditors, security (SOC 2), trust */
.dd-timeline {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    position: relative;
}
@media (min-width: 900px) {
    .dd-timeline { grid-template-columns: repeat(var(--dd-timeline-nodes, 4), 1fr); gap: 1.5rem; }
    .dd-timeline::before {
        content: '';
        position: absolute;
        top: 22px; left: 8%; right: 8%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
        z-index: 0;
    }
}
.dd-timeline-node {
    position: relative; z-index: 1;
    text-align: center;
    padding: 0 0.5rem;
}
.dd-timeline-marker {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--green);
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 0 6px var(--off-white);
}
.dd-timeline-title {
    font-size: 0.95rem; font-weight: 700;
    color: var(--ink); margin-bottom: 0.25rem;
}
.dd-timeline-body {
    font-size: 0.85rem; line-height: 1.5;
    color: var(--ink-mid);
    max-width: 220px; margin: 0 auto;
}

/* 4.2.11 Vertical Mini-Rail: how-it-works hero */
.dd-mini-rail {
    display: flex; flex-direction: column;
    gap: 1rem;
    padding-left: 28px;
    position: relative;
}
.dd-mini-rail::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px; bottom: 28px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.25) 0 6px, transparent 6px 12px);
}
.dd-mini-rail-node {
    display: flex; align-items: flex-start; gap: 1rem;
    position: relative;
}
.dd-mini-rail-marker {
    position: absolute;
    left: -28px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--green-300);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.05rem;
    backdrop-filter: blur(8px);
    transition: background var(--motion-fast), border-color var(--motion-fast);
}
.dd-mini-rail-node:hover .dd-mini-rail-marker,
.dd-mini-rail-node.is-active .dd-mini-rail-marker {
    background: rgba(30,132,73,0.2);
    border-color: var(--green-300);
}
.dd-mini-rail-content {
    padding-left: 48px;
    padding-top: 12px;
}
.dd-mini-rail-title { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.dd-mini-rail-sub { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* 4.2.12 Status Snapshot Card: trust */
.dd-status-snapshot {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-card);
}
.dd-status-snapshot h4 {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 0.85rem;
}
.dd-status-snapshot-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}
.dd-status-snapshot-row .dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; margin-right: 0.55rem;
}
.dd-status-snapshot-row.is-green .dot { background: var(--green); }
.dd-status-snapshot-row.is-amber .dot { background: var(--amber, #78430C); }
.dd-status-snapshot-row.is-gray  .dot { background: var(--ink-muted); }
.dd-status-snapshot-bar {
    margin-top: 0.85rem;
    height: 8px;
    background: var(--border-cool);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.dd-status-snapshot-bar > span { display: block; height: 100%; }
.dd-status-snapshot-bar > .is-green { background: var(--green); }
.dd-status-snapshot-bar > .is-amber { background: var(--amber, #78430C); }
.dd-status-snapshot-bar > .is-gray { background: var(--ink-muted); }

/* 4.2.13 Statute Chip: security, trust, legal */
.dd-statute-chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--green-light);
    color: var(--green-deep);
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.02em;
}
.dd-statute-chip code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(30,132,73,0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}
.dd-statute-chip.on-dark {
    background: rgba(127,226,160,0.08);
    color: var(--green-300);
    border: 1px solid rgba(127,226,160,0.16);
}
.dd-statute-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .dd-statute-grid { grid-template-columns: 1fr 1fr; } }

/* 4.2.14 Architecture Diagram: security, trust */
.dd-arch-diagram {
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    overflow-x: auto;
}
.dd-arch-diagram svg { width: 100%; height: auto; min-height: 200px; }

/* 4.2.15 Vendor Stack Table: security, trust */
.dd-vendor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.dd-vendor-table th, .dd-vendor-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-cool);
}
.dd-vendor-table th {
    background: var(--off-white);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-muted);
}
.dd-vendor-table tr:last-child td { border-bottom: 0; }
.dd-vendor-table td.posture { color: var(--green-deep); font-weight: 600; }

/* 4.2.16 PDF Download Button: security, legal */
.dd-pdf-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--navy);
    color: var(--white);
    border: 0;
    text-decoration: none;
    font-weight: 700; font-size: 0.92rem;
    min-height: 44px;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--motion-fast);
}
.dd-pdf-btn:hover { background: var(--ink); }
.dd-pdf-btn svg { width: 16px; height: 16px; }

/* Print stylesheet: only applies to landed pages, not to system.css consumers */
@media print {
    .nav, .mobile-menu, .dd-sticky-cta, footer .footer-social {
        display: none !important;
    }
    body { background: var(--white); color: var(--ink); font-size: 11pt; }
    .container { max-width: 100%; padding: 0; }
    a { color: inherit; text-decoration: underline; }
    .compliance, .cta-band, .product-showcase, .hero {
        background: var(--white) !important;
        color: var(--ink) !important;
    }
    .compliance .section-title, .cta-band h2, .hero h1,
    .compliance .comp-title, .comp-body { color: var(--ink) !important; }
}

/* 4.2.17 Sticky TOC (left rail): legal */
.dd-toc {
    position: sticky;
    top: 80px;
    width: 200px;
    align-self: flex-start;
    font-size: 0.9rem;
}
.dd-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dd-toc a {
    color: var(--ink-mid);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-left: 2px solid transparent;
    display: block;
    transition: color var(--motion-fast), border-color var(--motion-fast);
}
.dd-toc a:hover { color: var(--ink); }
.dd-toc a.is-active {
    color: var(--green-deep);
    border-left-color: var(--green);
    font-weight: 700;
}
@media (max-width: 900px) {
    .dd-toc {
        position: static;
        width: 100%;
        min-width: 0;
        margin-bottom: 1.5rem;
    }
    .dd-toc ul {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }
    .dd-toc a {
        white-space: nowrap;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }
    .dd-toc a.is-active { border-left: 0; border-bottom-color: var(--green); }
}

/* 4.2.17b Legal page shell: TOC rail + content column.
   Shared by legal, privacy, terms, dpa so the two-column trust-doc
   layout lives once. Single column below 900px (the TOC collapses to a
   horizontal scroll rail via the .dd-toc rules above). */
.legal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}
@media (min-width: 900px) {
    .legal-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 3rem;
    }
}

/* 4.2.18 Compliance Architecture Callout: legal */
.dd-compliance-callout {
    background: var(--off-white);
    border-left: 4px solid var(--navy);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.dd-compliance-callout .dd-statute-chip { margin-right: 0.5rem; margin-bottom: 0.5rem; }
.dd-compliance-callout h4 {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--ink);
    margin-top: 0.5rem; margin-bottom: 0.5rem;
}
.dd-compliance-callout p {
    color: var(--ink-mid); font-size: 0.94rem; line-height: 1.6;
}

/* 4.2.19 Founder's Honesty Card: trust, demo, for-borrowers */
.dd-honesty-card {
    background: var(--cream, #F6F2EA);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.dd-honesty-card-q {
    font-style: italic;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dd-honesty-card-a {
    color: var(--ink-mid);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* 4.2.20 Counsel Contact Card: legal */
.dd-counsel-card {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex; flex-direction: column;
    gap: 0.75rem;
}
.dd-counsel-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}
.dd-counsel-card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .dd-counsel-card-grid { grid-template-columns: 1fr 1fr; } }

/* 4.2.21 Changelog (Collapsible): legal, trust */
.dd-changelog {
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.dd-changelog-header {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    font-weight: 700; font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
}
.dd-changelog-header::after {
    content: '+';
    color: var(--green-deep);
    font-size: 1.4rem; font-weight: 400;
    transition: transform var(--motion-base);
}
.dd-changelog.is-open .dd-changelog-header::after { transform: rotate(45deg); }
.dd-changelog-body { display: none; padding: 0 1.25rem 1.1rem; }
.dd-changelog.is-open .dd-changelog-body { display: block; }
.dd-changelog-entry {
    padding: 0.65rem 0;
    border-top: 1px solid var(--border-cool);
}
.dd-changelog-entry:first-child { border-top: 0; }
.dd-changelog-entry .ver {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-right: 0.6rem;
}
.dd-changelog-entry .date {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

/* 4.2.22 Documentation Tile Grid: trust, security */
.dd-doc-tiles {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .dd-doc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dd-doc-tiles { grid-template-columns: repeat(4, 1fr); } }
.dd-doc-tile {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column; gap: 0.55rem;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.dd-doc-tile:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.dd-doc-tile-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
}
.dd-doc-tile-icon svg { width: 16px; height: 16px; }
.dd-doc-tile h4 {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1rem;
    color: var(--ink);
}
.dd-doc-tile p {
    font-size: 0.88rem;
    color: var(--ink-mid);
    line-height: 1.5;
}
.dd-doc-tile-arrow { color: var(--green-deep); font-weight: 700; margin-top: 0.25rem; }

/* 4.2.23 Funds-Flow Diagram: how-it-works */
.dd-funds-flow {
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.25rem;
    display: grid; gap: 0.85rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) {
    .dd-funds-flow { grid-template-columns: 1fr auto 1fr auto 1fr; }
}
.dd-funds-node {
    background: var(--white);
    border: 1.5px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem;
    text-align: center;
}
.dd-funds-node h4 {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1rem;
    color: var(--ink); margin-bottom: 0.25rem;
}
.dd-funds-node p { font-size: 0.85rem; color: var(--ink-mid); }
.dd-funds-arrow {
    color: var(--green); font-size: 1.5rem; text-align: center;
    font-weight: 700;
}
.dd-funds-pill {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: var(--green-light);
    color: var(--green-deep);
    font-size: 0.72rem; font-weight: 700;
    border-radius: var(--radius-pill);
}

/* 4.2.24 Persona Selector Cards: demo */
.dd-persona-selector {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .dd-persona-selector { grid-template-columns: repeat(3, 1fr); } }
.dd-persona-selector-card {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.dd-persona-selector-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.dd-persona-selector-thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.dd-persona-selector-body {
    padding: 1.25rem 1.4rem;
    flex: 1;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.dd-persona-selector-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--ink);
}
.dd-persona-selector-body p {
    font-size: 0.92rem; color: var(--ink-mid); line-height: 1.55;
    flex: 1;
}

/* 4.2.25 Walkthrough Tabs: demo */
.dd-walkthrough-tabs {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}
.dd-walkthrough-tabs-header {
    display: inline-flex;
    background: var(--off-white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-pill);
    padding: 0.3rem;
    gap: 0.15rem;
    margin-bottom: 1.5rem;
}
.dd-walkthrough-tab {
    background: transparent;
    border: 0;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 0.88rem;
    color: var(--ink-mid);
    cursor: pointer;
    transition: background var(--motion-fast), color var(--motion-fast);
}
.dd-walkthrough-tab.is-active {
    background: var(--navy); color: var(--white);
}
.dd-walkthrough-pane { display: none; }
.dd-walkthrough-pane.is-active {
    display: block;
    animation: panelFade 0.28s ease both;
}
.dd-walkthrough-pane ol {
    padding-left: 1.4rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    color: var(--ink-mid);
    line-height: 1.6;
}
.dd-walkthrough-pane ol li::marker {
    color: var(--green-deep); font-weight: 700;
}

/* 4.2.26 Tollbooth Thread Mockup: for-firms */
.dd-thread-mockup {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.dd-thread-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-cool);
    font-size: 0.88rem;
}
.dd-thread-row:last-child { border-bottom: 0; }
.dd-thread-time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    white-space: nowrap;
}
.dd-thread-actor {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.66rem; font-weight: 700;
}
.dd-thread-actor.is-creditor { background: var(--copper-deep); }
.dd-thread-action { color: var(--ink); font-weight: 500; }
.dd-thread-state {
    font-size: 0.72rem; font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--green-light); color: var(--green-deep);
    white-space: nowrap;
}
.dd-thread-state.is-pending { background: var(--amber-light); color: var(--amber, #78430C); }
.dd-thread-state.is-done { background: var(--green-light); color: var(--green-deep); }

/* 4.2.27 Problem/Solution Split: for-firms */
.dd-split-compare {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    position: relative;
    align-items: stretch;
}
@media (min-width: 900px) { .dd-split-compare { grid-template-columns: 1fr auto 1fr; } }
.dd-split-compare-col {
    background: var(--white);
    border: 1px solid var(--border-cool);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.4rem;
}
.dd-split-compare-col.is-problem {
    background: var(--red-light);
    border-color: rgba(220,38,38,0.16);
}
.dd-split-compare-col.is-solution {
    background: var(--green-light);
    border-color: rgba(30,132,73,0.16);
}
.dd-split-compare-col h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.85rem;
}
.dd-split-compare-col.is-problem h3 { color: var(--red, #B91C1C); }
.dd-split-compare-col.is-solution h3 { color: var(--green-deep); }
.dd-split-compare-col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.dd-split-compare-col li {
    font-size: 0.92rem; line-height: 1.5;
    color: var(--ink); display: flex; gap: 0.45rem;
}
.dd-split-compare-vs {
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-8deg);
    padding: 0 0.5rem;
}

/* 4.2.28 Step Dark Band: how-it-works */
.dd-step-dark {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}
.dd-step-dark::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 45% at 75% 25%, rgba(30,132,73,0.16) 0%, transparent 60%);
    pointer-events: none;
}
.dd-step-dark .section-head { position: relative; z-index: 1; }
.dd-step-dark .section-title { color: var(--white); }
.dd-step-dark .section-sub { color: rgba(255,255,255,0.78); }
.dd-step-dark .container { position: relative; z-index: 1; }
.dd-step-dark .eyebrow { color: var(--green-300); }


/* ═══════════════════════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY GLOBALS
   ═══════════════════════════════════════════════════════════════════════ */

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* End of file */
