/* ============================================================
   index.css — BriefMed Landing Page
   ============================================================ */

/* ── Utilities ── */
.ix-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ix-section { padding: 80px 0; }
.ix-section__header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
/* Section name — big blue label */
.ix-section__name { font-size: 1.4rem; font-weight: 800; color: var(--ink-blue); letter-spacing: -0.02em; margin-bottom: 8px; }

/* Left-aligned header variant */
.ix-section__header--left { text-align: left; max-width: none; margin-left: 0; }
.ix-section__header--left .ix-section__sub { max-width: 640px; }
.ix-section__h2 { font-size: 2rem; font-weight: 800; color: var(--midnight); line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 12px; }
.ix-section__sub { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── Buttons ── */
.ix-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-weight: 600; border: none; border-radius: 10px; cursor: pointer; text-decoration: none; transition: all 0.2s ease; white-space: nowrap; }
.ix-btn--primary { background: var(--ink-blue); color: #fff; box-shadow: 0 2px 12px rgba(37,99,235,0.25); }
.ix-btn--primary:hover { background: var(--ink-blue-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,0.3); }
.ix-btn--lg { padding: 14px 28px; font-size: 0.95rem; }
.ix-btn--full { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.95rem; }


/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */

.ix-hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.ix-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ix-hero__gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(37,99,235,0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 30%, rgba(139,92,246,0.04) 0%, transparent 70%), linear-gradient(180deg, #fff 0%, var(--arctic) 100%); }

.ix-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }

.ix-hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--ink-blue); background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.1); margin-bottom: 20px; }
.ix-hero__h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--midnight); margin-bottom: 20px; }
.ix-hero__accent { background: linear-gradient(135deg, #2563EB, #7C3AED); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ix-hero__sub { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; }
.ix-hero__link { color: inherit; text-decoration: underline; cursor: pointer; transition: color 0.15s; }
.ix-hero__link:hover { color: var(--ink-blue); }
@keyframes ix-glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    30% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.ix-highlight { animation: ix-glow 1.5s ease-out; border-radius: 12px; }

.ix-hero__trust { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.ix-hero__trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }
.ix-hero__trust-item > i { font-size: 1.1rem; color: var(--ink-blue); }

/* Hero login — ghost/outline style */
.ix-hero__login { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink-blue); text-decoration: none; padding: 11px 28px; border: 1.5px solid rgba(37,99,235,0.3); border-radius: 10px; background: rgba(37,99,235,0.03); transition: all 0.2s ease; }
.ix-hero__login:hover { color: var(--ink-blue); border-color: var(--ink-blue); background: rgba(37,99,235,0.06); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.1); }
.ix-hero__login > i { font-size: 1rem; }

/* Shimmer keyframes — used by emr CTA */
@keyframes ix-shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ix-glint { 0%, 100% { left: -100%; } 50% { left: 100%; } }


/* ── Mock EMR (Hero) ── */
.ix-hero__mock { position: relative; }

.ix-emr { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.06); position: relative; }

