﻿/*
    IDEAPRENEUR GLOBAL DESIGN SYSTEM
    Version: Expert Refactor v2 (Pro Max)
*/


/* Fallback font metrics â€” eliminates CLS from font swap */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 98.4%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 103.8%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Mono Fallback";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 99.2%;
  descent-override: 31%;
  line-gap-override: 0%;
}

:root {
    /* Sophisticated Navy Palette */
    --color-navy-darker: #070a12;
    --color-navy-dark: #0f1525;
    --color-navy: #172340;
    --color-navy-light: #223254;
    
    /* Strategic Accents */
    --color-teal: #00c9a7;
    --color-teal-muted: rgba(0, 201, 167, 0.2);
    --color-gold: #f4a400;
    --color-gold-light: #ffb82e;
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-body: #cbd5e8;
    --color-muted: #7a8ba8;
    
    /* Fonts */
    --font-display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
    --font-mono: "DM Mono", "DM Mono Fallback", monospace;
    
    /* Layout */
    --max-content: 1200px;
    --nav-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;

    /* Semantic surface tokens */
    --bg-primary: #070a12;
    --bg-secondary: #0f1525;
    --bg-tertiary: #172340;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e8;
    --text-muted: #7a8ba8;
    --border: rgba(42, 157, 143, 0.15);
    --accent: #f4a400;
    --green: #22c55e;

    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Typography utilities */
    --weight-semi: 600;
    --tracking-wide: 0.1em;
    --leading-normal: 1.5;
    --leading-loose: 1.75;
}

[data-theme="light"] {
    --color-navy-darker: #e6edf5;
    --color-navy-dark:   #dce5f0;
    --color-navy:        #d0deed;
    --color-navy-light:  #f0f5fb;
    --color-white:       #0f172a;
    --color-body:        #334155;
    --color-muted:       #64748b;
    --color-teal-muted:  rgba(42, 157, 143, 0.12);
    --bg-primary:        #d9e6f2;
    --bg-secondary:      rgba(240, 248, 255, 0.55);
    --bg-tertiary:       rgba(220, 235, 248, 0.45);
    --text-primary:      #0c1a2e;
    --text-secondary:    #2d4060;
    --text-muted:        #5a7090;
    --border:            rgba(42, 157, 143, 0.18);
    --hero-bg:           linear-gradient(135deg, #b8c8d8, #cdd6e0);
}

[data-theme="light"] body {
    background: linear-gradient(155deg,
        #cddae9 0%,
        #bdd1e6 20%,
        #bfd8d5 45%,
        #c9ded9 70%,
        #d5e1e6 100%);
    background-attachment: fixed;
}

[data-theme="light"] .bg-grid {
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(20, 70, 120, 1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 70, 120, 1) 1px, transparent 1px);
}

[data-theme="light"] .bg-noise {
    opacity: 0.025;
}

[data-theme="light"] .orb {
    opacity: 0.18;
    filter: blur(160px) saturate(0.7);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #223254;
}

[data-theme="light"] .bg-secondary {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .bg-tertiary {
    background: rgba(220, 238, 235, 0.4);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Systems */
.bg-system {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image:
        linear-gradient(var(--color-teal) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-teal) 1px, transparent 1px);
    background-size: 60px 60px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.15;
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 80%);
    mask-image: radial-gradient(circle, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 80%);
}

.orb-teal { opacity: 0.2; filter: blur(130px); }
[data-theme="light"] .orb-teal { opacity: 0.12; filter: blur(160px) saturate(0.5); }

[data-theme="light"] .overline,
[data-theme="light"] .hero-overline,
[data-theme="light"] .text-teal.font-mono {
    font-weight: 500;
    letter-spacing: 0.12em;
}

[data-theme="light"] .text-teal.font-display {
    letter-spacing: 0.04em;
    font-weight: 600;
}

[data-theme="light"] .opacity-60 { opacity: 0.78; }
[data-theme="light"] .opacity-70 { opacity: 0.82; }
[data-theme="light"] .opacity-75 { opacity: 0.85; }
[data-theme="light"] .stack-card .font-mono.text-xs { font-size: var(--text-sm); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-white); font-weight: 700; line-height: 1.1; }
.text-display-xl { font-size: clamp(2.5rem, 8vw, 4.5rem); letter-spacing: -0.02em; }
.text-display-lg { font-size: clamp(2rem, 6vw, 3.5rem); }
.text-display-md { font-size: clamp(1.75rem, 5vw, 2.5rem); }

