/* ===================================================================
   Ledger marketing — hero.css
   Light-mode redesign · v2.0
   =================================================================== */

:root {
    /* Canvas hierarchy — white + off-white only */
    --canvas: #FFFFFF;
    --canvas-alt: #F7F8FA;
    --canvas-warm: #F7F8FA;
    --canvas-deep: #F7F8FA;

    /* Text — on light backgrounds */
    --text-1: #11141B;
    --text-2: #5B6473;
    --text-3: #8E949F;

    /* Text — on deep background */
    --text-deep-1: #FFFFFF;
    --text-deep-2: rgba(255, 255, 255, 0.62);
    --text-deep-3: rgba(255, 255, 255, 0.36);

    /* Accent */
    --accent: #3253B0;
    --accent-dim: rgba(50, 83, 176, 0.10);
    --accent-on-deep: #82A1F0;

    /* Confidence primitives */
    --conf-solid: #3253B0;
    --conf-dashed: #3253B0;
    --conf-ghost: #8E949F;

    /* Borders */
    --border: #E4E6EB;
    --border-strong: #C8CDD6;

    /* Component geometry */
    --radius-card: 8px;
    --radius-chip: 4px;
    --gutter: clamp(20px, 4vw, 48px);
    --max: 1080px;

    /* Section vertical rhythm */
    --sect-py: clamp(96px, 12vh, 160px);

    /* Motion */
    --t-fast: 120ms;
    --t-default: 220ms;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--canvas);
    color: var(--text-1);
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
}

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

a:hover {
    text-decoration: underline;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.num {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-feature-settings: "tnum" 1;
}

.serif {
    font-family: "IBM Plex Serif", Georgia, serif;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* === SECTION BACKGROUNDS ========================================= */

.sect-white {
    background: var(--canvas);
}

.sect-alt {
    background: var(--canvas-alt);
}

.sect-warm {
    background: var(--canvas-alt);
}

.sect-deep {
    background: var(--canvas-alt);
}

/* === NAVIGATION ================================================== */

.ld-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-default) ease-out, background var(--t-default) ease-out;
}

.ld-nav[data-scrolled="true"] {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.97);
}

.ld-nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 56px;
}

.ld-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-1);
    text-decoration: none;
}

.ld-brand:hover {
    text-decoration: none;
}

.ld-brand-glyph {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.ld-brand-name {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-1);
}

.ld-nav-links {
    display: flex;
    gap: 24px;
    margin-left: 12px;
}

.ld-nav-links a {
    color: var(--text-2);
    font-size: 13px;
    transition: color var(--t-fast) ease-out;
}

.ld-nav-links a:hover {
    color: var(--text-1);
    text-decoration: none;
}

.ld-nav-spacer {
    flex: 1;
}

.ld-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 720px) {
    .ld-nav-links {
        display: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-chip);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-1);
    transition: border-color var(--t-fast) ease-out, color var(--t-fast) ease-out, background var(--t-fast) ease-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #2642A0;
    border-color: #2642A0;
    text-decoration: none;
    color: #FFFFFF;
}

.btn-secondary {
    border-color: var(--border-strong);
    color: var(--text-1);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.btn-ghost {
    color: var(--text-2);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--text-1);
    text-decoration: none;
}

.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

/* Buttons inside alt sections (formerly deep) */
.sect-deep .btn-secondary {
    border-color: var(--border-strong);
    color: var(--text-1);
}

.sect-deep .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sect-deep .btn-ghost {
    color: var(--text-2);
}

.sect-deep .btn-ghost:hover {
    color: var(--text-1);
}

/* === HERO ======================================================== */

.ld-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ld-hero .wrap {
    width: 100%;
}

.ld-eyebrow {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.ld-h1 {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(42px, 6.5vw, 72px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.5px;
    margin: 0 0 24px;
    color: var(--text-1);
    max-width: 820px;
}

.ld-h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.ld-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-2);
    margin: 0 0 36px;
    max-width: 560px;
}

.ld-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 64px;
}

.ld-artifact {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(17, 20, 27, 0.06);
}

.ld-artifact svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ld-artifact-caption {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    color: var(--text-3);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* === SECTIONS — BASE ============================================= */

section {
    padding: var(--sect-py) 0;
}

/* Backgrounds delineate sections — no border-bottom needed */

.ld-eyebrow-section {
    color: var(--text-3);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 14px;
}

/* Deep section overrides */
.sect-deep .ld-eyebrow-section {
    color: var(--accent-on-deep);
}

.ld-h2 {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.3px;
    margin: 0 0 20px;
    color: var(--text-1);
    max-width: 720px;
}

.sect-deep .ld-h2 {
    color: var(--text-1);
}

.ld-section-lede {
    font-size: 16px;
    color: var(--text-2);
    margin: 0 0 40px;
    max-width: 620px;
}

.sect-deep .ld-section-lede {
    color: var(--text-2);
}

/* === PILOT STRIP ================================================= */

.ld-strip {
    padding: 22px 0;
    background: var(--canvas-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ld-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.ld-strip-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-2);
    font-size: 13px;
}

.ld-strip-metric .num {
    color: var(--text-1);
    font-size: 15px;
    font-weight: 500;
}

/* === PROBLEM SECTION ============================================= */

.ld-problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.ld-problem-list li {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-2);
    padding-left: 28px;
    position: relative;
}

.ld-problem-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 500;
}

/* === PRODUCT SECTION ============================================= */

