/* === SARTastic — Bold Editorial Design === */
/* Aesthetic: Activist magazine meets modern legal tech */
/* Typography: DM Serif Display (display) + DM Sans (body) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
    /* Midnight base */
    --midnight: #0C1222;
    --midnight-soft: #131B2E;
    --midnight-card: #1A2340;
    --midnight-border: #253256;

    /* Warm Amber — the fire of activism */
    --amber: #F59E0B;
    --amber-bright: #FBBF24;
    --amber-hot: #F97316;
    --amber-glow: rgba(245, 158, 11, 0.15);
    --amber-text: #FDE68A;

    /* Teal — trust & authority */
    --teal: #14B8A6;
    --teal-deep: #0F766E;
    --teal-glow: rgba(20, 184, 166, 0.12);

    /* Coral — energy & warmth */
    --coral: #FB7185;
    --coral-deep: #F43F5E;

    /* Light mode surfaces */
    --surface-light: #FAFAF9;
    --surface-warm: #FFFBEB;

    /* Text */
    --text-primary: #0C1222;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-on-dark: #E2E8F0;
    --text-on-dark-muted: #94A3B8;

    /* Semantic */
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Layout */
    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 999px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a { color: var(--teal-deep); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--teal); }
img { max-width: 100%; }

hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }

/* --- Layout --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--surface-light); }

.section-cta {
    background: var(--midnight);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
    pointer-events: none;
}
.section-cta h2 { color: #fff; }
.section-cta p { color: var(--text-on-dark-muted); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--amber), var(--coral));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --- Navbar --- */
.navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.navbar-brand:hover { text-decoration: none; }

.brand-sar {
    color: var(--midnight);
}
.brand-tastic {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--surface-light); color: var(--text-primary); text-decoration: none; }
.nav-links a.active { color: var(--teal-deep); background: var(--teal-glow); }

.nav-links .btn { margin-left: 0.5rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--teal-deep);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover { background: var(--teal); color: #fff; box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3); }

.btn-accent {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hot) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3);
}
.btn-accent:hover {
    background: linear-gradient(135deg, var(--amber-bright) 0%, var(--amber) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--teal-deep);
    color: var(--teal-deep);
}
.btn-outline:hover { background: var(--teal-deep); color: #fff; }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn-dark {
    background: var(--midnight);
    color: #fff;
}
.btn-dark:hover { background: var(--midnight-soft); color: #fff; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #DC2626; color: #fff; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --- Cards --- */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; color: var(--text-primary); font-size: 1.2rem; }
.card p { color: var(--text-secondary); }

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: var(--teal-glow); }

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    display: block;
}
.feature-card h3 { color: var(--text-primary); font-size: 1.25rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-check { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
.form-check input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--teal-deep);
    width: 18px;
    height: 18px;
}
.form-check label { font-weight: 400; }

.form-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.25rem;
    display: block;
}

.form-description {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* Auth card */
.auth-card {
    max-width: 460px;
    margin: 3rem auto;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}
.auth-card h1 {
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 1.6rem;
}
.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Alerts / Flash Messages --- */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
    color: inherit;
    padding: 0 0.25rem;
}
.alert-close:hover { opacity: 1; }

