/* ==========================================================================
   JANIX Marketing Site - Design System (brand guide v2)

   Barlow Condensed (display, light italic) headlines + Source Code Pro (mono)
   body/labels/nav/buttons. Palette: #002850 blue (bg), #F2ECE3 cream (text),
   #DAC304 yellow + #BAB0CC lavender + #97244D magenta accents.
   ========================================================================== */

/* ==========================================================================
   Global design tokens (D1). Single source of truth for brand values, loaded
   on every page via _layout.html (marketing.css is the first stylesheet, so
   these tokens are inherited by page-scoped sheets such as home.css).

   Every value below is the EXACT literal previously hardcoded in this sheet —
   D1 is a pure visual no-op. Do not retune any value here without a dedicated
   design issue (D2/D3+).
   ========================================================================== */
:root {
    /* --- Brand colors --- */
    --blue: #002850;          /* primary brand surface / navy bg */
    --blue-deep: #001a36;     /* footer / deepest navy */
    --blue-alt: #06294d;      /* alternate section / card surface */
    --blue-panel: #073156;    /* lifted panel (home cmp sticky cell) */
    --cream: #f2ece3;         /* primary text on navy */
    --yellow: #dac304;        /* primary accent (CTAs, labels) */
    --yellow-hover: #e6cf1a;  /* yellow button hover */
    --lavender: #bab0cc;      /* secondary accent / prose links */
    --magenta: #97244d;       /* tertiary accent (badge) */

    /* --- Cream-alpha "ink" steps (text / hairlines on navy) ---
       Named tokens for the recurring opacities; rare one-off opacities are
       left inline to avoid token sprawl. Format matches the existing literals
       exactly (0.x), so each swap is byte-for-byte equivalent. */
    --ink-82: rgba(242, 236, 227, 0.82);
    --ink-78: rgba(242, 236, 227, 0.78);
    --ink-72: rgba(242, 236, 227, 0.72);
    --ink-70: rgba(242, 236, 227, 0.7);
    --ink-65: rgba(242, 236, 227, 0.65);
    --ink-60: rgba(242, 236, 227, 0.6);
    --ink-55: rgba(242, 236, 227, 0.55);
    --ink-50: rgba(242, 236, 227, 0.5);
    --ink-45: rgba(242, 236, 227, 0.45);
    --ink-40: rgba(242, 236, 227, 0.4);
    --ink-08: rgba(242, 236, 227, 0.08);
    --ink-07: rgba(242, 236, 227, 0.07);
    --edge: rgba(242, 236, 227, 0.14);    /* hairline border on navy */

    /* home.css compatibility token (consumed there, defined once here). */
    --cream-dim: rgba(242, 236, 227, 0.74);

    /* --- Radius scale (documents the values already in use; do NOT retune
       any element's radius in D1 — that is a later issue). --- */
    --radius-sm: 8px;     /* form inputs, in-chrome controls (buttons/inputs) */
    --radius-md: 12px;    /* feature / link cards, floating surfaces (popup, consent) */
    --radius-lg: 14px;    /* price cards */
    --radius-pill: 50px;  /* pills / round buttons */

    /* --- Elevation language (D3) — two intentional steps for global chrome.
       Values preserve the pre-D3 rendered shadows exactly. --- */
    --shadow-raised: 0 8px 30px rgba(0, 0, 0, 0.4);          /* floating chrome: consent banner, dropdowns */
    --shadow-overlay: 0 40px 90px -20px rgba(0, 0, 0, 0.7);  /* modal surfaces: email popup */

    /* Space + type scales are intentionally deferred to a later design issue —
       introducing them now risks rounding existing clamp()/rem values. */
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Source Code Pro', ui-monospace, monospace;
    background: var(--blue);
    color: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.15rem;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

p {
    color: var(--ink-55);
    line-height: 1.7;
}

.text-accent {
    color: var(--yellow);
}

.text-accent-blue {
    color: var(--lavender);
}

.text-muted {
    color: var(--ink-40);
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Single source of truth for the nav surface (was split: near-black base +
       a navy override down in the brand-guide block — collapsed here in D3). */
    background: rgba(0, 31, 61, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--edge);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wordmark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 26px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--cream);
}

/* Active link: cream text + a yellow underline (no layout shift, no JS).
   Excludes the CTA button, which can also match the current path (e.g. /apply/). */
