/*
 * Masonsoft AI — Design System Stylesheet
 * masonsoftai.css
 *
 * Shared styles for the Masonsoft AI website.
 * Do not delete existing rules — add new rules below existing sections.
 *
 * Contents:
 *   1.  Custom Properties
 *   2.  Reset & Base
 *   3.  Typography
 *   4.  Navigation
 *   5.  Buttons
 *   6.  Layout & Containers
 *   7.  Hero
 *   8.  Stat Bar
 *   9.  Cards
 *   10. Callouts & Tips
 *   11. Feature & Spotlight Blocks
 *   12. Preview Cards (code / tool mockups)
 *   13. Why / Differentiator Grid
 *   14. Briefing Section
 *   15. Signup Form
 *   16. CTA Section
 *   17. Site Footer
 *   18. Utilities
 *   19. Animations
 *   20. Responsive Overrides
 *   21. FAQ Page
 *   23. Navigation: Mobile Hamburger
 *   24. AEO Guide & Content Components
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Roboto:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ─── 1. Custom Properties ─────────────────────────────────────────────────── */
:root {
    --navy: #0a1628;
    --navy-mid: #0f2040;
    --blue: #2571c8;
    --blue-bright: #5ba3f5;
    --blue-light: #ddeeff;
    --blue-xlight: #f0f6ff;
    --red: #CF0000;
    --text: #1a2b3c;
    --text-mid: #3d5a72;
    --text-muted: #6a8fa8;
    --border: #ccdde8;
    --surface: #ffffff;
    --bg: #f4f8fc;
    --code-bg: #e8f0f8;
    --green: #1a9060;
    --green-bg: #e8f5ef;
    --white: #ffffffCC;
    --ui: 'Roboto', sans-serif;
    --display: 'Barlow Condensed', sans-serif;
    --poppins: 'Poppins', sans-serif;
    --mono: 'DM Mono', monospace;
    --r: 8px;
    --max: 1200px;
    --statbar-source: #7d8aa3;
}

/* ─── 2. Reset & Base ──────────────────────────────────────────────────────── */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--ui);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button {
    transition: transform 0.1s ease, opacity 0.1s ease;
    touch-action: manipulation;
}

    a:active, button:active {
        transform: scale(0.96);
        opacity: 0.75;
    }



/* ─── 3. Typography ────────────────────────────────────────────────────────── */
h2 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: 0.01em;
    margin-bottom: 1.125rem;
}

h3 {
    font-family: var(--ui);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.625rem;
    line-height: 1.35;
}

p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

    p:last-child {
        margin-bottom: 0;
    }

.min-height-100 {
    min-height: 100vh;
}

.lead {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.65;
    max-width: 720px;
}

.section-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

/* ─── 4. Navigation ────────────────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

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

.nav-logo-word {
    font-family: var(--poppins);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
    line-height: 1;
}

    .nav-logo-word span {
        color: var(--blue-bright);
    }

.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

    .nav-links a {
        font-size: 0.875rem;
        font-weight: 500;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        padding: 0.375rem 0.75rem;
        border-radius: 5px;
        transition: color .18s, background .18s;
        white-space: nowrap;
    }

        .nav-links a:hover {
            color: #fff;
            background: rgba(255,255,255,0.07);
        }

.nav-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.125rem;
    background: var(--blue);
    color: #fff;
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background .18s;
    white-space: nowrap;
}

    .nav-cta:hover {
        background: #1d5db0;
    }

/* ─── 5. Buttons ───────────────────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: #fff;
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 7px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background .18s, transform .14s;
}

    .btn-primary:hover {
        background: #1d5db0;
        transform: translateY(-1px);
    }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.85);
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 7px;
    text-decoration: none;
    transition: border-color .18s, color .18s, background .18s;
}

    .btn-ghost:hover {
        border-color: rgba(255,255,255,0.5);
        color: #fff;
        background: rgba(255,255,255,0.06);
    }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 7px;
    text-decoration: none;
    transition: border-color .18s, color .18s, background .18s;
}

    .btn-outline:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-xlight);
    }

/* ─── 6. Layout & Containers ───────────────────────────────────────────────── */

.content-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

    section + section {
        border-top: 1px solid var(--border);
    }

.two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ─── 7. Hero ──────────────────────────────────────────────────────────────── */

.hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 4.5rem;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(91,163,245,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(91,163,245,0.1) 1px, transparent 1px);
        background-size: 56px 56px;
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: -40%;
        right: -10%;
        width: 70%;
        height: 150%;
        background: radial-gradient(ellipse at center, rgba(37,113,250,0.25) 0%, transparent 75%);
        pointer-events: none;
    }

.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-img {
    /*border-radius: 12px;*/
    margin: 15px auto 15px auto;
    max-width: 300px;
}


.hero-highlight {
    color: var(--blue-bright);
}

/* Two-column hero variant for landing page */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(91,163,245,0.1);
    border: 1px solid rgba(91,163,245,0.25);
    color: var(--blue-bright);
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    padding: 0.3125rem 0.875rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--blue-bright);
    border-radius: 50%;
    animation: pulse 2.4s infinite;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw + 1rem, 3.50rem);
    font-weight: 700;
    line-height: 1.0;
    color: #fff;
    line-height: 115%;
    letter-spacing: 0.01em;
    max-width: 860px;
    margin-bottom: 3.5rem;
}

    .hero h1 em {
        color: var(--blue-bright);
        font-style: normal;
    }

.hero-intro {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.72);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── 8. Stat Bar ──────────────────────────────────────────────────────────── */

.stat-bar {
    background: var(--navy-mid);
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0;
}

.stat-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    padding: 1.875rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

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

.stat-bar-panel {
    background: var(--statbar-panel);
    text-align: center;
    padding: 2.5rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--display);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--blue-bright);
    line-height: 1;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.45;
    max-width: 200px;
    margin: 0 auto;
}

.stat-bar-source {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: var(--statbar-source);
}

    .stat-bar-source a {
        color: var(--statbar-source);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .stat-bar-source a:hover {
            color: var(--statbar-figure);
        }

/* ─── 9. Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.75rem;
    transition: border-color .18s, transform .14s, box-shadow .18s;
}

    .card:hover {
        border-color: rgba(37,113,200,0.35);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(10,22,40,0.08);
    }

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--blue-xlight);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 1rem;
}

    .card-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9375rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    margin-top: 1.125rem;
    transition: gap .18s;
}

    .card-link:hover {
        gap: 0.625rem;
    }

/* ─── 10. Callouts & Tips ──────────────────────────────────────────────────── */

.callout {
    background: var(--blue-xlight);
    border: 1px solid rgba(37,113,200,0.18);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 1.25rem 1.5rem;
}

    .callout p {
        color: var(--text-mid);
        margin-bottom: 0;
    }

.callout-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.5rem;
}

.tip {
    display: flex;
    gap: 0.875rem;
    background: var(--green-bg);
    border: 1px solid rgba(26,144,96,0.22);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.tip-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.tip p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    margin-bottom: 0;
}

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

/* ─── 11. Feature & Spotlight Blocks ──────────────────────────────────────── */

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

    /* Reverse: visual left, text right */
    .feature-block.reverse > *:first-child {
        order: 2;
    }

    .feature-block.reverse > *:last-child {
        order: 1;
    }

/* ─── 12. Preview Cards ─────────────────────────────────────────────────────── */

.hero-preview-aeo {
    background: var(--navy);
    border: 1px solid rgba(91,163,245,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(91,163,245,0.05);
    width: 100%;
    padding: 0;
}

.hero-preview {
/*
    background: var(--navy);
    border: 1px solid rgba(91,163,245,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(91,163,245,0.05);
*/
    background-color:transparent;
    width: 100%;
    padding: 0 40px 0px 40px;
}

@keyframes spin-h {
    0% {
        transform: scaleX(1);
        animation-timing-function: ease-in;
    }

    50% {
        transform: scaleX(0);
        animation-timing-function: ease-out;
    }

    100% {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-spin {
        animation: none;
    }
}

.logo-spin {
    animation: spin-h 5s linear 1;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.035);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

    .preview-dot:first-child {
        background: rgba(255, 95, 87, 0.65);
    }

    .preview-dot:nth-child(2) {
        background: rgba(255, 189, 46, 0.65);
    }

    .preview-dot:nth-child(3) {
        background: rgba(40, 200, 64, 0.65);
    }

.preview-filename {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: rgba(255,255,255,0.5);
    margin-left: 0.5rem;
    letter-spacing: 0.06em;
}

.preview-code {
    padding: 1.25rem;
    overflow: auto;
}

    .preview-code pre {
        font-family: var(--mono);
        font-size: 0.6875rem;
        line-height: 1.75;
        color: rgba(207,232,244,0.75);
        white-space: pre;
    }

/* Shared syntax colours — also used on dark-bg code snippets */
.jc {
    color: #c0a0e8;
}
/* @context / @type / @graph */
.jk {
    color: var(--blue-bright);
}
/* keys */
.js {
    color: #9ad6ae;
}
/* string values */
.jt {
    color: rgba(255,255,255,0.5);
}
/* script wrapper tags */

.preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.25);
}

