/* ===================================
   MojeRyzyko.online - Rich Healthcare Design
   =================================== */

/* CSS Variables */
:root {
    /* Primary */
    --primary-navy: #1B365D;
    --primary-teal: #006B77;
    --primary-teal-light: #008B8B;
    --accent-red: #C0392B;

    /* Background */
    --bg-cream: #FAFBF9;
    --bg-white: #FFFFFF;
    --surface-warm: #F5F6F4;
    --surface-blue: #EEF4F7;
    --surface-teal: #E8F4F5;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #717171;
    --text-light: #999999;

    /* Status */
    --status-danger: #C0392B;
    --status-danger-light: #E74C3C;
    --status-danger-bg: #FADBD8;
    --status-warning: #D68910;
    --status-warning-bg: #FCF3CF;
    --status-success: #1E8449;
    --status-success-bg: #D5F4E6;

    /* Borders */
    --border-light: #E8E8E8;
    --border-medium: #D0D0D0;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Typography */
    --font-heading: 'Source Serif 4', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', monospace;

    /* Spacing */
    --container-max: 1140px;
    --section-padding: 80px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-image:
        linear-gradient(rgba(240, 244, 248, 0.5), rgba(240, 244, 248, 0.5)),
        url('../img/bg-medical.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary-navy);
}

h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--primary-teal);
}

.mt-20 {
    margin-top: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 8px auto 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface-teal);
    color: var(--primary-teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-secondary:hover {
    background: var(--primary-teal);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==============================
   HEADER
   ============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-heart {
    display: flex;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.logo-accent {
    color: var(--primary-teal);
}

.nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-teal);
    text-decoration: none;
}

/* ==============================
   HERO
   ============================== */
.hero {
    padding: 120px 0 0;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-teal);
    color: var(--primary-teal);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-badge svg {
    color: var(--status-warning);
}

.hero-title {
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 160px;
}

/* Upload */
.upload-section {
    margin-top: 8px;
}

.upload-box {
    background: white;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-teal);
    border-style: solid;
    background: var(--surface-teal);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-box>p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-hint {
    display: block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.upload-actions .btn {
    flex: 1;
    min-width: 180px;
    white-space: nowrap;
}

.upload-preview {
    text-align: center;
}

.upload-preview img {
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

/* Hero Visual */
.expert-note {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 440px;
}

.note-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-navy);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 16px;
}

.expert-note h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.note-main {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.note-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.note-footer .dot {
    width: 4px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 50%;
}

.note-footer .dot {
    width: 4px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 50%;
}

.visual-header {
    background: var(--primary-navy);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.visual-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.visual-dot.red {
    background: #ff5f56;
}

.visual-dot.yellow {
    background: #ffbd2e;
}

.visual-dot.green {
    background: #27ca40;
}

.visual-content {
    padding: 24px;
}

.visual-meter {
    margin-bottom: 20px;
}

.vm-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vm-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--status-success) 0%, var(--status-warning) 50%, var(--status-danger) 100%);
    border-radius: 6px;
    position: relative;
}

.vm-fill {
    display: none;
}

.vm-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-navy);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.vm-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
}

.vm-target {
    color: var(--primary-teal);
    font-weight: 600;
}

.visual-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--status-danger-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.vr-icon {
    font-size: 1.5rem;
}

.vr-text strong {
    display: block;
    font-size: 1.25rem;
    color: var(--status-danger);
}

.vr-text span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.visual-ai {
    background: rgba(238, 244, 247, 0.6);
    border: 1px solid rgba(0, 107, 119, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.visual-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-teal);
    opacity: 0.6;
}

.vai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vai-header svg,
.vai-header .ai-dot {
    color: var(--primary-teal);
    animation: pulse-ai 2s infinite;
}