.text-gold-gradient {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-mono { font-family: var(--font-mono); }

/* Containers */
.container { max-width: var(--max-content); width: 100%; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.section { padding: 8rem 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f4a400 0%, #ffb82e 100%);
  color: #060910;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 12px rgba(244,164,0,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 28px rgba(244,164,0,.42);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline { border: 1px solid var(--color-teal-muted); color: var(--color-teal); background: transparent; }
.btn-outline:hover { background: var(--color-teal-muted); border-color: var(--color-teal); }

/* Utilities */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.max-w-xl { max-w: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Social proof â€” hidden until real clients confirmed */
.proof-hidden { display: none !important; }

/* Section backgrounds */
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

/* Section dividers */
.section-divided {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Typography weight hierarchy */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }
.font-bold    { font-weight: 700; }
.font-semi    { font-weight: var(--weight-semi); }

.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base{ font-size: var(--text-base); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-teal      { color: var(--color-teal); }
.text-gold      { color: var(--color-gold); }

/* Layout utilities */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.block        { display: block; }
.hidden       { display: none; }

.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }

.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-5  { gap: var(--space-5); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: var(--space-16); }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: 6rem; }

.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }

.w-full  { width: 100%; }
.max-w-sm  { max-width: 24rem; margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.uppercase       { text-transform: uppercase; }
.lowercase       { text-transform: lowercase; }
.tracking-widest { letter-spacing: 0.12em; }
.leading-normal  { line-height: var(--leading-normal); }
.leading-loose   { line-height: var(--leading-loose); }

.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.rounded    { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Nav links â€” desktop horizontal */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active { color: var(--color-teal); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.nav-actions .btn {
    padding: 0.55rem 1.25rem;
    font-size: var(--text-sm);
}

/* Tooltip terms */
.tooltip-term {
    cursor: help;
    border-bottom: 1px dashed currentColor;
    text-decoration: none;
    position: relative;
}

.tooltip-term:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--color-teal);
    color: var(--text-primary);
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    width: max-content;
    max-width: 280px;
    white-space: normal;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tooltip-term:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-teal);
    z-index: 101;
    pointer-events: none;
}

/* FAQ Definition Blocks â€” S06/S07 */
.faq-definitions__item {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-definitions__item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.5rem;
}
.faq-definitions__item p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-body);
}

/* Answer-First Chunking â€” S06 */
p.answer {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-body);
    border-left: 3px solid var(--color-teal);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    background: rgba(42, 157, 143, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
    max-width: 48rem;
}

/* Grid utility classes â€” responsive, no !important, no brittle string matching */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

/* Disable expensive blur on mobile */
@media (max-width: 768px) {
    .orb { display: none; }

    /* Collapse grid utility classes (no !important needed â€” no inline styles) */
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Backward compat: collapse inline-style grids on pages not yet migrated to classes */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Comparison table: card stack layout */
    .comparison-table thead { display: none; }

    .comparison-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        background: var(--bg-secondary);
    }

    .comparison-table tbody tr td {
        display: block;
        padding: 0.625rem 0.75rem !important;
        white-space: normal !important;
        border-bottom: 1px solid var(--border);
    }

    .comparison-table tbody tr td.ct-dimension {
        grid-column: 1 / -1;
        background: rgba(0,201,167,0.07);
        font-weight: 600 !important;
        opacity: 1 !important;
        color: var(--color-teal);
        border-bottom: 1px solid var(--color-teal);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .comparison-table tbody tr td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--color-teal);
        opacity: 0.7;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

/* 
    IDEAPRENEUR COMPONENT LIBRARY
    Version: Expert Refactor v2
*/

/* Navigation */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 157, 143, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

/* Logo Fix: No gap between Idea and preneur, Larger size */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.logo img {
    height: 80px;
    width: auto;
    margin-right: 0.25rem;
}