.alert-success { background: var(--success-light); color: #065F46; border-left-color: var(--success); }
.alert-danger { background: var(--danger-light); color: #991B1B; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400E; border-left-color: var(--warning); }
.alert-info { background: var(--info-light); color: #1E40AF; border-left-color: var(--info); }

.flash-container { margin-top: 1rem; }

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-transform: uppercase;
}

.badge-draft { background: var(--gray-200); color: var(--gray-700); }
.badge-ready { background: var(--info-light); color: #1D4ED8; }
.badge-sent { background: #FFF7ED; color: var(--amber-hot); }
.badge-acknowledged { background: var(--warning-light); color: #92400E; }
.badge-completed { background: var(--success-light); color: #065F46; }
.badge-overdue { background: var(--danger-light); color: #991B1B; }
.badge-escalated { background: #FCE7F3; color: #9D174D; }
.badge-cancelled { background: var(--gray-100); color: var(--gray-500); }
.badge-lg { padding: 0.35rem 1rem; font-size: 0.88rem; }

/* --- Deadline --- */
.deadline { font-size: 0.9rem; font-weight: 600; }
.deadline-ok { color: var(--success); }
.deadline-warning { color: var(--warning); }
.deadline-danger { color: var(--danger); }

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--teal), var(--amber));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.timeline-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.timeline-content strong { color: var(--text-primary); }
.timeline-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

/* --- Search --- */
.search-container { position: relative; max-width: 640px; margin: 0 auto; }

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow), var(--shadow-md);
}
.search-input::placeholder { color: var(--text-muted); }

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.search-results.active { display: block; }

.search-result-item {
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.search-result-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.search-result-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.search-result-item:hover { background: var(--teal-glow); }
.search-result-item .result-name {
    font-weight: 600;
    color: var(--text-primary);
}
.search-result-item .result-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.search-result-item .result-source {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.source-ch { background: var(--teal-glow); color: var(--teal-deep); }
.source-ico { background: var(--amber-glow); color: #B45309; }

/* --- Hero --- */
.hero {
    background: var(--midnight);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Geometric pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--teal-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, var(--amber-glow) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(251, 113, 133, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--amber-bright), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-on-dark-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating trust badge */
.hero-trust {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
}
.hero-trust-item strong { color: var(--amber-text); }

/* --- Steps --- */
.steps {
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    position: relative;
}
.step:last-child { margin-bottom: 0; }

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--midnight);
    color: var(--amber-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(12, 18, 34, 0.15);
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- SAR Detail Layout --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.letter-preview {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #000;
}
.letter-preview ul { margin: 0.5em 0; padding-left: 2em; }
.letter-preview p { margin: 0.5em 0; }

.sidebar .card { margin-bottom: 1.25rem; }

/* --- Key Info Grid --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.info-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.15rem;
    font-family: 'DM Sans', sans-serif;
}
.info-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* --- Tables --- */
.table-responsive { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem;
}
th {
    background: var(--surface-light);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'DM Sans', sans-serif;
}
tr:hover { background: var(--teal-glow); }

/* --- Pagination --- */
.pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 2rem;
    list-style: none;
}
.pagination a, .pagination span {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}
.pagination a:hover { background: var(--teal-glow); border-color: var(--teal); text-decoration: none; }
.pagination .active span { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}
.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    opacity: 0.4;
}
.empty-state h3 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.3rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* --- Stats Cards --- */
.stat-card {
    text-align: center;
    padding: 1.75rem;
}
.stat-card .stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--teal-deep);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Footer --- */
.site-footer {
    background: var(--midnight);
    color: var(--text-on-dark-muted);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}
.footer-links a {
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber-bright); text-decoration: none; }

.footer-copyright {
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
    opacity: 0.7;
}

/* --- Cookie Banner --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--midnight-card);
    color: var(--text-on-dark);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid var(--midnight-border);
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-consent p { font-size: 0.85rem; margin: 0; color: var(--text-on-dark-muted); }
.cookie-consent a { color: var(--amber-bright); }
.cookie-consent .btn { flex-shrink: 0; }

/* --- Letter textarea --- */
.letter-editor {
    width: 100%;
    min-height: 500px;
    padding: 1.5rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #000;
    resize: vertical;
}
.letter-editor:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

/* --- Page header --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 { font-size: 1.85rem; }

/* --- Profile notice --- */
.profile-notice {
    background: var(--warning-light);
    border: 1px solid #FDE68A;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: #92400E;
}

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
}
.error-page h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--amber), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Auth extras --- */
.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    accent-color: var(--teal-deep);
    width: 17px;
    height: 17px;
}

.link-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.link-muted:hover { color: var(--teal-deep); }

/* --- Content pages --- */
.content-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
}
.page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--amber), var(--coral));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.content-section {
    margin-bottom: 2.5rem;
}
.content-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.content-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}
.content-section ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}
.content-section li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.underline-accent {
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--amber);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 { animation: fadeInUp 0.6s ease both; }
.hero-subtitle { animation: fadeInUp 0.6s ease 0.15s both; }
.hero-actions { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-trust { animation: fadeIn 0.8s ease 0.5s both; }

.feature-card { animation: fadeInUp 0.5s ease both; }
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }

    .section { padding: 3rem 0; }
    .section-title { font-size: 1.65rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 0.75rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 0.65rem 1rem; width: 100%; }
    .nav-links .btn { margin-left: 0; margin-top: 0.25rem; }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }

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

    .page-header { flex-direction: column; align-items: flex-start; }

    .cookie-consent-inner { flex-direction: column; text-align: center; }

    .hero-trust { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { width: 100%; }
    .auth-card { margin: 1.5rem auto; padding: 1.5rem; }
}


/* === Car Finance Redress Vertical === */