.nav-links a.active:not(.nav-cta-get-started) {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.nav-cta {
    font-size: 0.85rem;
    color: var(--lavender) !important;
    border: 1px solid var(--lavender);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: all 0.25s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--lavender);
    color: var(--blue) !important;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
    border-radius: 1px;
    transition: all 0.3s;
}

/* --- Hero Sections --- */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--ink-55);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* === Unified button system (D2 #94) ===========================================
   ONE primary + ONE secondary. Legacy class names below are aliases pointing at
   these two rules so legacy pages keep rendering until D4/D5 migrate them.
   Shared base typography/shape come from `.btn` (+ the mono/uppercase treatment
   re-declared further down). Radius is `var(--radius-sm)` everywhere. */

/* Primary: yellow fill, navy text, hover -> yellow-hover + lift + shadow. */
.btn-primary,
.btn-get-started,
.btn-solid {
    background: var(--yellow);
    color: var(--blue);
}

.btn-primary:hover,
.btn-get-started:hover,
.btn-solid:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(218, 195, 4, 0.35);
}

/* Secondary: transparent, cream text, hairline edge border, hover -> yellow. */
.btn-ghost,
.btn-line {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--edge);
}

.btn-ghost:hover,
.btn-line:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: transparent;
    transform: translateY(-1px);
}

/* Consistent keyboard focus ring on every button. */
.btn-primary:focus-visible,
.btn-get-started:focus-visible,
.btn-solid:focus-visible,
.btn-ghost:focus-visible,
.btn-line:focus-visible,
.nav-cta-get-started:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

/* Compact CTA for the sticky nav bar (#3465). Kept compact padding; radius +
   focus aligned to the unified system. Final colour treatment (yellow outline)
   is set in the mono/uppercase block further down. */
.nav-cta-get-started {
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--yellow);
    color: var(--blue);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-cta-get-started:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(218, 195, 4, 0.4);
}

.btn .arrow {
    transition: transform 0.25s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Sections --- */
section {
    padding: 6rem 2rem;
}

.section-dark {
    /* Brand blue (var(--blue)) - replaces the brand-guide brown as the brand surface. */
    background: var(--blue);
}

.section-alt {
    background: var(--blue-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 1rem;
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(123, 158, 200, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    color: var(--cream);
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-50);
}

/* --- Two-Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* --- Card Links (Program Types) --- */
.card-link {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.card-link:hover {
    border-color: rgba(123, 158, 200, 0.4);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.card-link h3 {
    margin-bottom: 0.75rem;
    color: var(--cream);
}

.card-link p {
    margin-bottom: 1.5rem;
}

.card-link .link-arrow {
    font-size: 0.9rem;
    color: var(--lavender);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Social Proof / Stats --- */
.proof-bar {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-bar .label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin-bottom: 0.5rem;
}

.proof-bar .name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    color: var(--cream);
}

/* --- Privacy Promise --- */
.promise-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.promise-block h2 {
    margin-bottom: 1.25rem;
}

.promise-block p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Bottom CTA Section --- */
.bottom-cta {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-alt) 100%);
}

.bottom-cta h2 {
    margin-bottom: 1.25rem;
}

.bottom-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* --- Pain Points --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pain-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
}

.pain-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.pain-item h4 {
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 0.35rem;
}

.pain-item p {
    font-size: 0.88rem;
    color: var(--ink-45);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-70);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

/* Links inside consent/acknowledgment checkbox labels need to read as links */
.form-group label a {
    color: var(--lavender);
    text-decoration: underline;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lavender);
}

/* Checkbox / radio inputs opt out of the .form-group text-input sizing
   (width:100%, padding) so they keep their native dimensions inside the
   flex-row labels used on /apply/ consent rows. Without flex:0 0 auto the
   padded checkbox shrinks next to its sibling text. */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--blue-alt);
    color: var(--cream);
}

/* Honeypot - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-index: -1;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success .checkmark {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

/* Email capture (conferences) */
.email-capture {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.email-capture input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
}

.email-capture input:focus {
    outline: none;
    border-color: var(--lavender);
}

.email-capture .btn {
    flex-shrink: 0;
}

/* --- Contact Page Info --- */
.contact-info h2 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.contact-method-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.contact-method-text h4 {
    font-size: 0.95rem;
    color: var(--cream);
    margin-bottom: 0.25rem;
}