.logo-idea { color: var(--color-gold); }
.logo-preneur { color: var(--color-teal); }

.logo-light { display: none; }

[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo .logo-idea { color: #0c1a2e !important; }
[data-theme="light"] .logo .logo-preneur { color: #177a6d !important; }

/* Theme Toggle UI */
.theme-toggle {
    background: rgba(22, 28, 40, 0.75);
    border: 1px solid rgba(60, 72, 95, 0.5);
    width: 52px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--color-teal);
    box-shadow: 0 0 10px rgba(42, 157, 143, 0.2);
}

.toggle-knob {
    position: absolute;
    width: 22px;
    height: 22px;
    background: rgba(12, 28, 65, 0.88);
    border: 1px solid rgba(40, 70, 130, 0.4);
    border-radius: 50%;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .toggle-knob {
    transform: translate(23px, -50%);
}

/* Moon = left, active in dark mode */
.icon-moon {
    color: var(--color-teal);
    fill: var(--color-teal);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 201, 167, 0.75));
    transition: opacity 0.3s, filter 0.3s, fill 0.3s;
    z-index: 1;
    position: relative;
}

/* Sun = right, inactive in dark mode */
.icon-sun {
    color: var(--color-gold);
    fill: none;
    opacity: 0.45;
    filter: none;
    transition: opacity 0.3s, filter 0.3s, fill 0.3s;
    z-index: 1;
    position: relative;
}

[data-theme="light"] .icon-moon { opacity: 0.45; filter: none; fill: none; }
[data-theme="light"] .icon-sun  { opacity: 1; filter: drop-shadow(0 0 4px rgba(244, 164, 0, 0.8)); fill: var(--color-gold); }

[data-theme="light"] .theme-toggle {
    background: rgba(130, 138, 150, 0.42);
    border-color: rgba(110, 118, 132, 0.4);
}

[data-theme="light"] .toggle-knob {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    white-space: nowrap;
}

.nav-dropdown-chevron {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 17, 32, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 0.75rem 0.5rem 0.5rem;
    min-width: 240px;
    z-index: 1001;
    list-style: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
    display: block;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(42, 157, 143, 0.1);
    color: var(--color-teal);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.375rem 0.5rem;
}

[data-theme="light"] .nav-dropdown-menu {
    background: rgba(253, 248, 244, 0.97);
}

/* Grid Systems */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Stack Cards */
.stack-card {
    background: rgba(27, 42, 74, 0.4);
    border: 1px solid rgba(42, 157, 143, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stack-card ul {
    flex: 1;
}

.stack-card .btn {
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card:hover {
    border-color: var(--color-teal);
    background: rgba(27, 42, 74, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Marquee */
.marquee-bar {
    background: rgba(42, 157, 143, 0.05);
    border-top: 1px solid rgba(42, 157, 143, 0.1);
    border-bottom: 1px solid rgba(42, 157, 143, 0.1);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}

.marquee-inner span { flex-shrink: 0; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Visual Placeholder for Articles/Work */
.visual-box {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy-dark));
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

.visual-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(42, 157, 143, 0.1) 0%, transparent 70%);
}

/* Cards */
.card {
    background: rgba(27, 42, 74, 0.4);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
    background: rgba(27, 42, 74, 0.65);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-color: var(--color-teal);
}

.card-accent {
    border-color: rgba(244, 164, 0, 0.25);
    background: rgba(244, 164, 0, 0.04);
}

.card-accent:hover {
    border-color: var(--color-gold);
}

/* Grid layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Button variants */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(42, 157, 143, 0.08);
}

.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-nav:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

/* â”€â”€â”€ Light mode overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] .nav {
    background: rgba(191, 216, 213, 0.85);
    backdrop-filter: blur(12px);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(240, 249, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(42, 157, 143, 0.15);
    box-shadow: 0 1px 24px rgba(42, 100, 160, 0.08);
}

[data-theme="light"] .stack-card {
    background: rgba(210, 228, 244, 0.52);
    backdrop-filter: blur(12px);
    border-color: rgba(42, 157, 143, 0.18);
    box-shadow: 0 4px 20px rgba(30, 80, 140, 0.07), 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .stack-card:hover {
    background: rgba(210, 228, 244, 0.72);
    box-shadow: 0 12px 40px rgba(30, 80, 140, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .card {
    background: rgba(208, 226, 242, 0.48);
    backdrop-filter: blur(10px);
    border-color: rgba(42, 157, 143, 0.18);
    box-shadow: 0 4px 16px rgba(30, 80, 140, 0.07), 0 1px 3px rgba(0,0,0,0.04);
}

[data-theme="light"] .card:hover {
    background: rgba(210, 228, 244, 0.68);
    box-shadow: 0 10px 36px rgba(30, 80, 140, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .card-accent {
    background: rgba(244, 164, 0, 0.06);
    border-color: rgba(244, 164, 0, 0.22);
}

[data-theme="light"] .marquee-bar {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-color: rgba(42, 157, 143, 0.12);
}

[data-theme="light"] .visual-box {
    background: linear-gradient(135deg, #d4e8f7, #e8f4ee);
    border-color: rgba(42, 157, 143, 0.15);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(244, 164, 0, 0.3);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(42, 157, 143, 0.4);
    background: rgba(255, 255, 255, 0.4);
}

/* â”€â”€â”€ Mobile Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.nav-hamburger:hover { border-color: var(--color-teal); }

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
    backdrop-filter: blur(4px);
}

.nav-sidebar-overlay.open { display: block; }

.nav-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    z-index: 1200;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

.nav-sidebar.open { right: 0; }

.nav-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.nav-sidebar-header .logo { font-size: 1.4rem; }
.nav-sidebar-header .logo img { height: 36px; }

.nav-sidebar-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-sidebar-close:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.nav-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.nav-sidebar-link {
    display: block;
    padding: 0.45rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-sidebar-link:hover {
    background: rgba(0,201,167,0.08);
    color: var(--color-teal);
}

.nav-sidebar-section {
    display: block;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem 0.15rem;
}

.nav-sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0;
}

.nav-sidebar-cta {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1200px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-actions .btn-primary { display: none; }
    .nav-inner { width: 100%; }
    .logo { font-size: 1.4rem; }
    .logo img { height: 48px; }
}

/* â”€â”€ Dropdown + Sidebar Group Labels â”€â”€ */
.nav-dropdown-group-label,
.sidebar-group-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    padding: 0.6rem 0 0.25rem;
    pointer-events: none;
    user-select: none;
}
.nav-dropdown-group-label { padding-left: 0.75rem; }

/* â”€â”€ Sidebar Services Toggle â”€â”€ */
.sidebar-services-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.sidebar-services-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.sidebar-services-toggle:hover { background: rgba(0,201,167,0.08); color: var(--color-teal); }
.nav-chevron { flex-shrink: 0; margin-left: 0; transition: transform 0.2s ease; }
.sidebar-services-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* â”€â”€ Submenu â”€â”€ */
.sidebar-submenu { padding-left: 1rem; margin-top: 0.25rem; }
.sidebar-subitem {
    display: block;
    padding: 0.4rem 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    border-radius: 0.375rem;
    transition: opacity 0.15s;
}
.sidebar-subitem:hover { opacity: 1; color: var(--color-teal); }
.sidebar-submenu-divider { height: 1px; background: var(--border); margin: 0.3rem 0; }

[data-theme="light"] .nav-sidebar {
    background: var(--bg-primary);
}

[data-theme="light"] .nav-hamburger {
    border-color: rgba(42, 157, 143, 0.3);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(42, 157, 143, 0.1);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(42, 157, 143, 0.25);
}

[data-theme="light"] .section-divided {
    border-color: rgba(42, 157, 143, 0.12);
}

/* Hero grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(42, 157, 143, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 157, 143, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/*
    IDEAPRENEUR PAGE LAYOUTS
    Version: Expert Refactor
*/

/* Prose content blocks */
.prose-block h2 { font-size: var(--text-lg); margin-top: var(--space-10); margin-bottom: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.prose-block h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose-block p { margin-bottom: var(--space-4); line-height: 1.75; color: var(--text-secondary); }
.prose-block ul { margin: var(--space-3) 0 var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.prose-block ul li { line-height: 1.7; color: var(--text-secondary); }
.prose-block a { color: var(--color-teal); text-decoration: underline; text-underline-offset: 3px; }
.prose-block code { font-family: var(--font-mono); font-size: 0.85em; color: var(--color-teal); background: var(--color-teal-muted); padding: 0.1em 0.4em; border-radius: 3px; }

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-overline {
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--color-body);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Marquee Bar */
.marquee-inner span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    padding: 0 2rem;
}

/* Animations & Interaction */
.cursor {
    color: var(--color-gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Tag styles */
.tag { background: var(--color-teal-muted); border: 1px solid rgba(42, 157, 143, 0.2); padding: 0.5rem 1rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-teal); opacity: 0.8; }
.hero-overline { margin-bottom: 2rem; }
.trust-strip { margin-top: 3rem; }

/* Overline label */
.overline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-teal);
    margin-bottom: var(--space-4);
}

/* Hero variants */
.page-hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--space-4); }
.hero-sub { font-size: var(--text-lg); color: var(--text-secondary); max-width: 600px; margin-bottom: var(--space-8); opacity: 0.85; }

