/* =========================================
   RECOVO — styles.css
   Design language: "the financial ledger"
   Serif display (Fraunces) + grotesque body
   (Instrument Sans) + mono data (IBM Plex Mono)
   on warm green-cast paper with hairline rules.
   ========================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    /* Ink */
    --ink: #15211B;
    --ink-soft: #44524A;
    --ink-faint: #6E7C72;

    /* Paper */
    --paper: #F2F3E9;
    --paper-deep: #E9ECDB;
    --card: #FCFCF7;
    --white: #FFFFFF;

    /* Greens */
    --pine-950: #0E231A;
    --pine-900: #133023;
    --pine-800: #1A4231;
    --green: #1C6F4A;
    --green-deep: #145437;
    --green-bright: #4FC08D;
    --mint: #E0EAD9;

    /* Lines */
    --line: #D8DBC8;
    --line-strong: #B9BEa6;
    --line-dark: rgba(255, 255, 255, 0.14);

    /* Semantic */
    --brick: #B0492E;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Legacy aliases (kept so older references keep working) */
    --navy-900: #15211B;
    --green-500: #1C6F4A;
    --green-400: #4FC08D;
    --green-600: #145437;
    --bg-page: #F2F3E9;
    --gray-400: #6E7C72;
    --gray-500: #5A685F;
    --gray-600: #44524A;
    --gray-100: #E9ECDB;
    --gray-200: #D8DBC8;
    --gray-300: #B9BEA6;
    --red-500: #B0492E;
}

/* =========================================
   BASE
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    border-top: 6px solid var(--pine-950);
}

::selection {
    background: var(--green);
    color: var(--paper);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section[id] {
    scroll-margin-top: 32px;
}

/* =========================================
   SECTION LABELS  — "01 / The Problem"
   ========================================= */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green-deep);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-label[data-num]::before {
    content: attr(data-num);
    color: var(--ink-faint);
}

.section-label[data-num]::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--line-strong);
}

/* Centered variants */
.trust-inner .section-label,
.cta .section-label {
    justify-content: center;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

/* Legal pages: nav sits directly in .container, give it the same hairline */
body > .container > nav {
    border-bottom: 1px solid var(--line);
}

nav {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--pine-950);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 17px;
    height: 17px;
}

/* New brand mark (R + arc) */
.logo-mark {
    height: 34px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.footer-logo .logo-mark {
    height: 28px;
}

.nav-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    border-left: 1px solid var(--line-strong);
    padding-left: 14px;
    margin-left: 4px;
    font-weight: 400;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pine-950);
    color: var(--paper);
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--green-deep);
}

/* =========================================
   HERO — editorial split + ledger visual
   ========================================= */
.hero {
    padding: 88px 0 96px;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 35px,
        rgba(20, 49, 38, 0.05) 35px,
        rgba(20, 49, 38, 0.05) 36px
    );
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    color: var(--green-deep);
    padding: 7px 16px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.8vw, 3.9rem);
    font-weight: 560;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 26px;
    color: var(--ink);
}

.hero h1 .green,
.cta h2 .green {
    color: var(--green);
    font-style: italic;
    font-weight: 540;
}

.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 0 36px;
    line-height: 1.7;
}

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

/* Hero trust strip — ledger row */
.hero-trust {
    margin-top: 44px;
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-strong);
    padding-top: 18px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 500;
    padding-right: 22px;
    margin-right: 22px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex-shrink: 0;
}

