/* ============================================
   Aquanta — Design System & Site Styles
   Colors: #18365A (dark navy), #2B60A1 (blue), #E0E0DB (light grey), #FFF
   Headings: LTC Bodoni 175 (fallback: Georgia, serif)
   Body: Aktiv Grotesk (fallback: system-ui, sans-serif)
   ============================================ */

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

:root {
    --navy: #18365A;
    --blue: #2B60A1;
    --blue-light: #3a7bc8;
    --grey: #E0E0DB;
    --grey-light: #f5f5f3;
    --white: #FFFFFF;
    --text: #2c3e50;
    --text-light: #64748b;
    --max-width: 1140px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(24,54,90,0.08);
    --shadow-lg: 0 8px 32px rgba(24,54,90,0.12);
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Aktiv Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'LTC Bodoni 175', 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    color: var(--navy);
    line-height: 1.25;
    font-weight: 400;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; text-wrap: pretty; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-ghost:hover {
    background: var(--blue);
    color: var(--white);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(24,54,90,0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    padding: 0.55rem 1.3rem;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white) !important;
    font-weight: 500;
}
.nav-cta:hover {
    background: var(--white) !important;
    color: var(--navy) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/elephant-water-bg-1.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: var(--white);
    padding: 6rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}

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

/* --- Sections --- */
section { padding: 5rem 0; }

.section-light { background: var(--white); }
.section-grey { background: var(--grey-light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.75rem;
    text-wrap: balance;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.steps.steps-4 {
    grid-template-columns: repeat(4, 1fr);
}

.step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--text-light); font-size: 0.95rem; text-wrap: balance; }

/* --- Hero Quote (replaces Stats Bar) --- */
.hero-quote {
    text-align: center;
    padding: 3rem 0;
}

.hero-quote blockquote {
    font-family: 'LTC Bodoni 175', 'Bodoni Moda', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.hero-quote cite {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
    letter-spacing: 0.02em;
}

/* --- Demo Preview --- */
.demo-section { background: var(--grey-light); }

.demo-container {
    max-width: 720px;
    margin: 0 auto;
}

.demo-window {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-titlebar {
    background: var(--navy);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}
.demo-dot:first-child { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-titlebar-text {
    margin-left: auto;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.demo-body {
    padding: 2rem;
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-msg {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.6;
}

.demo-msg-user {
    background: var(--blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.demo-msg-ai {
    background: var(--grey-light);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.demo-msg-ai strong { color: var(--navy); }

.demo-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0f7ff, #eef2ff);
    border: 1px solid rgba(43,96,161,0.15);
    border-radius: var(--radius);
}

.demo-result h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 0.75rem;
    font-family: inherit;
    font-weight: 600;
}

.demo-remedy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(43,96,161,0.08);
}
.demo-remedy:last-child { border-bottom: none; }

.demo-remedy-name {
    font-weight: 600;
    color: var(--navy);
}

.demo-remedy-score {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 500;
}

.demo-cta {
    text-align: center;
    margin-top: 2rem;
}

.demo-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --- Research / Articles --- */
.research-cards-wrapper {
    position: relative;
}
.research-cards-container {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.research-cards-container::-webkit-scrollbar {
    width: 6px;
}
.research-cards-container::-webkit-scrollbar-track {
    background: var(--grey-light);
    border-radius: 3px;
}
.research-cards-container::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 3px;
}
.research-cards-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0.5rem;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.research-cards-fade.hidden {
    opacity: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Aquanta badge on own papers */
.aquanta-badge {
    float: right;
    padding: 0.2rem 0.7rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.05rem;
}

/* Dutch Only badge */
.dutch-badge {
    float: right;
    padding: 0.2rem 0.7rem;
    background: #e87722;
    color: var(--white);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.05rem;
}

/* Dual-link buttons inside article cards */
.article-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.article-link-btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    background: transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.article-link-btn:hover {
    background: var(--blue);
    color: var(--white);
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}
a.article-card {
    cursor: pointer;
}
div.article-card {
    cursor: default;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card-body {
    padding: 1.75rem;
}

.article-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(43,96,161,0.1);
    color: var(--blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    text-wrap: balance;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-photo {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-content blockquote {
    border-left: 3px solid var(--blue);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    max-width: 600px;
    line-height: 1.5;
    text-wrap: balance;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
    background: var(--navy);
    padding: 8rem 0 3rem;
    text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* --- Carousel --- */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-arrow {
    background: none;
    border: 1px solid var(--grey);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-arrow:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grey);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.carousel-dot.active {
    background: var(--blue);
    transform: scale(1.2);
}

.carousel-labels {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}
.carousel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    opacity: 0.5;
    transition: all var(--transition);
}
.carousel-label.active {
    color: var(--blue);
    opacity: 1;
    font-weight: 600;
}

/* Typing animation */
.typing-cursor {
    animation: blink 0.7s infinite;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Demo symptoms list */
.demo-symptoms {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.demo-symptom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.3rem 0;
}
.grade {
    color: #d4a017;
    font-size: 0.8rem;
    min-width: 48px;
}
.source-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    background: rgba(43,96,161,0.1);
    color: var(--blue);
    border-radius: 3px;
    margin-left: auto;
}
.demo-msg-static {
    font-size: 0.85rem;
    max-width: 90%;
    opacity: 0.8;
}

/* Demo pills */
.demo-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.demo-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--grey);
    background: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.demo-pill:hover { border-color: var(--blue); }
.demo-pill.selected {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.pill-hint {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.1rem;
}

/* Demo confidence */
.demo-confidence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #37B487;
}
.confidence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.confidence-high { background: #37B487; }

/* Demo bars */
.demo-result-full h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 1rem;
    font-family: inherit;
    font-weight: 600;
}
.demo-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.demo-bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 55px 50px;
    align-items: center;
    gap: 0.75rem;
}
.demo-bar-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
}
.demo-bar-track {
    height: 20px;
    background: var(--grey-light);
    border-radius: 10px;
    overflow: hidden;
}
.demo-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 10px;
    transition: width 1.2s ease-out;
}
.demo-bar-value {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 600;
    text-align: right;
}

/* Demo biochem (frame 5) */
.demo-biochem-header {
    margin-bottom: 1rem;
}
.demo-biochem-header h4 {
    font-size: 1.1rem;
    font-family: 'Bodoni Moda', Georgia, serif;
    color: var(--navy);
    font-weight: 400;
    margin-bottom: 0.25rem;
}
.demo-substance {
    font-size: 0.8rem;
    color: var(--text-light);
}
.demo-biochem-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.demo-biochem-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--grey);
}
.demo-biochem-item:last-child { border-bottom: none; }
.demo-biochem-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
    font-weight: 600;
    min-width: 100px;
}
.demo-biochem-value {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

/* Fade in content */
.fade-in-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accordion --- */
.accordion {
    max-width: 760px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid var(--grey);
}
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color var(--transition);
}
.accordion-trigger:hover { color: var(--blue); }
.accordion-number {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
    min-width: 28px;
}
.accordion-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    flex: 1;
}
.accordion-icon {
    font-size: 1.4rem;
    color: var(--blue);
    font-weight: 300;
    transition: transform var(--transition);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.accordion-content p {
    padding: 0 0 1.5rem 2.75rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    text-wrap: pretty;
}

/* --- Biochem Cards --- */
.biochem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 2rem;
}
.biochem-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.biochem-card-header {
    background: var(--navy);
    padding: 1.5rem 2rem;
}
.biochem-card-header h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}
.biochem-substance {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}
.biochem-card-body {
    padding: 2rem;
}
.biochem-stat {
    display: inline-flex;
    flex-direction: column;
    margin-right: 2.5rem;
    margin-bottom: 1.25rem;
}
.biochem-stat-value {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 2rem;
    color: var(--navy);
    line-height: 1.2;
}
.biochem-stat-value small {
    font-size: 0.9rem;
    color: var(--text-light);
}
.biochem-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 200px;
    text-wrap: balance;
}
.biochem-matches h4 {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.biochem-matches ul {
    list-style: none;
    padding: 0;
}
.biochem-matches li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--grey-light);
    line-height: 1.5;
}
.biochem-matches li:last-child { border-bottom: none; }
.biochem-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--blue);
    margin-top: 0.75rem;
    text-wrap: balance;
}
.biochem-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2.5rem;
    text-wrap: balance;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Practitioners --- */