.coming-soon-hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
}

.eta { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-4); }

/* Badge */
.badge-coming {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-gold);
    background: rgba(244, 164, 0, 0.08);
    border: 1px solid rgba(244, 164, 0, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
}

/* Status dots */
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-amber  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }
.dot-green  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.dot-teal   { background: var(--color-teal); box-shadow: 0 0 6px rgba(0,201,167,0.6); }

/* Authority Audit deliverables */
.deliverable-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--space-6);
    padding-block: var(--space-8);
    border-bottom: 1px solid var(--border);
}
.deliverable-item:last-child { border-bottom: none; }

.deliverable-num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-teal);
    opacity: 0.6;
    padding-top: 0.3rem;
}

.deliverable-body h4 { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.deliverable-body p  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

.deliverable-format {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.format-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

/* Audit pricing grid */
.audit-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: rgba(27, 42, 74, 0.4);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--color-gold);
    background: rgba(244, 164, 0, 0.04);
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-tier {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-teal);
}

.pricing-card.featured .pricing-tier { color: var(--color-gold); }

.pricing-price { display: flex; align-items: baseline; gap: var(--space-1); }
.pricing-price .amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--text-primary); }
.pricing-price .period { font-size: var(--text-sm); color: var(--text-muted); }

.pricing-ideal { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

.pricing-features { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }

.pricing-feature {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding-left: var(--space-4);
    position: relative;
}

.pricing-feature::before {
    content: "âœ¦";
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-size: var(--text-xs);
}

/* Guarantee note */
.guarantee-note {
    margin-top: var(--space-6);
    padding: var(--space-4);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.75rem;
    background: rgba(34, 197, 94, 0.04);
    font-size: var(--text-sm);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    padding-block: var(--space-6);
    cursor: pointer;
    text-align: left;
    gap: var(--space-4);
}

.faq-trigger:hover { color: var(--color-teal); }

.faq-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--color-teal);
    transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-body {
    display: block; /* visible by default â€” crawlers index all answers */
    padding-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-loose);
}

