/* ===================================================
   NeuronPerf — Main Stylesheet
   Extracted from homepage-v1-clean-green.html + new UI
   =================================================== */

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
    --green-900: #1B4332;
    --green-800: #2D6A4F;
    --green-700: #40916C;
    --green-600: #52B788;
    --green-500: #74C69D;
    --green-400: #95D5B2;
    --green-300: #B7E4C7;
    --green-200: #D8F3DC;
    --green-100: #EDF6F0;

    --terra: #C17654;
    --terra-light: #D4956E;
    --terra-dark: #A35D3E;

    --sand-50: #FDFCF8;
    --sand-100: #FAF8F2;
    --sand-200: #F2EEE4;
    --sand-300: #E8E2D4;

    --ink-900: #1A1D1A;
    --ink-700: #2E332E;
    --ink-500: #4A524A;
    --ink-400: #6B756B;
    --ink-300: #949E94;
    --ink-200: #BCC4BC;
    --ink-100: #DDE2DD;

    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --shadow-sm: 0 1px 2px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 67, 50, 0.1);
    --shadow-xl: 0 16px 48px rgba(27, 67, 50, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--ink-700);
    background: var(--sand-50);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

[hidden] { display: none !important; }

/* ===================================================
   LEAF PATTERN BACKGROUND (SVG)
   =================================================== */
.leaf-pattern {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10 C25 10 10 25 10 40 C10 25 25 10 40 10Z' fill='%232D6A4F' transform='rotate(45 40 40)'/%3E%3Cpath d='M60 50 C50 35 35 30 25 35 C35 25 55 30 60 50Z' fill='%2340916C'/%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* ===================================================
   SCROLL REVEAL ANIMATIONS
   =================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===================================================
   LAYOUT
   =================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    z-index: 1;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 106, 79, 0.08);
    padding: 10px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--green-800);
}
.nav-logo svg {
    width: 32px;
    height: 32px;
}
.nav-logo span {
    color: var(--ink-400);
    font-weight: 400;
    font-size: 0.75em;
    margin-left: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-500);
    transition: color 0.3s;
    letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--green-700); }
.nav-cta {
    background: var(--green-800);
    color: white !important;
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: background 0.3s, transform 0.3s var(--ease-out-back) !important;
}
.nav-cta:hover {
    background: var(--green-700);
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 200;
}
.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink-700);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--green-100) 0%, var(--sand-50) 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.12);
    padding: 6px 16px 6px 10px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--green-800);
    margin-bottom: 24px;
}
.hero-badge svg {
    width: 18px; height: 18px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink-900);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.hero h1 em {
    font-style: normal;
    color: var(--green-700);
    position: relative;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--green-300);
    opacity: 0.4;
    border-radius: 4px;
    z-index: -1;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--ink-400);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* URL Input */