.preview-valid {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--green);
    font-weight: 500;
}

    .preview-valid::before {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background: var(--green);
        border-radius: 50%;
    }

.preview-schema-type {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.5);
}

/* ─── 13. Why / Differentiator Grid ────────────────────────────────────────── */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-item {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color .18s;
}

    .why-item:hover {
        border-color: rgba(37,113,200,0.3);
    }

.why-num {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.why-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ─── 14. Briefing Section ─────────────────────────────────────────────────── */

.briefing-section {
    padding: 5rem 1.5rem;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

    .briefing-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(91,163,245,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(91,163,245,0.025) 1px, transparent 1px);
        background-size: 56px 56px;
        pointer-events: none;
    }

.briefing-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.briefing-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.briefing-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.briefing-section h2 {
    font-family: var(--display);
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

    .briefing-section h2 em {
        color: var(--blue-bright);
        font-style: normal;
    }

.briefing-section p {
    color: rgba(255,255,255,0.65);
}

/* Issue preview card */
.issue-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r);
    overflow: hidden;
}

.issue-head {
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issue-title {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.issue-num {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--blue-bright);
    opacity: 0.65;
}

.issue-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .issue-item:last-child {
        border-bottom: none;
    }

.issue-cat {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-bright);
    background: rgba(91,163,245,0.1);
    border: 1px solid rgba(91,163,245,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.375rem;
}

.issue-item p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 0;
}

.issue-foot {
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.07);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ─── 15. Signup Form ──────────────────────────────────────────────────────── */

.signup-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin-top: 1.75rem;
}

.signup-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 7px;
    color: #fff;
    font-family: var(--ui);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color .18s, background .18s;
}

    .signup-input::placeholder {
        color: rgba(255,255,255,0.3);
    }

    .signup-input:focus {
        border-color: var(--blue-bright);
        background: rgba(255,255,255,0.1);
    }

/* ─── 16. CTA Section ──────────────────────────────────────────────────────── */

.cta-section {
    background: var(--navy);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 50% 100%, rgba(37,113,200,0.18) 0%, transparent 65%);
        pointer-events: none;
    }

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--display);
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 0.875rem;
}

.cta-section p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    font-size: 1.0625rem;
    padding: 0.875rem 2rem;
}

/* ─── 17. Site Footer ──────────────────────────────────────────────────────── */

.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand img {
    height: 26px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-links a {
        font-size: 0.875rem;
        color: rgba(255,255,255,0.5);
        text-decoration: none;
        transition: color .18s;
    }

        .footer-links a:hover {
            color: rgba(255,255,255,1);
        }

.footer-base {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
}

.footer-legal {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

    .footer-legal a {
        color: rgba(255,255,255,0.75);
        text-decoration: none;
    }

        .footer-legal a:hover {
            color: rgba(255,255,255,1);
        }

/* ─── 18. Utilities ────────────────────────────────────────────────────────── */

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 1.5rem;
}

.mt-lg {
    margin-top: 2rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mb-lg {
    margin-bottom: 2rem;
}

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

    .text-center .lead {
        margin-left: auto;
        margin-right: auto;
    }

/* ─── 19. Animations ───────────────────────────────────────────────────────── */

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── 20. Responsive Overrides ─────────────────────────────────────────────── */

@media (max-width: 960px) {
    .nav-logo-word {
        font-size: 17px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .briefing-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 840px) {
    .nav-logo-word {
        font-size: 16px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

        .feature-block.reverse > *:first-child {
            order: unset;
        }

        .feature-block.reverse > *:last-child {
            order: unset;
        }

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

@media (max-width: 768px) {
    .nav-logo-word {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-logo-word {
        display: none;
    }

    .stat-bar-inner {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1.5rem;
    }

    .footer-base {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

        .signup-form .btn-primary {
            justify-content: center;
        }
}

@media (max-width: 480px) {
    .nav-logo-word {
        display: none;
    }

    .nav-logo-img {
        height: 26px;
    }

    .hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .hero-split .hero-preview {
        display: none;
    }

    .briefing-split .issue-card {
        display: none;
    }
}

/* ─── 21. FAQ Page ─────────────────────────────────────────────────────────── */

/* Compact hero variant */
.hero-compact {
    padding: 3.5rem 1.5rem 3.25rem;
}

/* Filter tabs */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.faq-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
    white-space: nowrap;
}

    .faq-filter-btn:hover {
        border-color: rgba(37,113,200,0.5);
        color: var(--blue);
        background: var(--blue-xlight);
    }

    .faq-filter-btn.active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
    }

.faq-filter-count {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.65;
}

/* Results count */
.faq-result-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--mono);
    margin-bottom: 1.5rem;
}

/* Accordion list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}

    .faq-item:hover {
        border-color: rgba(37,113,200,0.3);
    }

    .faq-item.open {
        border-color: rgba(37,113,200,0.4);
        box-shadow: 0 4px 20px rgba(10,22,40,0.06);
    }

/* Question button row */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--ui);
}

    .faq-q:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: -2px;
        border-radius: var(--r);
    }

