/* Branding Guidelines Implementation */

:root {
    /* Color Palette */
    /* Primary */
    --color-terra-cotta: #CC6B49;
    --color-sage-green: #7A9B76;

    /* Neutrals */
    --color-warm-cream: #FBF7F0;
    --color-deep-charcoal: #2B2B2B;
    --color-warm-grey: #8B7D6B;
    --color-warm-grey-light: #E5E7EB;
    /* For Ghost/Tertiary buttons */
    --color-soft-divider: #E8DED0;

    /* Functional */
    --color-moss-green: #5B7553;
    --color-amber-clay: #D4915E;
    --color-rust-red: #B85C4F;
    --color-dusty-lavender: #9B8BA3;

    /* Typography - Fonts */
    --font-primary: 'DM Sans', Inter, sans-serif;
    --font-mono: 'JetBrains Mono', 'Berkeley Mono', monospace;
    --font-accent: 'DM Sans', Inter, sans-serif;
    /* Remapped to primary */

    /* Typography - Marketing Scale (Storytelling) */
    --type-marketing-h1: clamp(2.5rem, 5vw, 4rem);
    --type-marketing-h2: clamp(1.75rem, 4vw, 2.5rem);
    --type-marketing-h3: clamp(1.25rem, 3vw, 1.75rem);
    --type-marketing-body-lead: 1.25rem;
    --type-marketing-body: 1.125rem;
    --type-marketing-lh: 1.7;

    /* Typography - Product Scale (Functional) */
    --type-product-h1: 1.75rem;
    --type-product-h2: 1.25rem;
    --type-product-h3: 1rem;
    --type-product-body: 1rem;
    --type-product-small: 0.875rem;
    --type-product-lh: 1.5;

    /* Typography - Line Heights */
    --type-lh-heading-tight: 1.1;
    --type-lh-heading-normal: 1.25;

    /* Spacing & Layout */
    --spacing-unit: 8px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    --shadow-card: 0 2px 12px rgba(139, 125, 107, 0.08);
    --shadow-card-hover: 0 12px 24px rgba(139, 125, 107, 0.12);
    --shadow-button: 0 4px 12px rgba(204, 107, 73, 0.2);
    --shadow-focus: 0 0 0 4px rgba(122, 155, 118, 0.12);

    /* Breakpoints (documentatie - gebruik in media queries) */
    /* --bp-xs: 375px;   Zeer klein mobiel */
    /* --bp-sm: 480px;   Mobiel */
    /* --bp-md: 768px;   Tablet */
    /* --bp-lg: 1024px;  Desktop */
}
/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* ==========================================================================
   Typography - Base + Dual Typescale Context
   ========================================================================== */

body {
    font-family: var(--font-primary);
    background-color: var(--color-warm-cream);
    color: var(--color-deep-charcoal);
    line-height: var(--line-height, 1.65);
    font-size: var(--body-size, 17px);
    -webkit-font-smoothing: antialiased;
}

/* --- Context Classes --- */

/* Marketing Context: Storytelling, high contrast */
.marketing-context {
    --h1-size: var(--type-marketing-h1);
    --h2-size: var(--type-marketing-h2);
    --h3-size: var(--type-marketing-h3);
    --body-size: var(--type-marketing-body);
    --body-lead-size: var(--type-marketing-body-lead);
    --line-height: var(--type-marketing-lh);
}

/* Product Context: Functional, compact */
.product-context {
    --h1-size: var(--type-product-h1);
    --h2-size: var(--type-product-h2);
    --h3-size: var(--type-product-h3);
    --body-size: var(--type-product-body);
    --small-size: var(--type-product-small);
    --line-height: var(--type-product-lh);
}

/* --- Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h1 {
    font-size: var(--h1-size, 2.5rem);
    line-height: var(--type-lh-heading-tight, 1.1);
}

h2 {
    font-size: var(--h2-size, 2rem);
    line-height: var(--type-lh-heading-normal, 1.25);
}

h3 {
    font-size: var(--h3-size, 1.5rem);
    line-height: var(--type-lh-heading-normal, 1.25);
}

/* --- Body & Links --- */
p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.lead {
    font-size: var(--body-lead-size, 1.25rem);
}

.small,
small {
    font-size: var(--small-size, 0.875rem);
}

a {
    color: var(--color-terra-cotta);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #B35A3A;
    /* Darker Terra Cotta */
}
/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 6);
    /* 48px */
}

@media (max-width: 768px) {
    .container {
        padding: calc(var(--spacing-unit) * 2);
        /* 16px on mobile */
    }
}
/* Header */
.site-header {
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: var(--color-warm-cream);
    position: relative;
    /* For z-index context */
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Space between logo and nav */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 28px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-image {
    opacity: 0.8;
}

/* Main Nav container */
.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Marketing Mode: Distribute space */
.main-nav--marketing {
    justify-content: space-between;
}

/* App Mode: Push content to right */
.main-nav--app {
    justify-content: flex-end;
}

/* Center Links (Marketing) */
.nav-links-center {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
    /* Attempt to center, though logo offset affects this */
}

.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Links */
.nav-link {
    font-weight: 500;
    color: var(--color-deep-charcoal);
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-terra-cotta);
}

.nav-link-subtle {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    /* From variables if avail, else fallback */
    color: #8B7D6B;
    /* Fallback based on branding */
    text-decoration: none;
    padding: 8px 12px;
}

.nav-link-subtle:hover {
    color: var(--color-terra-cotta);
}

/* User Menu & Avatar */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-icon {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    /* Remove extra line height space */
}

.user-avatar-icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.user-avatar-icon:focus {
    outline: none;
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border: 1.5px solid #E8DED0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 125, 107, 0.15);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.dropdown-menu.open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-user-info {
    padding: 12px 12px 8px;
    font-size: 0.9375rem;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #E8DED0;
    margin: 4px 0 8px;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    background: none;
    border: none;
    font-size: 0.9375rem;
    color: var(--color-deep-charcoal);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background-color: #FBF7F0;
    color: var(--color-terra-cotta);
}

.dropdown-item--danger:hover {
    background-color: #FFF5F5;
    color: #D32F2F;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-deep-charcoal);
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {

    .nav-links-center,
    .nav-actions-right {
        display: none;
        /* Hide standard nav items */
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    .main-nav--marketing {
        justify-content: flex-end;
        /* Push hamburger to right */
    }
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-warm-cream);
    /* Match header background */
    z-index: 200;
    overflow-y: auto;
    transform-origin: top;
    animation: fadeIn 0.2s ease-out;
    padding-top: calc(var(--spacing-unit) * 2);
    /* Match header padding */
}

.mobile-nav-panel.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    /* Align close button to the right */
    padding: 0 5%;
    /* Approximate container padding, or better yet use .container logic if feasible, but simply matching visual weight is usually enough */
    width: 100%;
    max-width: 1280px;
    /* Match standard container max-width if known, else usage flex */
    margin: 0 auto;
    padding-right: 20px;
    /* Adjust to match container padding */
}

/* Adjust based on container usually having padding */
@media (min-width: 768px) {
    .mobile-nav-header {
        padding-right: 40px;
    }
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    /* Add some spacing below header */
    gap: 8px;
    align-items: center;
    /* Center items for full screen feel? Or keep left? User didn't specify, but full screen often implies centered or large. Let's keep left but comfortably spaced. */
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.mobile-menu-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-deep-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-deep-charcoal);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.1s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: #FBF7F0;
    color: var(--color-terra-cotta);
}

