/* ============================================
   Lungro — Public Marketing Pages
   "Hothouse Ledger"
   Botanical meets printed accounting ledger:
   cream paper, ink-pine shells, leaf-lime accent,
   ochre for recovered money. Schibsted Grotesk
   headlines, Bodoni Moda italic accents and the
   brand mark, Spline Sans Mono for every numeral.
   Ruled paper, hairline entries, one orchestrated
   hero reveal. Still a SaaS tool.
   ============================================ */

/* ===== LEDGER TOKENS (public pages only) ===== */
:root {
    /* Type — swap away from Inter/Fraunces */
    --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-brand: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Paper & ink */
    --paper: #f3eee2;
    --paper-deep: #ece4d3;
    --surface: #fffdf6;
    --mist-50: #f3eee2;
    --mist-100: #ece4d3;
    --bg-subtle: #f3eee2;
    --text-1: #1f2a24;
    --text-2: #4a544c;
    --text-3: #6a665a;
    --border: #e4ddca;
    --border-strong: #d3c9b2;
    --primary-bg: #f1ecdf;

    /* Accents — leaf is THE accent, ochre is money */
    --leaf-300: #d3f29a;
    --leaf-400: #b8e663;
    --leaf-500: #9ed54a;
    --leaf-ink: #0b2a1f;
    --ochre-300: #e2934f;
    --ochre-500: #9d4c17;
    --ochre-soft: rgba(157, 76, 23, 0.13);

    --radius-card: 14px;
    --radius-tile: 10px;
    --hero-lead: rgba(238, 247, 241, 0.85);
    --rule-line: repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 42, 36, 0.05) 27px 28px);
    --rule-line-soft: repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 42, 36, 0.032) 27px 28px);
}

/* ===== PAPER & GRAIN ===== */
body {
    background-color: var(--paper);
}
/* Film grain over the whole page — printed, not flat */
body::before {
    content: '';
    position: fixed; inset: 0;
    z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.035;
}

/* ===== TYPE UTILITIES ===== */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num-ochre { color: var(--ochre-500); }

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(7, 30, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    transition: var(--trans);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(7, 30, 23, 0.98);
    border-bottom-color: var(--line-dark);
}
.navbar-brand {
    font-family: var(--font-brand);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    transition: var(--trans);
}
.navbar-brand .brand-g { position: relative; display: inline-block; }
.navbar-brand .brand-g::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(80% + 0.02em);
    transform: translateX(-50%);
    width: 0.5em;
    height: 0.4em;
    background: var(--leaf-400);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.navbar-brand:hover { color: #fff; }

.navbar .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark-muted);
    transition: var(--trans);
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    position: relative;
}
/* Underline sweep */
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
    height: 1px;
    background: var(--leaf-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus { color: #fff; }
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .show > .nav-link { color: var(--leaf-400); font-weight: 600; }

.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(184, 230, 99, 0.35); }
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Nav details */
.nav-chevron { font-size: 0.65rem; opacity: 0.6; }
.nav-dropdown-menu { min-width: 200px; }
.dropdown-icon { width: 16px; text-align: center; }

/* ===== PUBLIC BUTTONS =====
   One system: pill radius, leaf primary, sheen sweep,
   consistent hover lift + visible focus on dark shells. */
.btn-primary-custom,
.btn-hero, .btn-cta, .btn-outline-hero,
.btn-pricing, .btn-pricing-outline,
.btn-lead-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.8rem 1.6rem;
    transition: var(--trans);
    cursor: pointer;
}
.btn-hero:hover, .btn-cta:hover, .btn-pricing:hover,
.btn-lead-primary:hover { transform: translateY(-1px); }
.btn-hero:active, .btn-cta:active, .btn-pricing:active,
.btn-lead-primary:active, .btn-primary-custom:active,
.btn-outline-hero:active, .btn-pricing-outline:active {
    transform: translateY(1px) scale(0.98);
    transition-duration: 0.05s;
}

