/**
 * GenAI Radar - Main Stylesheet
 * Organized by sections for maintainability
 */

/* ==========================================================================
   FONT FACES
   ========================================================================== */

@font-face {
    font-family: "Maliton";
    src: url("../font/Malinton-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Maliton";
    src: url("../font/Malinton-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Maliton";
    src: url("../font/Malinton-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Maliton";
    src: url("../font/Malinton-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --color-background: #020617;
    --color-text: #ffffff;
    --color-border: rgba(255, 255, 255, 0.28);
    --color-border-strong: #ffffff;
    --color-card-hover: rgba(255, 255, 255, 0.05);
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --font-sans: "Maliton", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --space-200: 0.5rem; /* 8px */
    --space-300: 0.75rem; /* 12px */
    --space-400: 1rem; /* 16px */
    --space-500: 1.5rem; /* 24px */
    --space-600: 2rem; /* 32px */
    --space-700: 2.5rem; /* 40px */
    --space-800: 3rem; /* 48px */
    --space-900: 4rem; /* 64px */
    color-scheme: dark;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.skip-link {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-text);
    color: var(--color-background);
    border-radius: 0.25rem;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 150ms ease;
    z-index: 10;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--color-background);
    outline-offset: 2px;
}

.page {
    width: min(100%, 640px);
    display: flex;
    flex-direction: column;
    gap: var(--space-800);
    opacity: 0;
    transform: translateY(12px);
    animation: fade-in 600ms ease forwards;
    animation-delay: 120ms;
}

/* Collective page specific styles - card container effect */
body.collective-body {
    padding: 40px 20px !important;
    align-items: flex-start;
    justify-content: center;
}

.page.collective-page {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-color: var(--color-background) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.page.collective-page .header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    text-align: center;
}

.page.collective-page .header .logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.page.collective-page .hero {
    padding: 40px;
    text-align: center;
}

.page.collective-page .hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0 0;
    line-height: 1.5;
}

.page.collective-page section {
    padding: 40px;
}

.page.collective-page .subscription-section {
    padding: 40px;
}

.page.collective-page footer {
    padding: 32px 40px 0;
}

.footer-logo {
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    bottom: 0;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.page.collective-page .footer-logo {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: center;
}

.page.collective-page .form-footer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 2rem 0 0;
    line-height: 1.5;
    text-align: center;
}

.page.collective-page .value-proposition {
    padding: 40px;
}

.page.collective-page .section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.page.collective-page .about-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.page.collective-page .benefits-section {
    padding: 40px;
    padding-top: 0;
}

.page.collective-page .social-proof-section {
    padding: 40px;
    padding-top: 0;
    padding-bottom: 20px;
}

.page.collective-page .links {
    padding: 40px;
    padding-top: 20px;
}

.page.collective-page .author-section {
    padding: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.page.collective-page .social-proof-section {
    text-align: center;
}

.page.collective-page .avatars-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.page.collective-page .avatars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page.collective-page .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #020617;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page.collective-page .avatars-container picture:not(:first-child) img {
    margin-left: -12px;
}

.page.collective-page .join-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin: 0;
    text-transform: lowercase;
}

.page.collective-page .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-300);
}

.page.collective-page .benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    line-height: 1.4;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.page.collective-page .benefits-list li span:first-child {
    flex-shrink: 0;
}

.page.collective-page .footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 640px) {
    body.collective-body {
        padding: 20px 10px;
    }

    .page.collective-page {
        margin: 0 10px;
        border-radius: 12px;
        max-width: 500px;
    }

    .page.collective-page .header {
        padding: 24px;
    }

    .page.collective-page .header .logo {
        max-width: 400px;
    }

    .page.collective-page .hero {
        padding: 24px;
    }

    .page.collective-page section {
        padding: 24px;
    }

    .page.collective-page .subscription-section {
        padding: 24px;
    }

    .page.collective-page .value-proposition {
        padding: 24px;
    }

    .page.collective-page footer {
        padding: 32px 24px 0;
    }
}