.mobile-nav-divider {
    border: none;
    border-top: 1px solid #E8DED0;
    margin: 8px 0;
}

.mobile-nav-cta {
    display: block;
    background-color: var(--color-terra-cotta);
    color: #FBF7F0 !important;
    /* Force override link color */
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(204, 107, 73, 0.2);
}

.mobile-nav-cta:hover {
    background-color: #B35A3A;
    transform: translateY(-1px);
}
/* Footer */
.site-footer {
    background-color: var(--color-deep-charcoal);
    color: var(--color-warm-cream);
    padding: calc(var(--spacing-unit) * 6) 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

/* Marketing Footer */
.footer--marketing .footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
}

.footer--marketing .footer__logo {
    filter: brightness(0) invert(1);
    height: 24px;
    opacity: 0.9;
}

.footer--marketing .footer__nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.footer--marketing .footer__link {
    color: var(--color-warm-cream);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 200ms ease;
}

.footer--marketing .footer__link:hover {
    opacity: 1;
}

.footer--marketing .footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(251, 247, 240, 0.1);
}

.footer--marketing .footer__legal {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.footer--marketing .footer__legal-link {
    color: var(--color-warm-cream);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 200ms ease;
}

.footer--marketing .footer__legal-link:hover {
    opacity: 0.8;
}

.footer--marketing .footer__cta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.footer--marketing .footer__login {
    color: var(--color-warm-cream);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 200ms ease;
}

.footer--marketing .footer__login:hover {
    opacity: 1;
}

.footer--marketing .footer__signup {
    background-color: var(--color-terra-cotta);
    color: var(--color-warm-cream);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 200ms ease, transform 200ms ease;
}

.footer--marketing .footer__signup:hover {
    background-color: #B35A3A;
    transform: translateY(-1px);
}

.footer__copyright {
    color: var(--color-warm-cream);
    opacity: 0.5;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}

/* App Footer */
.footer--app {
    text-align: center;
}

.footer--app .footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
}

.footer--app .footer__links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.footer--app .footer__link {
    color: var(--color-warm-cream);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 200ms ease;
}

.footer--app .footer__link:hover {
    opacity: 0.8;
}

.footer--app .footer__copyright {
    width: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer--marketing .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer--marketing .footer__nav {
        gap: calc(var(--spacing-unit) * 2);
    }

    .footer--marketing .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 3);
    }

    .footer--marketing .footer__cta {
        width: 100%;
        justify-content: space-between;
    }

    .footer__copyright {
        text-align: left;
    }
}
/* Alerts */
.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius-sm);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-left-width: 4px;
    border-left-style: solid;
}

.alert__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.alert__close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert__close:hover {
    opacity: 1;
}

.alert-success {
    background-color: rgba(91, 117, 83, 0.1);
    border-left-color: var(--color-moss-green);
    color: var(--color-moss-green);
}

.alert-warning {
    background-color: rgba(212, 145, 94, 0.1);
    border-left-color: var(--color-amber-clay);
    color: var(--color-amber-clay);
}

.alert-error {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: rgba(184, 92, 79, 0.08);
    border-left-color: var(--color-rust-red);
    color: var(--color-rust-red);
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
}

.alert-error p {
    margin: 0;
    font-size: var(--step-0);
}

.alert-error ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: var(--step--1);
}

.alert-error li {
    margin-bottom: 0.25rem;
}

.alert-error li:last-child {
    margin-bottom: 0;
}

.alert-info {
    background-color: rgba(155, 139, 163, 0.1);
    border-left-color: var(--color-dusty-lavender);
    color: var(--color-deep-charcoal);
    /* Better readability than lavender text */
}
/* ==========================================================================
   Articles Module
   Styling for evergreen article pages
   ========================================================================== */

/* Article Index Page
   ========================================================================== */

.article-index-hero {
    padding: 80px 0 48px;
    background: var(--color-warm-cream);
}

.article-index-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
}

.article-index-subtitle {
    font-size: 1.25rem;
    color: #8B7D6B;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Article Card */
.article-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.article-card:hover {
    border-color: var(--color-terra-cotta);
    box-shadow: 0 4px 16px rgba(139, 125, 107, 0.12);
    transform: translateY(-2px);
}

.article-card__content {
    flex: 1;
}

.article-card__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.article-card:hover .article-card__title {
    color: var(--color-terra-cotta);
}

.article-card__excerpt {
    font-size: 0.9375rem;
    color: #8B7D6B;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-card__reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #8B7D6B;
}

.article-card__arrow {
    color: var(--color-soft-divider);
    transition: color 200ms ease, transform 200ms ease;
}

.article-card:hover .article-card__arrow {
    color: var(--color-terra-cotta);
    transform: translateX(4px);
}

/* Individual Article Page
   ========================================================================== */

.article {
    background: white;
}

.article__header {
    padding: 80px 0 48px;
    background: var(--color-warm-cream);
}

.article__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.article__breadcrumb a {
    color: var(--color-terra-cotta);
    text-decoration: none;
}

.article__breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article__breadcrumb-separator {
    color: var(--color-soft-divider);
}

.article__breadcrumb span:last-child {
    color: #8B7D6B;
}

.article__title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.article__intro {
    font-size: 1.25rem;
    color: #8B7D6B;
    line-height: 1.6;
    margin: 0;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.article__reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #8B7D6B;
}

/* Article Body */
.article__body {
    padding: 48px 0 64px;
}

.article__section {
    margin-bottom: 48px;
}

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

.article__section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.article__section h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.article__section p {
    font-size: 1.0625rem;
    color: var(--color-deep-charcoal);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.article__section ul,
.article__section ol {
    font-size: 1.0625rem;
    color: var(--color-deep-charcoal);
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.article__section li {
    margin-bottom: 8px;
}

.article__section li:last-child {
    margin-bottom: 0;
}

.article__section em {
    color: #8B7D6B;
}

.article__section strong {
    font-weight: 600;
}

/* Article Footer */
.article__footer {
    padding: 48px 0;
    background: white;
    border-top: 1px solid var(--color-soft-divider);
}

.article__cta-box {
    background: var(--color-warm-cream);
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.article__cta-box h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 8px 0;
}

.article__cta-box p {
    font-size: 1rem;
    color: #8B7D6B;
    margin: 0 0 20px 0;
}

/* Back Link */
.article__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-terra-cotta);
    text-decoration: none;
    transition: gap 200ms ease;
}

.article__back-link:hover {
    gap: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Related Articles */
.article__related {
    padding: 48px 0;
    background: var(--color-warm-cream);
}

.article__related-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 20px 0;
}

.article__related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article__related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.article__related-link:hover {
    border-color: var(--color-terra-cotta);
    box-shadow: 0 4px 16px rgba(139, 125, 107, 0.12);
    transform: translateY(-2px);
}

.article__related-link-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
}

.article__related-link:hover .article__related-link-title {
    color: var(--color-terra-cotta);
}

.article__related-link-arrow {
    color: var(--color-soft-divider);
    transition: color 200ms ease, transform 200ms ease;
}