.faq-num {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    width: 1.75rem;
    line-height: 1;
}

.faq-q-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}

.faq-item.open .faq-q-text {
    color: var(--blue);
}

.faq-icon {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-xlight);
    border-radius: 50%;
    color: var(--blue);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease, background .18s, color .18s;
    user-select: none;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--blue);
    color: #fff;
}

/* Collapsible answer panel */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-a-inner {
    padding: 1.125rem 1.25rem 1.375rem 4rem;
    border-top: 1px solid var(--border);
}

    .faq-a-inner p {
        font-size: 0.9375rem;
        color: var(--text-mid);
        line-height: 1.72;
        margin-bottom: 0.875rem;
    }

        .faq-a-inner p:last-child {
            margin-bottom: 0;
        }

/* Category badge inside each answer */
.faq-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-xlight);
    border: 1px solid rgba(37,113,200,0.2);
    padding: 0.1875rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

/* ─── 21 responsive ────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .faq-filters {
        gap: 0.375rem;
    }

    .faq-filter-btn {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }

    .faq-a-inner {
        padding-left: 1.25rem;
    }

    .faq-num {
        display: none;
    }
}

/* ─── 22. About Page ───────────────────────────────────────────────────────── */

/* Profile two-column layout */
.profile-block {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Headshot placeholder */
.headshot-placeholder {
    background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 100%);
    border: 1px solid rgba(91,163,245,0.15);
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    position: relative;
}

    .headshot-placeholder::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(91,163,245,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(91,163,245,0.03) 1px, transparent 1px);
        background-size: 28px 28px;
        pointer-events: none;
    }

.headshot-initials {
    font-family: var(--display);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.12);
    letter-spacing: 0.05em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.headshot-label {
    font-family: var(--mono);
    font-size: 0.5625rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Profile name, role, tagline */
.profile-name {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.profile-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.125rem;
}

.profile-tagline {
    display: block;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--blue);
    line-height: 1.3;
    padding-left: 1rem;
    border-left: 3px solid var(--blue);
    margin-bottom: 1.75rem;
}

/* ─── 22 responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .profile-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .headshot-placeholder {
        max-width: 220px;
    }
}

/* ─── 23. Navigation: Mobile Hamburger ─────────────────────────────────────── */

/* Right-side nav group — wraps toggle button and CTA together */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Hamburger / close button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3125rem;
    color: rgba(255,255,255,0.75);
    border-radius: 5px;
    line-height: 0;
    transition: color .18s, background .18s;
}

    .nav-toggle:hover {
        color: #fff;
        background: rgba(255,255,255,0.07);
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--blue-bright);
        outline-offset: 2px;
        border-radius: 5px;
    }

/* Icon visibility — hamburger shows by default, close shows when menu is open */
.icon-hamburger,
.icon-close {
    width: 1.375rem;
    height: 1.375rem;
    display: block;
}

.icon-close {
    display: none;
}

.nav.is-open .icon-hamburger {
    display: none;
}

.nav.is-open .icon-close {
    display: block;
}

/* ─── 23 responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Show the toggle button on mobile */
    .nav-toggle {
        display: flex;
    }

    /* Dropdown panel — hidden until .is-open is added to .nav */
    .nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 0.375rem 0;
        z-index: 99;
        list-style: none;
    }

        .nav.is-open .nav-links li {
            width: 100%;
        }

        .nav.is-open .nav-links a {
            display: block;
            padding: 0.875rem 1.5rem;
            font-size: 1rem;
            border-radius: 0;
            color: rgba(255,255,255,0.75);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

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

        .nav.is-open .nav-links a:hover {
            color: #fff;
            background: rgba(255,255,255,0.06);
        }
}