.practitioners-block {
    text-align: center;
}
.practitioners-block > p {
    max-width: 640px;
    margin: 0.75rem auto 2.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}
.practitioners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}
.practitioner-point {
    padding: 1.5rem;
    background: var(--grey-light);
    border-radius: var(--radius);
}
.practitioner-point h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.practitioner-point p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    text-wrap: balance;
}

/* --- CTA Block --- */
.cta-block {
    text-align: center;
    padding: 2rem 0;
}
.cta-block h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}
.cta-block p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 480px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43,96,161,0.1);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-feedback {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 1.5em;
}
.form-success { color: #37B487; }
.form-error { color: #E12D6D; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
    .nav-toggle { display: block; }

    .hero-content { padding: 5rem 0 3rem; }
    .hero p { font-size: 1.05rem; }

    .steps, .steps.steps-4 { grid-template-columns: 1fr; gap: 1.5rem; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

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

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

    .demo-bar-row { grid-template-columns: 100px 1fr 50px 40px; }

    .carousel-arrow { display: none; }
    .carousel-slide { min-height: 280px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-photo { max-width: 300px; margin: 0 auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

    .articles-grid { grid-template-columns: 1fr; }
    .research-cards-container { max-height: none; overflow-y: visible; padding-right: 0; }
    .research-cards-fade { display: none; }

    .modal-content {
        width: 96vw;
        height: 92vh;
        margin: 2vh auto;
        border-radius: 8px;
    }
}

/* ===== ChatGPT vs simili.ai Comparison ===== */
.compare-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0 2rem;
}
.compare-col {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 2rem;
}
.compare-col-simili {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.compare-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.compare-subtitle {
    display: block;
    font-family: 'Inter', 'Aktiv Grotesk', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}
.compare-how {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}
.compare-how h4 {
    font-family: 'Inter', 'Aktiv Grotesk', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.6rem;
}
.compare-how p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    text-wrap: pretty;
}
.compare-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.compare-points li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    text-wrap: pretty;
}
.compare-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-top: 2px;
}
.compare-icon-warn {
    background: rgba(248, 153, 28, 0.2);
    color: #F8991C;
}
.compare-icon-ok {
    background: rgba(55, 180, 135, 0.2);
    color: #37B487;
}
.compare-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .compare-block {
        grid-template-columns: 1fr;
    }
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    position: relative;
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10001;
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.modal-close:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Coming Soon Toast ===== */
.coming-soon-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10002;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(24, 54, 90, 0.25);
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.coming-soon-toast.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.coming-soon-toast-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}
.coming-soon-toast h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.coming-soon-toast p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.coming-soon-toast-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.coming-soon-toast-close:hover {
    background: var(--grey-light);
    color: var(--navy);
}
.coming-soon-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.coming-soon-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Engine Cards ===== */
.engine-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(43, 96, 161, 0.1);
    color: var(--blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Confidence Explainer ===== */
.confidence-explainer {
    max-width: 560px;
    margin: 3rem auto 0;
    text-align: center;
}
.confidence-explainer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.confidence-levels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.confidence-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}
.confidence-stars {
    font-size: 1.2rem;
    min-width: 60px;
}
.confidence-high-stars { color: #d4a017; }
.confidence-good-stars { color: #9ca3af; }
.confidence-consider-stars { color: #c4a882; }
.confidence-label {
    font-size: 0.9rem;
    color: var(--text);
}

/* ===== Demo Engine Agreement Stars ===== */
.demo-engine-agree {
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}
.demo-engine-3 { color: #d4a017; }
.demo-engine-2 { color: #9ca3af; }
.demo-engine-1 { color: #c4a882; }

/* ===== Proof / Benchmarks Table ===== */
.proof-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.proof-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.proof-table th,
.proof-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.proof-table th {
    font-family: 'Inter', 'Aktiv Grotesk', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}
.proof-table td {
    color: rgba(255, 255, 255, 0.85);
}
.proof-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}
.proof-highlight {
    color: var(--white);
    font-weight: 700;
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 1.3rem;
}
.proof-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* ===== Responsive additions for new components ===== */
@media (max-width: 768px) {
    .confidence-level {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    .demo-engine-agree {
        font-size: 0.65rem;
    }
    .proof-table th,
    .proof-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    .proof-highlight {
        font-size: 1.1rem;
    }
}
