/* Shared styles for index1-style pages */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #fafaf8;
    --bg-white: #ffffff;
    --bg-warm: #f5f0e8;
    --accent: #015da9;
    --accent-light: #e0eef8;
    --accent-dark: #014a87;
    --text: #111111;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-warm: #e8e3d5;
    --navy: #0a1628;
    --red-urgency: rgba(239, 68, 68, 0.15);
    --red-text: #fca5a5;
    --gold: #fef3c7;
    --gold-text: #92400e;
    --star: #fbbf24;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3 {
    margin: 0;
    font-family: 'Zilla Slab', serif;
    color: var(--text);
}

p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
}

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

a:hover {
    color: var(--accent);
}

.container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 60px;
}

.section {
    padding: 100px 0;
}

.section-tag {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    max-width: 700px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title em {
    color: var(--accent);
    font-style: italic;
}

.section-description {
    max-width: 500px;
    margin-bottom: 42px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 68px;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-nav .container {
    height: 100%;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.wordmark {
    font-family: 'Zilla Slab', serif;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.wordmark .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-only {
    display: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.mobile-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    padding: 13px 28px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.btn-secondary {
    padding: 13px 28px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-dark {
    padding: 14px 36px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.btn-dark:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* CTA banner */
.cta-banner {
    padding: 100px 0;
    background: var(--navy);
    text-align: center;
}

.cta-title {
    margin: 0 auto 20px;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cta-title em {
    color: #93c5fd;
    font-style: italic;
}

.cta-subtext {
    max-width: 620px;
    margin: 0 auto 40px;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
}

.cta-reassurance {
    margin-top: 14px;
    color: #6b7a99;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 32px 0;
}

.site-footer .footer-content {
    padding-bottom: 0;
}

.site-footer .footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.site-footer .footer-links-row a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-footer .footer-links-row a:hover {
    color: var(--accent);
}

.site-footer .footer-sep {
    color: var(--border);
    font-weight: 300;
}

.site-footer .footer-row {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Page hero (for subpages) */
.page-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    background: var(--bg);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.page-hero--rich {
    padding-bottom: 90px;
    background:
        radial-gradient(circle at top left, rgba(1, 93, 169, 0.08), transparent 34%),
        radial-gradient(circle at top right, rgba(1, 93, 169, 0.05), transparent 28%),
        var(--bg);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 36px;
    align-items: center;
}

.page-hero-copy {
    max-width: 700px;
}

.page-hero-copy h1 {
    margin-top: 18px;
    margin-bottom: 16px;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero-copy p {
    max-width: 620px;
    font-size: 1.05rem;
}

.page-hero-card {
    padding: 30px;
    border: 1px solid rgba(1, 93, 169, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(224, 238, 248, 0.7) 0%, rgba(255, 255, 255, 0.96) 32%, #ffffff 100%);
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.08);
}

.page-hero-card h2,
.page-hero-card h3 {
    margin-bottom: 12px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.page-hero-card p {
    color: var(--muted);
    font-size: 0.96rem;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

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

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-badge strong {
    color: var(--text);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-metric {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.hero-metric-value {
    display: block;
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.hero-metric-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.trust-banner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-warm);
    background: var(--bg-warm);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

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

.surface-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-white);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.surface-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p,
.feature-card li {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.process-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--border);
}

.process-step {
    padding: 34px 28px;
    background: var(--bg-white);
    transition: background 0.25s ease;
}

.process-step:hover {
    background: var(--accent-light);
}

.icon-box {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.process-step p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.quote-card {
    padding: 28px;
}

.quote-card.featured {
    border-color: var(--accent-light);
    background: linear-gradient(to bottom, var(--accent-light) 0%, var(--bg-white) 92px);
}

.quote-stars,
.proof-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quote-card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.quote-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.quote-role {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.control-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(224, 238, 248, 0.4), rgba(255, 255, 255, 0.96));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.control-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.control-header .section-title,
.control-header .section-description {
    margin-bottom: 0;
}

.field-shell {
    position: relative;
}

.field-shell input,
.field-shell select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-shell input {
    padding-left: 46px;
}

.field-shell input:focus,
.field-shell select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(1, 93, 169, 0.12);
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.field-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--bg-warm);
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.field-clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.field-clear:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.results-info {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
}

.pill-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-link:hover,
.pill-link.is-active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.pill-count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(1, 93, 169, 0.08);
    color: inherit;
    font-size: 0.8rem;
}

.faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover,
.faq-item.is-open {
    border-color: rgba(1, 93, 169, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.faq-item.is-open .faq-content {
    grid-template-rows: 1fr;
}

.faq-content-inner {
    overflow: hidden;
    padding: 0 24px;
}

.faq-item.is-open .faq-content-inner {
    padding-bottom: 22px;
}

.faq-content-inner p,
.faq-content-inner li {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.faq-content-inner ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.faq-content-inner p:last-child,
.faq-content-inner ul:last-child {
    margin-bottom: 0;
}

.empty-state {
    padding: 38px 24px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.empty-state p {
    color: var(--muted);
}

/* Reveal animations */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--stagger, 0s);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 767px) {
    .container {
        padding: 0 24px;
    }

    .section {
        padding: 60px 0;
    }

    .page-hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .site-nav {
        height: 68px;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px 28px;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-nav-only {
        display: block;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .page-hero {
        padding-bottom: 48px;
    }

    .page-hero--rich {
        padding-bottom: 60px;
    }

    .page-hero-grid,
    .feature-grid,
    .process-shell,
    .testimonials-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .page-hero-copy h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .page-hero-card,
    .control-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .hero-actions,
    .control-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-banner {
        padding: 60px 0;
    }

    .site-footer .footer-links-row {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer .footer-sep {
        display: none;
    }
}
