/*
Theme Name: CloseDaily
Theme URI: https://closedaily.com
Author: CloseDaily
Author URI: https://closedaily.com
Description: Custom theme for CloseDaily — "The Playbook" design. Dark navy + teal + ice palette.
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: closedaily
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
*/

/* ============================================
   CLOSEDAILY DESIGN SYSTEM v4 — "The Playbook"
   Design: Dark Navy + Teal + Ice Cool Palette
   Typography: Sora (headlines) + DM Sans (body)
   ============================================ */

:root {
    /* Primary Brand Colors */
    --cd-navy: #0B0F1A;
    --cd-navy-light: #161B2E;
    --cd-navy-mid: #1E2438;
    --cd-teal: #0ABAB5;
    --cd-teal-dark: #089E9A;
    --cd-teal-light: rgba(10, 186, 181, 0.08);
    --cd-teal-glow: rgba(10, 186, 181, 0.15);
    --cd-ice: #5B8DEF;
    --cd-ice-light: #93B4F5;

    /* Background Colors */
    --cd-bg-primary: #F6F8FB;
    --cd-bg-secondary: #EEF1F6;
    --cd-bg-card: #FFFFFF;
    --cd-bg-card-hover: #F8FAFC;
    --cd-bg-elevated: #FFFFFF;
    --cd-bg-slate-cool: #F4F6FA;
    --cd-bg-slate-warm: #F8F9FB;

    /* Text Colors */
    --cd-text-primary: #0B0F1A;
    --cd-text-secondary: #475569;
    --cd-text-muted: #94A3B8;

    /* Borders */
    --cd-border: rgba(15, 23, 42, 0.08);
    --cd-border-light: rgba(15, 23, 42, 0.05);

    /* Accent Colors */
    --cd-gold: #F59E0B;
    --cd-gold-light: rgba(245, 158, 11, 0.1);
    --cd-red: #EF4444;
    --cd-green: #10B981;
    --cd-green-light: rgba(16, 185, 129, 0.1);

    /* Shadows */
    --cd-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --cd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --cd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --cd-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --cd-shadow-teal: 0 4px 14px rgba(10, 186, 181, 0.2);
    --cd-shadow-teal-lg: 0 8px 24px rgba(10, 186, 181, 0.3);

    /* Spacing */
    --cd-radius-sm: 8px;
    --cd-radius-md: 12px;
    --cd-radius-lg: 16px;
    --cd-radius-xl: 24px;

    /* Transitions */
    --cd-transition: all 0.3s ease;
    --cd-transition-bounce: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cd-text-primary);
    background: var(--cd-bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cd-text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--cd-transition);
}

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

/* ============================================
   LAYOUT
   ============================================ */
.cd-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .cd-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .cd-container { padding: 0 2rem; }
}

/* ============================================
   HEADER — Dark Navy Fixed Bar
   ============================================ */
.cd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 72px;
}

.cd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.cd-header__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--cd-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: white;
    font-size: 0.875rem;
    letter-spacing: -0.02em;
}

.cd-header__logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.cd-header__logo-text span {
    color: var(--cd-teal);
}

/* Desktop Navigation */
.cd-header__nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.cd-header__nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--cd-transition);
    border-radius: 6px;
}

.cd-header__nav-link:hover,
.cd-header__nav-link.active {
    color: var(--cd-teal);
}

/* Features Mega Menu */
.cd-header__features-wrap {
    position: relative;
}

.cd-header__features-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--cd-transition);
    font-family: 'DM Sans', sans-serif;
}

.cd-header__features-trigger:hover,
.cd-header__features-trigger.active {
    color: var(--cd-teal);
}

.cd-header__features-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.cd-header__features-trigger.active svg {
    transform: rotate(180deg);
}

.cd-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    width: 720px;
    display: none;
}

.cd-mega-menu.open {
    display: block;
}

.cd-mega-menu__inner {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cd-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.cd-mega-menu__col {
    padding: 1.25rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.cd-mega-menu__col:last-child {
    border-right: none;
}

.cd-mega-menu__cat-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cd-text-muted);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.cd-mega-menu__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    border-radius: 8px;
    transition: var(--cd-transition);
}

