/* ============================================================
   AX Testing — Design System + Page Styles
   Fonts: Crimson Pro (display serif) + IBM Plex Sans (body sans)
   ============================================================ */

/* --- Design Tokens --- */
:root {
    /* Color palette — OKLCH: dark navy-slate */
    --color-dark: oklch(24% 0.05 245); /* Dark navy: hero, dark sections */
    --color-dark-mid: oklch(
        29% 0.045 242
    ); /* Slightly lifted: proof bar, how section */
    --color-dark-surface: oklch(
        34% 0.04 240
    ); /* Cards, comparison table on dark bg */
    --color-light: oklch(
        97% 0.004 250
    ); /* Cool off-white: content backgrounds */
    --color-light-warm: oklch(
        95% 0.006 245
    ); /* Slightly warmer: tinted sections */
    --color-accent: oklch(72% 0.14 75); /* Muted amber: CTA buttons */
    --color-accent-hover: oklch(78% 0.14 75); /* Lighter amber: hover state */
    --color-accent-dark: oklch(62% 0.14 75); /* Darker amber: active state */

    /* Text */
    --color-text-dark: oklch(20% 0.015 245); /* Body text on light bg */
    --color-text-muted: oklch(40% 0.018 242); /* Secondary text on light bg */
    --color-text-light: oklch(95% 0.003 250); /* Text on dark bg */
    --color-text-light-muted: oklch(
        74% 0.012 240
    ); /* Secondary text on dark bg */

    /* Borders and dividers */
    --color-border: oklch(88% 0.003 250); /* Subtle borders on light bg */
    --color-border-dark: oklch(34% 0.035 242); /* Borders on dark bg */

    /* Accent dot */
    --color-dot: oklch(72% 0.14 75); /* Same as accent */

    /* Typography */
    --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
    --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;

    /* Type scale — modular, 1.25 major third */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 2rem; /* 32px */
    --text-4xl: clamp(2.25rem, 4vw, 3rem); /* 36-48px fluid */
    --text-hero: clamp(2.5rem, 5vw, 3.5rem); /* 40-56px fluid */

    /* Line heights */
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;

    /* Spacing — 4pt base */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 640px;
    --max-width-text: 72ch;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-text-dark);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
}

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

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

ul,
ol {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Focus styles --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-dark);
    border-bottom: 1px solid var(--color-border-dark);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: -0.01em;
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-light-muted);
    transition: color var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav__link:hover {
    color: var(--color-text-light);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background-color: var(--color-dark);
    padding: calc(var(--space-5xl) + 40px) 0 var(--space-5xl) 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__text {
    max-width: 640px;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 400;
    line-height: var(--leading-tight);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    text-wrap: balance;
}

.hero__headline em {
    font-style: italic;
}

.hero__subhead {
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: var(--leading-snug);
    color: var(--color-text-light-muted);
    margin-bottom: var(--space-lg);
    max-width: 52ch;
}

.hero__body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-light-muted);
    margin-bottom: var(--space-md);
    max-width: 60ch;
}

.hero__kicker {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-normal);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 60ch;
}

.hero__visual {
    position: relative;
    background-color: var(--color-dark-mid);
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__visual-label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    text-align: center;
    padding: var(--space-lg);
    line-height: var(--leading-normal);
    opacity: 0.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1;
    padding: 16px 36px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn--primary:active {
    background-color: var(--color-accent-dark);
    transform: translateY(0);
    box-shadow: none;
}

.btn--outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border-dark);
}

.btn--outline:hover {
    border-color: var(--color-text-light-muted);
    background-color: oklch(28% 0.02 212);
}

.btn__arrow {
    font-size: 1.1em;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* Under-button note */
.hero__btn-note {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    margin-top: var(--space-md);
}

/* Inline text link */
.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.inline-link:hover {
    text-decoration-color: var(--color-accent-hover);
}

.switch .inline-link {
    color: var(--color-text-dark);
    text-decoration-color: var(--color-accent-dark);
}

.switch .inline-link:hover {
    text-decoration-color: var(--color-accent);
}

/* ============================================================
   PROOF BAR
   ============================================================ */
.proof-bar {
    background-color: var(--color-dark-mid);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-dark);
    border-bottom: 1px solid var(--color-border-dark);
}

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

.proof-bar__line1 {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    letter-spacing: 0.02em;
    margin-bottom: ;
    max-width: 800px;
    margin: 0 auto var(--space-md) auto;
}

.proof-bar__line2 {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-light);
}

/* ============================================================
   AGITATION
   ============================================================ */
.agitation {
    background-color: var(--color-light);
    padding: var(--space-5xl) 0 var(--space-3xl) 0;
}

.agitation__inner {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.agitation__item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.agitation__item:last-child {
    margin-bottom: 0;
}

.agitation__dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-dot);
    margin-top: 5px;
}

.agitation__text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
}

.agitation__text strong {
    font-weight: 600;
}

/* ============================================================
   CROSSHEAD (billboard moment)
   ============================================================ */
.crosshead {
    background-color: var(--color-light);
    padding: var(--space-3xl) 0 var(--space-5xl) 0;
}

.crosshead__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.crosshead__text {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    text-wrap: balance;
}

/* ============================================================
   HOW SECTION (dark blocks)
   ============================================================ */
