/* ============================================================
   WebsiteInvestor.guide — Main Stylesheet
   ============================================================ */

/* 1. CSS Variables & Reset */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --secondary-light: #ede9fe;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #f8fafc;
    --bg-white: #ffffff;

    /* Shadows */
    --card-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

    /* Border Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    /* Transitions */
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout - Fluid sizing */
    --max-width: 1200px;
    --sidebar-width: 280px;
    --container-padding: clamp(1rem, 3vw, 2rem);
    --section-gap: clamp(2rem, 5vw, 3.5rem);

    /* Fluid Typography Scale */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-4xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
    --text-5xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);

    /* Touch-friendly sizing */
    --touch-target: 44px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Respect user preferences */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Responsive images */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Responsive forms */
input, button, textarea, select {
    font: inherit;
    font-size: var(--text-base);
}

/* Remove default button styles */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

/* Remove list styles */
ul, ol { list-style: none; }

/* Better anchor links */
[target="_blank"] {
    /* Security and UX for external links */
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 2. Container - Fluid padding */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* 3. Disclosure Bar */
.disclosure-bar {
    background: #fefce8;
    border-bottom: 1px solid #fde68a;
    padding: 0.6rem 0;
    font-size: 0.78rem;
    color: #78350f;
    text-align: center;
    position: relative;
    z-index: 100;
}

/* 4. Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}
.site-logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.2rem; }
.logo-accent { color: var(--primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
}
.nav-top-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.nav-top-link:hover { background: var(--primary-light); color: var(--primary); }
.cta-nav-link {
    background: var(--success);
    color: white !important;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 0.5rem;
}
.cta-nav-link:hover { background: #15803d; color: white !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 199;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-nav--open { transform: translateX(0); }
.mobile-nav a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* 5. Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a1a4e 100%);
    color: white;
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: white;
}
.hero-highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #cbd5e1;
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.75;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* 6. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: white; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-affiliate {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}
.btn-affiliate:hover { background: var(--primary-dark); color: white; }
.btn-affiliate--green { background: var(--success); }
.btn-affiliate--green:hover { background: #15803d; color: white; }
.btn-marketplace { width: 100%; margin-top: 1rem; }

/* 7. Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    max-width: 800px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: #60a5fa;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }


/* 8. Ad Containers */
.ad-container {
    padding: 1.5rem 0;
    background: #f8fafc;
}
.ad-header-banner { border-bottom: 1px solid var(--border); }
.ad-footer-banner { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-in-content { background: transparent; padding: 1rem 0; }
.ad-label {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
    border: 2px dashed #c7d2fe;
    border-radius: var(--radius-sm);
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.3rem;
    padding: 1rem;
    text-align: center;
    margin: 0 auto;
}


/* 9. Main Layout */
main.container {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    justify-content: center;
    display: grid
}

.content-wrapper {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Main content area - explicitly defined for responsiveness */
.main-content {
    width: 100%;
    min-width: 0; /* Critical: allows grid item to shrink below content size */
    max-width: 1600px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 10. Sidebar */
.sidebar {position: sticky;top: 80px;max-height: calc(200vh - 200px);overflow-y: auto;}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.nav-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
}
.nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.nav-list { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-number {
    width: 20px;
    height: 20px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.nav-link.active .nav-number { background: var(--primary); color: white; }
.nav-divider { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.5rem; }
.nav-special { color: var(--secondary); }
.nav-special:hover { background: var(--secondary-light); color: var(--secondary); }
.nav-link.active.nav-special { background: var(--secondary-light); color: var(--secondary); }

/* Sidebar affiliate boxes */
.sidebar-affiliate-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-affiliate-box--secondary { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.sidebar-affiliate-box h4 { font-size: 0.95rem; font-weight: 700; margin: 0.3rem 0 0.5rem; }
.sidebar-affiliate-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.5; }
.affiliate-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.affiliate-badge--green { background: var(--success); }

/* 11. Section Cards */
.section-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: box-shadow var(--transition);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
}
.section-card:hover { box-shadow: var(--card-shadow-hover); }
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}
.section-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    opacity: 0.8;
}
.section-header h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.section-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.subsection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 12. Info Boxes */
.info-box {
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid;
}
.info-box--blue { background: #eff6ff; border-color: var(--primary); }
.info-box--green { background: #f0fdf4; border-color: var(--success); }
.info-box--orange { background: #fffbeb; border-color: var(--warning); }
.info-box--purple { background: #faf5ff; border-color: var(--secondary); }
.info-box-title { font-weight: 700; margin-bottom: 0.6rem; font-size: 0.95rem; }
.info-box p { font-size: 0.9rem; color: #374151; line-height: 1.7; }
.formula-display {
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
}
.formula-sub { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); margin-top: 0.3rem; }

/* 13. Quick Stats Bar */
.quick-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.quick-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.quick-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.quick-stat span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* 14. Marketplace Cards */
.marketplace-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.marketplace-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
}
.marketplace-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(37,99,235,0.1); transform: translateY(-2px); }
.marketplace-card--featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
    position: relative;
}
.marketplace-card--featured::before {
    content: '⭐ #1 Recommended';
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    letter-spacing: 0.03em;
}
.marketplace-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.marketplace-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}
.marketplace-logo-placeholder.ef { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.marketplace-logo-placeholder.flippa { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.marketplace-logo-placeholder.mi { background: linear-gradient(135deg, #16a34a, #15803d); }
.marketplace-logo-placeholder.fe { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.marketplace-logo-placeholder.ic { background: linear-gradient(135deg, #f59e0b, #d97706); }
.marketplace-logo-placeholder.acq { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.marketplace-meta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.marketplace-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tag--gold { background: #fef3c7; color: #92400e; }
.tag--blue { background: #dbeafe; color: #1e40af; }
.tag--green { background: #dcfce7; color: #15803d; }
.tag--purple { background: #ede9fe; color: #6d28d9; }
.tag--gray { background: #f1f5f9; color: var(--text-muted); }
.marketplace-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.mp-stat { text-align: center; }
.mp-stat strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.mp-stat span { font-size: 0.72rem; color: var(--text-muted); }
.marketplace-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.marketplace-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.pros, .cons {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}
.pros { background: #f0fdf4; }
.cons { background: #fff1f2; }
.pros strong { color: var(--success); }
.cons strong { color: var(--danger); }
.pros ul, .cons ul { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pros li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--danger); font-weight: 700; }

/* 15. Quality Badges */
.quality-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.quality-high { background: #dcfce7; color: #15803d; }
.quality-medium { background: #fef3c7; color: #92400e; }
.quality-low { background: #fee2e2; color: #b91c1c; }

/* 16. Data Tables */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead { background: #f8fafc; }
.data-table th {
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.highlight-row td { background: #eff6ff !important; font-weight: 500; }

/* 17. Feature Grid */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.feature-card--primary { background: linear-gradient(135deg, #eff6ff, #ffffff); border-color: #bfdbfe; grid-column: 1 / -1; }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.feature-benchmark {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    margin-top: 0.4rem;
}
.feature-benchmark.bench-red { background: #fff1f2; }
.bench-label { font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* 18. Time Grid (Revenue Types) */
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.time-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid;
    transition: transform var(--transition);
}
.time-card:hover { transform: translateY(-2px); }
.time-card--purple { background: linear-gradient(135deg, #faf5ff, #ede9fe); border-color: #ddd6fe; }
.time-card--green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.time-card--blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.time-card--orange { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.time-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.6rem; }
.time-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.75rem; }
.time-details { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.time-details span {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.7);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-weight: 500;
}

/* 19. Pricing Tiers */
.price-tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.price-tier {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.price-tier:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.price-tier--featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    transform: scale(1.03);
}
.price-tier--featured:hover { transform: scale(1.03) translateY(-2px); }
.tier-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.tier-label--featured { color: var(--primary); }
.tier-price { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 0.3rem; }
.tier-profit { font-size: 0.8rem; color: var(--success); font-weight: 600; margin-bottom: 1rem; }
.tier-features { list-style: none; flex: 1; }
.tier-features li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.5;
}
.tier-features li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.tier-roi {
    margin-top: 1rem;
    padding: 0.6rem 0.75rem;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    text-align: center;
}

/* 20. Two Column Grid */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.col-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid;
}
.col-card--green { background: #f0fdf4; border-color: #bbf7d0; }
.col-card--red { background: #fff1f2; border-color: #fecdd3; }
.col-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.85rem; }
.styled-list { display: flex; flex-direction: column; gap: 0.5rem; }
.styled-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.col-card--green .styled-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.col-card--red .styled-list li::before { content: '✗'; color: var(--danger); font-weight: 700; flex-shrink: 0; }

/* 21. ROI Calculator */
.calculator-section { background: linear-gradient(135deg, #f8faff, #f0f4ff); border-color: #c7d2fe; }
.calculator-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.calc-inputs {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.calc-group { margin-bottom: 1.5rem; }
.calc-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.calc-group input[type="number"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
}
.calc-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.calc-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, #e2e8f0 50%, #e2e8f0 100%);
    outline: none;
}
.calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
    border: 2px solid white;
}
.calc-hint { font-size: 0.76rem; color: var(--text-light); margin-top: 0.35rem; display: block; line-height: 1.4; }
.calc-btn { width: 100%; margin-top: 0.5rem; padding: 0.85rem; font-size: 1rem; border-radius: var(--radius-sm); }

.calc-results {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.calc-results h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.result-card {
    padding: 0.85rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: center;
}
.result-card--highlight { background: var(--primary-light); border-color: #93c5fd; }
.result-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.result-value { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.result-card--highlight .result-value { color: var(--primary-dark); }
.calc-projection-table { margin-top: 1.25rem; }
.calc-projection-table h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-muted); }
.projection-table { font-size: 0.8rem; }
.calc-verdict { margin-top: 1.25rem; }
.verdict {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.6;
}
.verdict--green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.verdict--blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.verdict--yellow { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.verdict--red { background: #fff1f2; border: 1px solid #fecdd3; color: #b91c1c; }

/* 22. Checklist Accordion */
.checklist-accordion { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.faq-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition);
    cursor: pointer;
    border: none;
}
.accordion-header:hover { background: var(--primary-light); }
.accordion-item.open .accordion-header { background: var(--primary-light); color: var(--primary); }
.acc-icon { font-size: 1.1rem; flex-shrink: 0; }
.acc-arrow { margin-left: auto; flex-shrink: 0; transition: transform 0.3s ease; }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}
.accordion-body p { padding: 1.25rem 1.5rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
.dd-checklist { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dd-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.dd-item:hover { background: var(--bg); }
.dd-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}
.dd-item input[type="checkbox"]:checked + span,
.dd-item:has(input:checked) { color: var(--text-light); text-decoration: line-through; }

/* 23. Risk Cards */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.risk-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid;
    transition: transform var(--transition);
}
.risk-card:hover { transform: translateY(-2px); }
.risk-card--critical { background: #fff1f2; border-color: #fecdd3; }
.risk-card--high { background: #fffbeb; border-color: #fde68a; }
.risk-card--medium { background: #f0f9ff; border-color: #bae6fd; }
.risk-severity {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.risk-card--critical .risk-severity { color: var(--danger); }
.risk-card--high .risk-severity { color: var(--warning); }
.risk-card--medium .risk-severity { color: #0284c7; }
.risk-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.risk-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.85rem; }
.risk-mitigation {
    padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text);
}

/* 24. Red Flag Box */
.red-flag-box {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-top: 2rem;
}
.red-flag-box h3 { font-size: 1rem; font-weight: 800; color: var(--danger); margin-bottom: 1.25rem; }
.red-flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.red-flag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #7f1d1d;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
}
.red-flag-item::before { content: '✗'; color: var(--danger); font-weight: 700; flex-shrink: 0; }

/* 25. Timeline */
.timeline-section { position: relative; padding-left: 2rem; }
.timeline-section::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 1px;
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 0.9rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-marker {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}
.timeline-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* 26. Case Studies */
.case-study-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.case-study-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.case-study-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.case-study--success { border-color: #bbf7d0; }
.case-study--warning { border-color: #fde68a; }
.cs-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
}
.case-study--success .cs-header { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.case-study--warning .cs-header { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.cs-outcome {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.cs-outcome--win { color: var(--success); }
.cs-outcome--warn { color: var(--warning); }
.cs-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cs-meta { font-size: 0.78rem; color: var(--text-muted); }
.cs-body { padding: 1.5rem 1.75rem; }
.cs-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.cs-stat { text-align: center; }
.cs-stat strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--text); }
.cs-stat span { font-size: 0.72rem; color: var(--text-muted); }
.cs-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.85rem; }
.cs-lesson {
    background: #eff6ff;
    border-left: 3px solid var(--primary);
    padding: 0.85rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.84rem;
    line-height: 1.6;
}
.cs-lesson--warn { background: #fffbeb; border-color: var(--warning); }

/* 27. Revenue Projection Scenarios */
.scenario-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scenario-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.scenario-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.scenario--pessimistic { border-color: #fecdd3; }
.scenario--moderate { border-color: #fde68a; }
.scenario--optimistic { border-color: #bbf7d0; }
.scenario-label {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.scenario--pessimistic .scenario-label { background: #fee2e2; color: #b91c1c; }
.scenario--moderate .scenario-label { background: #fef3c7; color: #92400e; }
.scenario--optimistic .scenario-label { background: #dcfce7; color: #15803d; }
.scenario-desc {
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}
.scenario-table-mini { padding: 1rem 1.25rem; }
.sm-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}
.sm-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    color: var(--text);
}
.scenario-context {
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg);
    line-height: 1.5;
    border-top: 1px solid var(--border);
}

/* 28. Domain Grid */
.domain-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.domain-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.domain-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow-hover); }
.domain-card--top {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #eff6ff, #f8faff);
}
.domain-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.domain-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    font-family: monospace;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.domain-card--top .domain-name { color: var(--primary); font-size: 1.4rem; }
.domain-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.85rem; }
.domain-rationale p { font-size: 0.88rem; }
.domain-metrics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.domain-metrics span {
    font-size: 0.75rem;
    background: var(--bg);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* 29. Tools Section */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tool-category {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tool-category > h3 {
    padding: 1rem 1.25rem;
    background: var(--bg);
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.tool-list { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.tool-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.tool-item:hover { border-color: var(--primary); background: var(--primary-light); }
.tool-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.tool-info strong { font-size: 0.9rem; font-weight: 700; }
.tool-price {
    font-size: 0.75rem;
    background: var(--accent-light);
    color: #92400e;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-weight: 600;
}
.tool-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.6rem; }
.tool-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition);
}
.tool-link:hover { color: var(--primary-dark); }



/* 31. Intro Card */
.intro-card { background: linear-gradient(135deg, #fffff5, #f8faff); }

/* 32. Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.site-logo-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 0.75rem; }
.footer-disclosure { font-size: 0.77rem; color: #64748b; border-top: 1px solid #1e293b; padding-top: 0.75rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e2e8f0; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.83rem; color: #64748b; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.25rem 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: #475569; }
.footer-legal-links { margin-top: 0.5rem; }
.footer-legal-links a { color: #64748b; text-decoration: none; font-size: 0.75rem; }
.footer-legal-links a:hover { color: var(--primary); text-decoration: underline; }

/* 33. Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 300;
    cursor: pointer;
    border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* 34. Scroll Animations */
.animate-ready { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    /* ROI Calculator - Vertical Stack */
    .calculator-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
    .calc-inputs { order: 1; }
    .calc-results { order: 2; }
    .result-grid { grid-template-columns: repeat(2, 1fr); }

    /* Projection Table - Scrollable on mobile */
    .calc-projection-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .projection-table {
        min-width: 500px;
        font-size: 0.75rem;
    }
    .projection-table th,
    .projection-table td {
        padding: 0.5rem 0.6rem;
    }
}


@media (max-width: 700px) {
    /* ROI Calculator - Mobile Enhancements */
    .calculator-wrapper { gap: 1.25rem; }
    .calc-inputs { padding: 1.25rem; }
    .calc-results { padding: 1.25rem; }
    .result-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .result-card { padding: 0.75rem; }
    .result-value { font-size: 1.1rem; }
    .result-label { font-size: 0.7rem; }

    /* Projection Table - Smaller on mobile */
    .calc-projection-table {
        margin-top: 1rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0 0.25rem;
    }
    .projection-table {
        min-width: 450px;
        font-size: 0.7rem;
    }
}


@media (max-width: 480px) {
    /* ROI Calculator - Small Mobile */
    .result-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .result-card { padding: 0.6rem; }
    .result-value { font-size: 1rem; }
    .calc-group { margin-bottom: 1rem; }
    .calc-group label { font-size: 0.8rem; }
    .calc-hint { font-size: 0.7rem; }
    .calc-btn { padding: 0.75rem; font-size: 0.9rem; }

    /* Projection Table - Compact */
    .projection-table {
        min-width: 400px;
        font-size: 0.65rem;
    }
}


@media (max-width: 360px) {
    /* ROI Calculator - Extra Small Mobile */
    .calc-inputs { padding: 0.85rem; }
    .calc-results { padding: 0.85rem; }
    .result-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .result-card { padding: 0.5rem; }
    .result-value { font-size: 0.9rem; }
    .result-label { font-size: 0.65rem; }
    .calc-group label { font-size: 0.75rem; }
    .calc-hint { font-size: 0.65rem; }
    .calc-btn { padding: 0.65rem; font-size: 0.85rem; }

    /* Projection Table - Extra Compact */
    .projection-table {
        min-width: 350px;
        font-size: 0.6rem;
    }
}



/* Calculator wrapper */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    min-width: 0;
}

/* Section card */
.section-card {
    /* ... existing styles ... */
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Calculator inputs */
.calc-inputs {
    /* ... existing styles ... */
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Calculator results */
.calc-results {
    /* ... existing styles ... */
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Calculator groups */
.calc-group {
    margin-bottom: 1.5rem;
    min-width: 0;
}
.calc-group label {
    /* ... existing styles ... */
    overflow-wrap: break-word;
}
.calc-group input[type="number"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.calc-group input[type="range"] {
    width: 100%;
    min-width: 0;
}
.calc-hint {
    /* ... existing styles ... */
    overflow-wrap: break-word;
}

/* Result grid and cards */
.result-grid {
    /* ... existing styles ... */
    min-width: 0;
}
.result-card {
    /* ... existing styles ... */
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.result-label {
    /* ... existing styles ... */
    overflow-wrap: break-word;
}
.result-value {
    /* ... existing styles ... */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Projection table */
.calc-projection-table {
    margin-top: 1.25rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}





/* ============================================================
   35. Responsive Design System
   ============================================================ */

/* Breakpoint System:
   - xl: > 1200px (large desktop)
   - lg: 900px - 1199px (desktop / small laptop)
   - md: 700px - 899px (tablet landscape)
   - sm: 480px - 699px (tablet portrait / large phone)
   - xs: < 480px (phone)
*/

/* Global Mobile-First Fixes - Apply at all sizes */
img, video, iframe, table, pre, code {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll caused by long content */
p, h1, h2, h3, h4, h5, h6, li, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Tables scroll horizontally on mobile */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Extra Large Screens (> 1200px) - Default styles apply */

/* -----------------------------------------------------------
   Large Screens (max-width: 1100px)
   ----------------------------------------------------------- */
@media (max-width: 1100px) {
    :root {
        --sidebar-width: 240px;
        --container-padding: 1.5rem;
    }

    /* Hero adjustments */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pricing grid */
    .price-tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tools */
    .tools-grid {
        grid-template-columns: 1fr;
    }

    /* Marketplace cards */
    .marketplace-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -----------------------------------------------------------
   Medium-Large Screens (max-width: 900px) - Tablet Landscape
   ----------------------------------------------------------- */
@media (max-width: 900px) {
    :root {
        --container-padding: 1.25rem;
    }

    /* Main layout - stack sidebar below content */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Sidebar becomes a horizontal grid */
    .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        order: -1; /* Move sidebar above content on mobile */
    }

    .nav-card { margin-bottom: 0; }
    .sticky-nav { grid-column: 1 / -1; }

    /* Feature grid */
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--primary { grid-column: 1; }

    /* Time grid */
    .time-grid { grid-template-columns: 1fr 1fr; }

    /* Marketplace */
    .marketplace-pros-cons { grid-template-columns: 1fr; }
    .marketplace-stats { grid-template-columns: repeat(2, 1fr); }

    /* Navigation - show hamburger */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: none; }
    .mobile-nav.active { display: flex; }

    /* Risk and scenario grids */
    .risk-grid { grid-template-columns: 1fr; }
    .scenario-cards { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }

    /* Case studies */
    .cs-stats-row { grid-template-columns: repeat(2, 1fr); }

    /* Calculator */
    .two-col-grid { grid-template-columns: 1fr; }
    .calculator-wrapper { grid-template-columns: 1fr; }
    .result-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero tools showcase */
    .hero-tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* DD Scorecard */
    .dd-score-header { grid-template-columns: 1fr; }
    .dd-score-display { flex-wrap: wrap; }
    .dd-scorecard-grid { grid-template-columns: 1fr; }
    .dd-actions { flex-direction: column; }

    /* Ad containers */
    .ad-header-banner,
    .ad-footer-banner {
        padding: 1rem 0;
    }

    .ad-leaderboard {
        max-width: 100%;
        min-height: auto;
    }
}

/* -----------------------------------------------------------
   Medium Screens (max-width: 700px) - Tablet Portrait
   ----------------------------------------------------------- */
@media (max-width: 700px) {
    :root {
        --container-padding: 1rem;
    }

    /* Container - ensure full width */
    .container {
        padding: 0 var(--container-padding);
        width: 100%;
        max-width: 100%;
    }

    /* Main content wrapper - ensure proper sizing */
    .content-wrapper {
        width: 100%;
        gap: 1.5rem;
    }

    /* Main content */
    .main-content {
        width: 100%;
        min-width: 0;
    }

    /* Section cards - compact for tablet */
    .section-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Section header - stack vertically on mobile */
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .section-number {
        width: auto;
        font-size: 1.75rem;
    }

    /* Hero section */
    .hero {
        padding: 2.5rem 0 2rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    .stat-number { font-size: clamp(1.2rem, 4vw, 1.4rem); }

    /* Hero tools - single column on small screens */
    .hero-tools-grid {
        grid-template-columns: 1fr;
    }
    .hero-tools-showcase {
        padding: 1rem;
    }

    /* DD Scorecard */
    .dd-scorecard-grid { grid-template-columns: 1fr; }
    .dd-score-header { padding: 1.25rem; }
    .be-chart-container { min-height: 220px; }

    /* Pricing */
    .price-tier-grid { grid-template-columns: 1fr; }
    .price-tier--featured { transform: none; }
    .price-tier--featured:hover { transform: translateY(-2px); }

    /* Quick stats */
    .quick-stats-bar { grid-template-columns: repeat(2, 1fr); }

    /* Time and tools */
    .time-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }

    /* Red flags */
    .red-flag-grid { grid-template-columns: 1fr; }

    /* Domain names */
    .domain-name { font-size: 0.95rem; }
    .domain-card--top .domain-name { font-size: 1.1rem; }

    /* Sidebar - single column */
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Section headers */
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .section-number { width: auto; text-align: left; }

    /* Marketplace stats */
    .marketplace-stats { grid-template-columns: repeat(2, 1fr); }

    /* Case studies */
    .cs-stats-row { grid-template-columns: 1fr 1fr; }
    .cs-stats-row .stat-item { padding: 0.75rem; }

    /* Results grid */
    .result-grid { grid-template-columns: 1fr 1fr; }

    /* Footer */
    .footer-links { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    /* Back to top */
    .back-to-top {
        bottom: 5rem; /* Above cookie banner */
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    /* Hero CTA */
    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Scenario cards */
    .scenario-cards { grid-template-columns: 1fr; }

    /* Marketplace cards */
    .marketplace-cards {
        grid-template-columns: 1fr;
    }

    /* Data tables - make scrollable */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table {
        min-width: 0;
        width: 100%;
    }
}

/* -----------------------------------------------------------
   Small Screens (max-width: 480px) - Phone
   ----------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --radius: 10px;
        --radius-sm: 6px;
    }

    /* Global mobile fixes - prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Ensure no horizontal scroll on main containers */
    .container {
        width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .content-wrapper,
    .main-content,
    .section-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Section cards - extra compact for phones */
    .section-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    /* Section headers - full width on phones */
    .section-header {
        width: 100%;
    }

    /* Hero */
    .hero {
        padding: 2rem 0 1.5rem;
    }
    .hero h1 {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: var(--text-sm);
    }
    .hero-badge {
        font-size: var(--text-xs);
        padding: 0.4rem 0.75rem;
    }

    /* Hero stats - 2x2 grid */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        padding: 0.75rem;
    }

    /* Marketplace stats */
    .marketplace-stats { grid-template-columns: 1fr 1fr; }

    /* Results */
    .result-grid { grid-template-columns: 1fr; }

    /* Buttons - full width on mobile */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: var(--text-sm);
    }

    /* Section titles */
    .section-title {
        font-size: var(--text-2xl);
    }

    /* Cards */
    .section-card {
        padding: 1.25rem 1rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .footer-inner {
        padding: 2rem 0;
    }

    /* Cookie banner adjustments */
    .cookie-banner {
        padding: 0.75rem;
    }
    .cookie-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cookie-text {
        font-size: var(--text-xs);
    }
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-btn {
        flex: 1;
        padding: 0.65rem 1rem;
    }

    /* Calculator inputs */
    .calc-input-group label {
        font-size: var(--text-xs);
    }
    .calc-input {
        padding: 0.65rem 0.75rem;
        font-size: var(--text-base);
    }

    /* Navigation */
    .site-logo {
        font-size: var(--text-sm);
    }
    .logo-icon {
        font-size: 1.1rem;
    }

    /* Case study cards */
    .case-study-card {
        padding: 1.25rem;
    }

    /* Tool cards */
    .hero-tool-card {
        padding: 0.6rem 0.75rem;
        font-size: var(--text-xs);
    }
}

/* -----------------------------------------------------------
   Extra Small Screens (max-width: 360px) - Small Phone
   ----------------------------------------------------------- */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.75rem;
    }

    /* Prevent text overflow on all elements */
    * {
        max-width: 100%;
    }

    /* Hero stats - stack vertically */
    .hero-stats {
        grid-template-columns: 1fr;
    }

    /* Quick stats - stack */
    .quick-stats-bar {
        grid-template-columns: 1fr;
    }

    /* Marketplace stats */
    .marketplace-stats {
        grid-template-columns: 1fr;
    }

    /* Pricing tiers */
    .price-tier {
        padding: 1.25rem 1rem;
    }

    /* Buttons - ensure touch targets */
    .btn, .nav-link, .cookie-btn {
        min-height: var(--touch-target);
    }

    /* Disclosure bar */
    .disclosure-bar {
        font-size: 0.65rem;
        padding: 0.5rem 0.5rem;
    }
}

/* -----------------------------------------------------------
   Touch Device Optimizations
   ----------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link,
    .btn,
    .hero-tool-card,
    .marketplace-card,
    .footer-col a {
        min-height: var(--touch-target);
    }

    /* Remove hover effects that don't work on touch */
    .btn:hover {
        transform: none;
    }

    .card:hover,
    .section-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }

    /* Better tap feedback */
    .btn:active,
    .nav-link:active,
    .hero-tool-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* -----------------------------------------------------------
   Landscape Phone Orientation
   ----------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        display: none;
    }

    .hero-stats {
        padding: 0.75rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
}

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

    .animate-ready {
        opacity: 1;
        transform: none;
    }
}

/* -----------------------------------------------------------
   High Contrast Mode
   ----------------------------------------------------------- */
@media (prefers-contrast: high) {
    :root {
        --border: #333;
        --text-muted: #555;
    }

    .btn,
    .section-card,
    .nav-card {
        border-width: 2px;
    }
}

/* ============================================================
   36. Valuation Calculator Extras
   ============================================================ */
.vc-factor-list { display: flex; flex-direction: column; gap: 0.4rem; }
.vc-factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.vc-factor--pos { background: #f0fdf4; color: #15803d; }
.vc-factor--neg { background: #fff1f2; color: #b91c1c; }
.vc-factors-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin: 1.25rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   37. DD Scorecard
   ============================================================ */
.dd-score-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}
.dd-score-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.dd-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.dd-svg { width: 100%; height: 100%; }
.dd-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
}
.dd-score-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.dd-score-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dd-score-status { display: flex; flex-direction: column; gap: 0.5rem; }
.dd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
}
.dd-status--danger  { background: #fee2e2; color: #b91c1c; }
.dd-status--warn    { background: #fef3c7; color: #92400e; }
.dd-status--good    { background: #dcfce7; color: #15803d; }
.dd-status--success { background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; }
.dd-items-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.dd-category-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.dd-cat-bar {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}
.dd-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.dd-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
    transition: width 0.4s ease, background 0.4s ease;
}
.dd-scorecard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.dd-sc-category {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dd-sc-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}
.dd-sc-count {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}
.dd-sc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.dd-sc-item:last-child { border-bottom: none; }
.dd-sc-item:hover { background: var(--primary-light); }
.dd-sc-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}
.dd-sc-item:has(input:checked) {
    color: var(--text-light);
    text-decoration: line-through;
    background: #f0fdf4;
}
.dd-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

/* ============================================================
   38. Break-Even Chart
   ============================================================ */
.be-chart-panel { display: flex; flex-direction: column; }
.be-chart-container {
    flex: 1;
    position: relative;
    min-height: 300px;
    padding: 0.5rem 0;
}
.be-legend {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.be-legend-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.be-legend--blue { color: #2563eb; }
.be-legend--red  { color: #dc2626; }
.be-legend--green { color: #16a34a; }
.be-summary { }


/* Tablet - 900px */
@media (max-width: 900px) {
    /* Break-Even Chart - Vertical Stack */
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .calc-inputs {
        order: 1;
    }
    .calc-results.be-chart-panel {
        order: 2;
    }
    .be-chart-container {
        min-height: 280px;
    }
}

/* Mobile - 700px */
@media (max-width: 700px) {
    /* Break-Even Chart - Mobile Vertical Stack */
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .calc-inputs {
        padding: 1.25rem;
    }
    .calc-results.be-chart-panel {
        padding: 1.25rem;
    }
}







/* DD Scorecard responsive - handled in main responsive section */

/* ===========================================================
   39. Hero Tools Showcase - Responsive Styling
   =========================================================== */

/* Base Styles */
.hero-tools-showcase {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(4px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-tools-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.9rem;
    text-align: center;
}

.hero-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 100%;
}

.hero-tool-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    cursor: pointer;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}

.hero-tool-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.hero-tool-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}

.hero-tool-info strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-tool-info span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-tool-arrow {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.hero-tool-card:hover .hero-tool-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

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

/* Tablet - 900px */
@media (max-width: 900px) {
    .hero-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 600px */
@media (max-width: 600px) {
    .hero-tools-showcase {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 12px;
    }
    .hero-tools-label {
        font-size: 0.68rem;
        margin-bottom: 0.75rem;
    }
    .hero-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .hero-tool-card {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    .hero-tool-icon {
        font-size: 1.35rem;
    }
    .hero-tool-info strong {
        font-size: 0.85rem;
    }
    .hero-tool-info span {
        font-size: 0.72rem;
    }
    .hero-tool-arrow {
        font-size: 1rem;
    }
}

/* Small Mobile - 400px */
@media (max-width: 400px) {
    .hero-tools-showcase {
        padding: 0.85rem;
        margin-top: 1.25rem;
        border-radius: 10px;
    }
    .hero-tools-label {
        font-size: 0.62rem;
        margin-bottom: 0.6rem;
    }
    .hero-tools-grid {
        gap: 0.4rem;
    }
    .hero-tool-card {
        padding: 0.65rem 0.85rem;
        gap: 0.6rem;
        border-radius: 8px;
    }
    .hero-tool-icon {
        font-size: 1.2rem;
    }
    .hero-tool-info strong {
        font-size: 0.8rem;
    }
    .hero-tool-info span {
        font-size: 0.68rem;
    }
}

/* Hero tools showcase responsive - handled in main responsive section */

/* ============================================================
   40. Cookie Consent Banner
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    padding: 1rem 1.5rem;
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0; /* Allow shrinking on mobile */
}
.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cookie-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
}
.cookie-text a:hover {
    color: #93c5fd;
}
.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}
.cookie-btn-accept:hover {
    background: var(--primary-dark);
}
/* Cookie banner responsive - handled in main responsive section */

/* Print Styles */
@media print {
    .top-nav, .sidebar, .ad-container, .back-to-top, .disclosure-bar, .mobile-nav { display: none !important; }
    .content-wrapper { grid-template-columns: 1fr; }
    .section-card { box-shadow: none; border: 1px solid #e2e8f0; page-break-inside: avoid; }
    body { font-size: 11pt; }
}
