/* ---------- Tokens ---------- */
:root {
    --ink: #0a1f33;
    --ink-soft: #2c4257;
    --muted: #5a6e80;
    --line: #e1e8f1;
    --bg: #ffffff;
    --bg-soft: #f3f7fc;
    --bg-warm: #fff7ee;
    --brand: #2563eb;
    --brand-deep: #1e3a8a;
    --brand-soft: #eaf2ff;
    --accent: #f97316;
    --accent-soft: #ffe5cf;
    --good: #10b981;
    --shadow-sm: 0 1px 2px rgba(10, 31, 51, 0.04), 0 2px 6px rgba(10, 31, 51, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 31, 51, 0.07), 0 12px 32px rgba(10, 31, 51, 0.08);
    --shadow-lg: 0 8px 24px rgba(10, 31, 51, 0.09), 0 24px 60px rgba(10, 31, 51, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --max: 1140px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 .9em;
}

.section-title { margin-bottom: .35em; }
.section-sub {
    color: var(--muted);
    font-size: 1.075rem;
    max-width: 640px;
    margin: 0 0 2.5em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.97rem;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-md); }
.btn-ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    transition: transform 0.25s ease;
}
.brand:hover .brand-logo { transform: translate(3px, -3px); }
.brand-hl {
    color: var(--accent);
    opacity: 0.7;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 0;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 16px 24px 24px;
        gap: 14px;
        box-shadow: var(--shadow-md);
        /* Fully hidden when closed — visibility (not just transform) so the
           menu can never peek over the header regardless of its height. */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 90px 0 80px;
    background:
        radial-gradient(ellipse at 80% -10%, rgba(217, 122, 59, 0.10), transparent 55%),
        radial-gradient(ellipse at -10% 110%, rgba(15, 58, 95, 0.08), transparent 60%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.hero-copy .lede {
    font-size: 1.13rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin-top: .6em;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    margin: 28px 0 22px;
    flex-wrap: wrap;
}
.hero-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.hero-trust li span {
    color: var(--good);
    font-weight: 700;
    margin-right: 8px;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: -14px -14px auto auto;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, var(--accent-soft), transparent 65%);
    z-index: -1;
}
.card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.card-row.split { justify-content: space-between; align-items: stretch; gap: 14px; margin-top: 18px; }
.card-row.split > div {
    flex: 1;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}
.card-stat {
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--ink);
}
.stat-sub { color: var(--muted); font-size: 0.95rem; }
.card-bar {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 6px;
    overflow: hidden;
}
.card-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 6px;
}
.mini-label { display: block; font-size: 0.78rem; color: var(--muted); }
.mini-num { display: block; font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--ink); }
.card-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 0.83rem;
    color: var(--muted);
}

@media (max-width: 880px) {
    .hero { padding: 60px 0 64px; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-card { max-width: 420px; }
}

/* ---------- Generic section spacing ---------- */
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Fears ---------- */
.fears { background: var(--bg); }
.fear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}
.fear-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fear-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #d6dde6;
}
.fear-card h3 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--brand);
    margin-bottom: 12px;
    font-size: 1.13rem;
}
.fear-card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---------- Examples ---------- */
.examples { background: var(--bg-warm); }
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}
.example-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid #ece4d6;
    transition: transform .2s ease, box-shadow .2s ease;
}
.example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.example-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: #8a4a1d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.example-card h3 { margin-bottom: 10px; }
.example-card p { color: var(--ink-soft); margin: 0; }

/* ---------- How it works ---------- */
.how { background: var(--brand-deep); color: #cfdbe7; }
.how .section-title { color: #fff; }
.how .section-sub { color: rgba(207, 219, 231, 0.85); }
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    transition: background .2s ease, transform .2s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { color: rgba(207, 219, 231, 0.85); margin: 0; font-size: 0.96rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg); }
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
}
.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.price-flag {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 100px;
}
.price-head h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.price-tag {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.price-tag span {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--brand);
}
.price-tag small { color: var(--muted); font-size: 0.9rem; }
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    flex-grow: 1;
}
.price-list li {
    color: var(--ink-soft);
    font-size: 0.96rem;
    padding-left: 26px;
    position: relative;
}
.price-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--good);
    border-bottom: 2px solid var(--good);
    transform: rotate(-45deg);
}
.price-addon {
    margin: 0;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm, 8px);
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}
.price-addon strong { color: var(--ink); }
.price-card.featured .price-addon {
    background: rgba(255,255,255,.7);
    border-color: rgba(0, 0, 0, 0.08);
}
.price-note {
    text-align: center;
    color: var(--muted);
    margin-top: 28px;
    font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 60px;
    align-items: start;
}
.faq-side .section-title { margin-bottom: .3em; }
.faq-side p { color: var(--muted); margin-bottom: 1.6em; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-list details[open] {
    border-color: #c9d4df;
    box-shadow: var(--shadow-sm);
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform .2s ease;
    line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.97rem;
}

@media (max-width: 880px) {
    .faq-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: start;
}
.contact-copy h2 { margin-top: .15em; }
.contact-copy p { color: var(--ink-soft); }
.contact-points {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.97rem;
}
.contact-points a { color: var(--brand); font-weight: 500; }

.contact-form {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
    font-size: 0.97rem;
    font-family: inherit;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid,
.field textarea.invalid {
    border-color: #c0492b;
    box-shadow: 0 0 0 3px rgba(192, 73, 43, 0.12);
}
.form-fineprint {
    margin: 12px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.form-status {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 500;
    min-height: 1.2em;
}
.form-status.success { color: var(--good); }
.form-status.error { color: #c0492b; }

@media (max-width: 880px) {
    .contact-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-form { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- CTA banner (homepage) ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.45), transparent 65%);
    pointer-events: none;
}
.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    position: relative;
}
.cta-copy .eyebrow { color: var(--accent-soft); }
.cta-copy h2 { color: #fff; margin: 0 0 .35em; }
.cta-copy p { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 520px; }
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.cta-actions .btn-primary {
    background: var(--accent);
    color: #fff;
}
.cta-actions .btn-primary:hover {
    background: #ea670d;
    box-shadow: var(--shadow-md);
}
.cta-fineprint {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

@media (max-width: 880px) {
    .cta-inner { grid-template-columns: 1fr; gap: 24px; }
    .cta-actions { align-items: stretch; }
    .cta-actions .btn { text-align: center; }
}

/* ---------- Page hero (interest page) ---------- */
.page-hero {
    background: var(--bg-soft);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--brand-soft), transparent 65%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--accent-soft), transparent 65%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    max-width: 760px;
}
.page-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin: 0 0 .35em;
}
.page-hero .lede {
    font-size: 1.075rem;
    color: var(--ink-soft);
    margin: 0 0 1.4em;
    max-width: 620px;
}
.page-hero-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.page-hero-trust li span {
    color: var(--good);
    font-weight: 700;
    margin-right: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-deep);
    color: rgba(207, 219, 231, 0.78);
    padding: 56px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}
.footer-brand .brand-text {
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.18rem;
    display: block;
    margin-bottom: 8px;
}
.footer-brand p { font-size: 0.93rem; max-width: 320px; margin: 0; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(207, 219, 231, 0.78); font-size: 0.93rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-meta { font-size: 0.88rem; }
.footer-meta p { margin: 0 0 6px; }
.footer-meta a { color: rgba(207, 219, 231, 0.92); }

@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