/* --- Hero --- */
.cf-hero {
    background: var(--midnight);
    color: var(--text-on-dark);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.cf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(20, 184, 166, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.20) 0%, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(251, 113, 133, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.cf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.cf-hero .container { position: relative; z-index: 1; }

.cf-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cf-eyebrow {
    color: var(--amber-bright);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.cf-hero h1 {
    color: #fff;
    font-size: 3.2rem;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 400;
}
.cf-hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--amber-bright), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cf-hero-subtitle {
    color: var(--text-on-dark-muted);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 540px;
}
.cf-hero-subtitle strong { color: var(--amber-text); font-weight: 600; }

.cf-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    margin-bottom: 2.5rem;
}

.cf-fca-quote {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--amber-bright);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    max-width: 540px;
}
.cf-fca-quote .cf-quote-mark {
    position: absolute;
    top: -8px;
    left: 8px;
    font-family: 'DM Serif Display', serif;
    font-size: 4rem;
    color: var(--amber-bright);
    line-height: 1;
    opacity: 0.4;
}
.cf-fca-quote p {
    color: var(--text-on-dark);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.55;
}
.cf-fca-quote p strong {
    color: var(--amber-bright);
    font-weight: 600;
    font-style: normal;
}
.cf-fca-quote cite {
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
    font-style: normal;
}

/* --- Countdown card --- */
.cf-countdown-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 60px rgba(245, 158, 11, 0.08);
}
.cf-countdown-label {
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    font-weight: 600;
}
.cf-countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cf-countdown-unit {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
    padding: 0.75rem 0.5rem;
    min-width: 60px;
}
.cf-countdown-num {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--amber-bright);
    line-height: 1;
    font-weight: 400;
}
.cf-countdown-word {
    display: block;
    color: var(--text-on-dark-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}
.cf-countdown-target {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.cf-countdown-target strong { color: var(--amber-bright); }
.cf-countdown-note {
    color: var(--amber-text);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* --- Picker --- */
.cf-picker-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
}
.cf-picker-intro strong { color: var(--text-primary); }

.cf-picker {
    max-width: 1000px;
    margin: 0 auto;
}

.cf-picker-search {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.cf-picker-search .search-input { flex: 1; }
.cf-picker-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    flex-shrink: 0;
}
.cf-picker-counter span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--teal-deep);
    line-height: 1;
    margin-right: 0.25rem;
}

.cf-lender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cf-lender-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.85rem;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.cf-lender-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.cf-lender-card.cf-lender-selected {
    border-color: var(--teal-deep);
    background: var(--teal-glow);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.15);
}
.cf-lender-card.cf-lender-selected .cf-lender-name { color: var(--teal-deep); }

.cf-lender-card.cf-lender-warning {
    border-style: dashed;
}

.cf-lender-card.cf-lender-priority {
    border-color: var(--amber);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, transparent 100%);
}
.cf-lender-card.cf-lender-priority.cf-lender-selected {
    border-color: var(--teal-deep);
    background: var(--teal-glow);
}