/* ─── 24. AEO Guide & Content Components ──────────────────────────────────── */
/*
 * Styles unique to aeo-guide.html and similar content-heavy pages.
 * Merged from aeo-guide.css. Not duplicated from sections 1–23.
 */

/* Alternate section background — used inside .content-wrap for visual contrast */
.section-alt {
    background: var(--surface);
    margin: 0 -1.5rem;
    padding: 4rem 1.5rem;
}

/* CTA section top margin — adds breathing room above the CTA on guide pages */
.cta-section {
    margin-top: 4rem;
}

/* Simple footer — for guide and tool pages that do not use .site-footer */
footer:not(.site-footer) {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem;
    text-align: center;
}

    footer:not(.site-footer) p {
        font-size: 0.8125rem;
        color: rgba(255,255,255,0.3);
        margin-bottom: 0;
    }

    footer:not(.site-footer) a {
        color: rgba(255,255,255,0.4);
    }

/* ── Comparison grid ──────────────────────────────────────────────────────── */

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.compare-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem 1.5rem;
}

    .compare-card.highlight {
        border-color: rgba(37,113,200,0.35);
        background: var(--blue-xlight);
    }

.compare-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.compare-card.highlight .compare-card-label {
    color: var(--blue);
}

.compare-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compare-card li {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}

    .compare-card li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.6rem;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--text-muted);
    }

.compare-card.highlight li::before {
    background: var(--blue);
}

/* ── Code block ───────────────────────────────────────────────────────────── */

.code-block {
    background: var(--navy);
    border-radius: var(--r);
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.code-block-label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.code-block pre {
    padding: 1.25rem;
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #cfe8f4;
    overflow-x: auto;
    white-space: pre;
}

/* Syntax colours for .code-block (note: .jc .jk .js .jt serve .hero-preview) */
.ck {
    color: #5ba3f5;
}
/* key */
.cs {
    color: #9ad6ae;
}
/* string */
.ct {
    color: #c0a0e8;
}
/* @type / @context */
.cm {
    color: rgba(255,255,255,0.35);
}
/* tag / wrapper */

/* ── Schema type cards ────────────────────────────────────────────────────── */

.schema-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.schema-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.375rem;
    transition: border-color .18s, transform .14s;
}

    .schema-card:hover {
        border-color: rgba(37,113,200,0.4);
        transform: translateY(-2px);
    }

.schema-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--blue-xlight);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
}

.schema-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.375rem;
}

.schema-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.schema-card-where {
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--blue);
    padding: 0.25rem 0.625rem;
    background: var(--blue-xlight);
    border-radius: 4px;
    display: inline-block;
}

/* ── Numbered steps ───────────────────────────────────────────────────────── */

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.75rem;
    position: relative;
}

    .steps::before {
        content: '';
        position: absolute;
        left: 1.0625rem;
        top: 2rem;
        bottom: 2rem;
        width: 2px;
        background: var(--border);
    }

.step {
    display: grid;
    grid-template-columns: 2.125rem 1fr;
    gap: 1.125rem;
    padding: 0 0 2rem;
    position: relative;
}

    .step:last-child {
        padding-bottom: 0;
    }

.step-num {
    width: 2.125rem;
    height: 2.125rem;
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-body h3 {
    font-size: 1.0625rem;
    color: var(--navy);
    margin-bottom: 0.375rem;
    padding-top: 0.25rem;
}

.step-body p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

    .step-body p:last-child {
        margin-bottom: 0;
    }

/* ── Tab reference table ──────────────────────────────────────────────────── */

.tab-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

    .tab-table thead tr {
        background: var(--navy);
        color: rgba(255,255,255,0.85);
    }

    .tab-table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .tab-table td {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--border);
        color: var(--text-mid);
        line-height: 1.5;
        vertical-align: top;
    }

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

    .tab-table tr:nth-child(even) td {
        background: var(--bg);
    }

.tab-name {
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue);
    white-space: nowrap;
}

.tab-note {
    display: inline-block;
    font-size: 0.6875rem;
    font-family: var(--mono);
    background: var(--blue-xlight);
    color: var(--blue);
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.25rem;
}

/* ─── 24 responsive ────────────────────────────────────────────────────────── */

@media (max-width: 840px) {
    .schema-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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