/* ---- Hero visual: the recovered invoice ---- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 8px;
}

.ledger-card {
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.ledger-back {
    position: absolute;
    inset: 24px -14px 8px 38px;
    transform: rotate(2.4deg);
    background: var(--paper-deep);
    z-index: 0;
}

.ledger-front {
    z-index: 1;
    padding: 26px 28px 24px;
    box-shadow: 0 30px 50px -30px rgba(14, 35, 26, 0.35);
}

.ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.ledger-ref {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.ledger-chip {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid currentColor;
    color: var(--brick);
    text-decoration: line-through;
}

.ledger-rows {
    padding: 18px 0 4px;
}

.ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.ledger-row .bar {
    display: block;
    height: 8px;
    border-radius: 2px;
    background: var(--paper-deep);
}

.ledger-row .bar.w55 { width: 55%; }
.ledger-row .bar.w40 { width: 40%; }
.ledger-row .bar.w62 { width: 62%; }
.ledger-row .bar.w14 { width: 14%; }

.ledger-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ledger-total span {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
}

.ledger-total strong {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.ledger-log {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.log-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
}

.log-line i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-bright);
    flex-shrink: 0;
}

.log-line.log-paid {
    color: var(--green-deep);
    font-weight: 600;
}

.log-line.log-paid i {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(28, 111, 74, 0.18);
}

.ledger-stamp {
    position: absolute;
    top: 86px;
    right: -18px;
    transform: rotate(-9deg);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: var(--green);
    border: 2px solid var(--green);
    outline: 2px solid var(--green);
    outline-offset: 3px;
    padding: 8px 16px;
    border-radius: 3px;
    background: rgba(252, 252, 247, 0.85);
    text-transform: uppercase;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--green);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--green-deep);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
}

.btn-primary svg {
    transition: transform 0.2s;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--ink);
    padding: 14px 30px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

/* =========================================
   SHARED SECTION HEADINGS
   ========================================= */
.problem h2,
.how h2,
.compare h2,
.pricing h2,
.trust h2,
.faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 560;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin-bottom: 18px;
}

/* =========================================
   PROBLEM SECTION — dark pine ledger
   ========================================= */
.problem {
    padding: 96px 0;
    background: var(--pine-950);
    color: var(--paper);
}

.problem-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.problem .section-label {
    color: var(--green-bright);
}

.problem .section-label[data-num]::before {
    color: rgba(242, 243, 233, 0.4);
}

.problem .section-label[data-num]::after {
    background: var(--line-dark);
}

.problem h2 {
    margin-bottom: 56px;
    max-width: 640px;
}

.problem-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.problem-stat {
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
}

.problem-stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 560;
    letter-spacing: -0.01em;
    color: var(--green-bright);
    line-height: 1;
    margin-bottom: 14px;
}

.problem-stat-label {
    font-size: 0.95rem;
    color: rgba(242, 243, 233, 0.66);
    line-height: 1.55;
    max-width: 280px;
}

.problem-bottom {
    margin-top: 64px;
    padding: 26px 30px;
    border: 1px solid rgba(214, 106, 77, 0.35);
    border-left: 3px solid var(--brick);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(176, 73, 46, 0.07);
}

.problem-bottom-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(214, 106, 77, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-bottom-icon svg {
    width: 18px;
    height: 18px;
    color: #D6826A;
}

.problem-bottom p {
    font-size: 1rem;
    color: rgba(242, 243, 233, 0.82);
    line-height: 1.65;
}

.problem-bottom strong {
    color: var(--paper);
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how {
    padding: 104px 0;
}

.how-subtitle {
    font-size: 1.08rem;
    color: var(--ink-soft);
    margin-bottom: 60px;
    max-width: 560px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--card);
    overflow: hidden;
}

.step {
    padding: 40px 32px 44px;
    position: relative;
    border-right: 1px solid var(--line);
}

.step:last-child {
    border-right: none;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--green-deep);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    width: 44px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--paper);
}

.step h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.93rem;
    color: var(--ink-soft);
    line-height: 1.68;
}

.step-connector {
    display: none;
}

/* =========================================
   COMPARISON TABLE — rate sheet
   ========================================= */
.compare {
    padding: 104px 0;
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compare-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-subtitle {
    font-size: 1.08rem;
    color: var(--ink-soft);
    margin-bottom: 52px;
    max-width: 600px;
}

.compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    overflow: hidden;
    min-width: 700px;
}

.compare-table thead th {
    padding: 18px 24px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper);
}

.compare-table thead th:first-child {
    width: 22%;
}

.compare-table thead th.highlight-col {
    background: var(--pine-950);
    color: var(--paper);
}