.article__related-link:hover .article__related-link-arrow {
    color: var(--color-terra-cotta);
    transform: translateX(4px);
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .article-index-hero {
        padding: 48px 0 32px;
    }

    .article-index-title {
        font-size: 1.75rem;
    }

    .article-index-subtitle {
        font-size: 1.0625rem;
    }

    .article-card {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-card__arrow {
        display: none;
    }

    .article__header {
        padding: 48px 0 32px;
    }

    .article__title {
        font-size: 1.75rem;
    }

    .article__intro {
        font-size: 1.0625rem;
    }

    .article__body {
        padding: 32px 0 48px;
    }

    .article__section h2 {
        font-size: 1.25rem;
    }

    .article__cta-box {
        padding: 24px;
    }
}
/* ==========================================================================
   Authentication Pages Module
   Following SMACSS methodology - auth-specific layout and styling only
   Uses: _cards.css (.card, .card--auth), _forms.css (.form-stack, .form-hint, .form-checkbox)
         _alerts.css (.alert, .alert-error, .alert-warning)
   ========================================================================== */

/* --- Auth Container: Centers the auth card on page --- */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    /* Fallback voor oudere browsers */
    min-height: calc(100dvh - 200px);
    /* Moderne browsers (iOS Safari 15.4+) */
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
}

/* --- Auth Header: Title and subtitle --- */
.auth-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.auth-header__title {
    font-size: var(--type-product-h1);
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
}

.auth-header__subtitle {
    font-size: var(--type-product-body);
    color: var(--color-warm-grey);
    margin: 0;
    line-height: 1.5;
}

/* --- Auth Divider: "Or continue with email" separator --- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: calc(var(--spacing-unit) * 3) 0;
    color: var(--color-warm-grey);
    font-size: var(--type-product-small);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-soft-divider);
}

.auth-divider span {
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* --- Auth Actions: Full-width submit button wrapper --- */
.auth-actions {
    margin-top: calc(var(--spacing-unit) * 1);
}

.auth-actions .btn {
    width: 100%;
}

/* --- Auth Links: Navigation links between auth pages --- */
.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 4);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--color-soft-divider);
}

.auth-links a {
    color: var(--color-warm-grey);
    text-decoration: none;
    font-size: var(--type-product-small);
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: var(--color-terra-cotta);
}

/* --- Auth OAuth: Google sign-in button container --- */
.auth-oauth {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* --- Settings Page Specific Styles --- */
.auth-settings {
    max-width: 600px;
}

.auth-settings__section {
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.auth-settings__title {
    font-size: var(--type-product-h1);
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 calc(var(--spacing-unit) * 4) 0;
}

/* --- Danger Zone: Account deletion section --- */
.auth-danger-zone {
    background-color: rgba(184, 92, 79, 0.05);
    border: 1.5px solid rgba(184, 92, 79, 0.3);
    border-radius: var(--border-radius-md);
    padding: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.auth-danger-zone h3 {
    font-size: var(--type-product-h2);
    font-weight: 500;
    color: var(--color-rust-red);
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
}

.auth-danger-zone p {
    font-size: var(--type-product-body);
    color: var(--color-warm-grey);
    margin: 0 0 calc(var(--spacing-unit) * 3) 0;
}

/* --- Auth Terms Notice: Text below OAuth button --- */
.auth-terms-notice {
    font-size: var(--type-product-small);
    color: var(--color-warm-grey);
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 1.5);
    line-height: 1.5;
}

.auth-terms-notice a {
    color: var(--color-terra-cotta);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.auth-terms-notice a:hover {
    text-decoration-color: var(--color-terra-cotta);
}

/* --- Form Checkbox: Terms acceptance checkbox --- */
.form-group--checkbox {
    margin-top: calc(var(--spacing-unit) * 2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
    cursor: pointer;
}

.form-checkbox__input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--color-terra-cotta);
    cursor: pointer;
}

.form-checkbox__label {
    font-size: var(--type-product-body);
    color: var(--color-deep-charcoal);
    line-height: 1.5;
}

.form-checkbox__label a {
    color: var(--color-terra-cotta);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.form-checkbox__label a:hover {
    text-decoration-color: var(--color-terra-cotta);
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .auth-container {
        padding: calc(var(--spacing-unit) * 2);
        min-height: auto;
    }

    .auth-header__title {
        font-size: 1.5rem;
    }

    .auth-links {
        gap: calc(var(--spacing-unit) * 2);
    }

    .auth-links a {
        display: block;
        padding: 12px 16px;
        text-align: center;
        border-radius: var(--border-radius-sm);
    }

    .auth-links a:hover {
        background-color: rgba(204, 107, 73, 0.08);
    }
}
/* ==========================================================================
   Button Component
   BEM Structure: .btn, .btn--modifier
   ========================================================================== */

/* --- Base Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between icon and text */

    font-family: var(--font-primary);
    font-weight: 500;
    /* Reduced from 600 */
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;

    border: 1px solid transparent;
    /* Reduced from 2px */
    border-radius: 8px;
    /* Strict 8px radius, no pills */
    transition: all 0.2s ease;

    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Sizes --- */

/* Small: Compact, high density */
.btn--s {
    font-size: 0.875rem;
    /* 14px */
    padding: 6px 12px;
}

/* Medium: Standard (Default) */
.btn--m {
    font-size: 1rem;
    /* 16px */
    padding: 10px 20px;
}

/* Large: Hero / Landing Page */
.btn--l {
    font-size: 1.25rem;
    /* 20px */
    padding: 16px 32px;
    font-weight: 600;
    /* Reduced from 700 */
}


/* --- Semantic Variants --- */

/* Primary: The Main Action (Solid) */
.btn--primary {
    background-color: var(--color-terra-cotta);
    color: var(--color-warm-cream);
    box-shadow: var(--shadow-button);
}

.btn--primary:hover {
    background-color: #B35A3A;
    /* Darker Terra Cotta */
    color: white;
    box-shadow: 0 6px 16px rgba(204, 107, 73, 0.3);
    /* Enhanced shadow, no movement */
}

.btn--primary:active {
    box-shadow: var(--shadow-button);
    /* Return to normal shadow */
}

/* Secondary: Alternative Action (Outline) */
.btn--secondary {
    background-color: transparent;
    border-color: var(--color-terra-cotta);
    color: var(--color-terra-cotta);
}

.btn--secondary:hover {
    background-color: rgba(204, 107, 73, 0.1);
    /* Subtle tint instead of solid */
    color: #B35A3A;
    border-color: #B35A3A;
}

/* Tertiary: Low Priority / Navigation (Charcoal Tint -> Peach Tint) */
.btn--tertiary {
    background-color: rgba(43, 43, 43, 0.1);
    /* Deep Charcoal #2B2B2B at 10% */
    color: var(--color-deep-charcoal);
    border-color: transparent;
}

.btn--tertiary:hover {
    background-color: rgba(204, 107, 73, 0.1);
    /* Match Secondary hover (10% Terra Cotta) */
    color: #B35A3A;
    /* Match Secondary hover text */
}

/* Danger: Destructive Action */
.btn--danger {
    background-color: var(--color-warm-grey-light);
    color: var(--color-rust-red);
    border-color: transparent;
}

.btn--danger:hover {
    background-color: #fee2e2;
    /* Light red bg */
    color: #991b1b;
    /* Dark red text */
}

/* --- Icons --- */

/* Icons are handled by flex gap, but we ensure they size correctly */
.btn svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.btn--s svg {
    width: 16px;
    height: 16px;
}

/* --- Legacy / Global Overrides (To be phased out or mapped) --- */
input[type="submit"] {
    display: inline-block;
    background-color: var(--color-terra-cotta);
    color: var(--color-warm-cream);
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

input[type="submit"]:hover {
    background-color: #B35A3A;
    box-shadow: 0 6px 16px rgba(204, 107, 73, 0.3);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .btn--s {
        padding: 10px 16px;
        min-height: 44px;
    }

    .btn--m {
        min-height: 48px;
    }
}
/* Cards */
.card {
    background: white;
    /* or #FBF7F0, but white provides better contrast on cream bg */
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 4);
    /* 32px */
    box-shadow: var(--shadow-card);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Card modifier for auth pages - centered with max-width */
.card--auth {
    width: 100%;
    max-width: 460px;
    padding: calc(var(--spacing-unit) * 5);
    margin-bottom: 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .card--auth {
        padding: calc(var(--spacing-unit) * 4);
    }
}
/* styling for the check inbox page */

.check-inbox-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 4);
    background-color: var(--color-warm-cream);
}

.check-inbox-card {
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 6);
    box-shadow: 0 2px 12px rgba(139, 125, 107, 0.08);
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.check-inbox-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(204, 107, 73, 0.1);
    /* Terra Cotta at 10% */
    border-radius: 50%;
    margin: 0 auto calc(var(--spacing-unit) * 4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terra-cotta);
}

.check-inbox-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-family: var(--font-primary);
}