/* Text link with leaf underline sweep (hero secondary action) */
.cta-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.8rem 0.25rem;
    position: relative;
    transition: var(--trans);
}
.cta-text-link::after {
    content: '';
    position: absolute;
    left: 0.25rem; right: 0.25rem; bottom: 0.4rem;
    height: 1px;
    background: var(--leaf-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.cta-text-link:hover { color: var(--leaf-400); }
.cta-text-link:hover::after { transform: scaleX(1); }
.cta-text-link i { font-size: 0.75rem; color: var(--leaf-400); transition: transform 0.2s var(--ease); }
.cta-text-link:hover i { transform: translateX(3px); }

/* Sheen sweep on the primary actions */
.btn-hero, .btn-cta, .btn-lead-primary, .btn-pricing, .btn-primary-custom {
    position: relative;
    overflow: hidden;
}
.btn-hero::after, .btn-cta::after, .btn-lead-primary::after,
.btn-pricing::after, .btn-primary-custom::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-220%) skewX(-20deg);
    transition: transform 0.55s var(--ease);
    pointer-events: none;
}
.btn-hero:hover::after, .btn-cta:hover::after, .btn-lead-primary:hover::after,
.btn-pricing:hover::after, .btn-primary-custom:hover::after { transform: translateX(420%) skewX(-20deg); }

.btn-primary-custom {
    background: var(--leaf-400);
    border-color: var(--leaf-400);
    color: var(--leaf-ink);
    padding: 0.55rem 1.3rem;
    font-size: 0.875rem;
}
.btn-primary-custom:hover { background: var(--leaf-300); border-color: var(--leaf-300); color: var(--leaf-ink); transform: translateY(-1px); }

.btn-hero, .btn-cta, .btn-lead-primary {
    background: var(--leaf-400);
    border-color: var(--leaf-400);
    color: var(--leaf-ink);
}
.btn-hero:hover, .btn-cta:hover, .btn-lead-primary:hover {
    background: var(--leaf-300); border-color: var(--leaf-300); color: var(--leaf-ink);
}

.btn-outline-hero {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
    background: transparent;
    font-weight: 500;
}
.btn-outline-hero:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); color: #fff; }

.btn-pricing { background: var(--leaf-400); border-color: var(--leaf-400); color: var(--leaf-ink); }
.btn-pricing:hover { background: var(--leaf-300); border-color: var(--leaf-300); color: var(--leaf-ink); }
.btn-pricing-outline { border-color: var(--border-strong); color: var(--pine-700); background: transparent; font-weight: 500; }
.btn-pricing-outline:hover { background: rgba(27, 77, 62, 0.05); border-color: var(--pine-700); color: var(--pine-700); }

/* Focus must stay visible on the dark pine shells */
.navbar :focus-visible, .hero :focus-visible,
.proof-cta :focus-visible, .cta-section :focus-visible,
.footer :focus-visible { outline-color: var(--leaf-400); }