@media (max-width: 480px) {
    body.collective-body {
        padding: 15px 5px;
    }

    .page.collective-page {
        margin: 0 5px;
        max-width: 400px;
    }

    .page.collective-page .header {
        padding: 20px 16px;
    }

    .page.collective-page .header .logo {
        max-width: 300px;
    }

    .page.collective-page .hero {
        padding: 20px 16px;
    }

    .page.collective-page section {
        padding: 20px 16px;
    }

    .page.collective-page .subscription-section {
        padding: 20px 16px;
    }

    .page.collective-page .value-proposition {
        padding: 20px 16px;
    }

    .page.collective-page footer {
        padding: 32px 16px 0;
    }
}

@media (max-width: 330px) {
    body.collective-body {
        padding: 10px 5px;
    }

    .page.collective-page {
        margin: 0;
        max-width: 320px;
        border-radius: 8px;
    }

    .page.collective-page .header {
        padding: 16px 12px;
    }

    .page.collective-page .header .logo {
        max-width: 120px;
    }

    .page.collective-page .hero {
        padding: 16px 12px;
    }

    .page.collective-page section {
        padding: 16px 12px;
    }

    .page.collective-page .subscription-section {
        padding: 16px 12px;
    }

    .page.collective-page .value-proposition {
        padding: 16px 12px;
    }

    .page.collective-page footer {
        padding: 32px 12px 0;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--space-400);
}

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

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

nav {
    width: 100%;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* About Button */
.about-btn {
    display: flex;
    align-items: center;
    gap: var(--space-200);
    /* WebView fallback - solid background before backdrop-filter */
    background-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 10px var(--space-300);
    min-height: 44px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    /* WebView compatibility - backdrop-filter with prefixes and fallback */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.about-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.about-btn:focus-visible {
    outline: 2px solid var(--color-border-strong);
    outline-offset: 2px;
}

.social-icons {
    display: flex;
    gap: var(--space-100);
    opacity: 0.7;
}

.social-icons svg {
    transition: opacity 200ms ease;
}

.about-btn:hover .social-icons svg {
    opacity: 1;
}

/* Bottomsheet / Modal */
/* Mission Modal Styles */
.about-tagline {
    text-align: left;
    margin-bottom: 2rem;
}

.about-tagline p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-style: italic;
}

.about-unified {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
}

.about-content-block {
    margin: 1.5rem 0;
}

.about-content-block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #FFFFFF;
}

.about-content-block h3:first-child {
    margin-top: 0;
}

.about-content-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.about-statement {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #FFFFFF;
    font-style: italic;
}

/* Legal Notice & Privacy Policy bottomsheet content
   ========================================================================== */
.legal-content {
    color: rgba(255, 255, 255, 0.85);
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content section:last-of-type {
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #FFFFFF;
}

.legal-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 1.25rem 0 0.5rem 0;
    color: #FFFFFF;
}

.legal-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.legal-content ul {
    margin: 0 0 0.75rem 0;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.legal-content li {
    margin-bottom: 0.375rem;
}

.legal-content a {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.legal-content .info-section,
.legal-content .highlight-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 0.75rem 0 1rem 0;
}

.legal-content .info-section h4:first-child,
.legal-content .highlight-section h4:first-child {
    margin-top: 0;
}

.legal-content .info-section p:last-child,
.legal-content .highlight-section p:last-child,
.legal-content .info-section ul:last-child,
.legal-content .highlight-section ul:last-child {
    margin-bottom: 0;
}

.legal-content .contact-info {
    display: grid;
    gap: 0.5rem;
}

.legal-content .contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content .contact-item:last-child {
    border-bottom: none;
}

.legal-content .contact-label {
    font-weight: 500;
    color: #FFFFFF;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.legal-content .contact-value {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: right;
}

.legal-content .legal-updated {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .legal-content .contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .legal-content .contact-value {
        text-align: left;
    }
}

.about-cta {
    text-align: center;
    margin: 1.5rem 0;
}

.author-card.enhanced {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0;
}

.author-card.enhanced .author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-card.enhanced .author-avatar svg {
    width: 28px;
    height: 28px;
}



/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-400);
    text-align: center;
}