.url-input-group {
    display: flex;
    gap: 0;
    max-width: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(45, 106, 79, 0.08);
    padding: 6px;
    transition: box-shadow 0.3s;
}
.url-input-group:focus-within {
    box-shadow: var(--shadow-xl), 0 0 0 2px rgba(82, 183, 136, 0.3);
}
.url-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-900);
    outline: none;
    min-width: 0;
}
.url-input-group input::placeholder {
    color: var(--ink-300);
}
.url-input-group input.input-error {
    box-shadow: 0 0 0 2px rgba(193, 118, 84, 0.3);
}
.url-input-group button {
    background: var(--terra);
    color: white;
    padding: 14px 28px;
    border-radius: calc(var(--radius-lg) - 4px);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s var(--ease-out-back);
    letter-spacing: -0.01em;
}
.url-input-group button:hover {
    background: var(--terra-dark);
    transform: scale(1.02);
}
.url-input-group button:active {
    transform: scale(0.98);
}
.url-input-group button:disabled {
    opacity: 0.7;
    pointer-events: none;
}
.hero-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--ink-300);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dashboard Preview */
.hero-visual {
    position: relative;
}
.dashboard-preview {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(45, 106, 79, 0.06);
    position: relative;
    overflow: hidden;
}
.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500), var(--terra));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sand-200);
}
.dash-url {
    font-size: 0.82rem;
    color: var(--ink-400);
    background: var(--sand-100);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: 'DM Sans', monospace;
}
.dash-date {
    font-size: 0.75rem;
    color: var(--ink-300);
}
.dash-scores {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.dash-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.score-gauge {
    position: relative;
    width: 64px;
    height: 64px;
}
.score-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.score-gauge .track {
    fill: none;
    stroke: var(--sand-200);
    stroke-width: 5;
}
.score-gauge .fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.8s var(--ease-out-expo);
    stroke-dashoffset: 163;
}
.score-gauge .score-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-900);
}
.dash-score-name {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--ink-400);
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Floating accents */
.hero-float-leaf {
    position: absolute;
    opacity: 0.12;
    animation: float-gentle 8s ease-in-out infinite;
}
.hero-float-leaf:nth-child(1) {
    top: -20px; right: -30px;
    width: 120px;
    animation-delay: -2s;
}
.hero-float-leaf:nth-child(2) {
    bottom: -10px; left: -20px;
    width: 80px;
    animation-delay: -5s;
    animation-duration: 10s;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

/* ===================================================
   SOCIAL PROOF BAR
   =================================================== */
.social-proof {
    padding: 48px 0;
    background: white;
    border-top: 1px solid var(--sand-200);
    border-bottom: 1px solid var(--sand-200);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.proof-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -0.03em;
}
.proof-label {
    font-size: 0.9rem;
    color: var(--ink-400);
    font-weight: 400;
}

/* ===================================================
   5 DOMAINS SECTION
   =================================================== */
.domains {
    padding: 120px 0;
    background: var(--sand-50);
}
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-700);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--ink-400);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 60px;
}
.domains-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.domain-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--sand-200);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s;
    position: relative;
    overflow: hidden;
}
.domain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--green-600));
    opacity: 0;
    transition: opacity 0.4s;
}
.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.domain-card:hover::before {
    opacity: 1;
}
.domain-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--card-bg, var(--green-100));
}
.domain-icon svg {
    width: 24px;
    height: 24px;
    color: var(--card-accent, var(--green-700));
}
.domain-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.domain-card p {
    font-size: 0.85rem;
    color: var(--ink-400);
    line-height: 1.6;
    margin-bottom: 16px;
}
.domain-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--card-accent, var(--green-700));
    background: var(--card-bg, var(--green-100));
    padding: 5px 12px;
    border-radius: 100px;
}

/* Card color variants */
.domain-card.perf { --card-accent: var(--green-700); --card-bg: var(--green-100); }
.domain-card.eco { --card-accent: #4A9E6E; --card-bg: #E8F5EC; }
.domain-card.a11y { --card-accent: #5B7FD6; --card-bg: #EBF0FB; }
.domain-card.seo { --card-accent: var(--terra); --card-bg: #FDF0E9; }
.domain-card.security { --card-accent: #7C5BBF; --card-bg: #F0EBF9; }

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-it-works {
    padding: 120px 0;
    background: var(--green-900);
    color: white;
    position: relative;
    overflow: hidden;
}
.how-it-works::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.how-it-works .section-eyebrow { color: var(--green-400); }
.how-it-works .section-title { color: white; }
.how-it-works .section-desc { color: rgba(255,255,255,0.6); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
    opacity: 0.3;
}
.step {
    text-align: center;
    position: relative;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 8px rgba(82, 183, 136, 0.1);
}
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--green-400);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.step p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}

/* ===================================================
   PRICING COMPARISON
   =================================================== */
.pricing {
    padding: 120px 0;
    background: white;
}
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.pricing-card.premium {
    background: var(--green-900);
    color: white;
    border-color: var(--green-800);
    box-shadow: var(--shadow-xl);
}
.pricing-card.premium .pricing-badge {
    position: absolute;
    top: -12px; right: 24px;
    background: var(--terra);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pricing-tier {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-700);
    margin-bottom: 8px;
}
.premium .pricing-tier { color: var(--green-400); }
.pricing-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 4px;
    letter-spacing: -0.04em;
}
.premium .pricing-price { color: white; }
.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink-300);
}
.premium .pricing-price span { color: rgba(255,255,255,0.5); }
.pricing-subtitle {
    font-size: 0.88rem;
    color: var(--ink-400);
    margin-bottom: 32px;
}
.premium .pricing-subtitle { color: rgba(255,255,255,0.5); }