.check-inbox-text {
    font-size: 1.1rem;
    color: var(--color-deep-charcoal);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.check-inbox-email {
    font-weight: 600;
    color: var(--color-terra-cotta);
}

/* Alert Box - Using Info/Tip Style from guidelines but adapted for this context */
.spam-notice-box {
    background-color: rgba(155, 139, 163, 0.1);
    /* Dusty Lavender at 10% */
    border-left: 4px solid var(--color-dusty-lavender);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: left;
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.spam-notice-icon {
    flex-shrink: 0;
    color: var(--color-dusty-lavender);
    margin-top: 2px;
}

.spam-notice-content h4 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--color-deep-charcoal);
}

.spam-notice-content p {
    font-size: 0.9rem;
    color: var(--color-warm-grey);
    margin: 0;
}

.resend-section {
    border-top: 1px solid var(--color-soft-divider);
    padding-top: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

.resend-label {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-warm-grey);
    font-size: 0.95rem;
}

.resend-timer {
    display: block;
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
    color: var(--color-warm-grey);
    font-family: var(--font-mono);
}

.max-reached-notice {
    text-align: center;
}

.max-reached-text {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    margin-top: calc(var(--spacing-unit) * 2);
}

.max-reached-text a {
    color: var(--color-terra-cotta);
    text-decoration: underline;
}
/* ============================================
   CHOICE CARDS - Unified Selection Component
   ============================================
   Used for: duration/pricing selection, "how did you come up with this", etc.
   
   Accessibility features:
   - Visible focus ring (keyboard navigation)
   - Sufficient color contrast
   - Clear visual selected state
   - Proper label/input association
*/

/* Grid Container */
.choice-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
}

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

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

@media (max-width: 900px) {
    .choice-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {

    .choice-grid--2col,
    .choice-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* Card Label (wrapper) */
.choice-card {
    display: block;
    cursor: pointer;
    position: relative;
}

/* Hidden Radio Input */
.choice-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Card Content */
.choice-content {
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover State */
.choice-card:hover .choice-content {
    border-color: var(--color-warm-grey);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 125, 107, 0.1);
}

/* Focus State (a11y - keyboard navigation) */
.choice-input:focus-visible+.choice-content {
    outline: 2px solid var(--color-sage-green);
    outline-offset: 2px;
    border-color: var(--color-sage-green);
}

/* Selected State - subtle, consistent for all cards */
.choice-input:checked+.choice-content {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.04));
}

/* Radio Indicator (circle → checkmark) - ALL cards */
.choice-content::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--color-soft-divider);
    background: white;
    transition: all 0.2s ease;
}

.choice-card:hover .choice-content::after {
    border-color: var(--color-warm-grey);
}

.choice-input:checked+.choice-content::after {
    border-color: var(--color-terra-cotta);
    background: var(--color-terra-cotta);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.55 18l-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   CHOICE CARD VARIANTS
   ============================================ */

/* Simple Choice (text + optional icon in row) */
.choice-content--simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 3rem;
    /* Space for checkmark */
}

.choice-content--simple .choice-icon {
    color: var(--color-warm-grey);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.choice-card:hover .choice-content--simple .choice-icon {
    color: var(--color-terra-cotta);
}

.choice-input:checked+.choice-content--simple .choice-icon {
    color: var(--color-terra-cotta);
}

.choice-content--simple .choice-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-deep-charcoal);
}

/* Pricing Choice (stacked: badge, time, price, tagline) */
.choice-content--pricing {
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    /* Radio indicator positioned top-right, same as simple cards */
}

/* Badge (e.g., "Best Practice", "Free Trial") */
.choice-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.choice-badge--best {
    background: var(--color-terra-cotta);
    color: white;
}

.choice-badge--free {
    background: var(--color-moss-green);
    color: white;
}

/* Time Display */
.choice-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-deep-charcoal);
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.choice-time-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-warm-grey);
}

/* Price */
.choice-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    margin: 0.25rem 0 0.5rem;
}

.choice-price--free {
    color: var(--color-moss-green);
}

.choice-price--best {
    color: var(--color-terra-cotta);
}

.choice-price-original {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Tagline */
.choice-tagline {
    font-size: 0.85rem;
    color: var(--color-warm-grey);
    margin: 0;
}

/* ============================================
   CARD VARIANTS (Pre-styled borders/backgrounds)
   ============================================ */

/* Best Practice Card Variant */
.choice-card--best .choice-content {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.03));
}

/* Free Trial Card Variant */
.choice-card--free .choice-content {
    border-color: var(--color-sage-green);
    background: linear-gradient(to bottom, #fff, rgba(122, 155, 118, 0.03));
}

.choice-card--free .choice-input:checked+.choice-content {
    border-color: var(--color-moss-green);
}

/* Green checkmark for free trial variant */
.choice-card--free .choice-input:checked+.choice-content::after {
    border-color: var(--color-moss-green);
    background: var(--color-moss-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.55 18l-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   FORM CHOICE VARIANT
   ============================================
   Used for: form selections with icon + title + description
   Examples: usage interview questions, user segments
*/

.choice-content--form {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    /* Space for checkmark */
}

.choice-content--form .choice-icon {
    flex-shrink: 0;
    color: var(--color-warm-grey);
    margin-top: 0.125rem;
    transition: color 0.2s ease;
}

.choice-card:hover .choice-content--form .choice-icon {
    color: var(--color-terra-cotta);
}

.choice-input:checked+.choice-content--form .choice-icon {
    color: var(--color-terra-cotta);
}

.choice-content--form .choice-text {
    flex: 1;
    min-width: 0;
}

.choice-content--form .choice-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-deep-charcoal);
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.choice-content--form .choice-desc {
    font-size: 0.85rem;
    color: var(--color-warm-grey);
    margin: 0;
    line-height: 1.4;
}

/* Form section styling */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-header {
    margin-bottom: 1.25rem;
}

.form-section-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin: 0 0 0.25rem 0;
}

.form-section-hint {
    font-size: 0.9rem;
    color: var(--color-warm-grey);
    margin: 0;
}

/* Conditional detail field styling */
.conditional-detail {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-warm-cream);
    border-radius: 8px;
    border: 1px solid var(--color-soft-divider);
}