.cd-mega-menu__item:hover {
    background: var(--cd-bg-slate-warm);
}

.cd-mega-menu__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--cd-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--cd-transition);
}

.cd-mega-menu__item:hover .cd-mega-menu__item-icon {
    background: rgba(10, 186, 181, 0.12);
}

.cd-mega-menu__item-icon svg,
.cd-mega-menu__item-icon i {
    width: 16px;
    height: 16px;
    color: var(--cd-teal);
}

.cd-mega-menu__item-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cd-navy);
    display: block;
    line-height: 1.3;
}

.cd-mega-menu__item-desc {
    font-size: 0.6875rem;
    color: var(--cd-text-muted);
}

.cd-mega-menu__bottom {
    background: var(--cd-bg-slate-warm);
    border-top: 1px solid var(--cd-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cd-mega-menu__bottom-text {
    font-size: 0.75rem;
    color: var(--cd-text-muted);
}

.cd-mega-menu__bottom-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cd-teal);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cd-mega-menu__bottom-link:hover {
    color: var(--cd-teal-dark);
}

/* Header Auth Buttons */
.cd-header__auth {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.cd-header__login-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
}

.cd-header__login-link:hover {
    color: white;
}

.cd-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--cd-teal);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    border-radius: 8px;
    transition: var(--cd-transition);
    box-shadow: 0 4px 14px rgba(10, 186, 181, 0.3);
}

.cd-header__cta:hover {
    background: var(--cd-teal-dark);
    transform: translateY(-1px);
    color: white;
}

/* Mobile Toggle */
.cd-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.cd-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: var(--cd-transition);
}

.cd-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cd-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cd-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.cd-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cd-navy);
    z-index: 999;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.cd-mobile-menu.active {
    display: block;
}

.cd-mobile-menu__nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: var(--cd-transition);
}

.cd-mobile-menu__nav a:hover,
.cd-mobile-menu__nav a.active {
    color: var(--cd-teal);
    background: rgba(10, 186, 181, 0.08);
}

.cd-mobile-menu__nav a i {
    width: 18px;
    height: 18px;
}

.cd-mobile-menu__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
}

.cd-mobile-menu__auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cd-mobile-menu__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.cd-mobile-menu__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.cd-mobile-menu__user-name {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.cd-mobile-menu__user-email {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

@media (min-width: 1024px) {
    .cd-header__nav { display: flex; }
    .cd-header__auth { display: flex; }
    .cd-mobile-toggle { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--cd-transition-bounce);
    text-decoration: none;
    border-radius: var(--cd-radius-md);
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    line-height: 1.2;
}

.cd-btn--primary {
    background: var(--cd-teal);
    color: white;
    box-shadow: var(--cd-shadow-teal);
}

.cd-btn--primary:hover {
    background: var(--cd-teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--cd-shadow-teal-lg);
    color: white;
}

.cd-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cd-btn--ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

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

.cd-btn--outline:hover {
    border-color: var(--cd-teal);
    color: var(--cd-teal);
}

.cd-btn--gold {
    background: var(--cd-gold);
    color: white;
}

.cd-btn--gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: white;
}

.cd-btn--sm {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
}

.cd-btn--lg {
    font-size: 1.0625rem;
    padding: 1rem 2rem;
}

.cd-btn--block {
    display: flex;
    width: 100%;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.cd-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--cd-text-primary);
    background: white;
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-md);
    transition: var(--cd-transition);
    outline: none;
}

.cd-input:focus {
    border-color: var(--cd-teal);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.1);
}

.cd-input::placeholder {
    color: var(--cd-text-muted);
}

/* Dark input variant */
.cd-input--dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.cd-input--dark:focus {
    border-color: var(--cd-teal);
    background: rgba(255, 255, 255, 0.08);
}

.cd-input--dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   HUDDLE CARD — Signature Component
   ============================================ */
.huddle-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--cd-border);
    padding: 2rem;
    transition: var(--cd-transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 15, 26, 0.04);
}

.huddle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cd-teal), var(--cd-ice));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.huddle-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 186, 181, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.huddle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 15, 26, 0.08), 0 8px 16px rgba(10, 186, 181, 0.06);
    border-color: rgba(10, 186, 181, 0.3);
}