.pricing-features {
    list-style: none;
    margin-bottom: 36px;
}
.pricing-features li {
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--ink-500);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--sand-200);
}
.premium .pricing-features li {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.08);
}
.pricing-features li:last-child { border: none; }
.pricing-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--green-600);
}
.premium .pricing-features svg { color: var(--green-400); }

.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s var(--ease-out-back);
    letter-spacing: -0.01em;
}
.pricing-card .pricing-btn {
    background: white;
    color: var(--green-800);
    border: 1px solid var(--sand-300);
}
.pricing-card .pricing-btn:hover {
    border-color: var(--green-600);
    background: var(--green-100);
}
.premium .pricing-btn {
    background: var(--terra);
    color: white;
    border: none;
}
.premium .pricing-btn:hover {
    background: var(--terra-light);
    transform: translateY(-2px);
}

/* ===================================================
   SAMPLE REPORT PREVIEW
   =================================================== */
.report-preview {
    padding: 120px 0;
    background: var(--sand-100);
    overflow: hidden;
}
.report-preview .section-desc {
    margin-bottom: 60px;
}
.report-mockup {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--sand-200);
    overflow: hidden;
}
.report-topbar {
    background: var(--green-900);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.report-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.report-topbar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-500);
}
.report-topbar-url {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-family: var(--font-body);
}
.report-topbar-right {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.report-body {
    padding: 40px;
}
.report-score-hero {
    text-align: center;
    margin-bottom: 40px;
}
.report-overall-gauge {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}
.report-overall-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.report-overall-gauge .track {
    fill: none;
    stroke: var(--sand-200);
    stroke-width: 8;
}
.report-overall-gauge .fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}
.report-overall-gauge .score-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.report-overall-gauge .score-val strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.04em;
    line-height: 1;
}
.report-overall-gauge .score-val span {
    font-size: 0.72rem;
    color: var(--ink-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.report-domain-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.report-gauges {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.report-gauge-item {
    text-align: center;
}
.report-mini-gauge {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}
.report-mini-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.report-mini-gauge .track {
    fill: none;
    stroke: var(--sand-200);
    stroke-width: 6;
}
.report-mini-gauge .fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}
.report-mini-gauge .score-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink-900);
}
.report-gauge-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.report-detail-block {
    background: var(--sand-50);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--sand-200);
}
.report-detail-block h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 12px;
}
.report-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--ink-500);
}
.report-check .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.report-check .dot.green { background: var(--green-600); }
.report-check .dot.orange { background: #E9A23B; }
.report-check .dot.red { background: #D64545; }

/* ===================================================
   FINAL CTA
   =================================================== */
.final-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    bottom: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(149, 213, 178, 0.15), transparent 70%);
    pointer-events: none;
}
.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.final-cta p {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta .url-input-group {
    max-width: 540px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.12);
}
.final-cta .url-input-group:focus-within {
    box-shadow: 0 4px 32px rgba(0,0,0,0.2), 0 0 0 2px rgba(149, 213, 178, 0.3);
}
.final-cta .url-input-group input {
    color: white;
}
.final-cta .url-input-group input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* Decorative leaf SVG */
.cta-leaf {
    position: absolute;
    opacity: 0.06;
}
.cta-leaf:nth-child(1) {
    top: 40px; left: 60px;
    width: 180px;
    transform: rotate(-20deg);
}
.cta-leaf:nth-child(2) {
    bottom: 30px; right: 80px;
    width: 140px;
    transform: rotate(160deg);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--ink-900);
    color: rgba(255,255,255,0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand .nav-logo {
    color: white;
}
.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--green-400); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}
.footer-np {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-np svg {
    width: 16px; height: 16px;
    color: var(--green-500);
}

/* ===================================================
   PROGRESS OVERLAY
   =================================================== */
.progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(27, 67, 50, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}
.progress-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.progress-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    text-align: center;
}
.progress-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.progress-url {
    font-size: 0.82rem;
    color: var(--ink-400);
    margin-bottom: 32px;
    word-break: break-all;
}
.progress-timer {
    font-size: 0.75rem;
    color: var(--ink-300);
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.progress-steps {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}
.progress-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--ink-300);
    border-bottom: 1px solid var(--sand-200);
    transition: color 0.3s;
}
.progress-steps li:last-child { border: none; }
.progress-steps li.active {
    color: var(--ink-700);
    font-weight: 500;
}
.progress-steps li.done {
    color: var(--green-700);
}