.conditional-detail .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--color-deep-charcoal);
}
/* Dashboard Styles */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.dashboard-header h1 {
    margin-bottom: 0;
}

.scripts-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.script-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
    /* Fix for icon wobble during transform */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.script-card-link:hover {
    transform: translateY(-2px) translateZ(0);
}

.script-card {
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.script-card:hover {
    border-color: var(--color-terra-cotta);
    box-shadow: 0 4px 16px rgba(139, 125, 107, 0.12);
}

.script-card-content {
    flex: 1;
}

.script-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.script-audience {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    margin: 0 0 calc(var(--spacing-unit) * 1.5) 0;
    line-height: 1.4;
}

.script-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    font-size: 0.95rem;
    color: var(--color-warm-grey);
}

.script-type,
.script-date,
.script-duration {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
}

.script-icon {
    width: 16px;
    height: 16px;
    color: var(--color-warm-grey);
}

.script-card-chevron {
    color: var(--color-warm-grey);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.script-card:hover .script-card-chevron {
    color: var(--color-terra-cotta);
}

.empty-state {
    text-align: center;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state p {
    color: var(--color-warm-grey);
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 2);
    }

    .script-meta {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
    }

    .script-card {
        padding: calc(var(--spacing-unit) * 2);
    }
}

/* Phase Introduction Text */
.phase-intro {
    color: var(--color-warm-grey);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}

/* Phase Selection Cards */
.phase-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.phase-card-label {
    display: block;
    cursor: pointer;
    height: 100%;
}

.phase-card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.phase-card {
    height: 100%;
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 3);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.phase-card:hover {
    border-color: var(--color-warm-grey);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.phase-card-input:checked+.phase-card {
    border-color: var(--color-terra-cotta);
    background-color: rgba(204, 107, 73, 0.03);
    box-shadow: 0 0 0 2px rgba(204, 107, 73, 0.1);
}

.phase-card-input:focus+.phase-card {
    box-shadow: var(--shadow-focus);
}

.phase-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-terra-cotta);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.phase-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--color-deep-charcoal);
}

.phase-description {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    line-height: 1.5;
}

/* Duration Selector */
.duration-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: 2rem;
}

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

.duration-card {
    display: block;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.duration-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.duration-content {
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* Recommended Trial Card Styling */
.duration-card.recommended .duration-content {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom right, #fff, rgba(204, 107, 73, 0.03));
}

.duration-card:hover .duration-content {
    border-color: var(--color-warm-grey);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 125, 107, 0.15);
}

.duration-radio:checked+.duration-content {
    border-color: var(--color-terra-cotta);
    background-color: var(--color-warm-cream);
    /* Warm cream for selected state */
    box-shadow: 0 0 0 2px rgba(204, 107, 73, 0.15);
}

.duration-radio:focus+.duration-content {
    box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.2);
    /* Sage green focus ring */
}

/* Header: Label + Check Icon */
.duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.duration-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
}

.duration-check-icon {
    color: var(--color-sage-green);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.duration-radio:checked+.duration-content .duration-check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Price Display */
.duration-price-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-deep-charcoal);
    font-feature-settings: "tnum";
}

.price-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--color-warm-grey);
}

/* Trial Tag */
.trial-tag {
    background: rgba(122, 155, 118, 0.15);
    /* Sage green tint */
    color: var(--color-moss-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.duration-desc {
    font-size: 0.9rem;
    color: var(--color-warm-grey);
    line-height: 1.4;
    margin: 0;
}

/* Generic Selection Cards (legacy support if needed elsewhere) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: 0.75rem;
}

.selection-card {
    display: block;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.selection-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.selection-content {
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-deep-charcoal);
}

.selection-icon {
    color: var(--color-warm-grey);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.selection-card:hover .selection-content {
    border-color: var(--color-warm-grey);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 125, 107, 0.1);
}

.selection-card:hover .selection-icon {
    color: var(--color-terra-cotta);
}

.selection-radio:checked+.selection-content {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.03));
    box-shadow: 0 0 0 2px rgba(204, 107, 73, 0.12);
}

.selection-radio:checked+.selection-content .selection-icon {
    color: var(--color-terra-cotta);
}

.selection-radio:focus+.selection-content {
    box-shadow: var(--shadow-focus);
}

.selection-icon {
    color: var(--color-terra-cotta);
    display: flex;
    align-items: center;
}

/* Duration Price Styling */
.duration-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.duration-price {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-deep-charcoal);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.duration-price--free {
    color: var(--color-sage-green);
}

.duration-price--original {
    text-decoration: line-through;
    color: var(--color-warm-grey);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.duration-trial-badge {
    font-size: 0.75rem;
    background: rgba(139, 168, 134, 0.15);
    color: var(--color-sage-green);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 500;
}

.duration-trial-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 168, 134, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--color-sage-green);
    font-size: 0.9rem;
}

/* Coupon Section */
.coupon-section {
    margin-top: 1.5rem;
}

.coupon-toggle {
    background: none;
    border: none;
    color: var(--color-warm-grey);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: color 0.2s ease;
}

.coupon-toggle:hover {
    color: var(--color-terra-cotta);
}

.coupon-input-wrapper {
    margin-top: 0.75rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--color-terra-cotta);
}

.coupon-apply-btn {
    padding: 0.5rem 1rem;
    background: var(--color-deep-charcoal);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.coupon-apply-btn:hover {
    background: var(--color-terra-cotta);
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.coupon-success {
    color: var(--color-sage-green);
}

.coupon-error {
    color: var(--color-terra-cotta);
}
/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--color-soft-divider);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-card);
    z-index: 10;
    min-width: 280px;
    overflow: hidden;
    padding: 0;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: none;
    border-radius: 0;
    color: var(--color-deep-charcoal);
    transition: background-color 0.2s ease;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Reset global button styles */
button.dropdown-item {
    background-color: transparent;
    color: var(--color-deep-charcoal);
    box-shadow: none;
    transform: none;
    margin: 0;
}

button.dropdown-item:hover {
    background-color: rgba(204, 107, 73, 0.12);
    transform: none;
    box-shadow: none;
    color: var(--color-deep-charcoal);
}

.dropdown-item+.dropdown-item {
    border-top: 1px solid var(--color-soft-divider);
}

.dropdown-item-icon {
    margin-top: 3px;
    color: var(--color-terra-cotta);
    flex-shrink: 0;
}

.dropdown-item-title {
    display: block;
    color: var(--color-deep-charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-item-description {
    display: block;
    color: var(--color-warm-grey);
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: normal;
}
/* Forms */
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Form stack: vertical layout with consistent gaps */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-weight: 500;
    color: var(--color-deep-charcoal);
}

/* Form section title: subsection headings within forms */
.form-section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin-bottom: 0.25rem;
}

/* Small labels within form groups */
.form-label--small {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    font-size: 17px;
    font-family: var(--font-primary);
    color: var(--color-deep-charcoal);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-sage-green);
    box-shadow: var(--shadow-focus);
}

/* Form hint: helper text below inputs */
.form-hint {
    font-size: var(--type-product-small);
    color: var(--color-warm-grey);
    margin-top: calc(var(--spacing-unit) * 0.5);
}