.contact-method-text p {
    font-size: 0.9rem;
    color: var(--ink-50);
}

.contact-method-text a {
    color: var(--lavender);
    transition: color 0.2s;
}

.contact-method-text a:hover {
    color: #c9c1d8;
}

/* --- Footer --- */
.site-footer {
    background: var(--blue-deep);
    border-top: 1px solid var(--ink-08);
    padding: 3.5rem 2rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}
.footer-logo { height: 24px; width: auto; }
.footer-addr {
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--ink-45);
    margin-top: 1rem;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    align-content: flex-start;
}
.footer-nav a {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    color: var(--ink-60);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copy {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: var(--ink-40);
}
.footer-mail {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: var(--ink-60);
    transition: color 0.2s;
}
.footer-mail:hover { color: var(--yellow); }
@media (min-width: 720px) {
    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
    .footer-nav { max-width: 420px; justify-content: flex-end; }
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-nav {
        height: 56px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 21, 43, 0.99);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1.5rem 1.5rem 2.5rem;
        gap: 0.25rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 0 0.25rem;
        border-bottom: 1px solid var(--ink-07);
    }

    .nav-links .nav-cta-get-started {
        margin-top: auto;
        justify-content: center;
        min-height: 52px;
        border-bottom: none;
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .email-capture {
        flex-direction: column;
    }

    .email-capture .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.95rem 1.75rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .nav-cta-get-started {
        padding: 0.6rem 1.1rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Legal pages (privacy / terms) - shared layout, readable long-form text.
   ========================================================================== */
.legal { padding: 7rem 0 5rem; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.5rem; color: var(--cream); }
.legal .updated { color: var(--ink-55); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; color: var(--cream); }
.legal h3 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; color: var(--cream); }
.legal p { margin-bottom: 1rem; color: var(--ink-82); line-height: 1.75; }
.legal ul, .legal ol { margin: 0 0 1.25rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; color: var(--ink-82); line-height: 1.7; }
.legal a { color: var(--lavender); }
.legal strong { color: var(--cream); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid rgba(255, 255, 255, 0.12); padding: 0.6rem 0.8rem; text-align: left; color: var(--ink-82); }
.legal th { background: rgba(255, 255, 255, 0.04); color: var(--cream); }
.legal .highlight { background: rgba(123, 158, 200, 0.08); border-left: 3px solid var(--lavender); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 4px; }
.legal .important { background: rgba(201, 184, 92, 0.08); border-left: 3px solid var(--yellow); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 4px; }

/* ==========================================================================
   Cookie consent banner (gates GA4).
   ========================================================================== */
.consent-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
    max-width: 540px; margin: 0 auto;
    background: var(--blue-alt); border: 1px solid var(--edge);
    border-radius: var(--radius-md); padding: 1rem 1.25rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
    z-index: 1000; box-shadow: var(--shadow-raised);
}
.consent-banner p { margin: 0; font-size: 0.85rem; color: var(--ink-82); flex: 1 1 240px; line-height: 1.5; }
.consent-banner a { color: var(--lavender); }
.consent-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.btn-consent {
    font-family: inherit; font-size: 0.85rem; font-weight: 500;
    padding: 0.45rem 1.1rem; border-radius: var(--radius-sm); border: none; cursor: pointer;
    background: var(--yellow); color: var(--blue);
}
.btn-consent:hover { background: var(--yellow-hover); }
.btn-consent-ghost { background: transparent; color: var(--ink-82); border: 1px solid var(--edge); }
.btn-consent-ghost:hover { color: var(--cream); }
[hidden] { display: none !important; }

/* ==========================================================================
   Pricing page.
   ========================================================================== */

/* Hero: PRICING eyebrow + headline + subtitle + sub-line.
   Tighter bottom padding because the .pricing-pillars band sits flush below.
   Override the base .hero { text-align: center } so the pricing hero flushes
   left — including the auto-centered h1 / .subtitle / sub-line. */
.pricing-hero { max-width: 1200px; margin: 0 auto; padding-bottom: 2.5rem; text-align: left; }
.pricing-hero .section-label { margin-bottom: 1.25rem; }
.pricing-hero h1 { max-width: 860px; margin-left: 0; margin-right: 0; }
.pricing-hero .subtitle { max-width: 680px; margin: 0 0 1.25rem; }
.pricing-hero-sub {
    max-width: 600px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-78);
    line-height: 1.65;
}