.progress-step-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.progress-step-icon .check {
    display: none;
    color: var(--green-600);
}
.progress-steps li.done .check { display: block; }
.progress-steps li.done .spinner { display: none; }
.progress-steps li.active .spinner {
    display: block;
    animation: spin 1s linear infinite;
}
.progress-step-icon .pending-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sand-300);
}
.progress-steps li.active .pending-dot,
.progress-steps li.done .pending-dot { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================================
   RESULTS VIEW
   =================================================== */
.results-view {
    padding: 120px 0 80px;
    background: var(--sand-50);
    position: relative;
    z-index: 1;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}
.results-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.results-url {
    font-size: 0.88rem;
    color: var(--ink-400);
    word-break: break-all;
}
.results-meta {
    font-size: 0.78rem;
    color: var(--ink-300);
    margin-top: 6px;
}
.results-share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--green-700);
    cursor: pointer;
    transition: color 0.3s;
}
.results-share-link:hover { color: var(--green-800); }

/* Global score gauge in results */
.results-global-gauge {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}
.results-global-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.results-global-gauge .track {
    fill: none;
    stroke: var(--sand-200);
    stroke-width: 10;
}
.results-global-gauge .fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}
.results-global-gauge .score-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.results-global-gauge .score-val strong {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.04em;
    line-height: 1;
}
.results-global-gauge .score-val .grade-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Domain gauges row in results */
.results-domains {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 48px;
}
.results-domain-item {
    text-align: center;
    cursor: pointer;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}
.results-domain-item:hover {
    background: white;
}
.results-domain-gauge {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}
.results-domain-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.results-domain-gauge .track {
    fill: none;
    stroke: var(--sand-200);
    stroke-width: 6;
}
.results-domain-gauge .fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}
.results-domain-gauge .score-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink-900);
}
.results-domain-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Domain detail blocks */
.results-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto 48px;
}

.result-domain-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--sand-200);
}
.result-domain-block h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-domain-block .domain-score-inline {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}
.result-domain-block .domain-grade {
    font-size: 0.72rem;
    color: var(--ink-300);
    margin-bottom: 16px;
}

.result-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.82rem;
    color: var(--ink-500);
    border-bottom: 1px solid var(--sand-100);
}
.result-check-item:last-child { border: none; }

.result-check-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.result-check-dot.pass { background: var(--green-600); }
.result-check-dot.warning { background: #E9A23B; }
.result-check-dot.fail { background: #D64545; }

.result-check-label {
    flex: 1;
}

.result-show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green-700);
    cursor: pointer;
    background: none;
    padding: 4px 0;
    transition: color 0.3s;
}
.result-show-more:hover { color: var(--green-800); }

