/* ============================================
   DIAGAPNEE v2 — Design System & Styles
   Clean Medical Light Theme
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Primary Blue */
    --blue-900: #0B1D3A;
    --blue-800: #102A4E;
    --blue-700: #1A3A5C;
    --blue-600: #1E5F8C;
    --blue-500: #2B7CB5;
    --blue-400: #4DA3D4;
    --blue-300: #7EC4E8;
    --blue-200: #B8DDF0;
    --blue-100: #E4F2FA;
    --blue-50:  #F0F7FC;

    /* Neutrals */
    --white:    #FFFFFF;
    --gray-50:  #F8FAFB;
    --gray-100: #F1F4F7;
    --gray-200: #E2E7ED;
    --gray-300: #C8D1DA;
    --gray-400: #9BA5B1;
    --gray-500: #6B7785;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;

    /* Risk colors */
    --risk-low: #10B981;
    --risk-low-bg: #D1FAE5;
    --risk-low-light: #ECFDF5;
    --risk-moderate: #F59E0B;
    --risk-moderate-bg: #FEF3C7;
    --risk-moderate-light: #FFFBEB;
    --risk-high: #EF4444;
    --risk-high-bg: #FEE2E2;
    --risk-high-light: #FEF2F2;

    /* Breathing */
    --breath-glow: rgba(43, 124, 181, 0.12);
    --breath-ring: rgba(43, 124, 181, 0.3);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: 20px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(11, 29, 58, 0.06);
    --shadow-md:  0 4px 12px rgba(11, 29, 58, 0.08);
    --shadow-lg:  0 10px 30px rgba(11, 29, 58, 0.1);
    --shadow-xl:  0 20px 50px rgba(11, 29, 58, 0.12);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-section: 6rem;
}

/* ---------- Reset ---------- */
*, *::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);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--gray-600);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

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

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* ---------- Section Helpers ---------- */
section {
    padding: var(--space-section) 5%;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ---------- Text Gradient ---------- */
.text-gradient {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-400) 50%, var(--blue-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(43, 124, 181, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(43, 124, 181, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
}

.btn-secondary:hover {
    border-color: var(--blue-400);
    background: var(--blue-50);
}

.btn-urgent {
    background: linear-gradient(135deg, var(--risk-high), #DC2626);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn.loading .btn-spinner { display: block; }
.btn.loading #submit-text { visibility: hidden; }
.btn-spinner {
    display: none;
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ---------- Floating Shapes ---------- */
.floating-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    top: var(--y);
    opacity: 0.04;
    border-radius: 50%;
    background: var(--blue-300);
    animation: float-shape var(--duration) ease-in-out infinite alternate;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 5%;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-500);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--blue-500); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(43, 124, 181, 0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(43, 124, 181, 0.35);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 110;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.open { right: 0; }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: color 0.3s;
}

.mobile-menu-link:hover { color: var(--blue-500); }

.mobile-menu-cta {
    margin-top: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-100);
    border: 1px solid var(--blue-200);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-600);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   BREATHING ANIMATION
   ============================================ */
.breathing-container {
    position: relative;
    width: 340px;
    height: 340px;
}

.breath-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.breath-ring--outer {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--breath-glow), transparent 70%);
    animation: breathe 4s ease-in-out infinite;
}

.breath-ring--middle {
    width: 210px;
    height: 210px;
    border: 2px solid var(--breath-ring);
    animation: breathe 4s ease-in-out infinite 0.4s;
}

.breath-ring--inner {
    width: 130px;
    height: 130px;
    background: var(--blue-100);
    border: 2px solid var(--blue-200);
    animation: breathe 4s ease-in-out infinite 0.8s;
}

.breath-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.breath-particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: var(--blue-400);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: var(--opacity);
    animation: orbit var(--duration) linear infinite;
    animation-delay: var(--delay);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    padding: 3rem 5%;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: visible;
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-900);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--gray-50);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.step-icon {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(43, 124, 181, 0.3);
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

.step-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--blue-100);
    z-index: -1;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    flex-shrink: 0;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   SIGNS / SYMPTOMS
   ============================================ */
.signs {
    background: var(--blue-50);
}

.signs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sign-card {
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.sign-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

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

.sign-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--blue-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.sign-card:hover .sign-icon-wrap {
    transform: scale(1.08);
}

.sign-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.sign-card > p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Expandable detail */
.sign-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, margin 0.4s ease;
    margin-top: 0;
}

.sign-card.expanded .sign-detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.sign-detail p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.sign-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--blue-500);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.75rem;
    padding: 0;
    transition: color 0.3s;
}

.sign-toggle:hover { color: var(--blue-600); }

.sign-toggle svg {
    transition: transform 0.3s ease;
}

.sign-card.expanded .sign-toggle svg {
    transform: rotate(180deg);
}

.sign-card.expanded .sign-toggle .sign-toggle-text::after {
    content: 'Fermer';
}

.sign-card.expanded .sign-toggle .sign-toggle-text {
    font-size: 0;
}

.sign-card.expanded .sign-toggle .sign-toggle-text::after {
    font-size: 0.85rem;
}

/* ============================================
   STOP-BANG TEST
   ============================================ */
.test-section {
    background: var(--white);
}

.test-container {
    max-width: 680px;
    margin: 0 auto;
}

/* Progress */
.test-progress {
    text-align: center;
    margin-bottom: 2rem;
    display: none;
}

.test-progress.visible {
    display: block;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--blue-500);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: var(--blue-400);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Questions viewport */
.questions-viewport {
    position: relative;
    min-height: 350px;
}

.question-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

.question-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}

.question-card.exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