.ix-emr__patient { padding: 10px 18px; border-bottom: 1px solid #E2E8F0; }
.ix-emr__patient-name { font-size: 1.1rem; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.ix-emr__demographics { display: flex; align-items: center; flex-wrap: wrap; }
.ix-emr__demo { font-size: 0.75rem; font-weight: 600; color: #1E293B; white-space: nowrap; }
.ix-emr__demo-lbl { font-weight: 700; color: #64748B; text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.04em; }
.ix-emr__demo-sep { color: #CBD5E1; margin: 0 6px; font-size: 0.6rem; }

/* Progress stepper */
.ix-emr__progress { display: flex; align-items: center; justify-content: center; gap: 0; padding: 10px 16px; }
.ix-emr__step { display: flex; align-items: center; gap: 6px; }
.ix-emr__step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; background: #fff; border: 2px solid #E2E8F0; color: #94A3B8; flex-shrink: 0; }
.ix-emr__step.is-active .ix-emr__step-dot { background: #3B82F6; border-color: #3B82F6; color: #fff; }
.ix-emr__step-lbl { font-size: 0.68rem; font-weight: 600; color: #94A3B8; }
.ix-emr__step.is-active .ix-emr__step-lbl { color: #1E293B; }
.ix-emr__step-line { width: 24px; height: 2px; background: #E2E8F0; margin: 0 4px; }

/* Tabs */
.ix-emr__tabs { display: flex; background: #F8FAFC; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; padding: 0 12px; }
.ix-emr__tab { padding: 8px 14px; font-size: 0.72rem; font-weight: 600; color: #64748B; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ix-emr__tab.is-active { color: #3B82F6; border-bottom-color: #3B82F6; background: #fff; }

/* Content — sidebar + pane */
.ix-emr__content { display: flex; height: 100%; }
.ix-emr__sidebar { width: 150px; background: #fff; border-right: 1px solid #E2E8F0; flex-shrink: 0; }
.ix-emr__sidebar-item { padding: 10px 14px; border-bottom: 1px solid #F1F5F9; }
.ix-emr__sidebar-item.is-active { background: #F1F5F9; border-left: 3px solid #3B82F6; }
.ix-emr__sidebar-author { font-size: 0.58rem; font-weight: 700; color: #1E293B; }
.ix-emr__sidebar-title { font-size: 0.49rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #64748B; }
.ix-emr__pane { flex: 1; padding: 10px 14px; text-align: left; }
.ix-emr__note-header { font-size: 0.75rem; font-weight: 700; color: #1E293B; margin-bottom: 2px; }
.ix-emr__note-time { font-size: 0.54rem; color: #64748B; padding-bottom: 6px; border-bottom: 1px solid #F1F5F9; margin-bottom: 8px; }
.ix-emr__note-text { font-size: 0.6rem; color: #475569; line-height: 1.55; text-align: left; }

/* Panels (tab content) — fixed height so EMR doesn't jump */
.ix-emr__panel { display: none; height: 300px; overflow-y: auto; }
.ix-emr__panel.is-active { display: block; }

/* Note switching */
.ix-emr__note { display: none; }
.ix-emr__note.is-active { display: block; }

/* Vitals table */
.ix-emr__vitals-table { padding: 10px 14px; overflow-x: auto; }
.ix-emr__vitals-table table { width: 100%; border-collapse: collapse; font-size: 0.58rem; }
.ix-emr__vitals-table th { text-align: left; font-weight: 700; color: #64748B; font-size: 0.49rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 6px; border-bottom: 2px solid #E2E8F0; }
.ix-emr__vitals-table td { padding: 5px 6px; border-bottom: 1px solid #F1F5F9; color: #475569; }
.ix-emr__vitals-table .abnormal-value { color: #DC2626; font-weight: 700; }

/* Image sidebar + pane */
.ix-emr__images { display: flex; height: 100%; }
.ix-emr__image-sidebar { width: 140px; background: #fff; border-right: 1px solid #E2E8F0; flex-shrink: 0; }
.ix-emr__image-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #F1F5F9; font-size: 0.58rem; font-weight: 600; color: #64748B; cursor: pointer; transition: background 0.15s; }
.ix-emr__image-item:hover { background: #F8FAFC; }
.ix-emr__image-item.is-active { background: #F1F5F9; border-left: 3px solid #3B82F6; color: #1E293B; }
.ix-emr__image-item i { font-size: 1rem; }
.ix-emr__image-pane { flex: 1; padding: 14px 18px; overflow: hidden; }

/* ECG widget inside EMR — scale down to fit */
.ix-emr__ecg-widget { transform-origin: top left; }
.ix-emr__ecg-widget .w-ecg-af-card { box-shadow: none; max-width: 100%; }
.ix-emr__ecg-widget .w-ecg-af-card__title { padding: 0 0 6px; font-size: 0.75rem; }
.ix-emr__ecg-widget .w-ecg-af-toggle-bar { padding: 4px 0 6px; }
.ix-emr__ecg-widget .w-ecg-af-strip { padding: 4px 0; }
.ix-emr__ecg-widget .w-ecg-af-annotations { padding: 2px 0; }
.ix-emr__ecg-widget .w-ecg-af-findings { padding: 4px 0 8px; }
.ix-emr__image-content { display: none; }
.ix-emr__image-content.is-active { display: block; }

/* Encounter switching */
.ix-emr__enc { display: none; }
.ix-emr__enc.is-active { display: block; }

/* Clickable sidebar items */
.ix-emr__sidebar-item { cursor: pointer; transition: background 0.15s; }
.ix-emr__sidebar-item:hover { background: #F8FAFC; }

/* Clickable tabs */
.ix-emr__tab { cursor: pointer; transition: all 0.15s; }
.ix-emr__tab:hover { color: #3B82F6; }

/* Fade overlay + CTA — shimmer style */
.ix-emr__fade { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(transparent, #fff); pointer-events: none; z-index: 2; }
.ix-emr__cta { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; font-family: inherit; font-weight: 700; font-size: 0.9rem; color: #fff; text-decoration: none; border-radius: 10px; background: linear-gradient(135deg, #3B78ED 0%, #9065F0 50%, #3B78ED 100%); background-size: 200% 200%; animation: ix-shimmer 4.5s ease infinite; box-shadow: 0 4px 20px rgba(109,114,243,0.22); transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: hidden; }
.ix-emr__cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%); animation: ix-glint 6s ease-in-out infinite; }
.ix-emr__cta:hover { color: #fff; transform: translateX(-50%) translateY(-2px); box-shadow: 0 8px 32px rgba(109,114,243,0.32); }


/* ════════════════════════════════════════════════════
   FEATURES BAR
   ════════════════════════════════════════════════════ */
/* ── Free Account CTA ── */
.ix-free-cta {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    padding: 14px 0;
}
.ix-free-cta__inner { text-align: center; }
.ix-free-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.15s;
}
.ix-free-cta__link:hover { opacity: 0.88; color: #fff; }
.ix-free-cta__link i { font-size: 1.1rem; }
.ix-free-cta__text strong { font-weight: 800; }

@media (max-width: 600px) {
    .ix-free-cta { padding: 12px 0; }
    .ix-free-cta__link { font-size: 0.78rem; gap: 6px; }
}

.ix-features { padding: 20px 0; border-top: 1px solid var(--border-subtle); }
.ix-features__inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.ix-features__item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); }
.ix-features__item > i { font-size: 0.98rem; color: var(--ink-blue); }


/* ════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════ */
.ix-stats { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--arctic); padding: 28px 0; }
.ix-stats__inner { display: flex; align-items: center; justify-content: center; }
.ix-stats__item { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 0 16px; }
.ix-stats__val { font-size: 1.5rem; font-weight: 800; color: var(--midnight); line-height: 1.2; }
.ix-stats__lbl { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; line-height: 1.3; }
.ix-stats__div { width: 1px; height: 40px; background: var(--border-medium); flex-shrink: 0; }


/* ════════════════════════════════════════════════════
   LIMITATIONS NOTE
   ════════════════════════════════════════════════════ */
.ix-limitations { padding: 16px 0; background: #FFFBEB; border-bottom: 1px solid #FDE68A; }
.ix-limitations__text { font-size: 0.78rem; line-height: 1.6; color: #92400E; margin: 0; display: flex; align-items: flex-start; gap: 8px; }
.ix-limitations__text > i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }


/* ════════════════════════════════════════════════════
   CASES — Clean text list
   ════════════════════════════════════════════════════ */
.ix-cases__list { display: flex; flex-direction: column; gap: 32px; max-width: 680px; }
.ix-cases__item h3 { font-size: 1.1rem; font-weight: 700; color: var(--midnight); margin-bottom: 6px; line-height: 1.35; }
.ix-cases__item p { font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary); margin: 0; }


/* ════════════════════════════════════════════════════
   EVIDENCE-BASED LEARNING — Tabs + Carousels
   ════════════════════════════════════════════════════ */
.ix-evidence { background: var(--arctic, #F8FAFC); }

/* Tabs */
.ix-ev-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.ix-ev-tab { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--border-medium); background: #fff; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.ix-ev-tab i { font-size: 1rem; }
.ix-ev-tab__count { font-size: 0.72rem; font-weight: 700; background: rgba(0,0,0,0.04); padding: 2px 8px; border-radius: 999px; }
.ix-ev-tab.is-active { border-color: var(--ink-blue); background: rgba(37,99,235,0.04); color: var(--ink-blue); }
.ix-ev-tab.is-active .ix-ev-tab__count { background: rgba(37,99,235,0.1); color: var(--ink-blue); }

/* Panels */
.ix-ev-panel { display: none; }
.ix-ev-panel.is-active { display: block; }

/* Carousel */
.ix-ev-carousel__track { position: relative; min-height: 280px; }
.ix-ev-slide { display: none; animation: evFadeIn 0.3s ease; }
.ix-ev-slide.is-active { display: block; }
@keyframes evFadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.ix-ev-carousel__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.ix-ev-carousel__btn { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 18px; font-size: 0.88rem; font-weight: 600; color: var(--ink-blue); cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
.ix-ev-carousel__btn:hover:not(:disabled) { background: #EFF6FF; border-color: var(--ink-blue); }
.ix-ev-carousel__btn:disabled { color: var(--text-muted); cursor: default; opacity: 0.4; }
.ix-ev-carousel__ind { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); min-width: 60px; text-align: center; }

/* Guideline cards */
.ix-gl-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 28px; max-width: 700px; margin: 0 auto; }
.ix-gl-card__top { margin-bottom: 16px; }
.ix-gl-card__eyebrow { font-size: 0.72rem; font-weight: 700; color: var(--ink-blue); text-transform: uppercase; letter-spacing: 0.06em; }
.ix-gl-card__title { font-size: 1.1rem; font-weight: 700; color: var(--midnight); margin-top: 4px; }
.ix-gl-card__recs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ix-gl-rec { display: flex; gap: 10px; font-size: 0.85rem; line-height: 1.55; color: var(--text-secondary); }
.ix-gl-class { flex-shrink: 0; padding: 2px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; height: fit-content; margin-top: 2px; }
.ix-gl-class--strong { background: #dcfce7; color: #166534; }
.ix-gl-class--I { background: #dcfce7; color: #166534; }
.ix-gl-class--IIa { background: #fef3c7; color: #92400e; }
.ix-gl-class--III { background: #fef2f2; color: #991b1b; }
.ix-gl-card__cite { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* Score cards */
.ix-sc-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 28px; max-width: 700px; margin: 0 auto; }
.ix-sc-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.ix-sc-card__title { font-size: 1.1rem; font-weight: 700; color: var(--midnight); }
.ix-sc-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.ix-sc-badge--red { background: #fef2f2; color: #991b1b; }
.ix-sc-badge--amber { background: #fef3c7; color: #92400e; }
.ix-sc-badge--green { background: #dcfce7; color: #166534; }
.ix-sc-card__purpose { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.ix-sc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ix-sc-table th { text-align: left; font-weight: 700; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 2px solid #E2E8F0; }
.ix-sc-table td { padding: 8px 10px; border-bottom: 1px solid #F1F5F9; color: var(--text-secondary); }
.ix-sc-table td:last-child { text-align: center; font-weight: 700; width: 50px; }
.ix-sc-on { color: var(--ink-blue) !important; }
.ix-sc-off { color: #CBD5E1 !important; }

/* Trial cards */
.ix-tr-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 28px; max-width: 700px; margin: 0 auto; }
.ix-tr-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ix-tr-card__name { font-size: 1.1rem; font-weight: 700; color: var(--midnight); }
.ix-tr-year { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.ix-tr-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ix-tr-journal { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); font-style: italic; }
.ix-tr-verdict { padding: 2px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.ix-tr-verdict--positive { background: #dcfce7; color: #166534; }
.ix-tr-verdict--negative { background: #fef2f2; color: #991b1b; }
.ix-tr-verdict--neutral { background: #F1F5F9; color: #475569; }
.ix-tr-design { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; font-style: italic; }
.ix-tr-finding { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.ix-tr-impact { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.ix-tr-finding b, .ix-tr-impact b { color: var(--midnight); }


/* ════════════════════════════════════════════════════
   WIDGETS
   ════════════════════════════════════════════════════ */
.ix-widgets__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.ix-widgets__tab { padding: 10px 24px; border-radius: 10px; border: 1.5px solid var(--border-medium); background: #fff; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.ix-widgets__tab.is-active { border-color: var(--ink-blue); background: rgba(37,99,235,0.04); color: var(--ink-blue); }
.ix-widgets__panel { display: none; }
.ix-widgets__panel.is-active { display: block; }
.ix-widget-frame { max-width: 800px; margin: 0 auto; min-height: 200px; }


/* ════════════════════════════════════════════════════
   DDx SEARCH
   ════════════════════════════════════════════════════ */
.ix-ddx { background: var(--arctic, #F8FAFC); }
.ix-ddx__examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ix-ddx__card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 20px; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ix-ddx__card.is-visible { opacity: 1; transform: translateY(0); }
.ix-ddx__inputs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #F1F5F9; }
.ix-ddx__pill { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(37,99,235,0.06); color: var(--ink-blue); }
.ix-ddx__results { display: flex; flex-direction: column; gap: 0; }
.ix-ddx__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.03); font-size: 0.82rem; }
.ix-ddx__row:last-child { border-bottom: none; }
.ix-ddx__rank { width: 22px; height: 22px; border-radius: 50%; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #64748B; flex-shrink: 0; }
.ix-ddx__name { flex: 1; font-weight: 600; color: var(--midnight); }
.ix-ddx__match { padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; }
.ix-ddx__match--high { background: #dcfce7; color: #166534; }
.ix-ddx__match--med { background: #fef3c7; color: #92400e; }


/* ════════════════════════════════════════════════════
   LIBRARY PREVIEW
   ════════════════════════════════════════════════════ */
.ix-library__preview { max-width: 700px; margin: 0 auto; }
.ix-lib-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ix-lib-card.is-visible { opacity: 1; transform: translateY(0); }
.ix-lib-card__header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: default; }
.ix-lib-card__title { font-size: 1.05rem; font-weight: 700; color: var(--midnight); }
.ix-lib-card__meta { font-size: 0.75rem; color: var(--text-muted); }
.ix-lib-card__header > i { font-size: 1.2rem; color: var(--text-muted); transform: rotate(180deg); }
.ix-lib-card__body { padding: 0 24px 24px; }
.ix-lib-section { margin-bottom: 16px; }
.ix-lib-section:last-child { margin-bottom: 0; }
.ix-lib-section h5 { font-size: 0.82rem; font-weight: 700; color: var(--midnight); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ix-lib-section h5 i { color: var(--ink-blue); }
.ix-lib-section p { font-size: 0.85rem; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.ix-lib-widget-note { font-style: italic; color: var(--text-muted) !important; }
.ix-lib-features { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-lib-feat { padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; background: #F1F5F9; color: var(--text-secondary); }
.ix-lib-feat--classic { background: rgba(37,99,235,0.06); color: var(--ink-blue); border: 1px solid rgba(37,99,235,0.15); }


/* ════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════ */
.ix-final-cta { padding: 80px 0; background: var(--midnight); }
.ix-final-cta__inner { text-align: center; }
.ix-final-cta__h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ix-final-cta__sub { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 28px; }


/* ════════════════════════════════════════════════════
   STICKY MOBILE CTA
   ════════════════════════════════════════════════════ */
.ix-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border-subtle); transform: translateY(100%); transition: transform 0.3s ease; display: none; }
.ix-sticky-cta.is-visible { transform: translateY(0); }


/* ════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .ix-hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
    .ix-hero__sub { max-width: none; }
    .ix-hero__trust { justify-content: flex-start; }
    .ix-hero__mock { max-width: 600px; margin: 0 auto; }

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

    .ix-ev-tabs { flex-wrap: wrap; }
}


/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .ix-section { padding: 56px 0; }
    .ix-hero { padding: 80px 0 48px; }
    .ix-hero__h1 { font-size: 2rem; }
    .ix-hero__sub { font-size: 0.95rem; }
    .ix-section__h2 { font-size: 1.5rem; }

    /* EMR mock — simplify for mobile */
    .ix-emr__demo { font-size: 0.68rem; }
    .ix-emr__demo-lbl { font-size: 0.56rem; }
    .ix-emr__demo-sep { margin: 0 4px; }
    .ix-emr__progress { display: none; }
    .ix-emr__sidebar { display: none; }
    .ix-emr__image-sidebar { display: none; }
    .ix-emr__panel { height: 240px; }
    .ix-emr__tab { padding: 6px 8px; font-size: 0.65rem; }
    /* On mobile show all notes/encounters/images stacked since sidebar hidden */
    .ix-emr__note, .ix-emr__enc { display: block; margin-bottom: 12px; }
    .ix-emr__note:last-child, .ix-emr__enc:last-child { margin-bottom: 0; }
    .ix-emr__image-content { display: block; margin-bottom: 12px; }
    .ix-emr__image-content:last-child { margin-bottom: 0; }

    .ix-stats__inner { flex-wrap: wrap; gap: 8px; }
    .ix-stats__item { flex: 0 0 calc(33.33% - 8px); padding: 8px 4px; }
    .ix-stats__val { font-size: 1.1rem; }
    .ix-stats__lbl { font-size: 0.65rem; }
    .ix-stats__div { display: none; }

    .ix-ev-tabs { gap: 4px; }
    .ix-ev-tab { padding: 8px 12px; font-size: 0.78rem; }
    .ix-ev-tab__count { display: none; }
    .ix-ev-carousel__track { min-height: auto; }

    .ix-gl-card, .ix-sc-card, .ix-tr-card { padding: 20px; }

    .ix-widgets__tabs { flex-wrap: wrap; }
    .ix-widgets__tab { padding: 8px 16px; font-size: 0.78rem; }

    .ix-ddx__examples { grid-template-columns: 1fr; }

    .ix-final-cta { padding: 56px 0; }
    .ix-final-cta__h2 { font-size: 1.5rem; }

    .ix-features__inner { gap: 10px; }
    .ix-features { padding: 14px 0; }
    .ix-features__item { font-size: 0.58rem; }
    .ix-features__item > i { font-size: 0.78rem; }

    .ix-emr__cta { padding: 10px 22px; font-size: 0.8rem; white-space: nowrap; }

    .ix-sticky-cta { display: block; }
}

@media (max-width: 380px) {
    .ix-hero__h1 { font-size: 1.75rem; }
}
