/* ============================================================
   marketing.css — Found & Called Main Site ("The Ledger")
   Warm cream/amber editorial design system
   ============================================================ */

/* ============================================================
   1. Reset + :root Design Tokens
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

:root {
    --warm-cream: #FDFBF7;
    --warm-paper: #F5F0E8;
    --warm-dark: #1a1612;
    --warm-darker: #141110;
    --amber: #B45309;
    --amber-light: #D4A76A;
    --amber-bg: #FDF6EC;
    --stone-500: #78716C;
    --stone-400: #A8A29E;
    --stone-300: #D6D3D1;
    --stone-200: #E7E5E4;
    --stone-100: #F5F5F4;
    --green: #16A34A;
    --green-bg: #F0FDF4;
    --gold-star: #FBBF24;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-italic: 'Fraunces', Georgia, serif;
}

/* ============================================================
   2. Body
   ============================================================ */
body {
    background: var(--warm-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    color: var(--warm-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================================
   3. Utility Classes
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100;
    padding: 12px 24px;
    background: var(--warm-dark);
    color: var(--warm-cream);
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================================
   4. Top Rule
   ============================================================ */
.top-rule {
    height: 3px;
    background: var(--warm-dark);
}

/* ============================================================
   5. Navigation
   ============================================================ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--stone-200);
    position: sticky;
    top: 0;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.nav-logo span:first-child {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--warm-dark);
    font-weight: 600;
}

.nav-logo span:last-child {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--stone-500);
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    color: var(--stone-500);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--warm-dark);
}

.nav-cta {
    font-size: 12px;
    padding: 10px 22px;
    background: var(--warm-dark);
    color: var(--warm-cream);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--stone-200);
}

.nav-phone {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--warm-dark);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.nav-phone:hover {
    color: var(--amber);
}

.nav-email {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--stone-500);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.nav-email:hover {
    color: var(--amber);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone-500);
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-toggle:hover {
    color: var(--warm-dark);
    background: var(--warm-paper);
}

/* Mobile nav right group (phone/email/hamburger) */
.mobile-nav-right {
    display: none;
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
    padding: 56px 40px 0;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--stone-300);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1.05;
    color: var(--warm-dark);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--amber);
    display: block;
    margin-top: 0.15em;
}

.hero-body {
    font-size: 16px;
    color: #57534E;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 14px 28px;
    background: var(--amber);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2);
}

.btn-ghost {
    font-size: 13px;
    color: var(--stone-500);
}

/* ============================================================
   7. Ledger Card
   ============================================================ */
.ledger {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ledger-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--stone-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ledger-header span {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-500);
}

.ledger-row {
    padding: 20px 24px;
    border-bottom: 1px solid var(--stone-100);
}

.ledger-row:last-child {
    border-bottom: none;
}

.ledger-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.ledger-client {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--stone-500);
    font-weight: 500;
}

.ledger-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.ledger-stat {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--warm-dark);
    font-weight: 600;
    line-height: 1;
}

.ledger-stat small {
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--stone-500);
    font-weight: 400;
    margin-left: 4px;
}

.ledger-bar {
    height: 3px;
    background: var(--stone-100);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.ledger-bar-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 2px;
}

/* ============================================================
   8. Stats Bar
   ============================================================ */
.stats-bar {
    display: flex;
    margin: 40px 40px 0;
    border-top: 2px solid var(--warm-dark);
}

.stat-cell {
    flex: 1;
    padding: 20px 24px;
    border-right: 1px solid var(--stone-200);
}

.stat-cell:first-child {
    padding-left: 0;
}

.stat-cell:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--warm-dark);
    font-weight: 700;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--stone-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.bottom-rule {
    height: 3px;
    background: var(--warm-dark);
    margin-top: 20px;
}

/* ============================================================
   9. Dark Sections
   ============================================================ */
.dark-section {
    background: var(--warm-dark);
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.dark-inner {
    position: relative;
    z-index: 2;
    padding: 72px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.dark-section .section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber-light);
    margin-bottom: 16px;
}

.dark-section h2 {
    font-family: var(--font-display);
    font-size: 40px;
    color: #F5F0E8;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    line-height: 1.1;
}

.dark-section h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--amber-light);
}

.dark-section p.section-desc {
    font-size: 15px;
    color: #8C857A;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

/* ============================================================
   10. Steps / How It Works
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: rgba(245, 240, 232, 0.06);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 14px;
    padding: 32px 28px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: #F5F0E8;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: #9A9185;
    line-height: 1.65;
}

/* ============================================================
   11. Light Sections
   ============================================================ */
.light-section {
    padding: 72px 40px;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.light-section .section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber);
    margin-bottom: 16px;
}