.compare-table tbody td {
    padding: 18px 24px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.5;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody td:first-child {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    padding-top: 21px;
}

.compare-table tbody td.highlight-col {
    background: var(--mint);
    color: var(--ink);
    font-weight: 500;
    border-bottom-color: rgba(28, 111, 74, 0.18);
}

.compare-table tbody td.highlight-col strong {
    color: var(--green-deep);
}

.table-check {
    color: var(--green);
    font-weight: 700;
}

.table-x {
    color: var(--brick);
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
    padding: 104px 0;
}

.pricing-subtitle {
    font-size: 1.08rem;
    color: var(--ink-soft);
    margin-bottom: 60px;
    max-width: 560px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 860px;
}

.pricing-card {
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 44px 36px;
    position: relative;
    background: var(--card);
}

.pricing-card.featured {
    border-color: var(--pine-950);
    background: var(--pine-950);
    color: var(--paper);
    box-shadow: 0 32px 56px -32px rgba(14, 35, 26, 0.5);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 28px;
    background: var(--green);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.pricing-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.pricing-card.featured .pricing-card-title {
    color: var(--paper);
}

.pricing-card-desc {
    font-size: 0.9rem;
    color: var(--ink-faint);
    margin-bottom: 28px;
    line-height: 1.5;
}

.pricing-card.featured .pricing-card-desc {
    color: rgba(242, 243, 233, 0.6);
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 560;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-card.featured .pricing-amount {
    color: var(--green-bright);
}

.pricing-amount-sub {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-bottom: 30px;
}

.pricing-card.featured .pricing-amount-sub {
    color: rgba(242, 243, 233, 0.6);
}

.pricing-features {
    list-style: none;
    margin-bottom: 34px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.pricing-card.featured .pricing-features {
    border-top-color: var(--line-dark);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 8px 0;
    font-size: 0.91rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.pricing-card.featured .pricing-features li {
    color: rgba(242, 243, 233, 0.82);
}

.pricing-features li svg {
    width: 17px;
    height: 17px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-card.featured .pricing-features li svg {
    color: var(--green-bright);
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* =========================================
   TRUST / COMPLIANCE
   ========================================= */
.trust {
    padding: 96px 0;
    background: var(--pine-950);
    color: var(--paper);
}

.trust-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.trust .section-label {
    color: var(--green-bright);
}

.trust .section-label[data-num]::before {
    color: rgba(242, 243, 233, 0.4);
}

.trust .section-label[data-num]::after {
    background: var(--line-dark);
}

.trust h2 {
    margin-bottom: 56px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: left;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
}

.trust-card {
    padding: 34px 28px;
    border-right: 1px solid var(--line-dark);
}

.trust-card:last-child {
    border-right: none;
}

.trust-card-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(79, 192, 141, 0.4);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
}

.trust-card-icon svg {
    width: 21px;
    height: 21px;
    color: var(--green-bright);
}

.trust-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.trust-card p {
    font-size: 0.84rem;
    color: rgba(242, 243, 233, 0.6);
    line-height: 1.6;
}

/* =========================================
   FAQ — ledger rows
   ========================================= */
.faq {
    padding: 104px 0 96px;
}

.faq-subtitle {
    color: var(--ink-soft);
    margin-bottom: 56px;
    font-size: 1.05rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--ink);
}

.faq-item {
    background: transparent;
    border-bottom: 1px solid var(--line-strong);
    padding: 0;
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.04rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--ink);
    padding: 22px 4px;
    transition: color 0.15s ease;
}

.faq-item summary:hover {
    color: var(--green-deep);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    color: var(--green);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] summary {
    color: var(--green-deep);
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    margin: 0 0 26px 0;
    padding: 0 40px 0 4px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.97rem;
    max-width: 720px;
}

/* =========================================
   CTA / DEMO FORM — the document panel
   ========================================= */
.cta {
    padding: 32px 0 104px;
    text-align: center;
}

.cta-panel {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 80px 48px 72px;
    max-width: 880px;
    margin: 0 auto;
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    pointer-events: none;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 560;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cta-sub {
    font-size: 1.06rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.cta-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    border-radius: 6px;
    font-size: 0.98rem;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-form input[type="email"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(28, 111, 74, 0.14);
}

.cta-form input[type="email"]::placeholder {
    color: var(--ink-faint);
}

.cta-form .btn-primary {
    white-space: nowrap;
}

.cta-note {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.form-success {
    display: none;
    padding: 16px 24px;
    background: var(--mint);
    border: 1px solid rgba(28, 111, 74, 0.35);
    border-radius: 6px;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.form-error {
    display: none;
    padding: 16px 24px;
    background: rgba(176, 73, 46, 0.07);
    border: 1px solid rgba(176, 73, 46, 0.35);
    border-radius: 6px;
    color: var(--brick);
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--pine-950);
    color: var(--paper);
    padding: 56px 0 40px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--paper);
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(242, 243, 233, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--paper);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(242, 243, 233, 0.5);
    width: 100%;
    text-align: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-visual {
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }

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

    .step {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child {
        border-bottom: none;
    }

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

    .trust-card {
        border-bottom: 1px solid var(--line-dark);
    }

    .trust-card:nth-child(2n) {
        border-right: none;
    }

    .trust-card:nth-child(3),
    .trust-card:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 56px 0 64px;
    }

    .hero-trust {
        gap: 14px 0;
    }

    .trust-item {
        padding-right: 16px;
        margin-right: 16px;
    }

    .problem,
    .how,
    .compare,
    .pricing,
    .trust,
    .faq {
        padding: 72px 0;
    }

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

    .problem-bottom {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

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

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .nav-cta {
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    .nav-tag {
        display: none;
    }

    .cta-panel {
        padding: 56px 24px 48px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input[type="email"] {
        min-width: 100%;
    }

    .cta-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .ledger-stamp {
        right: -8px;
    }
}

@media (max-width: 640px) {
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .trust-item {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        border-right: none;
        border-bottom: 1px solid var(--line-dark);
    }

    .trust-card:nth-child(3) {
        border-bottom: 1px solid var(--line-dark);
    }

    .trust-card:last-child {
        border-bottom: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .faq-item p {
        padding-right: 8px;
    }
}

/* =========================================
   LEGAL PAGES (privacy.html, terms.html)
   ========================================= */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 0 100px;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 560;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--ink);
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-bottom: 56px;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 44px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-strong);
}

.legal-page p {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

.legal-page li {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-page a {
    color: var(--green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page a:hover {
    color: var(--green);
}

.legal-disclaimer {
    margin-top: 56px;
    padding: 20px 24px;
    background: var(--mint);
    border: 1px solid rgba(28, 111, 74, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.65;
    font-style: italic;
}

.legal-callout {
    margin: 24px 0;
    padding: 16px 20px;
    background: rgba(200, 162, 75, 0.1);
    border: 1px solid rgba(200, 162, 75, 0.4);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.footer-copy a {
    color: rgba(242, 243, 233, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    color: var(--paper);
}

/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: 430px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 22px 24px;
    box-shadow: 0 24px 48px -20px rgba(14, 35, 26, 0.35);
    animation: banner-in 0.45s ease both;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes banner-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green-deep);
    margin-bottom: 10px;
}

.cookie-banner-text {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cookie-banner-text strong {
    color: var(--ink);
}

.cookie-banner-text a {
    color: var(--green-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-actions .btn-primary,
.cookie-banner-actions .btn-secondary {
    padding: 10px 22px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 18px 18px;
    }

    .cookie-banner-actions .btn-primary,
    .cookie-banner-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--pine-950);
    color: var(--paper);
    border: 1px solid var(--green-deep);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    box-shadow: 0 12px 26px -12px rgba(14, 35, 26, 0.55);
    transition: opacity 0.25s ease, transform 0.25s ease,
                background 0.2s ease, visibility 0.25s;
}

.back-to-top.visible {
    opacity: 0.92;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    opacity: 1;
    background: var(--green-deep);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
        border-radius: 7px;
    }

    .back-to-top svg {
        width: 17px;
        height: 17px;
    }
}

/* =========================================
   MOTION PREFERENCES
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