.headline {
    font-size: clamp(1.25rem, 4vw + 1rem, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* About Section */
.about {
    display: flex;
    flex-direction: column;
    gap: var(--space-400);
}

.section-heading {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.72;
}

.about-text {
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.125rem);
    line-height: 1.7;
    margin: 0;
    opacity: 0.92;
    position: relative;
    padding: var(--space-600) 4rem var(--space-600) 4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 8px;
}

.about-text::before {
    content: '';
    position: absolute;
    top: var(--space-400);
    left: var(--space-400);
    width: 28px;
    height: 28px;
    opacity: 0.4;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H1c0 1.5.5 3 2 3z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H13c0 1.5.5 3 2 3z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H1c0 1.5.5 3 2 3z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H13c0 1.5.5 3 2 3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.about-text::after {
    content: '';
    position: absolute;
    bottom: var(--space-400);
    right: var(--space-400);
    width: 28px;
    height: 28px;
    opacity: 0.4;
    background: currentColor;
    transform: rotate(180deg);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H1c0 1.5.5 3 2 3z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H13c0 1.5.5 3 2 3z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H1c0 1.5.5 3 2 3z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.008-1.006-1-2H13c0 1.5.5 3 2 3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.about-text p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Author Card */
.author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-400);

}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1rem);
    font-weight: 500;
    margin: 0;
    letter-spacing: normal;
}

.author-title {
    font-size: 0.875rem;
    opacity: 0.72;
    margin: 0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-border-strong) 0%, var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 150ms ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: var(--space-500);
    margin-top: var(--space-200);
}

.links-lede {
    font-size: 1rem;
    margin: 0;
    opacity: 0.72;
}

.links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-400);
}

.links-list__item {
    width: 100%;
}

.link-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-300);
    width: 100%;
    padding: var(--space-400) var(--space-600);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.link-card:hover {
    background-color: var(--color-card-hover);
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

.link-card:active {
    transform: scale(0.98);
}

.link-card:focus-visible {
    outline: 2px solid var(--color-border-strong);
    outline-offset: 4px;
}

.link-card__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.link-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-card__title {
    font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1rem);
    font-weight: 500;
    margin: 0;
}

.link-card__subtitle {
    font-size: 0.875rem;
    opacity: 0.72;
    margin: 0;
}

.link-card__arrow {
    font-size: 1rem;
    opacity: 0.75;
}

/* Disabled link styles */
.link-card--disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.link-card--disabled:hover {
    background-color: transparent;
    border-color: var(--color-border);
    transform: none;
}

.link-card--disabled .link-card__icon,
.link-card--disabled .link-card__arrow {
    opacity: 0.4;
}

/* Coming Soon tag styles */
.coming-soon-tag {
    display: block;
    margin-bottom: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    border-radius: 4px;
    width: fit-content;
}

/* Footer */
footer {
    margin-top: var(--space-400);
    font-size: 0.8125rem;
    opacity: 0.75;
    display: flex;
    flex-direction: column;
    gap: var(--space-400);
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.copyright {
    white-space: nowrap;
    text-align: center;
}

.legal-links {
    display: flex;
    gap: var(--space-400);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.legal-link {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.8125rem;
    opacity: 0.75;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 200ms ease;
    line-height: 1;
}

.legal-link:hover {
    opacity: 1;
}

/* Bottom Sheet Modal Styles */
.bottomsheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* WebView fallback - solid background is essential for overlay */
    background-color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    /* WebView compatibility - backdrop-filter with prefixes (optional enhancement) */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.bottomsheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottomsheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.bottomsheet.active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .bottomsheet {
        max-width: 560px;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
    }
}

.bottomsheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-500) var(--space-600);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-background);
    z-index: 1;
}

.bottomsheet-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.bottomsheet-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms ease;
}

.bottomsheet-close:hover {
    background-color: var(--color-card-hover);
}

.bottomsheet-close:focus-visible {
    outline: 2px solid var(--color-border-strong);
    outline-offset: 2px;
}