.light-section h2 {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--warm-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.light-section > p {
    font-size: 15px;
    color: var(--stone-500);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

/* ============================================================
   12. Industry Cards
   ============================================================ */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.industry-card {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(180, 83, 9, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.industry-card-inner {
    padding: 28px 24px;
}

.industry-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.industry-icon {
    width: 48px;
    height: 48px;
    background: var(--amber-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
}

.industry-card:hover .industry-icon {
    background: var(--amber);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2);
}

.industry-icon svg {
    stroke: var(--amber);
    transition: stroke 0.3s;
}

.industry-card:hover .industry-icon svg {
    stroke: white;
}

.industry-stat {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-500);
    text-align: right;
    line-height: 1.5;
}

.industry-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--warm-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2px;
}

.industry-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--warm-dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.industry-card p {
    font-size: 14px;
    color: var(--stone-500);
    line-height: 1.55;
    margin-bottom: 14px;
}

.industry-keyword {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--amber);
    letter-spacing: 0.04em;
    padding: 5px 10px;
    background: var(--amber-bg);
    border-radius: 6px;
    transition: background 0.2s;
}

.industry-card:hover .industry-keyword {
    background: rgba(180, 83, 9, 0.12);
}

.industry-arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s;
}

.industry-card:hover .industry-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   13. Pricing
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: rgba(245, 240, 232, 0.06);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
}

.pricing-card.featured {
    background: rgba(245, 240, 232, 0.08);
    border-color: var(--amber-light);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--amber-light);
    color: var(--warm-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9A9185;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 42px;
    color: #F5F0E8;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 14px;
    font-family: var(--font-body);
    color: #6B645A;
    font-weight: 400;
}

.pricing-desc {
    font-size: 13px;
    color: #8C857A;
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 13px;
    color: #A8A29E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--amber-light);
    border-radius: 1px;
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.pricing-btn:hover {
    transform: translateY(-1px);
}

.pricing-btn-outline {
    border: 1px solid rgba(245, 240, 232, 0.15);
    color: #F5F0E8;
    background: transparent;
}

.pricing-btn-outline:hover {
    border-color: rgba(245, 240, 232, 0.3);
}

.pricing-btn-gold {
    background: var(--amber-light);
    color: var(--warm-dark);
}

.pricing-btn-gold:hover {
    box-shadow: 0 4px 16px rgba(212, 167, 106, 0.3);
}

/* ============================================================
   14. Testimonials
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    padding: 32px 28px;
}

.testimonial-stars {
    color: var(--gold-star);
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--warm-dark);
    font-weight: 500;
    line-height: 1.45;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--stone-500);
    font-weight: 500;
}

.testimonial-author span {
    color: var(--stone-500);
    font-weight: 400;
}

/* ============================================================
   15. CTA Banner
   ============================================================ */
.cta-banner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 15px;
    color: #8C857A;
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-banner-actions .cta-or-text {
    font-size: 13px;
    color: #6B645A;
}

/* CTA banner form (HTMX audit form) */
.cta-banner-actions form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-banner-actions form input[type="text"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(245, 240, 232, 0.08);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 8px;
    color: #F5F0E8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 180px;
}

.cta-banner-actions form input[type="text"]::placeholder {
    color: #6B645A;
}

.cta-banner-actions form input[type="text"]:focus {
    border-color: var(--amber-light);
    box-shadow: 0 0 0 3px rgba(212, 167, 106, 0.15);
}

.cta-banner-actions form button[type="submit"] {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 28px;
    background: var(--amber-light);
    color: var(--warm-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.cta-banner-actions form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 167, 106, 0.3);
}

.btn-gold {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 16px 32px;
    background: var(--amber-light);
    color: var(--warm-dark);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 167, 106, 0.3);
}

/* HTMX indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-flex !important;
}

.htmx-request button[type="submit"] {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================
   16. Footer
   ============================================================ */
.footer {
    background: var(--warm-darker);
    padding: 48px 40px 32px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 20px;
    color: #F5F0E8;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 14px;
    color: #9A9185;
    line-height: 1.6;
    max-width: 280px;
}

.footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9A9185;
    margin-bottom: 16px;
}

.footer a {
    display: block;
    font-size: 13px;
    color: #A8A29E;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom span {
    font-size: 12px;
    color: #8C857A;
}

.footer-bottom a {
    display: inline;
    margin: 0 12px;
    font-size: 11px;
}

/* ============================================================
   17. Mobile Nav Drawer
   ============================================================ */
#nav-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100dvh;
    width: min(320px, 85vw);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    background: var(--warm-cream);
    border-left: 1px solid var(--stone-200);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

#nav-drawer.open {
    transform: translateX(0);
}

/* Backdrop overlay */
#nav-drawer::before {
    content: '';
    position: fixed;
    inset: 0;
    right: min(320px, 85vw);
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#nav-drawer.open::before {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

#nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone-500);
    padding: 8px;
    border-radius: 8px;
    font-size: 20px;
    transition: color 0.2s;
}

#nav-close:hover {
    color: var(--warm-dark);
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-drawer-links a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--stone-500);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-drawer-links a:hover {
    color: var(--warm-dark);
    background: var(--warm-paper);
}

.nav-drawer-links .nav-drawer-cta {
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--warm-dark);
    color: var(--warm-cream);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.nav-drawer-links .nav-drawer-cta:hover {
    background: var(--warm-darker);
    color: var(--warm-cream);
}