.cf-lender-check {
    margin-top: 0.25rem;
    accent-color: var(--teal-deep);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.cf-lender-content { flex: 1; min-width: 0; }

.cf-lender-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.cf-lender-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cf-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}
.cf-badge-priority { background: var(--amber); color: #fff; }
.cf-badge-warning { background: var(--warning-light); color: #92400E; }
.cf-badge-volume { background: var(--teal-glow); color: var(--teal-deep); }

.cf-lender-parent {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0 0 0.25rem;
}

.cf-lender-brands {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.cf-picker-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.cf-cta-row {
    text-align: center;
    padding-top: 1.5rem;
}

.cf-cta-row .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cf-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cf-summary-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.cf-summary-list li:last-child { border-bottom: none; }
.cf-summary-list code {
    background: var(--gray-100);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--text-primary);
}

/* --- Why Now / Deadlines table --- */
.cf-why-now p { margin-bottom: 1.25rem; line-height: 1.7; color: var(--text-secondary); }
.cf-why-now h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.cf-deadlines-table { margin: 1rem 0 2rem; }
.cf-deadlines-table th { background: var(--midnight); color: var(--text-on-dark); }
.cf-deadlines-table td { padding: 1rem; }
.cf-deadlines-table tr.cf-deadline-past { opacity: 0.5; text-decoration: line-through; }
.cf-deadlines-table tr.cf-deadline-past:hover { background: transparent; }

/* --- Mobile --- */
@media (max-width: 900px) {
    .cf-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cf-hero h1 { font-size: 2.4rem; }
    .cf-countdown-card { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .cf-hero { padding: 3rem 0 2.5rem; }
    .cf-hero h1 { font-size: 1.95rem; }
    .cf-hero-subtitle { font-size: 0.95rem; }

    .cf-picker-search { flex-direction: column; align-items: stretch; }
    .cf-picker-counter { text-align: center; }

    .cf-lender-grid { grid-template-columns: 1fr; }

    .cf-countdown-num { font-size: 2rem; }
    .cf-countdown-unit { padding: 0.5rem 0.25rem; min-width: 0; }

    .cf-picker-actions { flex-direction: column; }
    .cf-picker-actions .btn { width: 100%; }
}

/* === Send via email card (SAR detail page) === */
.cf-send-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid var(--teal-glow);
}
.cf-send-card h3 { margin-bottom: 0.5rem; }
.cf-send-card code {
    background: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
}
.cf-send-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}
.cf-send-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}
.cf-send-option:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.cf-send-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.cf-send-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.cf-send-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}
.cf-send-manual {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.cf-send-manual summary {
    color: var(--text-secondary);
    padding: 0.5rem 0;
}
.cf-send-manual summary:hover { color: var(--teal-deep); }


/* === Upgraded site footer === */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding: 1rem 0 2rem;
}
.footer-col p { color: var(--text-on-dark-muted); }
.footer-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1;
}
.footer-brand .brand-sar { color: #fff; }
.footer-tagline {
    color: var(--text-on-dark-muted);
    margin: 0 0 1.25rem;
    font-style: italic;
    font-size: 0.95rem;
}
.footer-trust {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-trust li {
    color: var(--text-on-dark);
    font-size: 0.85rem;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-trust-icon {
    color: var(--amber-bright);
    font-weight: 700;
    flex-shrink: 0;
}
.footer-trust code {
    font-size: 0.78rem;
    color: var(--amber-text);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius);
}
.footer-heading {
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-list li { padding: 0.25rem 0; }
.footer-list a {
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-list a:hover { color: var(--amber-bright); text-decoration: none; }

.footer-company-info {
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
}
.footer-company-info a { color: var(--amber-bright); }
.footer-company-info a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    color: var(--text-on-dark-muted);
}
.footer-copyright {
    margin: 0 0 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
}
.footer-note {
    margin-left: 0.5rem;
    color: var(--amber-text);
    font-style: italic;
}
.footer-disclaimer {
    margin: 0;
    color: var(--text-on-dark-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 900px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* === Share card on dashboard === */
.cf-share-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(251, 113, 133, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.cf-share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
    color: var(--text-primary);
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    transition: all var(--transition);
}
.cf-share-btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow-md); }
.cf-share-whatsapp:hover { color: #25D366; border-color: #25D366; }
.cf-share-x:hover { color: #000; border-color: #000; }
.cf-share-li:hover { color: #0A66C2; border-color: #0A66C2; }
.cf-share-email:hover { color: var(--teal-deep); border-color: var(--teal-deep); }

@media (max-width: 600px) {
    .cf-share-card > div { flex-direction: column; align-items: stretch; }
    .cf-share-buttons { justify-content: center; }
}


/* === Pricing page === */
.cf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 920px;
    margin: 0 auto;
}
.cf-pricing-card {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cf-pricing-card.cf-pricing-pro {
    border: 2px solid var(--amber);
    background: linear-gradient(135deg, #fff 0%, var(--surface-warm) 100%);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}
.cf-pricing-flag {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--amber), var(--coral));
    color: #fff;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cf-pricing-name {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.cf-pricing-price { margin-bottom: 0.5rem; }
.cf-pricing-amount {
    font-family: 'DM Serif Display', serif;
    font-size: 2.75rem;
    color: var(--text-primary);
    line-height: 1;
}
.cf-pricing-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.25rem;
}
.cf-pricing-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.cf-pricing-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex: 1;
}
.cf-pricing-features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
}
.cf-pricing-features li:last-child { border-bottom: none; }
.cf-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-deep);
    font-weight: 700;
}
.cf-pricing-pro .cf-pricing-features li::before { color: var(--amber-hot); }

.cf-pricing-cta {
    width: 100%;
    justify-content: center;
}

.cf-waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cf-waitlist-form .form-control {
    text-align: center;
}
.cf-waitlist-form .btn {
    width: 100%;
    justify-content: center;
}
.cf-waitlist-confirmed {
    text-align: center;
    padding: 1rem;
    background: var(--success-light);
    border-radius: var(--radius);
    color: #065F46;
    font-weight: 600;
}
.cf-waitlist-confirmed span { color: var(--success); margin-right: 0.35rem; }

.cf-pricing-comparison h2 { font-size: 1.6rem; }

@media (max-width: 600px) {
    .cf-pricing-grid { grid-template-columns: 1fr; }
}