/* Eco summary card */
.eco-summary-card {
    background: linear-gradient(135deg, var(--green-100) 0%, #E8F5EC 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(74, 158, 110, 0.15);
    max-width: 960px;
    margin: 0 auto 48px;
}
.eco-summary-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.eco-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.eco-summary-item {
    text-align: center;
}
.eco-summary-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-800);
    letter-spacing: -0.02em;
}
.eco-summary-label {
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-top: 2px;
}

/* Back to home button */
.results-back {
    text-align: center;
    margin-top: 24px;
}
.results-back button {
    background: var(--green-800);
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.3s, transform 0.2s var(--ease-out-back);
}
.results-back button:hover {
    background: var(--green-700);
    transform: translateY(-1px);
}

/* ===================================================
   TOAST NOTIFICATIONS
   =================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--green-600);
    font-size: 0.88rem;
    color: var(--ink-700);
    max-width: 380px;
    animation: toast-in 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.error {
    border-left-color: #D64545;
}
.toast.warning {
    border-left-color: #E9A23B;
}

.toast-dismiss {
    margin-left: auto;
    background: none;
    color: var(--ink-300);
    font-size: 1.1rem;
    padding: 0 4px;
    flex-shrink: 0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s, transform 0.3s;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual {
        max-width: 560px;
        margin: 0 auto;
    }
    .results-domains {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: white;
        z-index: 150;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-links.open {
        display: flex;
        transform: translateX(0);
    }
    .nav-links li { list-style: none; }
    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    .nav-links a:hover { background: var(--green-50); }
    .nav-links .nav-cta {
        text-align: center;
        margin-top: 12px;
    }
    .nav-mobile-toggle { display: flex; }
    .nav-mobile-overlay.active { display: block; }

    .hero {
        padding: 130px 0 70px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .url-input-group {
        flex-direction: column;
    }
    .url-input-group button {
        margin: 0;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .domains-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .steps-grid::before { display: none; }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .report-gauges {
        grid-template-columns: repeat(3, 1fr);
    }
    .report-details-grid {
        grid-template-columns: 1fr;
    }
    .report-body {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .dash-scores {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-domains {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .results-details {
        grid-template-columns: 1fr;
    }
    .eco-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .progress-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 60px; }
    .domains, .how-it-works, .pricing, .report-preview, .final-cta,
    .comprendre, .eco-pillars, .equivalences, .referentiels {
        padding: 80px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .report-gauges {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-scores {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-domains {
        grid-template-columns: repeat(2, 1fr);
    }
    .eco-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .equiv-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-grid { grid-template-columns: repeat(2, 1fr); }
    .comprendre-grid { grid-template-columns: 1fr; }
    .impact-grid { flex-direction: column; gap: 24px; }
}

/* ===================================================
   IMPACT COUNTER (Section 2)
   =================================================== */
.impact-counter {
    padding: 48px 0;
    background: var(--green-900);
    color: white;
    text-align: center;
}
.impact-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}
.impact-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 28px;
}
.impact-item {
    text-align: center;
}
.impact-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--green-400);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.impact-unit {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}
.impact-source {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}
.impact-cta {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green-400);
    border: 1px solid rgba(149, 213, 178, 0.3);
    padding: 10px 28px;
    border-radius: 100px;
    transition: all 0.3s;
}
.impact-cta:hover {
    background: rgba(149, 213, 178, 0.1);
    border-color: var(--green-400);
}

/* ===================================================
   COMPRENDRE (Section 3)
   =================================================== */