.huddle-card:hover::before {
    transform: scaleX(1);
}

.huddle-card:hover::after {
    opacity: 1;
}

/* Dark Huddle Card */
.huddle-card-dark {
    background: var(--cd-navy-light);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    transition: var(--cd-transition-bounce);
    position: relative;
    overflow: hidden;
}

.huddle-card-dark::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cd-teal), var(--cd-ice));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.huddle-card-dark:hover {
    transform: translateY(-6px);
    background: var(--cd-navy-mid);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(10, 186, 181, 0.2);
}

.huddle-card-dark:hover::before {
    transform: scaleX(1);
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cd-teal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cd-teal), var(--cd-ice));
}

.yard-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.yard-line::before,
.yard-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 186, 181, 0.2), transparent);
}

.yard-line span {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cd-text-muted);
    white-space: nowrap;
}

/* ============================================
   HERO SECTION
   ============================================ */
.cd-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--cd-navy);
    padding-top: 72px;
}

.cd-hero__bg {
    position: absolute;
    inset: 0;
}

.cd-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.cd-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--cd-navy), rgba(11, 15, 26, 0.95), rgba(11, 15, 26, 0.7));
}

.cd-hero__accent-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    transform-origin: top;
}

.cd-hero__accent-line--1 {
    right: 30%;
    background: linear-gradient(to bottom, transparent, rgba(10, 186, 181, 0.15), transparent);
    transform: rotate(12deg);
}

.cd-hero__accent-line--2 {
    right: 45%;
    background: linear-gradient(to bottom, transparent, rgba(91, 141, 239, 0.1), transparent);
    transform: rotate(-6deg);
}

.cd-hero__content {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.cd-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cd-hero__grid {
        grid-template-columns: 7fr 5fr;
    }
}

.cd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 186, 181, 0.1);
    border: 1px solid rgba(10, 186, 181, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.cd-hero__badge i {
    width: 16px;
    height: 16px;
    color: var(--cd-teal);
}

.cd-hero__badge span {
    color: var(--cd-teal);
    font-size: 0.875rem;
    font-weight: 700;
}

.cd-hero__title {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    color: white;
    font-size: 2.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.cd-hero__title span {
    color: var(--cd-teal);
}

@media (min-width: 640px) {
    .cd-hero__title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .cd-hero__title { font-size: 3.75rem; }
}

@media (min-width: 1280px) {
    .cd-hero__title { font-size: 4.5rem; }
}

.cd-hero__subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
    max-width: 36rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.cd-hero__subtext {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.cd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cd-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.cd-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cd-hero__trust-item i {
    width: 16px;
    height: 16px;
}

.cd-hero__trust-divider {
    width: 1px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero stat bars */
.cd-hero__stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-hero__stat-bar {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--cd-transition);
    animation: fadeSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

.cd-hero__stat-bar:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(10, 186, 181, 0.2);
}

.cd-hero__stat-bar:nth-child(2) { margin-left: 1.5rem; animation-delay: 150ms; }
.cd-hero__stat-bar:nth-child(3) { margin-left: 0.75rem; animation-delay: 300ms; }
.cd-hero__stat-bar:nth-child(4) { margin-left: 2rem; animation-delay: 450ms; }

.cd-hero__stat-value {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
}

.cd-hero__stat-value--teal { color: var(--cd-teal); }
.cd-hero__stat-value--ice { color: var(--cd-ice-light); }

.cd-hero__stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .cd-hero__stat-value { font-size: 1.875rem; }
    .cd-hero__stat-bar:nth-child(2) { margin-left: 2.5rem; }
    .cd-hero__stat-bar:nth-child(3) { margin-left: 1.25rem; }
    .cd-hero__stat-bar:nth-child(4) { margin-left: 3.5rem; }
}

/* ============================================
   SECTIONS — Common Patterns
   ============================================ */
.cd-section {
    padding: 5rem 0;
}

.cd-section--navy {
    background: var(--cd-navy);
    color: white;
}

.cd-section--slate {
    background: var(--cd-bg-slate-cool);
}

.cd-section--white {
    background: white;
}

.cd-section__heading {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 1.875rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cd-section__heading { font-size: 3rem; }
}

.cd-section__heading span {
    color: var(--cd-teal);
}

.cd-section__desc {
    color: var(--cd-text-muted);
    font-size: 1.125rem;
    max-width: 36rem;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.cd-features-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cd-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cd-features-grid { grid-template-columns: repeat(3, 1fr); }
}

.cd-feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cd-feature-card__icon--teal {
    background: var(--cd-teal-light);
}

.cd-feature-card__icon--ice {
    background: rgba(91, 141, 239, 0.1);
}

.cd-feature-card__icon i {
    width: 20px;
    height: 20px;
}

.cd-feature-card__icon--teal i { color: var(--cd-teal); }
.cd-feature-card__icon--ice i { color: var(--cd-ice); }

.cd-feature-card__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cd-navy);
    margin-bottom: 0.5rem;
}

