:root {
    --navy: #0B213F;
    --navy-2: #152840;
    --gold: #d4a574;
    --gold-dark: #b8925f;
    --parchment: #faf8f5;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(11, 33, 63, 0.08);
}

/* Anchored sections stop below the frozen header */

.pain,
.answer,
.faq,
.founder,
.signup-card {
    scroll-margin-top: 84px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-word {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.5px;
    color: var(--navy);
}

.icon-link {
    color: var(--navy);
    display: inline-flex;
    padding: 8px;
    border-radius: var(--radius);
    transition: color 0.2s ease;
}

.icon-link:hover { color: var(--gold-dark); }

.header-social,
.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header anchor nav */

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-nav a {
    font-size: 13px;
    font-weight: 700;
    color: rgba(11, 33, 63, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover { color: var(--navy); }

.header-nav .nav-cta {
    background: var(--gold);
    color: var(--navy);
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: background 0.2s ease;
}

.header-nav .nav-cta:hover {
    background: #ddc19a;
    color: var(--navy);
}

/* Hero: mirrors the real site's white hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 64px;
    border-bottom: 1px solid rgba(11, 33, 63, 0.1);
    text-align: center;
}

/* Corner blobs borrowed from the AffinePath/Plaw marketing page */

.blob {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    fill: #e3e9ef;
}

.hero .b1 { width: min(60vw, 640px); right: -12vw; bottom: -8vw; }
.hero .b2 { width: min(40vw, 420px); left: -10vw; top: -6vw; transform: scaleX(-1); }

.hero .container { position: relative; z-index: 1; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 26px;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0;
}

.hero-fix {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(11, 33, 63, 0.75);
}

.hero-divider {
    width: 64px;
    height: 1px;
    background: var(--gold);
    margin: 28px auto;
}

.hero-lead {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 16px;
}

.hero-sub {
    color: rgba(11, 33, 63, 0.65);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 40px;
}

/* Signup card */

.signup-card {
    background: #ffffff;
    border: 1px solid rgba(11, 33, 63, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(11, 33, 63, 0.08);
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    text-align: left;
}

.field { margin-bottom: 18px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.field .req { color: var(--gold-dark); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }

.form-why {
    font-size: 13px;
    color: var(--muted);
    margin: -6px 0 16px;
}

.field input,
.field select {
    width: 100%;
    background: #f9fafb;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Honeypot: visually gone, still in the DOM */

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.turnstile-box {
    min-height: 65px;
    margin: 4px 0 18px;
    display: flex;
    justify-content: center;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.submit-btn {
    width: 100%;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover { background: #ddc19a; }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

.small-print {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
}

/* Success state */

.success-block { text-align: center; padding: 26px 6px; }

.success-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.18);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.success-block h2 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    color: var(--navy);
    font-size: 24px;
    margin-bottom: 8px;
}

.success-block p { color: var(--muted); font-size: 15px; }

/* Section head: kicker + heading, as on the real site */

.section-head {
    text-align: center;
    margin-bottom: 44px;
}

.kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.section-head h2 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--navy);
}

.h2-fix {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gold-dark);
}

/* Pain band: "The Old Way" treatment from the real site */

.pain { padding: 72px 0; }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pain-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 26px 26px 24px;
}

.pain-card::before {
    content: "";
    display: block;
    width: 16px;
    height: 1px;
    background: #cbd5e1;
    margin-bottom: 14px;
}

.pain-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 6px;
}

.pain-card p { font-size: 14px; color: #94a3b8; }

.pain-close {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 32px;
}

.pain-stat {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.pain-sources {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Answer band: navy section with the gold treatment, as on the real site */

.answer {
    background: var(--navy);
    padding: 72px 0;
}

.answer .kicker { color: var(--gold); }

.answer .section-head h2 { color: #ffffff; }

.answer .h2-fix { color: var(--gold); }

.answer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.answer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.answer-card h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
}

.answer-card p { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.answer-close {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 32px;
}

/* FAQ band: static Q&A, no accordion */

.faq {
    background: var(--parchment);
    padding: 72px 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    padding: 22px 0;
    border-top: 1px solid #e9e2d9;
}

.faq-item:last-child { border-bottom: 1px solid #e9e2d9; }

.faq-item h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 15px;
    color: var(--muted);
}

/* Founder */

.founder { padding: 8px 0 72px; }

.founder-inner { text-align: center; max-width: 480px; }

.founder-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 24px;
}

.founder-photo-link { display: inline-block; }

.founder-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    transition: transform 0.2s ease;
}

.founder-photo-link:hover .founder-photo { transform: scale(1.04); }

.founder-name { margin-top: 16px; font-size: 24px; }

.founder-name a {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    color: var(--navy);
    text-decoration: none;
}

.founder-name a:hover { color: var(--gold-dark); }

.founder-role {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

.founder-copy { color: var(--muted); font-size: 15px; margin-top: 14px; }

.founder-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 16px;
}

.founder-contact a {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 146, 95, 0.45);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.founder-contact a:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

/* Privacy notice */

.legal { padding: 52px 0 72px; }

.legal-inner { max-width: 720px; }

.legal .kicker { text-align: center; }

.legal-title {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: clamp(26px, 4.4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: center;
    color: var(--navy);
}

.legal-updated {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9e2d9;
}

.legal-lead {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
    margin-top: 30px;
}

.legal h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 8px;
}

.legal p,
.legal li { font-size: 15px; color: var(--muted); }

.legal li + li { margin-top: 8px; }

.legal ul { padding-left: 20px; }

.legal p + p { margin-top: 12px; }

.legal p a,
.legal li a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 146, 95, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal p a:hover,
.legal li a:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.legal-table-wrap { margin-top: 16px; }

.legal-table { width: 100%; border-collapse: collapse; }

.legal-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 0 14px 10px 0;
    border-bottom: 1px solid #e9e2d9;
}

.legal-table td {
    padding: 14px 14px 14px 0;
    border-bottom: 1px solid #e9e2d9;
    font-size: 14px;
    color: var(--muted);
    vertical-align: top;
}

.legal-table td:first-child {
    color: var(--navy);
    font-weight: 700;
    white-space: nowrap;
}

.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-back { margin-top: 40px; text-align: center; }

.legal-back a { width: auto; display: inline-block; }

/* Footer */

.site-footer {
    background: var(--navy);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner p,
.footer-inner a:not(.icon-link) {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
}

.footer-inner a:not(.icon-link):hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-icon { color: rgba(255, 255, 255, 0.65); }
.footer-icon:hover { color: var(--gold); }

/* Mobile Optimizations */

@media (max-width: 768px) {
    .header-nav { display: none; }

    /* 16px minimum prevents iOS Safari from auto-zooming into inputs on focus */
    .field input,
    .field select {
        font-size: 16px;
    }

    /* 44px touch targets for mobile accessibility */
    .icon-link {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero { padding: 24px 0 44px; }
    .hero h1 { font-size: clamp(28px, 7.5vw, 44px); }
    .hero-lead { font-size: 17px; }
    .hero-sub { font-size: 15px; margin-bottom: 32px; }
    .signup-card { padding: 26px 18px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .pain { padding: 48px 0; }
    .pain-grid { grid-template-columns: 1fr; }
    .answer { padding: 48px 0; }
    .answer-grid { grid-template-columns: 1fr; }
    .faq { padding: 48px 0; }
    .section-head { margin-bottom: 28px; }
    .legal { padding: 36px 0 52px; }
    .legal-table thead { display: none; }
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td { display: block; }
    .legal-table tr {
        padding: 14px 0;
        border-bottom: 1px solid #e9e2d9;
    }
    .legal-table tbody tr:last-child { border-bottom: 0; }
    .legal-table td { padding: 0 0 6px; border-bottom: 0; }
    .legal-table td:first-child { white-space: normal; padding-bottom: 4px; }
    .legal-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(11, 33, 63, 0.5);
        margin-bottom: 3px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 16px;
    }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 20px 0 36px; }
    .hero h1 { font-size: clamp(26px, 8.5vw, 36px); }
    .hero-divider { margin: 20px auto; }
    .hero-lead { font-size: 16px; line-height: 1.45; }
    .hero-sub { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
    .signup-card {
        padding: 22px 14px;
        border-radius: 8px;
    }
    .turnstile-box {
        max-width: 100%;
        overflow-x: auto;
    }
    .submit-btn {
        padding: 16px 14px;
        font-size: 13px;
        min-height: 48px;
    }
    .founder-photo {
        width: 96px;
        height: 96px;
    }
    .founder-name { font-size: 20px; }
    .founder-contact {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .founder-contact a {
        display: inline-block;
        padding: 4px 0;
    }
}