.comprendre {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--green-900) 0%, #1A3B2A 100%);
    color: white;
}
.comprendre .section-eyebrow { color: var(--green-400); }
.comprendre .section-title { color: white; }
.comprendre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.comprendre-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s;
}
.comprendre-card:hover {
    transform: translateY(-4px);
    border-color: rgba(149, 213, 178, 0.2);
}
.comprendre-icon {
    width: 48px;
    height: 48px;
    background: rgba(149, 213, 178, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.comprendre-icon svg {
    width: 24px;
    height: 24px;
    color: var(--green-400);
}
.comprendre-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.comprendre-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
.comprendre-card strong {
    color: var(--green-400);
    font-weight: 600;
}

/* ===================================================
   ECO PILLARS (Section 4)
   =================================================== */
.eco-pillars {
    padding: 120px 0;
    background: var(--sand-100);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.pillar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--sand-200);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.pillar-icon svg {
    width: 24px;
    height: 24px;
}
.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.pillar-card p {
    font-size: 0.82rem;
    color: var(--ink-400);
    line-height: 1.6;
}

/* ===================================================
   DOMAIN FEATURED (Eco first, double width)
   =================================================== */
.domains-grid-featured {
    grid-template-columns: 2fr 1fr 1fr;
}
.domains-grid-featured .domain-featured {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

/* ===================================================
   EQUIVALENCES (Section 7)
   =================================================== */
.equivalences {
    padding: 100px 0;
    background: white;
}
.equiv-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.equiv-item {
    text-align: center;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.equiv-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.equiv-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}
.equiv-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -0.03em;
}
.equiv-label {
    font-size: 0.75rem;
    color: var(--ink-400);
    margin-top: 4px;
}

/* ===================================================
   REFERENTIELS (Section 8)
   =================================================== */
.referentiels {
    padding: 80px 0;
    background: var(--sand-50);
}
.ref-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.ref-item {
    background: white;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    min-width: 160px;
    transition: border-color 0.3s;
}
.ref-item:hover {
    border-color: var(--green-600);
}
.ref-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 4px;
}
.ref-desc {
    font-size: 0.72rem;
    color: var(--ink-400);
}
.ref-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-400);
    max-width: 640px;
    margin: 32px auto 0;
    line-height: 1.7;
}

/* ===================================================
   ECO DASHBOARD (Results view — Phase 11c)
   =================================================== */
.eco-dashboard {
    background: linear-gradient(135deg, var(--green-100) 0%, #E8F5EC 100%);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid rgba(74, 158, 110, 0.15);
    max-width: 960px;
    margin: 0 auto 48px;
}
.eco-dashboard h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eco-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.eco-kpi {
    text-align: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 12px;
    box-shadow: var(--shadow-sm);
}
.eco-kpi-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -0.02em;
}
.eco-kpi-label {
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-top: 4px;
}
.eco-kpi-source {
    font-size: 0.62rem;
    color: var(--ink-300);
    margin-top: 2px;
}
.eco-dashboard-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.eco-emissions-bar {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.eco-emissions-bar h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 16px;
}
.eco-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--ink-500);
}
.eco-bar-fill {
    height: 12px;
    border-radius: 6px;
    transition: width 1.5s var(--ease-out-expo);
}
.eco-bar-label {
    flex-shrink: 0;
    width: 90px;
}
.eco-bar-pct {
    flex-shrink: 0;
    width: 40px;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.eco-equivalences {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.eco-equivalences h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 16px;
}
.eco-equiv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--ink-500);
}
.eco-equiv-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}
.eco-equiv-val {
    font-weight: 700;
    color: var(--green-800);
    font-variant-numeric: tabular-nums;
}
.eco-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: white;
    box-shadow: var(--shadow-sm);
    color: var(--ink-500);
}
.eco-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.eco-badge-dot.green { background: var(--green-600); }
.eco-badge-dot.orange { background: #E9A23B; }
.eco-badge-dot.red { background: #D64545; }

@media (max-width: 768px) {
    .eco-kpis { grid-template-columns: repeat(2, 1fr); }
    .eco-dashboard-body { grid-template-columns: 1fr; }
    .impact-grid { flex-direction: column; gap: 24px; }
    .comprendre-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .equiv-grid { grid-template-columns: repeat(3, 1fr); }
    .ref-grid { gap: 12px; }
    .domains-grid-featured { grid-template-columns: 1fr; }
}

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

/* ===================================================
   DOCUMENTATION PAGES
   =================================================== */

/* Layout */
.docs-view {
    padding: 100px 0 80px;
    background: var(--sand-50);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 16px;
}
.docs-sidebar-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-400);
    margin-bottom: 20px;
    padding-left: 16px;
}
.docs-sidebar-nav {
    list-style: none;
}
.docs-sidebar-nav li {
    margin-bottom: 2px;
}
.docs-sidebar-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--ink-500);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    font-weight: 400;
}
.docs-sidebar-nav a:hover {
    background: var(--sand-200);
    color: var(--ink-700);
}
.docs-sidebar-nav a.active {
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 600;
}