.bottomsheet-content {
    padding: var(--space-600);
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.bottomsheet-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--space-400) 0;
    color: var(--color-text);
}

.bottomsheet-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 var(--space-400) 0;
    opacity: 0.9;
}

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

/* ==========================================================================
   EMAIL SUBSCRIPTION STYLES (Shadcn UI Inspired + CRO Enhanced)
   ========================================================================== */

/* Accessibility Utilities */
.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;
}

.required-indicator {
    color: var(--color-error);
    font-weight: 400;
    margin-left: 0.125rem;
    opacity: 0.7;
}

/* Subscription Content */
.subscription-content {
    max-width: 500px;
    margin: 0 auto;
}

/* Enhanced Value Proposition */
.value-proposition {
    text-align: center;
    margin-bottom: var(--space-500);
}

.subscription-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--space-300) 0;
    line-height: 1.3;
}

.subscription-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.subscription-tagline strong {
    color: #ffffff;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: var(--space-500);
}

.social-proof {
    text-align: center;
    margin-bottom: var(--space-400);
}

.avatars-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.avatars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #020617;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.avatar:not(:first-child) {
    margin-left: -12px;
}

.avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.join-text {
    font-size: 0.725rem !important;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin: 0;
    text-transform: lowercase;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-300);
}

.benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    line-height: 1.4;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Subscription Form - Shadcn UI Style */
.subscription-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-500);
}

.form-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-400);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-300);
    position: relative;
}

.form-inline {
    display: flex;
    flex-direction: column;
    gap: var(--space-200);
}

.form-actions {
    display: flex;
    justify-content: center;
}

/* ========================================================================
   DEPRECATED STYLES - REMOVED TO FIX WEBVIEW RENDERING ISSUES
   These duplicate styles were causing conflicts in Safari WebView and Android WebView.
   The improved Shadcn UI-style definitions are located at line 1486+
   ======================================================================== */

/* Subscription Confirmation Styles */
.subscription-confirmation {
    text-align: center;
    padding: var(--space-500) 0;
    animation: fadeInUp 0.5s ease-out;
}

.confirmation-content {
    max-width: 400px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: var(--space-400);
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--space-300) 0;
    line-height: 1.3;
}

.confirmation-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--space-300) 0;
    line-height: 1.5;
}

.confirmation-email {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 0;
    padding: var(--space-200) var(--space-300);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-all;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Trust Indicators */
.trust-indicators {
    text-align: center;
    margin-top: var(--space-400);
}

.confirmation-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--space-300) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.trust-icon {
    font-size: 1rem;
}

/* Shadcn UI style labels - small, subtle, positioned above */
.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Shadcn UI inspired input styling - Enhanced for WebView compatibility */
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    padding-right: 2.75rem;
    /* WebView fallback - solid color before variable */
    background-color: rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    /* WebView fallback - solid color before variable */
    color: #ffffff;
    color: var(--color-text, #ffffff);
    font-size: 0.9375rem;
    /* WebView fallback - system fonts before custom font */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    line-height: 1.5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* WebView improvements */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    /* WebKit prefix for older iOS */
    -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.form-input:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.form-input:hover:not(:focus):not(:disabled) {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.04);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9375rem;
    /* WebKit prefix for older iOS */
    -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

.form-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Subtle input icon */
.input-icon {
    position: absolute;
    right: 0.875rem;
    font-size: 1.125rem;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.form-input:focus + .input-icon {
    opacity: 0.6;
}

/* Form Validation States - Shadcn UI Style - Enhanced for WebView */
.form-input.valid {
    border-color: rgba(34, 197, 94, 0.5);
}

.form-input.valid + .input-icon {
    opacity: 0.6;
    /* WebView fallback for CSS variable */
    color: #22c55e;
    color: var(--color-success, #22c55e);
}

.form-input.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-input.error + .input-icon {
    opacity: 0.6;
    /* WebView fallback for CSS variable */
    color: #ef4444;
    color: var(--color-error, #ef4444);
}

/* Subtle error messages */
.error-message {
    font-size: 0.8125rem;
    color: rgba(239, 68, 68, 0.9);
    margin: 0;
    min-height: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 200ms ease, transform 200ms ease;
    visibility: hidden;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}



/* Checkbox Group - Shadcn UI Style */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-300);
    margin: var(--space-400) 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.checkbox-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-200);
    font-weight: 400;
}

.checkbox-text {
    flex: 1;
}

.checkbox-label a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: opacity 150ms ease;
}