/* ===== AUTHENTICATED USER NAV ===== */
.btn-user-nav {
    background: transparent;
    border: 1px solid var(--line-dark);
    color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: var(--radius-pill);
    transition: var(--trans); cursor: pointer;
    font-weight: 500; font-size: 0.875rem;
}
.btn-user-nav:hover,
.btn-user-nav[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.user-avatar-sm {
    width: 28px; height: 28px;
    background: var(--leaf-400); color: var(--leaf-ink);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.75rem; flex-shrink: 0;
}
.user-name-sm {
    font-weight: 500; font-size: 0.875rem; color: var(--text-dark);
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-user-nav:hover .user-name-sm,
.btn-user-nav[aria-expanded="true"] .user-name-sm { color: #fff; }

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    background: var(--surface);
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
    margin-top: 0.5rem !important;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; font-weight: 400;
    color: var(--text-1);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover { background-color: var(--bg-subtle); color: var(--primary); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger:hover { background-color: var(--danger-bg); color: var(--danger); }
.dropdown-divider { border-color: var(--border); margin: 0.5rem 0; opacity: 1; }

/* ===== FOOTER ===== */
.footer {
    background: var(--pine-950);
    border-top: 1px solid var(--line-dark);
    color: var(--text-dark-muted);
    padding: 3.5rem 0 2rem;
}
.footer-heading {
    font-family: var(--font-brand);
    font-weight: 600; margin-bottom: 1.25rem;
    color: #fff; font-size: 1.15rem; letter-spacing: -0.01em; text-transform: none;
}
.footer-heading .brand-g { position: relative; display: inline-block; }
.footer-heading .brand-g::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(88% + 0.02em);
    transform: translateX(-50%);
    width: 0.5em;
    height: 0.4em;
    background: var(--leaf-400);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.footer-text { color: var(--text-dark-muted); font-size: 0.875rem; line-height: 1.6; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-link { color: var(--text-dark-muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; font-size: 0.875rem; transition: var(--trans); }
.footer-link:hover { color: var(--leaf-400); text-decoration: underline; }
.footer-divider { background-color: var(--line-dark); margin: 2rem 0 1.5rem; border: none; height: 1px; }
.footer-copyright { color: rgba(230, 240, 235, 0.65); font-size: 0.8rem; font-family: var(--font-mono); }

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal-link {
    color: var(--text-dark-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-size: 0.8rem;
    transition: var(--trans);
}
.footer-legal-link:hover { color: var(--leaf-400); text-decoration: underline; }

/* ===== EYEBROWS & SECTION TITLES =====
   Ledger-entry eyebrows (mono, tracked) above a
   Bodoni display heading. No competing treatments. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ochre-500);
    margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--pine-950);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.text-center .section-title { text-align: center; }
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-2);
    margin-bottom: 3.5rem;
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HERO ===== */
.hero {
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(184, 230, 99, 0.12), transparent 60%),
        linear-gradient(180deg, var(--pine-900) 0%, var(--pine-950) 100%);
    color: var(--text-dark); padding: 88px 0 72px; text-align: left;
    position: relative; overflow: hidden; border-bottom: 1px solid var(--line-dark);
}
/* Botanical watermark — the leaf mark, barely there */
.hero::before {
    content: '';
    position: absolute;
    left: -140px; bottom: -160px;
    width: 480px; height: 480px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 6 C 92 28, 102 72, 60 114 C 18 72, 28 28, 60 6 Z' fill='%23b8e663' opacity='0.05'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
/* Faint ruled grid across the dark shell */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.04) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.028) 39px 40px);
    pointer-events: none;
}
.hero h1 {
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 3.9rem);
    font-weight: 600;
    line-height: 1.09;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.hero h1 .hl { font-family: var(--font-brand); font-style: italic; color: var(--leaf-400); }
.section-title .hl { font-family: var(--font-brand); font-style: italic; line-height: 1.55; }
.hero .lead {
    font-size: 1.125rem;
    color: var(--hero-lead);
    max-width: 34rem;
    margin: 0 0 2.25rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ===== HERO ENTRANCE (one orchestrated moment) ===== */
@keyframes rise {
    from { opacity: 0; transform: translateY(28px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes rise-mockup {
    from { opacity: 0; transform: translateY(48px) rotateX(10deg) scale(0.97); }
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.hero h1,
.hero .lead,
.hero .d-flex,
.hero-visual-wrapper {
    animation: rise 0.85s cubic-bezier(0.22, 0.61, 0.21, 1) both;
}
.hero h1 { animation-delay: 0.12s; }
.hero .lead { animation-delay: 0.22s; }
.hero .d-flex { animation-delay: 0.32s; }
.hero-visual-wrapper { perspective: 1200px; animation-delay: 0.42s; }
.dashboard-mockup {
    animation: rise-mockup 0.9s cubic-bezier(0.22, 0.61, 0.21, 1) 0.42s both;
}
.mockup-float {
    animation: rise 0.7s var(--ease) 0.7s both,
               drift 5.5s ease-in-out 1.6s infinite;
}

/* ===== DASHBOARD MOCKUP — the printed invoice ===== */
.dashboard-mockup {
    position: relative; width: 100%; max-width: 520px; background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-card);
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
    color: var(--text-1); text-align: left;
}
.mockup-brandbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 10px; border-bottom: 1px solid var(--border);
}
.mockup-brand {
    font-family: var(--font-brand); font-weight: 600; font-size: 0.85rem;
    color: var(--pine-700); letter-spacing: -0.01em;
}
.mockup-brand .brand-g { position: relative; display: inline-block; }
.mockup-brand .brand-g::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    background: var(--leaf-400); width: 0.5em; height: 0.4em; bottom: calc(80% + 0.02em);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mockup-chip { font-size: 0.65rem; font-weight: 600; background: rgba(158, 213, 74, 0.18); color: var(--pine-700); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.mockup-chip.overdue { background: var(--ochre-soft); color: var(--ochre-500); }
.mockup-chart { border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--surface); }
.mockup-chart svg { display: block; width: 100%; height: 70px; }
.mockup-chart .bar { fill: var(--pine-700); opacity: 0.85; }
.mockup-chart .bar.today { fill: var(--leaf-500); }
.mockup-hero {
    display: flex; flex-direction: column; gap: 3px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border-strong);
}
.mockup-hero-top { display: flex; align-items: center; justify-content: space-between; }
.ms-label {
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
}
.mockup-hero-amount { font-size: 1.35rem; font-weight: 500; color: var(--pine-950); letter-spacing: -0.03em; line-height: 1.1; }
.mockup-hero-sub { font-size: 0.65rem; color: var(--text-2); }
.mockup-hero-cta {
    align-self: flex-start; margin-top: 7px; font-size: 0.62rem; font-weight: 600;
    color: var(--leaf-ink); background: var(--leaf-400); padding: 4px 9px; border-radius: 6px;
    display: inline-flex; gap: 6px; align-items: center;
}
.mockup-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mkpi { border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; }
.mkpi-label {
    font-family: var(--font-mono); font-size: 0.55rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-3);
}
.mkpi-value { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; color: var(--text-1); }
.mkpi-unit { font-size: 0.6rem; color: var(--text-3); margin-left: 2px; }
.mkpi-sub { font-size: 0.58rem; color: var(--text-2); }
.mkpi-sub.overdue { color: var(--ochre-500); font-weight: 600; }
.mockup-chart-row { display: flex; gap: 8px; }
.mockup-donut {
    width: 92px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.mockup-donut svg { width: 46px; height: 46px; }
.donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 0.5rem; font-family: var(--font-mono); color: var(--text-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 3px; }
.dot-ready { background: var(--pine-700); }
.dot-invoiced { background: var(--leaf-500); }
.dot-awaiting { background: var(--ochre-500); }
.dot-paid { background: var(--text-3); }
.mockup-list { display: flex; flex-direction: column; gap: 6px; }
.mockup-row { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--text-2); background: var(--mist-50); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.mockup-row > i { color: var(--pine-600); font-size: 0.65rem; width: 12px; text-align: center; }
.mockup-row .mono { color: var(--text-1); font-weight: 500; margin-left: 2px; }
.mockup-row .mockup-chip { margin-left: auto; }
.mockup-float {
    position: absolute; top: -14px; right: 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.25);
    padding: 6px 10px; font-size: 0.68rem; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px;
}
.mockup-float i { color: var(--leaf-500); }
.mockup-float .mono { font-weight: 500; }

/* ===== SECTIONS — ruled ledger paper ===== */
.mission-section, .values-section, .features-section, .pricing-section {
    padding: 96px 0;
    background-color: var(--paper);
    background-image: var(--rule-line);
}
.story-section, .stats-section, .faq-section {
    padding: 96px 0;
    background-color: var(--surface);
    background-image: var(--rule-line-soft);
}

/* ===== FEATURE CARDS — ledger rows with index ===== */
.feature-card, .value-card {
    text-align: left; padding: 1.75rem 0.5rem 0; background: transparent; border: 0;
    border-top: 1px solid var(--border-strong);
    height: 100%; position: relative;
    transition: transform 0.2s var(--ease);
}
.feature-card:hover, .value-card:hover { transform: translateY(-3px); }
.feature-index {
    position: absolute; top: 1.1rem; right: 0.5rem;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
    color: var(--text-2);
}
.feature-card p, .value-card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.65; margin: 0; }
.feature-icon-wrapper, .value-icon-wrapper {
    width: 44px; height: 44px; background: rgba(158, 213, 74, 0.18);
    border-radius: var(--radius-tile); display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.25rem; color: var(--pine-700); font-size: 1.1rem;
    border: 1px solid rgba(158, 213, 74, 0.35);
}
.feature-card h3, .value-card h3 {
    font-weight: 600; font-size: 1.125rem;
    letter-spacing: -0.01em; color: var(--pine-950); margin-bottom: 0.5rem;
}
.story-section p { color: var(--text-2); line-height: 1.7; margin-bottom: 1.1rem; }
.story-section a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--trans);
}
.story-section a:hover { color: var(--primary-dark); }
.story-lead {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pine-950);
}

