/* ============================================
   RIA Health Check — Institutional Design System
   Navy / White / Teal · Lora + Inter
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

/* Serif headlines */
h1, h2 {
    font-family: 'Lora', Georgia, serif;
    color: #0F172A;
    line-height: 1.2;
}

h3 {
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    line-height: 1.3;
}

.section-sub {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}


/* ---- BUTTONS ---- */

.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}

.btn-primary {
    font-size: 14px;
    padding: 12px 24px;
    color: #ffffff;
    background: #0D9488;
    border: 2px solid #0D9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
}

.btn-ghost {
    font-size: 14px;
    padding: 12px 24px;
    color: #94a3b8;
    background: transparent;
    border: 2px solid #475569;
}

.btn-ghost:hover {
    color: #ffffff;
    border-color: #94a3b8;
}

.btn-ghost--on-dark {
    color: #94a3b8;
    border-color: #475569;
}

.btn-ghost--on-dark:hover {
    color: #ffffff;
    border-color: #94a3b8;
}

.btn-secondary {
    font-size: 14px;
    padding: 12px 24px;
    color: #0D9488;
    background: transparent;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #0D9488;
}

.btn-lg {
    font-size: 16px;
    padding: 16px 32px;
}


/* ---- NAVIGATION ---- */

.nav {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: #0F172A; }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #0D9488;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-cta:hover { background: #0f766e; }


/* ---- HERO ---- */

.hero {
    padding: 80px 0 72px;
    background: #0F172A;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 16px;
}

.hero-warm {
    font-size: 14px;
    color: #0D9488;
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.hero-qualifier {
    font-size: 13px;
    color: #64748b;
}

/* Hero scorecard preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.scorecard-preview {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 460px;
}

.scorecard-img {
    width: 100%;
    display: block;
}


/* ---- TRUST BAR ---- */

.trust-bar {
    padding: 16px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}


/* ---- RETURNING VISITOR CALLOUT ---- */

.returning-callout {
    padding: 32px 0;
    background: #f0fdfa;
    border-bottom: 1px solid #99f6e4;
}

.callout-card {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.callout-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.callout-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.callout-card .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .callout-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
}


/* ---- ENFORCEMENT ---- */

.enforcement {
    padding: 80px 0;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
}

.enforcement-intro {
    font-size: 15px;
    color: #92400e;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.enforcement h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

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

.enforcement-card {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}

.enforcement-stat {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.enforcement-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}


/* ---- WHAT WE SCAN ---- */

.what-we-scan {
    padding: 96px 0;
    background: #ffffff;
}

.what-we-scan h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.domains-grid {
    display: grid;
    gap: 20px;
}

.domains-grid--featured {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

.domains-grid--compact {
    grid-template-columns: repeat(4, 1fr);
}

.domain-card--featured {
    border-left: 3px solid #0D9488;
}

.domain-card {
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    transition: box-shadow 0.2s;
}

.domain-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.domain-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0D9488;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.domain-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.domain-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 12px;
}

.domain-ref {
    font-size: 11px;
    font-weight: 500;
    color: #0D9488;
    background: #f0fdfa;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.domain-card--compact {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
}

.domain-card--compact .domain-icon {
    margin-bottom: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
}

.domain-card--compact h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.domain-card--compact .domain-ref {
    font-size: 10px;
}

.domain-card--compact p {
    display: none;
}

.scan-moat {
    margin-top: 48px;
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}


/* ---- COMPARISON ---- */

.comparison {
    padding: 96px 0;
    background: #f8fafc;
}

.comparison h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.comparison-col {
    border-radius: 8px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.comparison-col--free {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.comparison-col--full {
    background: #ffffff;
    border: 2px solid #0D9488;
    position: relative;
}

.comparison-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0D9488;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.comparison-header {
    margin-bottom: 24px;
}

.comparison-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.comparison-price {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.comparison-list {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}

.comparison-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
}

.comparison-col--full .comparison-list li::before {
    background: #0D9488;
    border-color: #0D9488;
}

.comparison-col .btn {
    align-self: stretch;
}

.comparison-sample-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.comparison-sample-link:hover {
    color: #0D9488;
}


/* ---- METHODOLOGY ---- */

.methodology {
    padding: 96px 0;
    background: #ffffff;
}

.methodology h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.methodology-content {
    max-width: 740px;
    margin: 0 auto;
}

.methodology-content > p {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 20px;
}

.methodology-sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.source-item {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.source-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 2px;
}

.source-item span {
    font-size: 13px;
    color: #64748b;
}


/* ---- HOW IT WORKS ---- */

.how-it-works {
    padding: 96px 0;
    background: #f8fafc;
}

.how-it-works > .container > h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
}

.how-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.how-path {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
}

.how-path > h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #0F172A;
}

.how-path .steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
    flex: 1;
}

.how-path .step {
    text-align: left;
    padding: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
}

.how-path .step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
    margin: 0;
}

.how-path .step-content {
    flex: 1;
    min-width: 0;
}

.how-path .step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}