/* JS collapses FAQs once script loads â€” no-JS/crawlers stay open */
.js-ready .faq-body { display: none; }
.js-ready .faq-trigger[aria-expanded="true"] + .faq-body { display: block; }

/* CTA section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    max-width: 640px;
    margin-inline: auto;
}

.capacity-note {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-teal);
}

.cta-subtext { font-size: var(--text-sm); color: var(--text-muted); }

/* Footer */
.footer {
    padding-block: 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}


.footer-brand p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin-top: var(--space-3); }
.footer-col-heading { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); margin-bottom: var(--space-5); font-weight: 600; line-height: 1; }

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--color-teal); }

.footer-social { display: flex; gap: var(--space-4); margin-top: var(--space-5); }
.footer-social-link { transition: color 0.2s; }
.footer-social-link:hover { color: var(--color-teal); }

.footer-copy {
    padding-top: 2rem;
    border-top: 1px solid rgba(42, 157, 143, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-tagline { 
    font-size: var(--text-sm); 
    color: var(--text-secondary); 
    line-height: var(--leading-normal); 
    margin-top: var(--space-3); 
    max-width: 320px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-copy {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-actions {
        flex-wrap: wrap;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero h1 {
        max-width: 100%;
    }
}

/* ============================================================
   ARTICLE SYSTEM
   ============================================================ */

.article-hero {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.article-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-teal);
    background: var(--color-teal-muted);
    border: 1px solid rgba(42, 157, 143, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
}

.article-read-time {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
}

.article-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    max-width: 820px;
}

.article-deck {
    font-size: var(--text-lg);
    color: var(--text-primary);
    opacity: 0.72;
    line-height: var(--leading-loose);
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.article-byline a {
    color: var(--color-teal);
    text-decoration: none;
}

.article-byline a:hover { text-decoration: underline; }

.article-byline-sep { opacity: 0.4; }

/* Layout */
.article-layout {
    padding: 4rem 0 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-8);
    align-items: start;
}

/* Prose */
.article-body {
    min-width: 0;
}

.article-body h2 {
    font-size: clamp(1.35rem, 3vw, 1.875rem);
    margin-top: var(--space-12);
    margin-bottom: var(--space-5);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    line-height: 1.25;
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article-body > article > h2:first-of-type,
.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article-body p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-5);
    max-width: 68ch;
}

.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
}

.article-body li { margin-bottom: var(--space-3); }

.article-body a {
    color: var(--color-teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 157, 143, 0.3);
    transition: border-color 0.2s;
}

.article-body a:hover { border-color: var(--color-teal); }

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--color-teal);
}