@keyframes pulse-ai {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.visual-ai p {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

/* Trust Bar */
.trust-bar {
    background: var(--primary-navy);
    padding: 16px 0;
    margin-top: 60px;
}

.trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.trust-item svg {
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   WHY SECTION
   ============================== */
.why-section {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.6);
}

/* Comparison Cards */
.comparison-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.comparison-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-card.healthy {
    border-color: var(--status-success);
}

.comparison-card.risk {
    border-color: var(--status-danger);
}

.cc-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comparison-card.healthy .cc-header {
    background: var(--status-success-bg);
}

.comparison-card.risk .cc-header {
    background: var(--status-danger-bg);
}

.cc-header svg {
    flex-shrink: 0;
}

.comparison-card.healthy .cc-header svg {
    color: var(--status-success);
}

.comparison-card.risk .cc-header svg {
    color: var(--status-danger);
}

.cc-header h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    flex: 1;
}

.cc-badge {
    padding: 4px 10px;
    background: var(--status-danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.cc-body {
    padding: 24px;
}

.cc-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cc-metric:last-of-type {
    border-bottom: none;
}

.cc-label {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.cc-value {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cc-metric.danger .cc-value {
    color: var(--status-danger);
}

.cc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.cc-status.ok {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.cc-status.warning {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.comparison-arrow {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* Info Callout */
.info-callout {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--surface-blue);
    border-left: 4px solid var(--primary-teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-icon {
    color: var(--primary-teal);
    flex-shrink: 0;
}

.callout-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-navy);
}

.callout-content p {
    font-size: 0.9375rem;
    margin: 0;
}

/* ==============================
   INTERVIEW SECTION
   ============================== */
.interview-section {
    padding: var(--section-padding) 0;
    background: rgba(250, 251, 249, 0.6);
}

.interview-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.fg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.fg-header svg {
    color: var(--primary-teal);
}

.fg-header h3 {
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-field input,
.form-field select {
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 107, 119, 0.1);
}

.form-field input::placeholder {
    color: var(--text-light);
}

.input-with-unit {
    display: flex;
    align-items: stretch;
}

.input-with-unit input {
    flex: 1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-unit {
    padding: 12px 14px;
    background: var(--surface-warm);
    border: 1px solid var(--border-medium);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Checkbox Cards */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input {
    display: none;
}

.cc-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.checkbox-card:hover .cc-inner {
    border-color: var(--primary-teal);
    background: var(--surface-teal);
}

.checkbox-card input:checked+.cc-inner {
    border-color: var(--primary-teal);
    background: var(--surface-teal);
}

.cc-icon {
    font-size: 1.5rem;
}

.cc-text {
    flex: 1;
}

.cc-text strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.cc-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cc-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.15s;
}

.checkbox-card input:checked+.cc-inner .cc-check {
    opacity: 1;
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

/* Extracted Values */
.extracted-values {
    background: var(--surface-teal);
    border: 1px solid rgba(0, 107, 119, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
}

.ev-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ev-header svg {
    color: var(--primary-teal);
}

.ev-header h3 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.value-item {
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-radius: var(--radius-sm);
}

.value-item .label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-item .value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.value-item .value small {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==============================
   RESULTS SECTION
   ============================== */
.results-section {
    padding: var(--section-padding) 0;
    background: rgba(238, 244, 247, 0.6);
}

/* Life Meter */
.life-meter-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.lm-header h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.life-meter {
    max-width: 600px;
    margin: 0 auto;
}

.meter-zones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.mz-zone {
    padding: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.mz-zone.safe {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.mz-zone.moderate {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.mz-zone.high {
    background: #FADBD8;
    color: #C0392B;
}

.mz-zone.critical {
    background: #C0392B;
    color: white;
}

.meter-track {
    height: 16px;
    background: linear-gradient(90deg,
            var(--status-success) 0%,
            var(--status-success) 25%,
            var(--status-warning) 25%,
            var(--status-warning) 50%,
            #E74C3C 50%,
            #E74C3C 75%,
            #922B21 75%,
            #922B21 100%);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    position: relative;
}

.meter-marker {
    position: absolute;
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: white;
    border: 4px solid var(--primary-navy);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: left 0.5s ease;
}

.risk-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--status-danger);
    border-radius: var(--radius-sm);
    color: white;
}

.risk-badge.low {
    background: var(--status-success);
}

.risk-badge.moderate {
    background: var(--status-warning);
}

.risk-level {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.risk-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Result Cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.result-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.ch-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-icon.ldl {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.ch-icon.hdl {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.ch-icon.nonhdl {
    background: #E8DAEF;
    color: #8E44AD;
}

.ch-icon.tg {
    background: #D6EAF8;
    color: #2980B9;
}

.ch-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.ch-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-body {
    padding: 20px;
}

.cb-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.cb-value {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.cb-unit {
    font-size: 1rem;
    color: var(--text-muted);
}

.cb-target {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cb-target strong {
    color: var(--primary-teal);
}

.cb-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.cbb-fill {
    height: 100%;
    border-radius: 4px;
}

.cbb-fill.success {
    background: var(--status-success);
}

.cbb-fill.warning {
    background: var(--status-warning);
}

.cbb-fill.danger {
    background: var(--status-danger);
}

.cbb-target {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 16px;
    background: var(--primary-navy);
    border-radius: 2px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 20px 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-status.success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.card-status.warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.card-status.danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

/* AI Commentary */
.ai-commentary {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: var(--surface-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-title {
    flex: 1;
}

.ai-title h3 {
    font-family: var(--font-body);
    font-size: 1rem;
}

.ai-badge {
    padding: 4px 10px;
    background: var(--surface-teal);
    color: var(--primary-teal);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
}

.ai-content {
    min-height: 60px;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-muted);
}

.ai-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary-teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Recommendations */
.recommendations {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.recommendations h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rec-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--surface-warm);
    border-radius: var(--radius-sm);
}

.ri-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.ri-text strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.ri-text span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==============================
   HOW IT WORKS
   ============================== */
.how-it-works {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.6);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    position: relative;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-teal);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    color: var(--primary-teal);
    margin: 16px 0 20px;
}

.step-card h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==============================
   DISCLAIMER
   ============================== */
.disclaimer-section {
    padding: 48px 0;
    background: rgba(250, 251, 249, 0.6);
}

.disclaimer-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #FEF5E7;
    border: 1px solid #F5CBA7;
    border-radius: var(--radius-md);
}

.db-icon {
    flex-shrink: 0;
    color: var(--status-warning);
}

.db-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--status-warning);
    margin-bottom: 8px;
}

.db-content p {
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.7;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    margin-top: 12px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links h4,
.footer-tech h4 {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==============================
   LOADING OVERLAY
   ============================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 54, 93, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay:not([hidden]) {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .nav {
        display: none;
    }

    .header .btn {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .comparison-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .header .container {
        height: 56px;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .upload-box {
        padding: 32px 20px;
    }

    .upload-box h3 {
        font-size: 1rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.9375rem;
        width: 100%;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .cc-inner {
        padding: 14px;
    }

    .cc-text strong {
        font-size: 0.875rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group {
        padding: 20px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn {
        width: 100%;
    }

    .comparison-cards {
        flex-direction: column;
    }

    .comparison-card {
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-card {
        padding: 28px 20px;
    }

    .trust-items {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cb-value {
        font-size: 1.75rem;
    }

    .rec-grid {
        grid-template-columns: 1fr;
    }

    .disclaimer-box {
        flex-direction: column;
        text-align: center;
    }

    .info-callout {
        flex-direction: column;
    }
}

/* Print */
@media print {

    .header,
    .hero,
    .why-section,
    .how-it-works,
    .disclaimer-section,
    .footer,
    .interview-section,
    .results-actions,
    .loading-overlay {
        display: none !important;
    }

    .results-section {
        padding: 0;
        background: white;
    }
}