/* "Everything included" feature grid: 4-up bordered cells on dark navy. */
.pricing-pillars { padding-top: 0; padding-bottom: 4.5rem; }
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(242, 236, 227, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(242, 236, 227, 0.025);
}
.pillar {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--ink-08);
}
.pillar:last-child { border-right: none; }
.pillar h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--yellow);
    margin-bottom: 1.25rem;
}
.pillar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pillar li {
    color: var(--ink-78);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.45rem 0 0.45rem 0.95rem;
    position: relative;
}
.pillar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 5px;
    height: 5px;
    background: var(--yellow);
}
.pillar-foot {
    text-align: left;
    color: var(--ink-65);
    font-size: 0.95rem;
    max-width: 760px;
    margin: 2.5rem 0 0;
    line-height: 1.7;
}
.pillar-foot em {
    font-style: italic;
    color: var(--yellow);
}

/* 4-up -> 2-up -> 1-up. Re-balance cell borders at each break so the grid stays
   crisp instead of leaving a dangling hairline on the trailing edge. */
@media (max-width: 980px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2n) { border-right: none; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--ink-08); }
}
@media (max-width: 560px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--ink-08); }
    .pillar:last-child { border-bottom: none; }
}

/* ---- Tier-cards heading block ("Your rate drops as you grow.") ---- */
.tier-cards-head {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 2.25rem;
}
.tier-cards-head-text { flex: 1 1 480px; min-width: 0; }
/* Right column: note + calculator button stacked, both right-aligned. */
.tier-cards-head-aside {
    flex: 0 1 380px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 0.4rem;
}
.tier-cards-title {
    /* font-family / font-style / font-weight / letter-spacing inherited from
       the global h1-h4 + brand-guide h1,h2 rules. */
    line-height: 1;
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--cream);
    margin: 0 0 0.75rem;
}
.tier-cards-sub {
    color: var(--ink-78);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 46ch;
    margin: 0 0 1.25rem;
}
/* Paired with .btn .btn-ghost — overrides the icon-to-label gap and forces
   the "Check out the pricing calculator" label onto one line, so the aside
   column's flex-basis above can be sized to the button. The @media block
   below restores wrap on narrow viewports, where the aside is full-width. */
.tier-cards-calc { gap: 0.55rem; white-space: nowrap; }
.tier-cards-calc-icon {
    display: inline-block;
    color: var(--yellow);
    font-size: 0.85em;
    line-height: 1;
    transform: translateY(-1px);
}
.tier-cards-note {
    color: var(--ink-55);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: right;
    margin: 0;
    font-family: 'Source Code Pro', monospace;
}
@media (max-width: 760px) {
    .tier-cards-head { flex-direction: column; gap: 1.25rem; }
    .tier-cards-head-aside { align-items: flex-start; flex-basis: auto; margin-top: 0; }
    .tier-cards-note { text-align: left; }
    /* Aside is full-width here, so the desktop nowrap is no longer needed —
       let the button label wrap to avoid overflowing the container. */
    .tier-cards-calc { white-space: normal; }
}

/* ---- Tier cards (4-up) ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1rem; align-items: stretch; }
.price-card { position: relative; background: var(--blue-alt); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 2rem 1.5rem; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.price-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--blue); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 20px; white-space: nowrap; }
.price-tier { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; color: var(--cream); margin-bottom: 0.35rem; }
.price-tagline { color: var(--ink-60); font-size: 0.92rem; line-height: 1.35; margin: 0 0 1.5rem; min-height: 1.35em; }
.price-amount { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; color: var(--cream); line-height: 1; margin-bottom: 0.5rem; }
.price-amount-text { font-size: 1.8rem; }
.price-per { font-size: 1rem; color: var(--ink-55); font-family: 'Source Code Pro', monospace; }
.price-rate { color: var(--yellow); font-weight: 500; font-size: 0.95rem; margin-bottom: 1.75rem; }
.price-cta { display: flex; width: 100%; justify-content: center; text-align: center; margin-top: auto; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Brand guide refinements - applied over the base rules above.
   ========================================================================== */

/* Nav surface is now defined once in the base `.site-nav` rule (D3). */

