/* Demo Page - Distinctive Styling
   Built for Codontix physician-facing marketing page
   ================================================== */

/* ========== Variables ========== */
:root {
    --demo-primary: #3CBBB2;
    --demo-primary-dark: #2a9d95;
    --demo-secondary: #5D7CE9;
    --demo-accent: #F59E0B;
    --demo-dark: #0f1419;
    --demo-darker: #080b0e;
    --demo-light: #f8fafc;
    --demo-text: #334155;
    --demo-text-muted: #64748b;
    --demo-gradient: linear-gradient(135deg, var(--demo-primary) 0%, var(--demo-secondary) 100%);
    --demo-gradient-text: linear-gradient(135deg, #3CBBB2 0%, #5D7CE9 50%, #3CBBB2 100%);
}

/* ========== Demo Page Base ========== */
.demo-page {
    background: var(--demo-darker);
}

.demo-page main {
    margin-top: 80px;
    background: transparent;
}

/* ========== Poster Mode ========== */
.demo-page.poster-mode main {
    margin-top: 0;
}

.poster-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(60, 187, 178, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.poster-logo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.poster-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.poster-logo .logo-name {
    font-family: 'THICCCBOI', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.poster-logo .logo-tagline {
    font-family: 'THICCCBOI', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--demo-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Poster mode hero adjustments */
.poster-mode .demo-hero {
    padding-top: 80px;
}

/* Final CTA poster style */
.poster-mode .final-cta-section {
    padding: 80px 0;
}

.poster-mode .final-cta-content {
    max-width: 900px;
}

.poster-mode .final-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 24px;
    font-weight: 600;
}

/* Hide poster logo on mobile */
@media (max-width: 768px) {
    .poster-logo {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
    }
    
    .poster-logo img {
        width: 32px;
        height: 32px;
    }
    
    .poster-logo .logo-name {
        font-size: 1rem;
    }
    
    .poster-logo .logo-tagline {
        font-size: 0.6rem;
    }
}

/* ========== Section Tags ========== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(60, 187, 178, 0.1);
    border: 1px solid rgba(60, 187, 178, 0.3);
    color: var(--demo-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* ========== Gradient Text ========== */
.gradient-text {
    background: var(--demo-gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* Solid teal text - same styling as gradient-text but with solid color */
.teal-text {
    background: #3CBBB2;
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ========== Hero Section ========== */
.demo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--demo-dark);
}

.hero-bg-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    opacity: 0.35;
    transform: scaleX(-1);
    z-index: 1;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(60, 187, 178, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(93, 124, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(60, 187, 178, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 187, 178, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    /* max-width controlled via inline styles */
}

.demo-hero h1 {
    font-family: 'THICCCBOI', sans-serif;
    /* Fluid font-size: scales from 3rem at small screens to 6rem at large screens */
    /* At 1800px: ~4.5rem, at 2400px: ~6rem */
    font-size: clamp(3rem, 4vw, 6rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: -0.02em;
}

.demo-hero h1 .gradient-text {
    display: block;
    /* Fluid max-width: scales from 600px to 1500px based on viewport */
    /* At 1800px: ~1000px, at 2400px: ~1340px */
    max-width: clamp(600px, 56vw, 1500px);
}

.demo-hero .hero-subheadline {
    /* Fluid font-size for subheadline */
    font-size: clamp(1rem, 1.2vw, 1.6rem);
    line-height: 1.7;
    /* Fluid max-width for subheadline */
    max-width: clamp(400px, 33vw, 800px);
}

.hero-subheadline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-subheadline strong {
    color: var(--demo-primary);
    font-weight: 700;
}

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

.hero-cta-group .cta-primary,
.hero-cta-group .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-cta-group .cta-primary svg,
.hero-cta-group .cta-secondary svg {
    width: 20px;
    height: 20px;
}

/* ========== Workflow Visual ========== */
.hero-graphic {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(60, 187, 178, 0.2);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.workflow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(60, 187, 178, 0.05);
    border: 1px solid rgba(60, 187, 178, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: rgba(60, 187, 178, 0.1);
    border-color: rgba(60, 187, 178, 0.3);
    transform: translateY(-4px);
}

.workflow-step .step-icon {
    width: 56px;
    height: 56px;
    background: var(--demo-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.workflow-step .step-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: var(--demo-gradient);
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.workflow-step span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-align: center;
}

.workflow-arrow {
    color: var(--demo-primary);
    opacity: 0.5;
}

.workflow-arrow svg {
    width: 24px;
    height: 24px;
}

.workflow-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 24px;
    font-style: italic;
}

/* ========== Demo Sections ========== */
.demo-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.demo-section h2 {
    font-family: 'THICCCBOI', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.section-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
}

/* ========== Ambient Section ========== */
.ambient-section {
    background: linear-gradient(180deg, var(--demo-dark) 0%, #0d1117 100%);
    color: white;
}

.ambient-section h2 {
    color: white;
}

.ambient-section .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.ambient-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(390px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.ambient-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ambient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--demo-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.ambient-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(60, 187, 178, 0.3);
    transform: translateY(-8px);
}

.ambient-card .card-icon {
    width: 64px;
    height: 64px;
    background: var(--demo-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.ambient-card .card-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.card-chrome .card-icon {
    background: linear-gradient(135deg, var(--demo-primary) 0%, #14b8a6 100%);
    /*linear-gradient(135deg,   #4D9BFF,   #1A6FE1,   #0F4FA8 );*/
}

.card-mobile .card-icon {
    background: linear-gradient(135deg, var(--demo-primary) 0%, #14b8a6 100%);
    /*linear-gradient(135deg, #3658cd 0%, #5D7CE9 100%)*/
}

.card-workflow .card-icon {
    background: linear-gradient(135deg, var(--demo-primary) 0%, #14b8a6 100%);
}

.ambient-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    text-align: center;
}

.ambient-card > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--demo-primary);
    font-weight: 700;
}

/* ========== Visual Split Panel ========== */
.ambient-visual {
    max-width: 500px;
    margin: 0 auto;
}

.visual-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.visual-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.panel-dot:nth-child(1) { background: #ff5f57; }
.panel-dot:nth-child(2) { background: #febc2e; }
.panel-dot:nth-child(3) { background: #28c840; }

.panel-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.panel-content {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.placeholder-image svg {
    width: 100px;
    height: auto;
    opacity: 0.5;
}

.placeholder-image span {
    font-size: 0.85rem;
    font-weight: 600;
}

.panel-video {
    padding: 0;
    min-height: auto;
}

.panel-video video {
    width: 100%;
    display: block;
    border-radius: 0 0 16px 16px;
}

/* ========== Coding Section ========== */
.coding-section {
    background: white;
    color: var(--demo-text);
}

.coding-section .section-intro {
    color: var(--demo-text-muted);
}

.coding-benefits {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.benefit-main {
    background: var(--demo-light);
    border-radius: 24px;
    padding: 40px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateX(8px);
}

.benefit-item .benefit-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3658cd 0%, #5D7CE9 100%)
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item .benefit-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--demo-dark);
    margin-bottom: 6px;
}

.benefit-content p {
    font-size: 0.95rem;
    color: var(--demo-text-muted);
    line-height: 1.6;
}

.benefit-extras {
    background: var(--demo-dark);
    border-radius: 24px;
    padding: 40px;
    color: white;
}

.benefit-extras h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
}

.extras-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.extra-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 187, 178, 0.3);
}

.extra-item svg {
    width: 24px;
    height: 24px;
    color: var(--demo-primary);
    flex-shrink: 0;
}

.extra-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* ========== Timeline ========== */
.coding-timeline {
    background: var(--demo-light);
    border-radius: 24px;
    padding: 40px;
    overflow-x: auto;
}

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 600px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.timeline-step .timeline-icon {
    width: 64px;
    height: 64px;
    background: white;
    border: 2px solid rgba(60, 187, 178, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-step .timeline-icon svg {
    width: 28px;
    height: 28px;
    color: var(--demo-primary);
}

.timeline-step.highlight .timeline-icon {
    background: linear-gradient(135deg, var(--demo-primary) 0%, #14b8a6 100%);
    border-color: transparent;
}

.timeline-step.highlight .timeline-icon svg {
    color: white;
}

.timeline-step span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--demo-text);
}

.timeline-connector {
    width: 60px;
    height: 4px;
    background: rgba(60, 187, 178, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--demo-gradient);
    animation: timeline-fill 2s ease-out infinite;
}

@keyframes timeline-fill {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ========== Validation Section ========== */
.validation-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--demo-text);
}

.validation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.validation-panel {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.validation-panel h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--demo-dark);
    margin-bottom: 16px;
}

.validation-panel h3 svg {
    width: 28px;
    height: 28px;
    color: var(--demo-primary);
}

.validation-panel > p {
    color: var(--demo-text-muted);
    margin-bottom: 20px;
}

.validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--demo-text);
}

.validation-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--demo-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========== Dashboard Preview ========== */
.dashboard-preview {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-frame {
    background: var(--demo-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dash-dot:nth-child(1) { background: #ff5f57; }
.dash-dot:nth-child(2) { background: #febc2e; }
.dash-dot:nth-child(3) { background: #28c840; }

.dash-title {
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.dash-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.widget-header {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--demo-primary);
    line-height: 1;
}

.widget-trend {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.widget-trend.positive {
    color: #22c55e;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding-top: 10px;
}

.chart-bar {
    flex: 1;
    background: var(--demo-gradient);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-value {
    font-weight: 700;
    color: var(--demo-primary);
}

/* ========== Pricing Section ========== */
.pricing-section {
    background: var(--demo-dark);
    color: white;
}

.pricing-section h2 {
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(60, 187, 178, 0.3);
}

.pricing-card.featured {
    background: rgba(60, 187, 178, 0.1);
    border-color: var(--demo-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgb(77, 155, 255), rgb(26, 111, 225), rgb(15, 79, 168));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--demo-primary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--demo-primary);
    line-height: 1;
}

.period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--demo-primary);
    flex-shrink: 0;
}

.pricing-audience {
    text-align: center;
}

.pricing-audience > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 1rem;
}

.audience-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audience-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========== Physician Section ========== */
.physician-section {
    background: linear-gradient(180deg, #0d1117 0%, var(--demo-dark) 100%);
    color: white;
}

.physician-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.physician-text h2 {
    color: white;
    text-align: left;
}

.physician-text > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.physician-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.physician-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.physician-list li:last-child {
    border-bottom: none;
}

.physician-list li svg {
    width: 24px;
    height: 24px;
    color: var(--demo-primary);
    flex-shrink: 0;
}

.physician-list li span {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.physician-quote {
    background: rgba(60, 187, 178, 0.1);
    border-left: 4px solid var(--demo-primary);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.physician-visual {
    display: flex;
    justify-content: center;
}

.visual-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.placeholder-avatar {
    width: 150px;
    height: 150px;
    background: var(--demo-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-avatar svg {
    width: 80px;
    height: 80px;
    color: white;
}

.physician-avatar-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(60, 187, 178, 0.5);
}

.visual-placeholder > span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ========== Final CTA Section ========== */
.final-cta-section {
    background: linear-gradient(180deg, var(--demo-dark) 0%, #060a0e 100%);
    color: white;
    padding: 120px 0;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 3.0rem;
    line-height: 1.3;
    margin-bottom: 50px;
    color: white;
}

.demo-request-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.demo-request-form .form-group input,
.demo-request-form .form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-request-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.demo-request-form .form-group input:focus,
.demo-request-form .form-group select:focus {
    outline: none;
    border-color: var(--demo-primary);
    background: rgba(255, 255, 255, 0.08);
}

.demo-request-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.demo-request-form .form-group select option {
    background: var(--demo-dark);
    color: white;
}

.form-actions {
    margin-top: 24px;
}

.form-actions .cta-primary {
    width: 100%;
    justify-content: center;
}

.form-actions .cta-primary svg {
    width: 20px;
    height: 20px;
}

.form-actions .cta-primary.success {
    background: #22c55e;
}

.spin {
    animation: spin 1s linear infinite;
}

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

.or-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    color: rgba(255, 255, 255, 0.4);
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.talk-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--demo-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.talk-link:hover {
    color: white;
}

.talk-link svg {
    width: 24px;
    height: 24px;
}

/* ========== Responsive ========== */

/* For screens < 1700px: centered text, fixed large sizes, more transparent background */
@media (max-width: 1700px) {
    .hero-bg-image {
        opacity: 0.07;
    }
    
    .demo-hero .container.hero-content {
        max-width: 100% !important;
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }
    
    .demo-hero .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .demo-hero h1 {
        /* Large fixed font-size */
        font-size: 4rem;
        text-align: center;
        width: 100%;
    }
    
    .demo-hero h1 span {
        white-space: normal !important;
        text-align: center;
    }
    
    .demo-hero h1 .gradient-text {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .demo-hero .hero-subheadline {
        font-size: 1.3rem;
        max-width: 650px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-graphic {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .visual-split {
        grid-template-columns: 1fr;
    }

    .coding-benefits {
        grid-template-columns: 1fr;
    }

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

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

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .physician-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .physician-text h2 {
        text-align: center;
    }

    .physician-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .demo-hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .demo-hero h1 {
        font-size: 2.2rem;
    }

    .demo-section h2 {
        font-size: 2rem;
    }

    .demo-section {
        padding: 60px 0;
    }

    .workflow-visual {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

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

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        display: none;
    }

    .timeline-connector {
        width: 4px;
        height: 40px;
    }

    .final-cta-content h2 {
        font-size: 2rem;
    }

    .demo-page .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 620px) {
    .physician-visual {
        width: 100%;
    }
    
    .physician-avatar-img {
        /* Scale proportionally: ~65% of viewport width, max 400px */
        width: 65vw;
        height: 65vw;
        max-width: 400px;
        max-height: 400px;
    }
    
    .visual-placeholder {
        padding: 40px;
    }
    
    .placeholder-avatar {
        width: 120px;
        height: 120px;
    }
    
    .placeholder-avatar svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 572px) {
    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .demo-hero h1 {
        /* Never go below section-header font size (2rem at 768px) */
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .demo-request-form {
        padding: 24px;
    }

    .pricing-card {
        padding: 24px;
    }

    .widget-value {
        font-size: 2rem;
    }

    .amount {
        font-size: 2.5rem;
    }
}

/* Override CTA section h2 to match demo-section h2 style */
.demo-page .cta-section h2 {
    font-family: 'THICCCBOI', sans-serif;
    text-transform: none;
    letter-spacing: normal;
}