.how-path .step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.how-path .btn {
    display: block;
    margin-top: auto;
}

/* Legacy step styles for non-path contexts */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0D9488;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-line {
    position: absolute;
    top: 22px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step:last-child .step-line { display: none; }

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
}


/* ---- SAMPLE SCORECARD ---- */

.sample-section {
    padding: 96px 0;
    background: #ffffff;
}

.sample-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.sample-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.sample-feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sample-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.feature-marker--green { background: #059669; }
.feature-marker--amber { background: #d97706; }
.feature-marker--red { background: #dc2626; }
.feature-marker--blue { background: #2563eb; }

.sample-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 2px;
}

.sample-feature p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.sample-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.sample-img {
    width: 100%;
    display: block;
}


/* ---- FAQ ---- */

.faq {
    padding: 96px 0;
    background: #f8fafc;
}

.faq h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

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

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.4;
}

.faq-question:hover {
    color: #0D9488;
}

.faq-chevron {
    flex-shrink: 0;
    margin-left: 16px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}


/* ---- FINAL CTA ---- */

.final-cta {
    padding: 96px 0;
    background: #0F172A;
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.final-cta-sub {
    font-size: 17px;
    color: #94a3b8;
    margin-bottom: 36px;
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.final-cta-or {
    font-size: 14px;
    color: #64748b;
}


/* ---- FOOTER ---- */

.footer {
    padding: 56px 0 32px;
    background: #0F172A;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: #e2e8f0; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
}

.footer-disclaimer {
    font-size: 11px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 800px;
}

.footer-copy {
    font-size: 12px;
    color: #475569;
}


/* ---- MODAL ---- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay[hidden] { display: none; }

.modal {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.modal > p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-form input {
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-form input:focus {
    border-color: #0D9488;
}

.modal-form button {
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #0D9488;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-form button:hover { background: #0f766e; }

.modal-privacy {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close:hover { color: #334155; }


/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
    .nav-links { gap: 16px; }
    .nav-link { display: none; }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero { padding: 56px 0 48px; }
    .hero-copy h1 { font-size: 32px; }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .scorecard-preview { max-width: 400px; }

    .domains-grid--featured {
        grid-template-columns: 1fr;
    }

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

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

    .how-paths {
        grid-template-columns: 1fr;
    }

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

    .sample-features {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .methodology-sources {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .final-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .final-cta-or { display: none; }

    .what-we-scan,
    .how-it-works,
    .sample-section,
    .methodology,
    .comparison,
    .faq,
    .final-cta {
        padding: 64px 0;
    }

    .enforcement {
        padding: 56px 0;
    }
}

@media (max-width: 600px) {
    .hero-copy h1 { font-size: 28px; }
    .hero-sub { font-size: 15px; }

    .enforcement-stat { font-size: 30px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-bar-inner {
        flex-direction: column;
        gap: 8px;
    }

    .trust-sep { display: none; }

    h2 { font-size: 26px !important; }

    .comparison-col {
        padding: 28px 24px;
    }

    .how-path {
        padding: 28px 24px;
    }

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