.question-card-inner {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

/* Intro card */
.intro-card {
    padding: 3rem;
}

.intro-icon {
    margin: 0 auto 1.5rem;
}

.intro-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.intro-card p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.intro-card strong {
    color: var(--blue-600);
}

.intro-note {
    font-size: 0.9rem !important;
    color: var(--gray-400) !important;
    margin-bottom: 2rem !important;
}

/* Question content */
.question-label {
    font-size: 0.78rem;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: block;
}

.question-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Answer buttons */
.answer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.answer-btn {
    flex: 1;
    max-width: 200px;
    padding: 1rem 2rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.answer-btn svg { opacity: 0.5; transition: opacity 0.3s; }

.answer-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    background: var(--blue-50);
}

.answer-btn:hover svg { opacity: 1; }

.answer-btn.selected {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-color: transparent;
    color: var(--white);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(43, 124, 181, 0.3);
}

.answer-btn.selected svg { opacity: 1; }

.answer-btn--no.selected {
    background: var(--gray-600);
    box-shadow: 0 4px 16px rgba(74, 85, 104, 0.2);
}

/* Result card */
.result-card-inner {
    padding: 3rem;
}

.result-gauge {
    margin: 0 auto 1.5rem;
    width: 180px;
    height: 180px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-badge--low { background: var(--risk-low-bg); color: var(--risk-low); }
.result-badge--moderate { background: var(--risk-moderate-bg); color: var(--risk-moderate); }
.result-badge--high { background: var(--risk-high-bg); color: var(--risk-high); }

.result-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.result-title--low { color: var(--risk-low); }
.result-title--moderate { color: var(--risk-moderate); }
.result-title--high { color: var(--risk-high); }

.result-text {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.result-info-box {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.result-reset {
    font-size: 0.85rem;
    color: var(--gray-400);
    transition: color 0.3s;
    margin-top: 1rem;
}

.result-reset:hover { color: var(--blue-500); }

/* High risk pulsing card */
.question-card-inner.result-high {
    border: 2px solid var(--risk-high-bg);
    animation: pulse-urgent 2.5s ease-in-out infinite;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    background: var(--blue-50);
}

.contact-container {
    max-width: 680px;
    margin: 0 auto;
}

.contact-form {
    padding: 2.5rem;
    transition: border-color 0.3s;
}

.contact-form.risk-high {
    border-left: 4px solid var(--risk-high);
}

/* Score indicator */
.score-indicator {
    display: none;
    background: var(--blue-100);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 0.6rem;
}

.score-indicator.visible {
    display: flex;
    flex-wrap: wrap;
}

.score-indicator.risk-low { background: var(--risk-low-light); border-color: var(--risk-low-bg); }
.score-indicator.risk-low .score-indicator-icon { color: var(--risk-low); }
.score-indicator.risk-moderate { background: var(--risk-moderate-light); border-color: var(--risk-moderate-bg); }
.score-indicator.risk-moderate .score-indicator-icon { color: var(--risk-moderate); }
.score-indicator.risk-high { background: var(--risk-high-light); border-color: var(--risk-high-bg); }
.score-indicator.risk-high .score-indicator-icon { color: var(--risk-high); }

.score-indicator-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    flex: 1;
}

.score-indicator-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
}

.score-indicator-icon {
    display: flex;
    color: var(--blue-500);
}

/* Priority badge */
.priority-badge {
    display: none;
    background: var(--risk-high);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Form layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.required { color: var(--risk-high); }
.optional { color: var(--gray-400); font-weight: 400; }

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(43, 124, 181, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    min-height: 110px;
    resize: vertical;
}

.form-error {
    display: none;
    background: var(--risk-high-light);
    border: 1px solid var(--risk-high-bg);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--risk-high);
    font-size: 0.95rem;
}

.form-error.visible { display: block; }

.form-submit {
    margin-top: 1.5rem;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    position: relative;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* Success state */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
}

.form-success.visible { display: block; }

.form-success-icon { margin: 0 auto 1.5rem; }

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.3s;
}

.faq-item:hover {
    background: var(--gray-50);
}

.faq-item.active {
    background: var(--blue-50);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
    border-left: 3px solid transparent;
}

.faq-question:hover { color: var(--blue-500); border-left-color: var(--blue-400); }
.faq-item.active .faq-question { color: var(--blue-600); border-left-color: var(--blue-500); }

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--blue-500);
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 100%; height: 2px;
    top: 50%; left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px; height: 100%;
    left: 50%; top: 0;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--gray-500);
    line-height: 1.8;
    padding: 0 1rem;
    font-size: 0.98rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--blue-900);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 5% 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav, .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a, .footer-legal a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover, .footer-legal a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content { max-width: 100%; }

    .hero-cta { justify-content: center; }

    .hero-visual { order: -1; }

    .breathing-container { width: 280px; height: 280px; }
    .breath-ring--outer { width: 250px; height: 250px; }
    .breath-ring--middle { width: 180px; height: 180px; }
    .breath-ring--inner { width: 110px; height: 110px; }

    .signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-section: 4rem;
    }

    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn { display: flex; }

    .hero {
        padding: 6rem 5% 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .breathing-container { width: 220px; height: 220px; }
    .breath-ring--outer { width: 200px; height: 200px; }
    .breath-ring--middle { width: 150px; height: 150px; }
    .breath-ring--inner { width: 95px; height: 95px; }

    .stats-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-divider { display: none; }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
        margin: -0.5rem 0;
    }

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

    .question-card-inner {
        padding: 2rem 1.5rem;
    }

    .answer-buttons {
        flex-direction: column;
    }

    .answer-btn {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.75rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-tagline { max-width: 100%; }

    .footer-nav, .footer-legal {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .question-text {
        font-size: 1.15rem;
    }
}