.cd-feature-card__desc {
    font-size: 0.875rem;
    color: var(--cd-text-muted);
    line-height: 1.6;
}

.cd-feature-card__tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.cd-feature-card__tag--popular {
    background: var(--cd-teal-light);
    color: var(--cd-teal);
}

.cd-feature-card__tag--new {
    background: rgba(91, 141, 239, 0.1);
    color: var(--cd-ice);
}

.cd-feature-card__tag--included {
    background: rgba(11, 15, 26, 0.05);
    color: rgba(11, 15, 26, 0.6);
}

/* ============================================
   STATS BAR
   ============================================ */
.cd-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cd-stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.cd-stats-bar__item {
    text-align: center;
}

.cd-stats-bar__value {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--cd-teal);
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .cd-stats-bar__value { font-size: 3rem; }
}

.cd-stats-bar__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.cd-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.cd-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--cd-border);
    background: white;
    transition: var(--cd-transition);
}

.cd-step:hover {
    border-color: rgba(10, 186, 181, 0.3);
    box-shadow: var(--cd-shadow-lg);
}

@media (min-width: 768px) {
    .cd-step { flex-direction: row; align-items: flex-start; }
    .cd-step:nth-child(2) { margin-left: 3rem; }
}

.cd-step__number {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: rgba(11, 15, 26, 0.1);
    line-height: 1;
}

.cd-step__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--cd-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-step__icon i {
    width: 24px;
    height: 24px;
    color: var(--cd-teal);
}

.cd-step__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--cd-navy);
    margin-bottom: 0.5rem;
}

.cd-step__desc {
    color: var(--cd-text-muted);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.cd-testimonials-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cd-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.cd-testimonial {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--cd-transition);
}

.cd-testimonial:hover {
    border-color: rgba(10, 186, 181, 0.2);
}

.cd-testimonial__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.cd-testimonial__stars i {
    width: 16px;
    height: 16px;
    color: var(--cd-teal);
    fill: var(--cd-teal);
}

.cd-testimonial__quote {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.cd-testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cd-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.3), rgba(91, 141, 239, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--cd-teal);
    font-size: 0.875rem;
}

.cd-testimonial__name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.cd-testimonial__title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.cd-pricing-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cd-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.cd-pricing-card {
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    transition: var(--cd-transition);
    position: relative;
}

.cd-pricing-card--default {
    background: white;
    border: 1px solid var(--cd-border);
}

.cd-pricing-card--default:hover {
    border-color: rgba(10, 186, 181, 0.2);
    box-shadow: var(--cd-shadow-lg);
}

.cd-pricing-card--featured {
    background: var(--cd-navy);
    color: white;
    border: 2px solid var(--cd-teal);
    box-shadow: 0 8px 32px rgba(10, 186, 181, 0.15);
    transform: scale(1.03);
}

.cd-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--cd-teal);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cd-pricing-card__tier {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cd-teal);
    margin-bottom: 0.5rem;
}

.cd-pricing-card__price {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
}

.cd-pricing-card__price-period {
    font-size: 0.875rem;
    font-weight: 400;
}