.proof-cta {
    background: linear-gradient(180deg, var(--pine-900), var(--pine-950));
    color: var(--text-dark); padding: 80px 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid color-mix(in srgb, var(--leaf-400) 35%, transparent);
    position: relative; overflow: hidden;
}
.proof-cta::before {
    content: '';
    position: absolute; right: -120px; top: -120px;
    width: 360px; height: 360px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 6 C 92 28, 102 72, 60 114 C 18 72, 28 28, 60 6 Z' fill='%23b8e663' opacity='0.05'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
.proof-cta::after {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.035) 39px 40px);
    pointer-events: none;
}
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); margin-bottom: 3.5rem; }
.stat-number {
    font-family: var(--font-mono); font-size: 2.75rem; font-weight: 500;
    color: var(--leaf-400); letter-spacing: -0.04em; margin-bottom: 0.25rem; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-item p {
    font-family: var(--font-mono); color: var(--text-dark-muted); font-weight: 500;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2, .cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff; margin-bottom: 1rem; line-height: 1.15;
}
.cta-inner p, .cta-section p { color: var(--text-dark-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.text-muted-light { color: var(--text-dark-muted); font-size: 0.85rem; margin: 1rem 0 0; }
.cta-section { padding: 96px 0; background: var(--pine-950); color: var(--text-dark); text-align: center; }

@media (min-width: 992px) {
    .features-section .row { align-items: flex-start; }
    .feature-offset { margin-top: 2.5rem; }
    .story-section .col-lg-8, .faq-section .col-lg-8, .hero-about .col-lg-8 { max-width: 66ch; }
}

/* ===== PRICING ===== */
.pricing-card {
    text-align: left; padding: 1.75rem; border-radius: var(--radius-card);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--trans); height: 100%; display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--border-strong); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-bottom: 3rem; }
.billing-toggle .toggle-label { font-weight: 500; color: var(--text-2); font-size: 0.9375rem; }
.billing-toggle .toggle-label.active { color: var(--pine-950); font-weight: 600; }
.billing-switch { width: 44px; height: 24px; background-color: var(--border-strong); border: 2px solid transparent; border-radius: var(--radius-pill); position: relative; cursor: pointer; transition: background-color 0.2s ease-in-out; }
.billing-switch[aria-checked="true"] { background-color: var(--pine-700); }
.billing-switch:focus-visible { outline: none; border-color: var(--pine-700); box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.2); }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background-color: var(--surface); border-radius: 50%; transition: transform 0.2s ease-in-out; }
.billing-switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }
.save-badge { background: var(--ochre-soft); color: var(--ochre-500); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; margin-left: 4px; }
.pricing-card.popular { border: 1px solid var(--pine-700); position: relative; box-shadow: 0 24px 60px -18px rgba(7, 30, 23, 0.55); padding-top: 3.75rem; transform: scale(1.02); z-index: 1; }
.popular-badge { position: absolute; top: 1.15rem; left: 50%; transform: translateX(-50%); background: var(--leaf-400); color: var(--leaf-ink); padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(184, 230, 99, 0.6); }
.plan-name {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    color: var(--ochre-500); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem;
}
.plan-price {
    font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500;
    color: var(--pine-950); letter-spacing: -0.03em; margin-bottom: 0.25rem; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.plan-price .currency { font-size: 1.25rem; font-weight: 400; color: var(--text-2); }
.plan-price .period { font-size: 0.875rem; font-weight: 400; color: var(--text-2); font-family: var(--font-display); }
.plan-description { color: var(--text-2); margin: 0.75rem 0 1.25rem; font-size: 0.875rem; line-height: 1.6; }
.plan-limits {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2);
    margin-bottom: 1.25rem; padding: 0.5rem 0.75rem;
    background: var(--mist-100); border: 1px solid var(--border); border-radius: 6px;
}
.features-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; text-align: left; flex: 1; }
.features-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--text-1); display: flex; align-items: center; gap: 10px; }
.features-list li:last-child { border-bottom: none; }
.features-list i { width: 18px; flex-shrink: 0; }
.features-list .fa-check { color: var(--pine-600); }
.features-list .fa-minus, .features-list .muted { color: var(--text-3); }

