/* ===================================
   JUNIPER CANVAS STUDIO - STYLES
   Modern gradient design
   =================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Blue gradient theme from Landing-Page */
    --color-brand: #2563eb;
    --color-brand-light: #3b82f6;
    --color-brand-dark: #1d4ed8;

    /* Text Colors */
    --color-text-primary: #0b1220;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8; /* WARNING: Fails WCAG contrast (3.22:1). Do not use for body text. */

    /* Background Colors */
    --color-bg-white: #ffffff;
    --color-bg-canvas: #f8fbff;
    --color-bg-muted: #f1f5f9;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --max-content-width: 1200px;
    --section-padding-y: 120px;
    --container-padding-x: 48px;
    --header-height: 80px;

    /* Border & Shadows */
    --border-radius: 1.5rem;
    --border-color: #e2e8f0;
    --shadow-card: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Line Heights */
    --line-height-body: 1.7;
    --line-height-heading: 1.2;
}

/* Mobile-first responsive spacing */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 80px;
        --container-padding-x: 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding-y: 60px;
        --container-padding-x: 24px;
        --header-height: 70px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand);
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--color-brand);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover,
a:focus {
    opacity: 0.8;
}

a:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    display: block;
    height: auto;
    max-height: 75px;
    width: auto;
}

@media (max-width: 640px) {
    .logo img {
        max-height: 60px;
        width: auto;
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1rem;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-brand);
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

.nav-cta .btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .nav-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    padding: calc(var(--section-padding-y) + 2rem) 0 var(--section-padding-y);
    text-align: center;
    background: var(--color-bg-canvas);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.18), transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    max-width: 900px;
}

.hero .subhead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .hero .subhead {
        font-size: 1.125rem;
    }
}

/* ===================================
   PROBLEM BLOCK
   =================================== */

.problem-block {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-bg-white);
}

.problem-block .container {
    max-width: 900px;
}

.prose-content {
    background: var(--color-bg-muted);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.prose-content p {
    font-size: 1.125rem;
    line-height: var(--line-height-body);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.prose-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .prose-content {
        padding: 2rem;
    }

    .prose-content p {
        font-size: 1rem;
    }
}

/* ===================================
   WHY IT WORKS - Feature Cards
   =================================== */

.why-it-works {
    padding: var(--section-padding-y) 0;
    background: var(--color-bg-canvas);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-brand);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===================================
   HOW IT WORKS - Steps
   =================================== */

.how-it-works {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-bg-white);
}

.steps {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    background: var(--color-bg-canvas);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .step {
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.step-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.step-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.microcopy-centered {
    text-align: center;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* ===================================
   FAQ - Card Grid
   =================================== */

.faq {
    padding: var(--section-padding-y) 0;
    background: var(--color-bg-canvas);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

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

.faq-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.faq-card h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.faq-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===================================
   FINAL CTA
   =================================== */

.final-cta {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    text-align: center;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--color-bg-white);
    margin-bottom: 2rem;
}

.waitlist-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }
}

.form-group input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    transition: all 0.2s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-group input[type="email"].error {
    border-color: #ef4444;
}

.form-group button {
    flex-shrink: 0;
    background: var(--color-bg-white);
    color: var(--color-brand);
}

.form-group button:hover {
    background: var(--color-bg-canvas);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .form-group button {
        width: 100%;
    }
}

.error-message {
    color: #ffffff;
    background-color: rgba(220, 38, 38, 0.9); /* Dark red background for WCAG AA contrast */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    min-height: 1.35rem;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #ffffff;
    background-color: rgba(5, 150, 105, 0.9); /* Dark green background for WCAG AA contrast */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    min-height: 1.5rem;
}

.final-cta .microcopy {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    padding: 3rem 0;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-info {
    flex: 1;
}

.footer-brand {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-nav {
        justify-content: center;
    }
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--color-brand);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.microcopy {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ===================================
   THANK YOU PAGE
   =================================== */

.thank-you-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    text-align: center;
    padding: var(--section-padding-y) 0;
}

.thank-you-page h1 {
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
}

.thank-you-page .subheading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.thank-you-page p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-page .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.thank-you-page .btn-secondary {
    color: var(--color-bg-white);
    text-decoration: underline;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.thank-you-page .btn-secondary:hover {
    opacity: 0.8;
}

/* ===================================
   LEGAL PAGE (Privacy, Terms)
   =================================== */

.legal-page {
    padding: var(--section-padding-y) 0;
    background: var(--color-bg-white);
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--color-text-primary);
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.legal-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.legal-page a {
    color: var(--color-brand);
    text-decoration: underline;
}

.legal-page a:hover {
    opacity: 0.8;
}

/* ===================================
   CONTACT PAGE
   =================================== */

.contact-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    padding: var(--section-padding-y) 0;
    text-align: center;
}

.contact-page h1 {
    color: var(--color-bg-white);
    margin-bottom: 1rem;
}

.contact-page .subheading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--color-bg-white);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-page .note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===================================
   404 ERROR PAGE
   =================================== */

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    text-align: center;
    padding: var(--section-padding-y) 0;
}

.error-page h1 {
    color: var(--color-bg-white);
    font-size: 6rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.error-page h2 {
    color: var(--color-bg-white);
    margin-bottom: 1rem;
}

.error-page p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.error-page .btn {
    margin-bottom: 2rem;
}

.error-page .helpful-links {
    margin-top: 2rem;
}

.error-page .helpful-links p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.error-page .helpful-links a {
    color: var(--color-bg-white);
    margin: 0 1rem;
    text-decoration: underline;
    font-size: 1rem;
}

.error-page .helpful-links a:hover {
    opacity: 0.8;
}

@media (max-width: 640px) {
    .error-page h1 {
        font-size: 4rem;
    }
}


/* ===================================
   COOKIE CONSENT
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 560px);
    background: var(--color-text-primary);
    color: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    line-height: 1.55;
}

.cookie-banner__intro {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
}

.cookie-banner__copy {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.cookie-banner__copy a {
    color: var(--color-brand-light);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cookie-banner__button--primary {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cookie-banner__button--primary:hover,
.cookie-banner__button--primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.cookie-banner__button--secondary {
    background: transparent;
    border: 1px solid rgba(248, 251, 255, 0.55);
    color: var(--color-bg-white);
}

.cookie-banner__button--secondary:hover,
.cookie-banner__button--secondary:focus {
    opacity: 0.8;
}

.cookie-banner__button:focus-visible {
    outline: 2px solid var(--color-brand-light);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        bottom: 0;
    }
}

.footer-nav .cookie-preferences-trigger {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0;
}

.footer-nav .cookie-preferences-trigger:hover,
.footer-nav .cookie-preferences-trigger:focus {
    color: var(--color-brand);
    text-decoration: underline;
}

.footer-nav .cookie-preferences-trigger:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}