/* Sidebar group (eco sub-pages) */
.docs-sidebar-group > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.docs-sidebar-group > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--ink-300);
    border-bottom: 2px solid var(--ink-300);
    transform: rotate(45deg);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.docs-sidebar-group.open > a::after {
    transform: rotate(-135deg);
}
.docs-sidebar-sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out-expo);
    padding-left: 16px;
}
.docs-sidebar-group.open .docs-sidebar-sub {
    max-height: 300px;
}
.docs-sidebar-sub a {
    font-size: 0.82rem;
    padding: 6px 16px;
}

/* Inline TOC — hidden on desktop, visible on mobile as accordion */
.docs-toc {
    display: none;
    background: white;
    border-bottom: 1px solid var(--sand-200);
}
.docs-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    cursor: pointer;
    user-select: none;
}
.docs-toc-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-toc-title svg {
    width: 16px;
    height: 16px;
}
.docs-toc-current {
    font-size: 0.8rem;
    color: var(--ink-300);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}
.docs-toc-chevron {
    width: 20px;
    height: 20px;
    color: var(--ink-300);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.docs-toc.open .docs-toc-chevron {
    transform: rotate(180deg);
}
.docs-toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    padding: 0 24px;
}
.docs-toc.open .docs-toc-list {
    max-height: 500px;
    padding-bottom: 12px;
}
.docs-toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--ink-500);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: background 0.2s;
    border-left: 2px solid transparent;
}
.docs-toc-list a:hover {
    background: var(--green-50);
}
.docs-toc-list a.active {
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 600;
    border-left-color: var(--green-800);
}
.docs-toc-list a.docs-toc-sub {
    padding-left: 28px;
    font-size: 0.82rem;
}

/* Content */
.docs-content {
    max-width: 840px;
    min-width: 0;
    width: 100%;
}
.docs-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.docs-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sand-200);
}
.docs-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    margin-top: 32px;
    margin-bottom: 12px;
}
.docs-content p {
    font-size: 0.95rem;
    color: var(--ink-500);
    line-height: 1.75;
    margin-bottom: 16px;
}
.docs-content strong {
    color: var(--ink-700);
    font-weight: 600;
}
.docs-content ul, .docs-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.docs-content li {
    font-size: 0.92rem;
    color: var(--ink-500);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Breadcrumb */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--ink-300);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.docs-breadcrumb a {
    color: var(--green-700);
    transition: color 0.2s;
}
.docs-breadcrumb a:hover {
    color: var(--green-800);
}
.docs-breadcrumb span {
    color: var(--ink-200);
}

/* Docs table (thresholds) */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--sand-200);
}
.docs-table thead th {
    background: var(--sand-100);
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--sand-200);
}
.docs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--sand-100);
    color: var(--ink-500);
}
.docs-table tr:last-child td {
    border-bottom: none;
}
.docs-table .good {
    color: #2D6A4F;
    background: rgba(74, 158, 110, 0.08);
    font-weight: 600;
}
.docs-table .medium {
    color: #B8860B;
    background: rgba(233, 162, 59, 0.08);
    font-weight: 600;
}
.docs-table .bad {
    color: #C0392B;
    background: rgba(214, 69, 69, 0.08);
    font-weight: 600;
}