.checkbox-label a:hover {
    opacity: 0.7;
}

/* CAPTCHA Container - Cleaner style */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-500) 0;
    min-height: 78px;
    gap: var(--space-300);
}

.captcha-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-200);
    text-align: center;
}

.captcha-container altcha-widget {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

.captcha-container.verified {
    border-color: var(--color-success);
}

.captcha-container.verified::after {
    content: "✓ Verified";
    color: rgba(34, 197, 94, 0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: var(--space-200);
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-300);
}

/* Subscribe Button - Shadcn UI Style - Enhanced for WebView compatibility */
.subscribe-btn {
    /* WebView fallback - solid color before variable */
    background-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    border-radius: 6px;
    color: #020617;
    font-size: 0.9375rem;
    font-weight: 500;
    /* WebView fallback - system fonts before custom font */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif);
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.01em;
    /* WebView improvements */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    /* Ensure text is readable on button */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.subscribe-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* WebKit prefix for older iOS */
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.subscribe-btn:active:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.85);
}

.subscribe-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.subscribe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-text {
    transition: opacity 150ms ease;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(2, 6, 23, 0.2);
    border-top-color: #020617;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.subscribe-btn.loading .btn-text {
    opacity: 0;
    position: absolute;
}

.subscribe-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation Text - More subtle */
.confirmation-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: var(--space-200) 0 0 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Message Container - Shadcn UI Style */
.message-container {
    margin-top: var(--space-600);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    transform: translateY(4px);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 100%;
    font-weight: 400;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.message.info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.message.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.message.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.message.loading {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.message-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.message-text {
    flex: 1;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    /* Optimisation mobile pour l'image logo */
    .page > img {
        width: 120px;
        height: auto;
        margin-bottom: var(--space-400);
    }

    /* Optimisation mobile pour la section hero */
    .hero {
        margin-bottom: var(--space-600);
    }

    /* Optimisation mobile pour le titre principal */
    .headline {
        font-size: clamp(1rem, 3vw + 0.75rem, 1.25rem);
        line-height: 1.35;
        margin-bottom: var(--space-400);
    }

    /* Optimisation mobile pour la section about */
    .about {
        gap: var(--space-200);
        margin-bottom: var(--space-400);
    }

    .section-heading {
        font-size: 0.875rem;
        margin-bottom: var(--space-200);
    }

    /* Optimisations mobiles pour le texte de about */
    .about-text {
        font-size: 0.875rem;
        line-height: 1.5;
        padding: var(--space-400) var(--space-500);
        margin-bottom: var(--space-200);
    }

    .about-text::before,
    .about-text::after {
        width: 20px;
        height: 20px;
        top: var(--space-300);
        left: var(--space-300);
    }

    .about-text::after {
        bottom: var(--space-300);
        right: var(--space-300);
    }

    /* Optimisations Read More pour mobile */
    .about-full.expanded {
        max-height: 250px;
    }

    /* Optimisations modal Mission pour mobile */
    .bottomsheet-title {
        font-size: 1.5rem;
    }

    .bottomsheet-content {
        padding: 1.5rem;
    }

    .about-tagline p {
        font-size: 1rem;
    }

    .about-unified {
        padding: 1.5rem;
    }

    .about-content-block h3 {
        font-size: 1rem;
        margin: 1.25rem 0 0.5rem 0;
    }

    .about-content-block p {
        font-size: 0.9rem;
    }

    .about-statement {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }

    .author-card.enhanced {
        padding: 1rem;
    }

    .author-card.enhanced .author-avatar {
        width: 48px;
        height: 48px;
    }

    .author-card.enhanced .author-avatar svg {
        width: 24px;
        height: 24px;
    }

    /* Optimisation mobile pour l'author card */
    .author-card {
        gap: var(--space-300);
        margin-top: var(--space-200);
        margin-bottom: var(--space-300);
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 0.9375rem;
        letter-spacing: normal;
    }

    .author-title {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    /* Optimisation mobile pour les liens */
    .links {
        margin-bottom: var(--space-600);
        margin-top: var(--space-100);
    }

    .divider {
        margin: var(--space-200) 0;
    }

    .links-lede {
        font-size: 0.875rem;
        margin-bottom: var(--space-400);
    }

    .link-card {
        padding: var(--space-300) var(--space-400);
        margin-bottom: var(--space-300);
    }

    .link-card__title {
        font-size: 0.875rem !important;
        line-height: 1.3;
    }

    .link-card__subtitle {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    /* Ajustement du tag Coming Soon pour mobile */
    .coming-soon-tag {
        font-size: 0.625rem !important;
        padding: 0.1rem 0.3rem;
        margin-bottom: 0.2rem;
    }

    /* Optimisation mobile pour le footer */
    footer {
        font-size: 0.8125rem;
        padding-top: var(--space-200);
        flex-direction: column;
        gap: var(--space-300);
        margin-bottom: 0;
    }

    .legal-links {
        margin-top: var(--space-300);
        gap: var(--space-400);
        justify-content: center;
    }

    .legal-link {
        font-size: 0.8125rem;
    }

    /* Email Subscription Mobile Optimizations - Shadcn UI Style */
    .subscription-content {
        max-width: 100%;
    }

    .subscription-tagline {
        font-size: 0.9375rem;
        margin-bottom: var(--space-600);
    }

    .subscription-form {
        gap: var(--space-500);
    }

    .form-fieldset {
        gap: var(--space-400);
    }

    .form-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .form-label {
        font-size: 0.8125rem;
    }

    .error-message {
        font-size: 0.8125rem;
    }

    .checkbox-group {
        gap: var(--space-300);
        margin: var(--space-400) 0;
    }

    .checkbox-wrapper {
        gap: 0.625rem;
    }

    .checkbox-input {
        width: 18px;
        height: 18px;
        /* Ensure minimum touch target size on mobile */
        min-width: 44px;
        min-height: 44px;
        /* Use padding to maintain visual size while expanding touch area */
        padding: 13px;
        margin: -13px;
    }

    .checkbox-label {
        font-size: 0.8125rem;
    }

    .captcha-label {
        font-size: 0.8125rem;
    }

    .subscribe-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .confirmation-text {
        font-size: 0.8125rem;
        margin-top: var(--space-200);
    }

    .message-container {
        margin-top: var(--space-500);
        min-height: 50px;
    }

    .message {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.75rem;
    }

    .message-icon {
        font-size: 1.125rem;
    }

    .about-btn {
        min-height: 44px;
        padding: 10px var(--space-400);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #ffffff;
        --color-border-strong: #ffffff;
        --color-background: #000000;
        --color-text: #ffffff;
    }

    .form-input {
        border-width: 2px;
    }

    .form-input:focus {
        border-width: 3px;
    }

    .subscribe-btn {
        border-width: 2px;
    }
}

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

    .bottomsheet {
        transition: none !important;
    }

    .bottomsheet-overlay {
        transition: none !important;
    }

    .message {
        transition: none !important;
    }
}

/* Focus indicators for better accessibility */
@media (prefers-reduced-motion: no-preference) {
    *:focus-visible {
        outline: 2px solid var(--color-border-strong);
        outline-offset: 2px;
        transition: outline 0.2s ease;
    }
}

/* Enhanced touch targets for mobile devices */
@media (pointer: coarse) {
    .form-input,
    .subscribe-btn,
    .checkbox-input,
    .bottomsheet-close,
    .about-btn,
    .link-card {
        min-height: 44px;
        min-width: 44px;
    }

    .checkbox-input {
        transform: scale(1.2);
    }

    .link-card {
        padding: var(--space-400) var(--space-500);
    }
}