.article-body figure {
    margin-bottom: var(--space-10);
}

.article-body figcaption {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-3);
}

/* Inline CTA block */
.article-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background: rgba(42, 157, 143, 0.04);
    border: 1px solid rgba(42, 157, 143, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.article-cta-inline p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    max-width: none;
}

.article-cta-inline .btn {
    padding: 0.45rem 1rem;
    font-size: var(--text-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-height: calc(100vh - var(--nav-height) - 3rem);
    overflow: hidden;
}

.article-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 157, 143, 0.3) transparent;
}

.article-toc::-webkit-scrollbar {
    width: 4px;
}

.article-toc::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc::-webkit-scrollbar-thumb {
    background: rgba(42, 157, 143, 0.3);
    border-radius: 99px;
}

.article-toc::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 157, 143, 0.6);
}

.toc-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.toc-link {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: none;
    padding: 0.2rem var(--space-3);
    border-left: 2px solid transparent;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: all 0.2s;
    line-height: 1.35;
}

.toc-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--color-teal);
}

.toc-active {
    color: var(--color-teal) !important;
    border-left-color: var(--color-teal) !important;
    background: var(--color-teal-muted);
}

.toc-sub .toc-link {
    padding-left: calc(var(--space-3) + 0.75rem);
    font-size: var(--text-xs);
}

.article-sidebar-cta {
    background: var(--bg-secondary);
    border: 1px solid rgba(244, 164, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.article-sidebar-cta h3 {
    font-size: var(--text-base);
    line-height: 1.35;
}

.article-sidebar-cta p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
    max-width: none;
    margin-bottom: 0;
}

/* Article responsive */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr 240px;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-toc {
        display: none;
    }

    .article-read-time {
        margin-left: 0;
    }

    .article-cta-inline {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-5);
    }
}

@media (max-width: 640px) {
    .article-hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 2rem;
    }

    .article-layout {
        padding: 2rem 0 4rem;
    }
}