/* Checkbox inline layout */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: var(--type-product-body);
    color: var(--color-deep-charcoal);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-terra-cotta);
    cursor: pointer;
}

.form-checkbox label {
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        padding: 16px 18px;
        font-size: 16px;
        /* Voorkomt auto-zoom op iOS */
    }
}
/* Hero Section */
.hero-section {
    padding: calc(var(--spacing-unit) * 12) 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture/gradient maybe later */

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--color-deep-charcoal);
}

.text-highlight {
    display: block;
}

.text-highlight.accent {
    color: var(--color-terra-cotta);
    position: relative;
    display: inline-block;
}

/* Hand-drawn underline SVG positioning */
.hero-underline-svg {
    position: absolute;
    bottom: -0.6em;
    /* Relative positioning to scale with font size */
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: -1;
    display: block;
}

.text-highlight.accent {
    white-space: nowrap;
    /* Prevent line break breaking the SVG */
}

.hero-content .subheadline {
    font-size: 1.35rem;
    color: var(--color-deep-charcoal);
    margin-top: calc(var(--spacing-unit) * 8);
    /* Increased spacing from headline */
    margin-bottom: calc(var(--spacing-unit) * 5);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.85;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-container {
        gap: calc(var(--spacing-unit) * 4);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: calc(var(--spacing-unit) * 4);
        padding-bottom: calc(var(--spacing-unit) * 6);
    }

    .hero-visual {
        margin-top: calc(var(--spacing-unit) * 4);
        /* Ensure image doesn't overflow on very small screens */
        width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 375px) {
    .hero-container {
        padding: 0 20px;
        /* More breathing room on small screens */
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .hero-content .subheadline {
        font-size: 1rem;
        margin-top: 32px;
        line-height: 1.5;
    }

    .text-highlight.accent {
        white-space: normal;
        /* Allow wrapping on very small screens */
    }
}

/* HERO CENTERING OVERRIDES */
.hero-section {
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    font-size: clamp(3.5rem, 9vw, 5.5rem);
}

.text-highlight {
    display: inline-block;
}
/* Homepage Specific Styles */

/* Editorial Section Labels */
.section-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-warm-grey);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
    font-size: var(--h2-size, 2.75rem);
    /* Uses marketing or app scale */
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title span {
    display: block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Section Intro Paragraphs */
.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto calc(var(--spacing-unit) * 8);
    color: var(--color-warm-grey);
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Problem Section */
.problem-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius-lg);
    border: 1.5px solid var(--color-soft-divider);
}

/* Problem Section - Enhanced */
.problem-section {
    padding: calc(var(--spacing-unit) * 12) 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 5);
}

.problem-card {
    background: white;
    padding: calc(var(--spacing-unit) * 5);
    border-radius: var(--border-radius-lg);
    border: 1.5px solid var(--color-soft-divider);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Rotation and Hover Effects */
.problem-card:nth-child(1) {
    transform: rotate(-1.5deg);
}

.problem-card:nth-child(2) {
    transform: rotate(1deg);
    z-index: 1;
    margin-top: -10px;
}

.problem-card:nth-child(3) {
    transform: rotate(-1deg);
}



.problem-card .phase-icon {
    background-color: rgba(204, 107, 73, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-terra-cotta);
}

.problem-card h3 {
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.problem-card .phase-description {
    color: var(--color-warm-grey);
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .problem-card:nth-child(n) {
        transform: none;
        margin-top: 0;
    }
}

/* Solution Section */
.solution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    position: relative;
}

.solution-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    background: var(--color-terra-cotta);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    font-weight: bold;
}

/* ===================================
   INPUT / OUTPUT SECTION
   =================================== */
.solution-section {
    padding: calc(var(--spacing-unit) * 14) 0;
    background-color: white;
}

.input-output-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

/* Columns */
.io-column {
    background: var(--color-warm-cream);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 5);
    border: 1.5px solid var(--color-soft-divider);
}

.io-input {
    transform: rotate(-1.5deg);
}

.io-output {
    background: white;
    border-color: var(--color-terra-cotta);
    border-width: 2px;
    box-shadow: 0 8px 32px rgba(204, 107, 73, 0.08);
    transform: rotate(1.5deg);
}

/* Headers */
.io-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--color-soft-divider);
}

.io-label {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-warm-grey);
}

.io-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-sage-green);
    background: rgba(122, 155, 118, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.io-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-terra-cotta);
    background: rgba(204, 107, 73, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* List Items */
.io-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.io-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
}

.io-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-terra-cotta);
    margin-top: 2px;
}

.io-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.io-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.io-item-desc {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    line-height: 1.5;
}

/* Arrow Divider */
.io-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.io-arrow-icon {
    width: 40px;
    height: 40px;
    color: var(--color-terra-cotta);
    opacity: 0.6;
}

/* CTA */
.io-cta {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 8);
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 900px) {
    .input-output-layout {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .io-arrow {
        padding: calc(var(--spacing-unit) * 2) 0;
    }

    .io-arrow-icon {
        transform: rotate(90deg);
        width: 32px;
        height: 32px;
    }

    .io-column {
        padding: calc(var(--spacing-unit) * 4);
    }
}

@media (max-width: 480px) {
    .io-header {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .io-item-title {
        font-size: 1rem;
    }

    .io-item-desc {
        font-size: 0.9rem;
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 4);
}

.feature-card {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    align-items: flex-start;
}

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

/* Personas Section */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

.persona-card {
    background: var(--color-warm-cream);
    border: 1.5px solid var(--color-soft-divider);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 4);
}

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

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
}

.comparison-column {
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius-lg);
}

.comparison-prevent {
    background-color: rgba(184, 92, 79, 0.05);
    border-left: 4px solid var(--color-rust-red);
}

.comparison-generate {
    background-color: rgba(91, 117, 83, 0.05);
    border-left: 4px solid var(--color-moss-green);
}

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

/* Methodology Section */
.methodology-section {
    background-color: rgba(139, 125, 107, 0.05);
    padding: calc(var(--spacing-unit) * 8) 0;
    text-align: center;
}

.methodology-principles {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
    margin-top: calc(var(--spacing-unit) * 4);
}

/* METHODOLOGY BADGES */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.methodology-visual {
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='%23FBF7F0' stroke='%23E8DED0' stroke-width='2'/%3E%3C/svg%3E");
    /* Diamond pattern */
    background-size: 100px 100px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.methodology-section .lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 90%;
}

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

/* Methodology Cards Grid (for methodology page) */
.methodology-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .methodology-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PRINCIPLES TABLE (Methodology Page)
   Desktop: table, Mobile: stacked cards
   =================================== */

/* Table wrapper - visible on desktop */
.principles-table-wrapper {
    display: block;
}

.principles-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 12px;
    overflow: hidden;
}

.principles-table thead tr {
    background: var(--color-warm-cream);
}

.principles-table th {
    text-align: left;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    border-bottom: 1.5px solid var(--color-soft-divider);
}

.principles-table tbody {
    font-size: 0.9375rem;
    color: var(--color-deep-charcoal);
}

.principles-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-soft-divider);
}

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

.principle-name {
    font-weight: 500;
}

.principle-meaning {
    color: var(--color-warm-grey);
}

/* Mobile Cards - hidden on desktop */
.principles-cards {
    display: none;
}