.ld-product-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
    counter-reset: step;
    max-width: 600px;
}

.ld-product-steps li {
    counter-increment: step;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text-1);
    padding: 24px 0 24px 60px;
    position: relative;
    border-top: 1px solid var(--border);
}

.ld-product-steps li:last-child {
    border-bottom: 1px solid var(--border);
}

.ld-product-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 28px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    line-height: 1.6;
}

.ld-product-note {
    margin: 32px 0 0;
    font-size: 15px;
    color: var(--text-2);
    font-style: italic;
}

/* === DEMOS SECTION =============================================== */

#demos {
    padding-top: 0;
    padding-bottom: 0;
}

.ld-demos-lead {
    padding-top: var(--sect-py);
    padding-bottom: clamp(48px, 6vh, 80px);
}

.ld-rows {
    display: block;
}

.ld-row {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(64px, 8vh, 100px) 0;
}

.ld-row>.wrap {
    width: 100%;
}

.ld-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Alternate sides on even rows — art on left, text on right */
.ld-row:nth-child(even) .ld-row-text {
    order: 2;
}

.ld-row:nth-child(even) .ld-row-art {
    order: 1;
}

/* Per-row background (alternates through white / alt / warm) */
#demo-morning-queue {
    background: var(--canvas);
}

#demo-case-file {
    background: var(--canvas-alt);
}

#demo-cross-jurisdiction {
    background: var(--canvas-warm);
}

.ld-row-h {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--text-1);
    letter-spacing: -0.2px;
}

.ld-row-body {
    color: var(--text-2);
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.55;
    max-width: 440px;
}

.ld-row-art {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(17, 20, 27, 0.05);
}

.ld-row-art svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 800px) {
    .ld-row {
        padding-top: 64px;
        padding-bottom: 64px;
        min-height: auto;
    }

    .ld-row-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ld-row:nth-child(even) .ld-row-text {
        order: 0;
    }

    .ld-row:nth-child(even) .ld-row-art {
        order: 1;
    }

    .ld-row-h {
        font-size: clamp(28px, 6vw, 38px);
    }
}

/* === PRICING / TIERS ============================================= */

.ld-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.ld-tier {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.ld-tier-name {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: var(--text-1);
}

.ld-tier-outcome {
    color: var(--text-2);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.ld-tier .btn {
    margin-top: auto;
}

@media (max-width: 760px) {
    .ld-tiers {
        grid-template-columns: 1fr;
    }
}

/* === SECURITY ==================================================== */

.ld-sec-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.ld-sec-bullets li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-2);
    padding-left: 20px;
    position: relative;
}

.ld-sec-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.ld-sec-foot {
    color: var(--text-3);
    font-size: 13px;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.02em;
    margin: 0;
}

/* === FINAL CTA BAND ============================================== */

.ld-final {
    padding: clamp(96px, 14vh, 160px) 0;
    text-align: center;
}

.ld-final-line {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 auto 36px;
    max-width: 820px;
    color: var(--text-1);
    letter-spacing: -0.2px;
}

/* === FOOTER ====================================================== */

.ld-foot {
    padding: 56px 0 40px;
    background: var(--canvas);
    border-top: 1px solid var(--border);
}

.ld-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.ld-foot-col h4 {
    margin: 0 0 14px;
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    font-weight: 500;
}

.ld-foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ld-foot-col a {
    color: var(--text-2);
    font-size: 13px;
}

.ld-foot-col a:hover {
    color: var(--text-1);
    text-decoration: none;
}

.ld-foot-brand .ld-brand {
    margin-bottom: 12px;
}

.ld-foot-brand p {
    color: var(--text-3);
    font-size: 13px;
    max-width: 280px;
    margin: 0;
}

.ld-foot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--text-3);
    font-size: 12px;
}

.ld-foot-sep {
    color: var(--border-strong);
}

@media (max-width: 760px) {
    .ld-foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === CONFIDENCE PRIMITIVES (used as CSS classes in inline SVGs) == */

.conf-solid {
    stroke: var(--conf-solid);
    stroke-width: 1.5;
    fill: none;
}

.conf-dashed {
    stroke: var(--conf-dashed);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    fill: none;
    opacity: 0.85;
}

.conf-ghost {
    stroke: var(--conf-ghost);
    stroke-width: 1;
    stroke-dasharray: 2 3;
    fill: none;
    opacity: 0.55;
}

/* === FORMS (contact, etc.) ======================================= */

.ld-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(17, 20, 27, 0.05);
}

.ld-form {
    display: grid;
    gap: 14px;
}

.ld-form label {
    display: block;
    color: var(--text-2);
    font-size: 12px;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ld-form input,
.ld-form textarea {
    display: block;
    width: 100%;
    background: var(--canvas-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-chip);
    color: var(--text-1);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--t-fast) ease-out;
    box-sizing: border-box;
}

.ld-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ld-form input:focus,
.ld-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.ld-form-submit {
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
    border-radius: var(--radius-chip);
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    width: 100%;
    cursor: pointer;
    transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.ld-form-submit:hover {
    background: #2642A0;
    border-color: #2642A0;
}

.ld-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ld-form-error {
    color: #B91C1C;
    font-size: 13px;
    margin: 4px 0 0;
}

.ld-form-ok {
    color: #0B804B;
    font-size: 13px;
    margin: 4px 0 0;
}

.ld-form-help {
    margin: 16px 0 0;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}

.ld-form-help a {
    color: var(--accent);
}

/* end of hero.css */