.nav-drawer-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--stone-200);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-drawer-contact a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--stone-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   18. Mobile Sticky Bottom Bar
   ============================================================ */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--warm-cream);
    border-top: 1px solid var(--stone-200);
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
}

.mobile-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    border: none;
    cursor: pointer;
}

.mobile-bar-call {
    background: var(--amber);
    color: white;
}

.mobile-bar-email {
    background: var(--warm-dark);
    color: var(--warm-cream);
}

/* ============================================================
   19. Animations
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered children */
.fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.15s; }
.fade-in-up:nth-child(4) { transition-delay: 0.2s; }
.fade-in-up:nth-child(5) { transition-delay: 0.25s; }
.fade-in-up:nth-child(6) { transition-delay: 0.3s; }

/* Hover lift (for cards, buttons) */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* HTMX spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.htmx-indicator svg,
.htmx-indicator .spinner {
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   20. Accessibility
   ============================================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-gold:focus-visible,
.nav-cta:focus-visible {
    outline-color: var(--amber);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.2);
}

.nav-link:focus-visible {
    outline-offset: 4px;
}

.nav-drawer-links a:focus-visible {
    outline-offset: 0;
    background: var(--warm-paper);
}

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

    .fade-in-up {
        opacity: 1;
        transform: none;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   21. Responsive
   ============================================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .dark-section h2,
    .light-section h2 {
        font-size: 34px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card {
        padding: 32px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .nav {
        padding: 16px 24px;
    }

    .hero {
        padding: 40px 24px 0;
    }

    .stats-bar {
        margin: 32px 24px 0;
    }

    .dark-inner {
        padding: 56px 24px;
    }

    .light-section {
        padding: 56px 24px;
    }

    .footer {
        padding: 40px 24px 28px;
    }

    .container {
        padding: 0 24px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Typography scale down */
    .hero h1 {
        font-size: 34px;
    }

    .dark-section h2,
    .light-section h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .ledger-stat {
        font-size: 24px;
    }

    .stat-number {
        font-size: 22px;
    }

    .pricing-price {
        font-size: 36px;
    }

    .step h3 {
        font-size: 18px;
    }

    /* Hero stacks vertically */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-body {
        max-width: none;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    /* Stats bar vertical */
    .stats-bar {
        flex-direction: column;
        margin: 24px 16px 0;
        border-top: 2px solid var(--warm-dark);
    }

    .stat-cell {
        padding: 16px 0;
        border-right: none;
        border-bottom: 1px solid var(--stone-200);
    }

    .stat-cell:last-child {
        border-bottom: none;
    }

    .stat-cell:not(:first-child) {
        padding-left: 0;
    }

    /* Single column grids */
    .steps {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Nav collapses */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Spacing adjustments */
    .nav {
        padding: 14px 16px;
        position: static;
        background: var(--warm-cream);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero {
        padding: 32px 16px 0;
    }

    .dark-inner {
        padding: 48px 16px;
    }

    .light-section {
        padding: 48px 16px;
    }

    .footer {
        padding: 36px 16px 24px;
    }

    .container {
        padding: 0 16px;
    }

    .light-section > p {
        max-width: none;
    }

    /* CTA banner form stacks */
    .cta-banner-actions {
        flex-direction: column;
    }

    .cta-banner-actions form {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner-actions form input[type="text"] {
        width: 100%;
        min-width: auto;
    }

    .cta-banner-actions form button[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-gold {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Mobile bottom bar visible */
    .mobile-bar {
        display: flex;
    }

    /* Bottom padding for mobile bar */
    .footer {
        padding-bottom: 80px;
    }

    /* Testimonials smaller text */
    .testimonial blockquote {
        font-size: 16px;
    }
}

/* --- Small mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .dark-section h2,
    .light-section h2 {
        font-size: 24px;
    }

    .nav-logo span:first-child {
        font-size: 18px;
    }
}

/* ============================================================
   Testimonial Variants & Disclaimer
   ============================================================ */
.testimonial-stat {
    background: var(--amber-bg);
    border-left: 3px solid var(--amber);
}

.results-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--stone-500);
    margin-top: 1.5rem;
    font-family: var(--font-body);
}

/* ============================================================
   Utilities + component glue (migrated from inline styles)
   ============================================================ */
.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.nav-drawer-cta .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
}

.ledger-stat .star-icon {
    color: var(--gold-star);
    font-size: 20px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    height: 1px;
    overflow: hidden;
}

#cta-result {
    margin-top: 20px;
}

.cta-noscript {
    margin-top: 16px;
    font-size: 13px;
    color: #9A9185;
}

.cta-noscript a {
    color: var(--amber-light);
    text-decoration: underline;
}

.cta-banner-sub a {
    color: var(--amber-light);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cta-spinner-svg {
    animation: spin 0.8s linear infinite;
}

#cta-spinner {
    display: none;
}

.htmx-request #cta-spinner {
    display: inline-flex;
}

.htmx-request .btn-gold > svg:last-child {
    display: none;
}