.principle-card {
    background: white;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.principle-card:last-child {
    margin-bottom: 0;
}

.principle-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    margin: 0 0 12px 0;
}

.principle-card__meaning {
    font-size: 0.9375rem;
    color: var(--color-warm-grey);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.principle-card__example {
    font-size: 0.9375rem;
    color: var(--color-deep-charcoal);
    line-height: 1.5;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-soft-divider);
}

/* Responsive: Switch table to cards on mobile */
@media (max-width: 768px) {
    .principles-table-wrapper {
        display: none;
    }

    .principles-cards {
        display: block;
    }
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--color-terra-cotta);
    color: var(--color-warm-cream);
    text-align: center;
    padding: calc(var(--spacing-unit) * 10) 0;
}

.final-cta-section h2 {
    color: var(--color-warm-cream);
}

/* Pull Quotes */
.pull-quote-section {
    padding: calc(var(--spacing-unit) * 8) 0;
    text-align: center;
}

.pull-quote {
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--color-deep-charcoal);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Mission Section - Dark Mode */
.mission-section {
    padding: calc(var(--spacing-unit) * 16) 0;
    background-color: var(--color-deep-charcoal);
    position: relative;
    /* Optional: pattern overlay? */
}

.mission-section .mission-quote {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    line-height: 1.6;
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-warm-cream);
    border-top: 1px solid rgba(251, 247, 240, 0.2);
    border-bottom: 1px solid rgba(251, 247, 240, 0.2);
    padding: calc(var(--spacing-unit) * 6) 0;
}

/* MISSION: FIELD NOTE STYLE + CTA */
.mission-section-fieldnote {
    padding: calc(var(--spacing-unit) * 16) 0;
    /* Soft Divider background */
    background-color: var(--color-soft-divider);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.field-note-card {
    background: #FFFCF5;
    /* Warm cream paper */
    padding: calc(var(--spacing-unit) * 8);
    max-width: 720px;
    transform: rotate(-1.5deg);
    box-shadow: 0 20px 60px rgba(50, 40, 30, 0.1);
    position: relative;
    border-radius: 4px;
    /* Slightly sharp like paper */
    text-align: center;
    /* Center aligned for better CTA flow */
}

/* Typography Styles */
.mission-headline {
    font-family: var(--font-primary);
    /* DM Sans */
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-deep-charcoal);
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: relative;
    text-align: left;
}

.mission-body {
    font-family: var(--font-primary);
    /* DM Sans */
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-deep-charcoal);
    margin-bottom: calc(var(--spacing-unit) * 3);
    opacity: 0.9;
    text-align: left;
}

.highlight-container {
    position: relative;
    display: inline-block;
    color: var(--color-terra-cotta);
}

.highlight-underline {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Removed paperclip (skeuomorphism gone) */
.field-note-card::before {
    display: none;
}

/* Consolidated CTA Styling */
.mission-cta-wrapper {
    margin-top: calc(var(--spacing-unit) * 6);
    display: flex;
    justify-content: center;
}

/* If signature exists, remove styles - handled by removal in HTML but cleanup css too */
.note-signature {
    display: none;
}

@media (max-width: 768px) {
    .field-note-card {
        padding: calc(var(--spacing-unit) * 4);
        transform: none;
        /* Remove rotation on mobile */
        width: 90%;
        text-align: left;
        margin: 0 auto;
    }

    .mission-cta-wrapper {
        justify-content: stretch;
    }

    .mission-cta-wrapper .button {
        width: 100%;
    }

    .mission-headline {
        font-size: 1.5rem;
    }

    .mission-body {
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .mission-section-fieldnote {
        padding: calc(var(--spacing-unit) * 8) 16px;
        /* Add horizontal padding */
    }

    .field-note-card {
        width: calc(100% - 8px);
        /* Prevent edge clipping */
        padding: calc(var(--spacing-unit) * 3);
    }

    .mission-headline {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .mission-body {
        font-size: 0.95rem;
    }
}

/* Credibility & Bias & Learn - tweaks */
.credibility-section,
.bias-section,
.learn-section {
    padding: calc(var(--spacing-unit) * 12) 0;
}
/* ===================================
   SCROLL-LINKED ANIMATION PREVIEW
   Apple-style scroll-driven effect
   =================================== */

/* Container creates the scroll height for the animation */
.scroll-preview-section {
    /* Scroll progress is set by JS: 0 (start) to 1 (end) */
    --scroll-progress: 0;

    background: linear-gradient(to bottom,
            var(--color-warm-cream) 0%,
            white 100%);
}

.scroll-preview-container {
    /* Height determines how long user scrolls through animation */
    height: 150vh;
    /* Reduced from 250vh to balance speed vs whitespace */
    position: relative;
}

.scroll-preview-sticky {
    position: sticky;
    top: 25vh;
    /* Center the 50vh element in the viewport */
    height: 50vh;
    /* Reduced visual height to minimize whitespace */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--spacing-unit) * 1);
}

.scroll-preview-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    min-height: 300px;
    text-align: center;
}

/* Question elements */
.scroll-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.scroll-question-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.scroll-question-text {
    font-size: clamp(2.25rem, 6vw, 4rem);
    /* Bigger, more pronounced */
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.03em;
}

/* Bad question styling + animation */
.scroll-question-bad {
    --bad-opacity: calc(1 - (var(--scroll-progress) - 0.75) * 5);
    /* Stay visible until 65%, then fade out */
    --bad-y: calc(var(--scroll-progress) * -40px);

    opacity: clamp(0, var(--bad-opacity), 1);
    transform: translate(-50%, calc(-50% + var(--bad-y)));
    color: var(--color-warm-grey);
}

.scroll-question-bad .scroll-question-label {
    color: var(--color-warm-grey);
}

.scroll-question-bad .scroll-question-text {
    position: relative;
    display: inline-block;

    /* Native strikethrough with animated color */
    text-decoration: line-through;
    text-decoration-thickness: 4px;
    text-decoration-color: transparent;
    /* Start invisible */
    transition: text-decoration-color 0.6s ease;
}

/* JavaScript will add this attribute to drive the animation */
.scroll-preview-section[style*="--scroll-progress"] .scroll-question-bad .scroll-question-text {
    /* Animate color from transparent to deep-charcoal earlier */
    text-decoration-color: rgba(43, 43, 43, calc(var(--scroll-progress) * 4));
}

/* Good question styling + animation */
.scroll-question-good {
    --good-opacity: calc((var(--scroll-progress) - 0.65) * 4);
    /* Fade in later (at 60%) for a pause */
    --good-y: calc((1 - var(--scroll-progress)) * 40px);

    opacity: clamp(0, var(--good-opacity), 1);
    transform: translate(-50%, calc(-50% + var(--good-y)));
    color: var(--color-deep-charcoal);
}

.scroll-question-good .scroll-question-label {
    color: var(--color-terra-cotta);
}

.scroll-question-good .scroll-question-text {
    font-weight: 600;
}

/* Rationale */
.scroll-rationale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 4);
    font-size: 1.1rem;
    color: var(--color-warm-grey);

    /* Fade in later */
    --rationale-opacity: calc((var(--scroll-progress) - 0.6) * 3);
    opacity: clamp(0, var(--rationale-opacity), 1);
}

.scroll-rationale-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-terra-cotta);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    color: var(--color-warm-grey);
    font-size: 0.85rem;

    /* Fade out as user scrolls */
    opacity: calc(1 - var(--scroll-progress) * 4);
}