.how {
    background-color: var(--color-dark);
    padding: var(--space-4xl) 0;
}

.how__block {
    padding: var(--space-3xl) 0;
}

.how__block + .how__block {
    border-top: 1px solid var(--color-border-dark);
}

.how__inner {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: var(--space-3xl);
    align-items: start;
}

.how__inner--reverse {
    grid-template-columns: 0.58fr 0.42fr;
}

.how__inner--reverse .how__visual {
    order: 2;
}

.how__inner--reverse .how__content {
    order: 1;
}

.how__visual {
    position: relative;
    /*background-color: var(--color-dark-mid);
  border: 1px solid var(--color-border-dark);*/
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.how__visual-label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    text-align: center;
    padding: var(--space-lg);
    line-height: var(--leading-normal);
    opacity: 0.7;
}

.how__crosshead {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: var(--leading-snug);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    text-wrap: balance;
}

.how__body p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light-muted);
    margin-bottom: var(--space-md);
}

.how__body p:last-of-type {
    margin-bottom: 0;
}

.how__testimonial {
    margin-top: var(--space-xl);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-accent);
}

.how__testimonial-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-snug);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.how__testimonial-attr {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
}

/* ============================================================
   SWITCH SECTION
   ============================================================ */
.switch {
    background-color: var(--color-light);
    padding: var(--space-4xl) 0;
}

.switch__part {
    padding: var(--space-3xl) 0;
}

.switch__part + .switch__part {
    border-top: 1px solid var(--color-border);
}

.switch__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.switch__inner--wide {
    max-width: 820px;
}

.switch__crosshead {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
}

.switch__body p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.switch__body p:last-of-type {
    margin-bottom: 0;
}

.switch__body strong {
    font-weight: 600;
}

/* Switch cards (side-by-side outcome cards) */
.switch__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.switch__card {
    background-color: var(--color-light-warm);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.switch__card--fail {
    border-left: 3px solid oklch(50% 0.16 25);
}

.switch__card--pass {
    border-left: 3px solid oklch(50% 0.12 155);
}

.switch__card-icon {
    font-size: var(--text-2xl);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.switch__card--fail .switch__card-icon {
    color: oklch(50% 0.16 25);
}

.switch__card--pass .switch__card-icon {
    color: oklch(50% 0.12 155);
}

.switch__card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.switch__card-body {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.switch__card-body:last-of-type {
    margin-bottom: 0;
}

.switch__card-kicker {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: var(--space-md);
}

/* Pricing statement */
.switch__pricing {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    background-color: var(--color-light-warm);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    border-radius: 3px;
}

/* Pricing comparison */
.pricing-compare {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.pricing-compare__col {
    background-color: var(--color-light);
    padding: var(--space-lg);
    text-align: center;
}

.pricing-compare__col--highlight {
    background-color: var(--color-light-warm);
    border-left: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    padding: var(--space-xl) var(--space-lg);
}

.pricing-compare__col--competitor {
    opacity: 0.55;
}

.pricing-compare__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.pricing-compare__col--highlight .pricing-compare__label {
    color: var(--color-text-dark);
    font-weight: 600;
}

.pricing-compare__price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.pricing-compare__col--highlight .pricing-compare__price {
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-accent-dark);
}

.pricing-compare__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

/* Pricing comparison framing */
.pricing-compare__framing {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.pricing-compare__reinforce {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: var(--space-xl);
    text-align: center;
}

/* ============================================================
   CLOSE
   ============================================================ */
.close {
    background-color: var(--color-dark);
    padding: calc(var(--space-5xl) * 1.4) 0;
    border-top: 1px solid var(--color-border-dark);
}

.close__inner {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.close__headline {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: var(--leading-snug);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    text-wrap: balance;
}

.close__pricing {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-text-light-muted);
    margin-bottom: var(--space-xl);
}

.close__cta {
    margin-bottom: var(--space-xl);
}

.close__subtext {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-lg);
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
}

.close__inclusions {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-xl);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.close__testimonial {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-dark);
}

.close__testimonial-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-snug);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.close__testimonial-attr {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--color-dark);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-dark);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
}

.footer__copy {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--color-text-light);
}

.footer__sep {
    color: var(--color-border-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet / small laptop */
@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero__visual {
        max-width: 480px;
    }

    .how__inner,
    .how__inner--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .how__inner--reverse .how__visual {
        order: 0;
    }

    .how__inner--reverse .how__content {
        order: 0;
    }

    .pricing-compare {
        grid-template-columns: 1fr;
    }

    .pricing-compare__col--highlight {
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        border-top: 2px solid var(--color-accent);
        border-bottom: 2px solid var(--color-accent);
        padding: var(--space-lg);
    }

    .pricing-compare__col--competitor {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --space-lg: 20px;
        --space-xl: 28px;
        --space-2xl: 40px;
        --space-3xl: 56px;
        --space-4xl: 72px;
        --space-5xl: 96px;
    }

    .nav {
        padding: var(--space-md) var(--space-md);
    }

    .hero {
        padding-top: calc(var(--space-5xl) + 20px);
    }

    .hero__visual {
        aspect-ratio: 16 / 6;
    }

    .hero__headline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .crosshead__text {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .how__crosshead {
        font-size: var(--text-2xl);
    }

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

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

    .close__headline {
        font-size: var(--text-2xl);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

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