/* Display headlines: Barlow Condensed Light Italic. */
h1, h2, .hero h1, .price-tier { font-style: italic; font-weight: 300; }
h1, h2 { letter-spacing: -0.01em; }

/* Mono, uppercase treatment for nav + labels + buttons (Source Code Pro). */
.nav-links a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.btn { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; font-size: 0.82rem; }
.section-label { font-family: 'Source Code Pro', monospace; }

/* Primary "Get Started" colour/hover are now defined once in the unified button
   block above (yellow fill, navy text). Nothing to re-declare here. */
.btn-consent { text-transform: uppercase; letter-spacing: 0.06em; }

/* Nav CTA = yellow outline button (brand guide website reference). Radius +
   focus inherit from the unified base; only the outline colour treatment is set
   here. Hover fills yellow with navy text. */
.nav-cta-get-started {
    background: transparent;
    color: var(--yellow) !important;
    border: 1px solid var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}
.nav-cta-get-started:hover { background: var(--yellow); color: var(--blue) !important; transform: translateY(-1px); box-shadow: none; }

/* Tertiary magenta accent - the "Most popular" badge. */
.price-badge { background: var(--magenta); color: var(--cream); }

/* Lavender links in prose / legal. */
.legal a { color: var(--lavender); }

/* ==========================================================================
   Sticky mobile CTA + email popup (lead capture, site-wide).
   ========================================================================== */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: none;
    align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(0, 26, 54, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(218, 195, 4, 0.4);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-btn {
    flex: 1; text-align: center;
    background: var(--yellow); color: var(--blue);
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.8rem; font-weight: 600;
    padding: 0.8rem 1rem; border-radius: var(--radius-sm);
}
.sticky-cta button {
    background: none; border: none; color: var(--ink-60);
    font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0.4rem;
}
@media (max-width: 760px) { .sticky-cta:not([hidden]) { display: flex; } }

.popup-overlay {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 17, 36, 0.72);
    opacity: 0; transition: opacity 0.25s ease;
}
.popup-overlay.show { opacity: 1; }
.popup-card {
    position: relative;
    max-width: 440px; width: 100%;
    background: var(--blue-alt);
    border: 1px solid var(--edge);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem 2rem;
    box-shadow: var(--shadow-overlay);
}
.popup-close {
    position: absolute; top: 0.6rem; right: 0.9rem;
    background: none; border: none; color: var(--ink-60);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.popup-eyebrow {
    font-family: 'Source Code Pro', monospace; text-transform: uppercase;
    letter-spacing: 0.16em; font-size: 0.68rem; color: var(--yellow); margin-bottom: 0.8rem;
}
.popup-card h3 {
    font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 300;
    font-size: 1.8rem; line-height: 1.05; color: var(--cream); margin-bottom: 0.5rem;
}
.popup-sub { color: var(--ink-60); font-size: 0.85rem; margin-bottom: 1.4rem; }
.popup-row { display: flex; gap: 0.5rem; }
.popup-row input {
    flex: 1; background: rgba(242, 236, 227, 0.06);
    border: 1px solid var(--edge); border-radius: var(--radius-sm);
    padding: 0.8rem 0.9rem; color: var(--cream);
    font-family: 'Source Code Pro', monospace; font-size: 0.85rem;
}
.popup-row input:focus { outline: none; border-color: var(--yellow); }
.popup-row button {
    background: var(--yellow); color: var(--blue); border: none; border-radius: var(--radius-sm);
    padding: 0 1.2rem; font-family: 'Source Code Pro', monospace;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
    font-weight: 600; cursor: pointer;
}
.popup-error { color: #e88; font-size: 0.78rem; margin-top: 0.7rem; }

/* ==========================================================================
   a11y + contrast polish (v2).
   ========================================================================== */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--yellow); color: var(--blue);
    padding: 0.7rem 1.1rem; border-radius: 0 0 4px 0;
    font-family: 'Source Code Pro', monospace; text-transform: uppercase;
    letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600;
}
.skip-link:focus { left: 0; }
#content:focus { outline: none; }
.popup-close, .sticky-cta button { min-width: 44px; min-height: 44px; }
/* Lift body-text contrast on the blue field; keep cream sections dark. */
p { color: var(--ink-72); }
.band-cream p, .band-cream li { color: rgba(0, 40, 80, 0.8); }