.scroll-indicator-icon {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Footer note */
.scroll-preview-footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    background: white;
}

.scroll-footer-text {
    font-size: 1rem;
    color: var(--color-warm-grey);
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-preview-container {
        height: 100vh;
        /* Reduced for less whitespace */
    }

    .scroll-question-text {
        font-size: 1.5rem;
    }

    .scroll-rationale {
        flex-direction: column;
        text-align: center;
        font-size: 1rem;
    }

    .scroll-preview-sticky {
        padding: calc(var(--spacing-unit) * 3);
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .scroll-preview-container {
        height: 100vh;
        /* Less scrolling required on very small screens */
    }

    .scroll-question-text {
        font-size: 1.5rem;
        /* Larger now that strikethrough is native CSS */
        line-height: 1.35;
        padding: 0 12px;
    }

    .scroll-question-label {
        font-size: 0.7rem;
    }

    .scroll-preview-sticky {
        padding: calc(var(--spacing-unit) * 2);
    }

    .scroll-rationale {
        font-size: 0.9rem;
        padding: 0 16px;
    }
}
/* ============================================
   PRICING SECTION - Premium Duration Selector
   ============================================ */

.pricing-section {
    margin-bottom: 2rem;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-deep-charcoal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    color: var(--color-warm-grey);
    font-size: 1rem;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.pricing-subtitle strong {
    color: var(--color-moss-green);
    font-weight: 600;
}

/* Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

@media (max-width: 500px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Pricing Card */
.pricing-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.pricing-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-card-inner {
    background: white;
    border: 2px solid var(--color-soft-divider);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover State */
.pricing-card:hover .pricing-card-inner {
    border-color: var(--color-warm-grey);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 125, 107, 0.12);
}

/* Selected State */
.pricing-radio:checked+.pricing-card-inner {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.04));
    box-shadow: 0 0 0 3px rgba(204, 107, 73, 0.12), 0 8px 24px rgba(204, 107, 73, 0.1);
}

/* Popular Card Styling */
.pricing-card--popular .pricing-card-inner {
    border-color: var(--color-terra-cotta);
}

/* Free Trial Card Styling */
.pricing-card--free .pricing-card-inner {
    border-color: var(--color-sage-green);
    background: linear-gradient(to bottom, #fff, rgba(122, 155, 118, 0.05));
}

.pricing-card--free:hover .pricing-card-inner {
    border-color: var(--color-moss-green);
}

.pricing-radio:checked+.pricing-card-inner {
    border-color: var(--color-terra-cotta);
}

.pricing-card--free .pricing-radio:checked+.pricing-card-inner {
    border-color: var(--color-moss-green);
    background: linear-gradient(to bottom, #fff, rgba(122, 155, 118, 0.08));
    box-shadow: 0 0 0 3px rgba(122, 155, 118, 0.15), 0 8px 24px rgba(122, 155, 118, 0.12);
}

/* Badge */
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.pricing-badge--popular {
    background: var(--color-terra-cotta);
    color: white;
}

.pricing-badge--free {
    background: var(--color-moss-green);
    color: white;
}

.pricing-badge--best {
    background: var(--color-terra-cotta);
    color: white;
}

/* Best Practice Card Styling (Orange/Terra Cotta) */
.pricing-card--best .pricing-card-inner {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.04));
}

.pricing-card--best:hover .pricing-card-inner {
    border-color: var(--color-terra-cotta);
    box-shadow: 0 8px 24px rgba(204, 107, 73, 0.15);
}

.pricing-card--best .pricing-radio:checked+.pricing-card-inner {
    border-color: var(--color-terra-cotta);
    background: linear-gradient(to bottom, #fff, rgba(204, 107, 73, 0.08));
    box-shadow: 0 0 0 3px rgba(204, 107, 73, 0.2), 0 8px 24px rgba(204, 107, 73, 0.15);
}

/* Duration Display */
.pricing-duration {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.pricing-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-deep-charcoal);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-warm-grey);
}

/* Price */
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
}

.pricing-amount--free {
    color: var(--color-moss-green);
}

.pricing-amount--best {
    color: var(--color-terra-cotta);
}

.pricing-original {
    font-size: 0.95rem;
    color: var(--color-warm-grey);
    text-decoration: line-through;
}

/* Tagline */
.pricing-tagline {
    font-size: 0.85rem;
    color: var(--color-warm-grey);
    margin: 0;
}

/* Checkmark */
.pricing-checkmark {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    color: var(--color-sage-green);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-radio:checked+.pricing-card-inner .pricing-checkmark {
    opacity: 1;
    transform: scale(1);
}

.pricing-card--free .pricing-checkmark {
    color: var(--color-moss-green);
}

/* ============================================
   COUPON SECTION
   ============================================ */

.coupon-row {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.coupon-toggle {
    background: none;
    border: none;
    color: var(--color-warm-grey);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.coupon-toggle:hover {
    color: var(--color-terra-cotta);
    background: rgba(204, 107, 73, 0.05);
}

.coupon-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--color-soft-divider);
    border-radius: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    width: 140px;
    transition: border-color 0.2s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--color-terra-cotta);
}

.coupon-apply-btn {
    padding: 0.6rem 1rem;
    background: var(--color-deep-charcoal);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.coupon-apply-btn:hover {
    background: var(--color-terra-cotta);
}

.coupon-message {
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.coupon-success {
    color: var(--color-moss-green);
}

.coupon-error {
    color: var(--color-terra-cotta);
}

/* ============================================
   PRICING PAGE LAYOUT (responsive)
   ============================================ */

/* Hero Card */
.pricing-hero-card {
    max-width: 720px;
    margin: 0 auto 64px;
    background: white;
    border: 2px solid var(--color-terra-cotta);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(204, 107, 73, 0.15);
}

/* Hero card layout: features left, CTA right */
.pricing-hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.pricing-hero-features {
    flex: 1;
    min-width: 280px;
}

.pricing-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    text-align: center;
}

/* Secondary pricing cards grid */
.pricing-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pricing-hero-card {
        padding: 24px;
        margin-bottom: 48px;
    }

    .pricing-hero-layout {
        flex-direction: column;
    }

    .pricing-hero-features {
        min-width: 100%;
    }

    .pricing-hero-cta {
        width: 100%;
        padding-top: 24px;
        border-top: 1px solid var(--color-soft-divider);
    }

    .pricing-secondary-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}
/* Loading Spinner */
.spinner {
    border: 3px solid rgba(204, 107, 73, 0.2);
    border-top: 3px solid var(--color-terra-cotta);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

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

    100% {
        transform: rotate(360deg);
    }
}
/* Utilities */

/* Visibility */
.hidden {
    display: none !important;
}

/* Icon Sizing */
.h-4 {
    height: 16px;
}

.w-4 {
    width: 16px;
}

.h-5 {
    height: 20px;
}

.w-5 {
    width: 20px;
}

.h-6 {
    height: 24px;
}

.w-6 {
    width: 24px;
}

.h-8 {
    height: 32px;
}

.w-8 {
    width: 32px;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-accent {
    font-family: var(--font-accent);
}

.text-muted {
    color: var(--color-warm-grey);
}

.opacity-20 {
    opacity: 0.2;
}
/*
 * This is a manifest file that'll be compiled into application.css
 *









 */