/* Formula box */
.docs-formula {
    background: var(--green-100);
    border: 1px solid rgba(74, 158, 110, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 20px 0 24px;
    font-family: 'DM Sans', monospace;
    font-size: 0.9rem;
    color: var(--green-900);
    line-height: 1.7;
    overflow-x: auto;
}
.docs-formula code {
    font-weight: 600;
}

/* Info box (saviez-vous?) */
.docs-info-box {
    background: #F0F4FF;
    border: 1px solid rgba(91, 127, 214, 0.2);
    border-left: 4px solid #5B7FD6;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0 24px;
    font-size: 0.88rem;
    color: var(--ink-700);
    line-height: 1.7;
}
.docs-info-box strong {
    color: #3B5998;
}
.docs-info-box.tip {
    background: #FFF8E1;
    border-color: rgba(233, 162, 59, 0.3);
    border-left-color: #E9A23B;
}
.docs-info-box.tip strong {
    color: #B8860B;
}
.docs-info-box.eco {
    background: var(--green-100);
    border-color: rgba(74, 158, 110, 0.2);
    border-left-color: #4A9E6E;
}
.docs-info-box.eco strong {
    color: var(--green-800);
}

/* Check card */
.docs-check-card {
    background: white;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 12px 0;
    transition: box-shadow 0.3s;
}
.docs-check-card:hover {
    box-shadow: var(--shadow-sm);
}
.docs-check-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.docs-check-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-900);
}
.docs-severity-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.docs-severity-badge.critical {
    background: rgba(214, 69, 69, 0.1);
    color: #D64545;
}
.docs-severity-badge.major {
    background: rgba(233, 162, 59, 0.1);
    color: #B8860B;
}
.docs-severity-badge.minor {
    background: rgba(74, 158, 110, 0.1);
    color: #2D6A4F;
}
.docs-check-card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.docs-check-card .docs-check-thresholds {
    font-size: 0.82rem;
    color: var(--ink-400);
    margin-top: 8px;
}

/* Code block */
.docs-code {
    background: var(--ink-900);
    color: var(--green-400);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 20px 0 24px;
    font-family: 'DM Sans', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
}

/* Prev/next navigation */
.docs-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--sand-200);
}
.docs-prev-next a {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.docs-prev-next a:hover {
    border-color: var(--green-600);
    box-shadow: var(--shadow-sm);
}
.docs-prev-next a:last-child {
    text-align: right;
}
.docs-prev-next .docs-nav-direction {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-300);
    margin-bottom: 4px;
}
.docs-prev-next .docs-nav-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-800);
}

/* Domain color indicators */
.docs-domain-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.docs-domain-indicator.eco { background: #4A9E6E; }
.docs-domain-indicator.perf { background: #40916C; }
.docs-domain-indicator.a11y { background: #5B7FD6; }
.docs-domain-indicator.seo { background: #C17654; }
.docs-domain-indicator.sec { background: #7C5BBF; }

/* Domain cards grid (overview page) */
.docs-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.docs-domain-link {
    display: block;
    background: white;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
    border-top: 3px solid var(--card-accent, var(--green-600));
}
.docs-domain-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.docs-domain-link h3 {
    margin-top: 0;
    font-size: 1rem;
}
.docs-domain-link p {
    font-size: 0.82rem;
    margin-bottom: 0;
}
.docs-domain-link.eco { --card-accent: #4A9E6E; }
.docs-domain-link.perf { --card-accent: #40916C; }
.docs-domain-link.a11y { --card-accent: #5B7FD6; }
.docs-domain-link.seo { --card-accent: #C17654; }
.docs-domain-link.sec { --card-accent: #7C5BBF; }

/* Responsive docs */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        display: none;
    }
    .docs-toc {
        display: block;
    }
}

@media (max-width: 768px) {
    .docs-view {
        padding: 90px 0 60px;
    }
    .docs-prev-next {
        grid-template-columns: 1fr;
    }
    .docs-table {
        font-size: 0.82rem;
    }
    .docs-table td, .docs-table thead th {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .docs-domains-grid {
        grid-template-columns: 1fr;
    }
}