.cd-pricing-card__desc {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.cd-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cd-pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cd-pricing-card__features li i {
    width: 16px;
    height: 16px;
    color: var(--cd-teal);
    flex-shrink: 0;
}

/* ============================================
   FOOTER — Dark Navy
   ============================================ */
.cd-footer {
    background: var(--cd-navy);
    color: rgba(255, 255, 255, 0.7);
}

.cd-footer__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cd-footer__divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.cd-footer__divider-text {
    font-family: 'Sora', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
}

.cd-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .cd-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.cd-footer__brand-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 1.5rem;
}

.cd-footer__agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(10, 186, 181, 0.1);
    color: var(--cd-teal);
    font-size: 0.75rem;
    font-weight: 600;
}

.cd-footer__agent-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cd-teal);
    animation: pulse 2s ease-in-out infinite;
}

.cd-footer__heading {
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.cd-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cd-footer__links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--cd-transition);
}

.cd-footer__links a:hover {
    color: var(--cd-teal);
}

.cd-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .cd-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cd-footer__bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SOCIAL PROOF NOTIFICATION
   ============================================ */
.cd-social-proof {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    border-radius: var(--cd-radius-lg);
    box-shadow: var(--cd-shadow-xl);
    border: 1px solid var(--cd-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 900;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
}

.cd-social-proof.active {
    transform: translateY(0);
}

.cd-social-proof__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cd-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-social-proof__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cd-navy);
}

.cd-social-proof__time {
    font-size: 0.6875rem;
    color: var(--cd-text-muted);
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
.cd-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 26, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cd-popup-overlay.active {
    display: flex;
}

.cd-popup {
    background: white;
    border-radius: var(--cd-radius-xl);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.cd-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cd-bg-slate-cool);
    border: none;
    font-size: 1.25rem;
    color: var(--cd-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cd-transition);
}

.cd-popup__close:hover {
    background: var(--cd-bg-secondary);
    color: var(--cd-text-primary);
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.cd-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: var(--cd-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 800;
    text-align: center;
    display: block;
}

.cd-sticky-cta .cd-btn {
    width: 100%;
}

@media (min-width: 1024px) {
    .cd-sticky-cta { display: none; }
}

/* ============================================
   PROBLEM/AGITATION SECTION
   ============================================ */
.cd-problem__tool {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
}

.cd-problem__tool-price {
    font-size: 0.75rem;
    color: #EF4444;
    font-weight: 700;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.cd-problem__tool-name {
    font-size: 0.75rem;
    color: var(--cd-navy);
    font-weight: 600;
}

.cd-problem__solution {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--cd-teal-light);
    border: 1px solid rgba(10, 186, 181, 0.2);
    border-radius: 1rem;
    padding: 1rem 2rem;
}

.cd-problem__solution-price {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 1.875rem;
    color: var(--cd-teal);
}

.cd-problem__solution-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cd-navy);
}

.cd-problem__solution-desc {
    font-size: 0.75rem;
    color: var(--cd-text-muted);
}

/* ============================================
   REGISTER & LOGIN PAGES
   ============================================ */
.cd-auth-page {
    min-height: 100vh;
    background: var(--cd-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-top: 72px;
}

.cd-auth-card {
    background: white;
    border-radius: var(--cd-radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.cd-auth-card__title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--cd-navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

.cd-auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--cd-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.cd-auth-card__form-group {
    margin-bottom: 1rem;
}

.cd-auth-card__form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cd-text-secondary);
    margin-bottom: 0.375rem;
}

.cd-auth-card__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--cd-text-muted);
    font-size: 0.75rem;
}

.cd-auth-card__divider::before,
.cd-auth-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cd-border);
}

.cd-auth-card__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--cd-text-muted);
}

.cd-auth-card__footer a {
    color: var(--cd-teal);
    font-weight: 600;
}

.cd-auth-card__footer a:hover {
    color: var(--cd-teal-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 186, 181, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(10, 186, 181, 0.15); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.hidden-mobile { display: none; }
.hidden-desktop { display: block; }

@media (min-width: 768px) {
    .hidden-mobile { display: block; }
    .hidden-desktop { display: none; }
}

/* ============================================
   DASHBOARD STYLES — Preserved from v3
   (Dashboard CSS is in separate file)
   ============================================ */

/* ============================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================ */
.admin-bar .cd-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .cd-header {
        top: 46px;
    }
}

/* ============================================
   LISTINGPULSE SECTION
   ============================================ */
.cd-listingpulse {
    position: relative;
    overflow: hidden;
}

.cd-listingpulse__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cd-listingpulse__grid { grid-template-columns: 1fr 1fr; }
}