/* ===== FAQ ===== */
.faq-item { background: transparent; border: none; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { padding: 1.25rem 0.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--pine-950); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.faq-question i:first-child { color: var(--pine-600); width: 20px; text-align: center; }
.faq-question .transition-icon { color: var(--text-3); font-size: 0.8rem; transition: transform 0.3s ease-in-out; margin-left: auto; }
.faq-question[aria-expanded="true"] .transition-icon { transform: rotate(180deg); }
.faq-answer { color: var(--text-2); font-size: 0.875rem; padding: 0 0.25rem 1.25rem 3.25rem; margin: 0; line-height: 1.7; }

/* ===== NAVBAR AUTH LINKS ===== */
.nav-link-auth {
    font-weight: 500;
    color: var(--text-dark-muted);
    transition: var(--trans);
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    text-decoration: none;
}
.nav-link-auth:hover,
.nav-link-auth:focus { color: #fff; }

/* ===== SCROLL REVEALS =====
   Elements start visible; JS adds .js to <html>
   and the .in-view class as they enter the viewport. */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .pricing-card.popular { transform: none; }
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid var(--line-dark);
        margin-top: 0.75rem;
    }
    .navbar-nav .nav-item { margin: 0.25rem 0; }
    .btn-primary-custom, .btn-user-nav, .nav-link-auth {
        width: 100%; text-align: center; margin-top: 0.5rem; justify-content: center;
    }
    .user-name-sm { display: inline !important; }
    .navbar-auth {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line-dark);
    }
    .hero { padding: 72px 0 64px; text-align: center; }
    .hero .lead { margin: 0 auto 2.25rem; text-align: center; }
    .hero .d-flex { justify-content: center; }
    .dashboard-mockup { max-width: 420px; margin: 3rem auto 0; }
    .mockup-chart-row { gap: 6px; }
    .mockup-donut { width: 84px; }
    .feature-card, .value-card, .pricing-card { text-align: center; }
    .feature-index { position: static; display: block; margin-bottom: 0.75rem; }
    .feature-icon-wrapper, .value-icon-wrapper { margin: 0 auto 1.25rem; }
    .features-list { text-align: left; }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 2.25rem; }
    .stat-number { font-size: 2rem; }
    .proof-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-title { font-size: 1.75rem; }
    .btn-hero, .btn-outline-hero, .btn-cta, .btn-pricing, .btn-pricing-outline { width: 100%; text-align: center; }
    .faq-answer { padding-left: 0.25rem; }
    .mockup-float { right: 10px; }
    .mockup-chart-row { flex-direction: column; }
    .mockup-donut { width: 100%; flex-direction: row; justify-content: center; }
    .footer-bottom-row { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-legal-links { justify-content: center; gap: 1rem; }
    .footer-legal-link { font-size: 0.75rem; }
}