/* Roadmap */
.roadmap-pricing-note {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: rgba(27, 42, 74, 0.4);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.roadmap-phases { display: flex; flex-direction: column; gap: 4rem; }
.roadmap-phase-header { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }

.roadmap-phase-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.roadmap-phase-dot.live { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.roadmap-phase-dot.q3  { background: var(--color-gold); box-shadow: 0 0 8px rgba(244,164,0,0.5); }
.roadmap-phase-dot.q4  { background: var(--color-teal); box-shadow: 0 0 8px rgba(0,201,167,0.5); }

.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.phase-live { border-color: rgba(34,197,94,0.3); color: #22c55e; }
.phase-q3   { border-color: rgba(244,164,0,0.3); color: var(--color-gold); }
.phase-q4   { border-color: rgba(0,201,167,0.3); color: var(--color-teal); }

.phase-items { display: flex; flex-direction: column; gap: var(--space-3); }
.phase-item {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: rgba(27, 42, 74, 0.2);
    line-height: var(--leading-normal);
}

/* â”€â”€â”€ Definitional Page: Hero Minimal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-minimal {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
}

.hero-minimal h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-6);
    max-width: 820px;
}

.extraction-answer {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--text-secondary);
    max-width: 720px;
    padding: var(--space-6) var(--space-8);
    border-left: 3px solid var(--color-teal);
    background: rgba(42, 157, 143, 0.06);
    border-radius: 0 0.75rem 0.75rem 0;
}

/* â”€â”€â”€ Breadcrumb â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--color-teal); }

.breadcrumb-sep { opacity: 0.4; }

.breadcrumb-current { color: var(--color-teal); }

/* â”€â”€â”€ Link Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.link-card {
    display: block;
    background: rgba(27, 42, 74, 0.4);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-color: var(--color-teal);
}

.link-card h4 { color: var(--text-primary); margin-bottom: var(--space-2); font-size: var(--text-base); }
.link-card p  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
.link-arrow   { display: block; margin-top: var(--space-4); color: var(--color-teal); font-size: var(--text-lg); }

/* â”€â”€â”€ Definitional Page Prose â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.def-prose { max-width: 720px; }

.def-prose p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-4);
}

.def-prose ul,
.def-prose ol {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-loose);
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.def-prose li { margin-bottom: var(--space-2); }
.def-prose strong { color: var(--text-primary); }
.def-prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(42, 157, 143, 0.1);
    padding: 0.125em 0.375em;
    border-radius: 0.25rem;
    color: var(--color-teal);
}

/* â”€â”€â”€ Mistake List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mistake-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 720px;
}

.mistake-item {
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: rgba(27, 42, 74, 0.3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.mistake-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: #ef4444;
    margin-bottom: var(--space-2);
}

.fix-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-teal);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
}

.mistake-item strong { color: var(--text-primary); }

.mistake-item code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(42, 157, 143, 0.1);
    padding: 0.125em 0.375em;
    border-radius: 0.25rem;
    color: var(--color-teal);
}

/* â”€â”€â”€ Light mode overrides for new classes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] .extraction-answer {
    background: rgba(42, 157, 143, 0.08);
}

[data-theme="light"] .link-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(42, 157, 143, 0.18);
}

[data-theme="light"] .link-card:hover {
    background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .mistake-item {
    background: rgba(255, 255, 255, 0.5);
}

/* â”€â”€â”€ Light mode overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .pricing-card.featured {
    background: rgba(244, 164, 0, 0.06);
}

[data-theme="light"] .roadmap-pricing-note {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .phase-item {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .guarantee-note {
    background: rgba(34, 197, 94, 0.06);
}

[data-theme="light"] .hero {
    background: transparent;
}



/* â”€â”€â”€ Article cross-link block (framework page â†” article) â”€â”€â”€ */
.article-crosslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding: var(--space-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.crosslink-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin: 0 0 var(--space-2);
}

.crosslink-title {
    font-size: var(--text-xl);
    margin: 0 0 var(--space-2);
    line-height: 1.3;
}

.crosslink-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    max-width: 520px;
}

/* â”€â”€â”€ Global mobile polish â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
    .hero {
        padding-top: 5rem;
        min-height: 70vh;
    }
    .page-hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 2.5rem;
    }
    .hero-subtext {
        font-size: 1rem;
    }
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .faq-trigger {
        font-size: var(--text-sm);
        padding: var(--space-4) 0;
    }
    .pricing-card {
        padding: 1.5rem;
    }
    .guarantee-note {
        padding: var(--space-3);
    }
    .container-md, .container-lg, .container-xl {
        padding-inline: var(--space-4);
    }
}