.cd-listingpulse__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.cd-listingpulse__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.cd-listingpulse__feature i {
    width: 20px;
    height: 20px;
    color: var(--cd-teal);
}

/* ============================================
   CURRICULUM PREVIEW
   ============================================ */
.cd-curriculum-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cd-curriculum-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cd-curriculum-grid { grid-template-columns: repeat(3, 1fr); }
}

.cd-week-card {
    background: white;
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-lg);
    padding: 1.5rem;
    transition: var(--cd-transition);
}

.cd-week-card:hover {
    border-color: rgba(10, 186, 181, 0.3);
    box-shadow: var(--cd-shadow-md);
}

.cd-week-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cd-week-card__number {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--cd-teal);
}

.cd-week-card__badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.cd-week-card__badge--free {
    background: var(--cd-green-light);
    color: var(--cd-green);
}

.cd-week-card__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cd-navy);
    margin-bottom: 0.5rem;
}

.cd-week-card__desc {
    font-size: 0.8125rem;
    color: var(--cd-text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.cd-week-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--cd-text-muted);
}

/* ============================================
   PHASES SECTION
   ============================================ */
.cd-phases {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cd-phases { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cd-phases { grid-template-columns: repeat(4, 1fr); }
}

.cd-phase {
    text-align: center;
    padding: 2rem 1.5rem;
}

.cd-phase__number {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--cd-teal);
    margin-bottom: 0.5rem;
}

.cd-phase__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--cd-navy);
    margin-bottom: 0.25rem;
}

.cd-phase__weeks {
    font-size: 0.8125rem;
    color: var(--cd-teal);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cd-phase__desc {
    font-size: 0.8125rem;
    color: var(--cd-text-muted);
    line-height: 1.5;
}

/* ============================================
   FOOTER CONTACT FORM
   ============================================ */
.cd-footer-contact__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cd-footer-contact__form .cd-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.cd-footer-contact__form .cd-input:focus {
    border-color: var(--cd-teal);
    background: rgba(255, 255, 255, 0.08);
}

.cd-footer-contact__form .cd-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cd-footer-contact__form textarea.cd-input {
    min-height: 60px;
    resize: vertical;
}

.cd-footer-contact__success {
    color: var(--cd-green);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}


/* ============================================
   BACKWARD-COMPAT: Utility classes used by
   existing page templates (AI Tools, About,
   Blog, Contact, Courses, Curriculum, etc.)
   ============================================ */

/* Grid Utilities */
.cd-grid {
    display: grid;
    gap: 1.5rem;
}
.cd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cd-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .cd-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .cd-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cd-grid--4,
    .cd-grid--3,
    .cd-grid--2 { grid-template-columns: 1fr; }
}

/* Section Header */
.cd-section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.cd-section__label {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cd-teal);
    margin-bottom: 0.75rem;
}
.cd-section__title {
    margin-bottom: 1rem;
}
.cd-section__subtitle {
    font-size: 1.1rem;
    color: var(--cd-text-muted);
    max-width: 640px;
    margin: 0 auto;
}
.cd-section--dark {
    background: var(--cd-bg-secondary);
}
.cd-section--darker {
    background: var(--cd-bg-primary);
}

/* Cards */
.cd-card {
    background: var(--cd-bg-card);
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-lg);
    padding: 2rem;
    transition: var(--cd-transition);
}
.cd-card:hover {
    border-color: var(--cd-border-light);
    background: var(--cd-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--cd-shadow-lg);
}
.cd-card--flat {
    border: none;
    background: var(--cd-bg-card);
}
.cd-card--teal-border:hover {
    border-color: rgba(10, 186, 181, 0.3);
}

/* Badge / Tag */
.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--cd-teal-light);
    color: var(--cd-teal);
    border: 1px solid rgba(10, 186, 181, 0.25);
}
.cd-badge--gold {
    background: var(--cd-gold-light);
    color: var(--cd-gold);
    border-color: rgba(245, 166, 35, 0.25);
}
.cd-badge--free {
    background: var(--cd-gold);
    color: #fff;
    font-weight: 700;
}

/* Gradient Text */
.cd-gradient-text {
    background: linear-gradient(135deg, var(--cd-teal), #72E2DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cd-gradient-text--gold {
    background: linear-gradient(135deg, var(--cd-gold), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Pattern Overlay */
.cd-hero-pattern {
    background-image: radial-gradient(rgba(10, 186, 181, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Scroll Progress Bar */
.cd-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cd-teal), var(--cd-gold));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Button Secondary */
.cd-btn--secondary {
    background: transparent;
    color: var(--cd-text-primary);
    border: 1px solid var(--cd-border-light);
}
.cd-btn--secondary:hover {
    background: var(--cd-bg-secondary);
    border-color: var(--cd-teal);
    color: var(--cd-teal);
}

/* Scroll Animations */
.cd-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.cd-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container Variants */
.cd-container--wide {
    max-width: 1400px;
}
.cd-container--narrow {
    max-width: 800px;
}

/* Form Elements */
.cd-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--cd-bg-card);
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-md);
    color: var(--cd-text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: var(--cd-transition);
}
.cd-input:focus {
    outline: none;
    border-color: var(--cd-teal);
    box-shadow: 0 0 0 3px var(--cd-teal-light);
}
.cd-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cd-text-secondary);
    margin-bottom: 0.5rem;
}

/* Sticky Mobile CTA */
.cd-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cd-navy);
    padding: 0.75rem 1rem;
    z-index: 998;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
    .cd-sticky-cta { display: block; }
}

/* ===== CONTRAST FIX: Headings inside dark sections should inherit white text ===== */
section[style*='color:#fff'] h1,
section[style*='color:#fff'] h2,
section[style*='color:#fff'] h3,
section[style*='color:#fff'] h4,
section[style*='color: #fff'] h1,
section[style*='color: #fff'] h2,
section[style*='color: #fff'] h3,
section[style*='color: #fff'] h4,
section[style*='color:white'] h1,
section[style*='color:white'] h2,
section[style*='color:white'] h3,
section[style*='color:white'] h4,
.cd-section[style*='--cd-navy'] h1,
.cd-section[style*='--cd-navy'] h2,
.cd-section[style*='--cd-navy'] h3,
.cd-section[style*='--cd-navy'] h4 {
}

/* Stats bar values on light backgrounds need dark/teal color */
.cd-stats-bar h3,
.cd-stats-bar .stat-value {
}

/* Stats bar on dark backgrounds */
section[style*='--cd-navy'] .cd-stats-bar h3,
.cd-stats-bar[style*='--cd-navy'] h3 {
}

/* ===== CONTRAST FIX: Headings inside dark sections should inherit white text ===== */
section[style*="color:#fff"] h1,
section[style*="color:#fff"] h2,
section[style*="color:#fff"] h3,
section[style*="color:#fff"] h4,
section[style*="color: #fff"] h1,
section[style*="color: #fff"] h2,
section[style*="color: #fff"] h3,
section[style*="color: #fff"] h4,
section[style*="color:white"] h1,
section[style*="color:white"] h2,
section[style*="color:white"] h3,
section[style*="color:white"] h4 {
    color: #fff !important;
}

/* Also target sections with navy background */
section[style*="--cd-navy"] h1,
section[style*="--cd-navy"] h2,
section[style*="--cd-navy"] h3,
section[style*="--cd-navy"] h4,
section[style*="--cd-navy"] p {
    color: #fff !important;
}

section[style*="--cd-navy"] p {
    color: rgba(255,255,255,0.7) !important;
}

section[style*="--cd-navy"] .cd-gradient-text {
    color: var(--cd-teal) !important;
}

/* Stats bar: ensure stat numbers are visible on light backgrounds */
.cd-stats-grid h3 {
    color: var(--cd-teal) !important;
}

.cd-stats-grid p {
    color: var(--cd-text-secondary) !important;
}
