@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --mp-bg: #f8fafc;
    --mp-surface: #ffffff;
    --mp-panel: #f1f5f9;
    --mp-primary: #0d9488;
    --mp-primary-hover: #0f766e;
    --mp-secondary: #0ea5e9;
    --mp-accent: #10b981;
    --mp-text-primary: #0f172a;
    --mp-text-secondary: #475569;
    --mp-text-muted: #94a3b8;
    --mp-border: #e2e8f0;
    --mp-shadow: rgba(15, 23, 42, 0.04);
    --mp-shadow-lg: rgba(15, 23, 42, 0.08);
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--mp-bg);
    color: var(--mp-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .coverTitle h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--mp-text-primary);
    letter-spacing: -0.02em;
}

/* Link Styling */
a {
    color: var(--mp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mp-primary-hover);
    text-decoration: underline;
}

/* Navbar Overrides */
.navbar.bg-primary {
    background: #1e293b !important;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1.5rem;
}

.navbar .btn-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
}

.navbar .btn-light:hover {
    background-color: #ffffff !important;
    color: var(--mp-text-primary) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.navbar .btn-outline-light {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-width: 1.5px !important;
}

/* Cards System */
.card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px var(--mp-shadow), 0 2px 4px -2px var(--mp-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 20px -3px var(--mp-shadow-lg), 0 4px 8px -4px var(--mp-shadow-lg) !important;
    transform: translateY(-2px);
}

/* Buttons System */
.btn {
    border-radius: 10px !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.925rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary {
    background-color: var(--mp-primary) !important;
    border-color: var(--mp-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--mp-primary-hover) !important;
    border-color: var(--mp-primary-hover) !important;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3) !important;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--mp-accent) !important;
    border-color: var(--mp-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover, .btn-success:focus {
    background-color: #059669 !important;
    border-color: #059669 !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 1.5px solid var(--mp-border) !important;
    color: var(--mp-text-secondary) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: var(--mp-panel) !important;
    color: var(--mp-text-primary) !important;
    border-color: var(--mp-text-secondary) !important;
}

/* Forms Styling */
.form-control, .form-select {
    border-radius: 10px !important;
    border: 1.5px solid var(--mp-border) !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
    background-color: var(--mp-surface) !important;
    color: var(--mp-text-primary) !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--mp-primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12) !important;
    outline: none !important;
}

.form-control[readonly] {
    background-color: var(--mp-panel) !important;
    border-color: var(--mp-border) !important;
    color: var(--mp-text-secondary) !important;
    cursor: not-allowed;
}

.form-label {
    font-weight: 600 !important;
    color: var(--mp-text-secondary) !important;
    font-size: 0.825rem !important;
    margin-bottom: 0.4rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Table Design */
.table {
    background-color: var(--mp-surface) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid var(--mp-border) !important;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px var(--mp-shadow) !important;
}

.table th {
    background-color: var(--mp-panel) !important;
    color: var(--mp-text-primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.725rem !important;
    letter-spacing: 0.075em !important;
    padding: 1.1rem 1.25rem !important;
    border-bottom: 2px solid var(--mp-border) !important;
}

.table td {
    padding: 1.1rem 1.25rem !important;
    vertical-align: middle !important;
    color: var(--mp-text-secondary) !important;
    border-bottom: 1px solid var(--mp-border) !important;
    font-size: 0.925rem;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.02) !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 10px !important;
    color: var(--mp-text-secondary) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.25rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.925rem;
}

.nav-pills .nav-link.active {
    background-color: var(--mp-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15) !important;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: var(--mp-panel) !important;
    color: var(--mp-text-primary) !important;
}

/* Stepper Wizard Styles */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    background: var(--mp-surface);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--mp-border);
    box-shadow: 0 4px 6px -1px var(--mp-shadow);
}

.stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    height: 4px;
    width: 84%;
    background-color: var(--mp-border);
    z-index: 1;
    transform: translateY(-50%);
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    cursor: pointer;
}

.stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--mp-surface);
    border: 3.5px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--mp-text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
}

.stepper-step.active .stepper-circle {
    border-color: var(--mp-primary);
    background-color: var(--mp-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.15);
}

.stepper-step.completed .stepper-circle {
    border-color: var(--mp-accent);
    background-color: var(--mp-accent);
    color: #ffffff;
}

.stepper-label {
    margin-top: 10px;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--mp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-label {
    color: var(--mp-primary);
}

.stepper-step.completed .stepper-label {
    color: var(--mp-accent);
}

/* Quick-insert pill button styles */
.btn-insert-pill {
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    background-color: var(--mp-panel) !important;
    color: var(--mp-text-secondary) !important;
    border: 1px solid var(--mp-border) !important;
    border-radius: 20px !important;
    padding: 0.4rem 0.9rem !important;
    margin: 0.25rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.btn-insert-pill:hover {
    background-color: var(--mp-primary) !important;
    color: #ffffff !important;
    border-color: var(--mp-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(13, 148, 136, 0.15);
}

/* Autocomplete styles */
.ui-autocomplete {
    position: absolute;
    z-index: 1100;
    cursor: default;
    padding: 0.5rem 0;
    margin-top: 4px;
    list-style: none;
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
}

.ui-menu-item-wrapper {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ui-menu-item-wrapper:hover, .ui-state-active {
    background-color: var(--mp-panel) !important;
    color: var(--mp-primary) !important;
    border: none !important;
    margin: 0 !important;
}

/* Glassmorphism Panel (mainly used in Login and Alert Overlays) */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* Diagnostic Consoles (Radiology DICOM viewers) */
.dicom-workstation {
    background-color: #0b0f19 !important;
    color: #e2e8f0;
}

.dicom-workstation h1,
.dicom-workstation h2,
.dicom-workstation h3,
.dicom-workstation h4,
.dicom-workstation h5,
.dicom-workstation h6 {
    color: #ffffff;
}

.dicom-workstation .container-fluid.bg-primary {
    background: #0f172a !important;
    border-bottom: 1.5px solid #1e293b !important;
}

.dicom-workstation select.form-select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

.dicom-workstation select.form-select:focus {
    border-color: var(--mp-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25) !important;
}

.dicom-workstation .layerGroup {
    background-color: #020617;
    border: 1.5px solid #1e293b;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.dicom-workstation p, .dicom-workstation small {
    color: #94a3b8;
}

.dicom-workstation strong, .dicom-workstation .fw-bold {
    color: #f1f5f9;
}

.dicom-workstation #printButton {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1.5px solid #334155 !important;
    box-shadow: none !important;
}

.dicom-workstation #printButton:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
}

/* Pulse Keyframes */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulsing-upgrade-btn {
    animation: pulse 2.2s infinite !important;
    border: none !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

@keyframes micPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.pulsing-mic {
    animation: micPulse 1.4s infinite !important;
}

/* Legacy pageCover classes (fallback support) */
.pageCover {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #1e1b4b; /* Deep Indigo for premium login backgrounds */
}

.pageCover img {
    height: 170vh;
    width: 170vw;
    object-fit: contain;
    position: relative;
    left: -10%;
    bottom: 30%;
    z-index: -1;
    transform: rotate(-60deg);
    animation: rotate 150s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(-60deg); }
    100% { transform: rotate(300deg); }
}

/* MedPrax commercial experience: marketing and authentication */
.marketing-page,
.auth-page {
    --ink: #102a43;
    --ink-deep: #071d2b;
    --paper: #f5f8fa;
    --white: #ffffff;
    --teal: #087e8b;
    --teal-dark: #056672;
    --teal-soft: #dff3f2;
    --amber: #f2a65a;
    --line: #dbe5ea;
    --muted: #627987;
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    margin: 0;
}

.marketing-page h1, .marketing-page h2, .marketing-page h3,
.auth-page h1, .auth-page h2 {
    font-family: 'Manrope', sans-serif;
    color: inherit;
}

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-160%); background: #fff; color: #102a43; border: 2px solid #087e8b; border-radius: 6px; padding: 9px 13px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.anchor-section { scroll-margin-top: 28px; }
.marketing-page :is(a, button, input, select):focus-visible,
.auth-page :is(a, button, input, select):focus-visible,
.app-page :is(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(8,126,139,.35) !important; outline-offset: 3px; }

.marketing-page .btn,
.auth-page .btn {
    font-family: 'DM Sans', sans-serif;
    border-radius: 9px !important;
    box-shadow: none !important;
    letter-spacing: -0.01em;
}

.marketing-page .btn-primary,
.auth-page .btn-primary {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
}

.marketing-page .btn-primary:hover,
.auth-page .btn-primary:hover {
    background: var(--teal-dark) !important;
    border-color: var(--teal-dark) !important;
}

.marketing-nav {
    max-width: 1240px;
    height: 78px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup, .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 700;
}

.brand-lockup:hover, .auth-brand:hover { text-decoration: none; color: var(--ink); }
.brand-product { padding-left: 10px; border-left: 1px solid #b8c9d1; font-size: 14px; }
.marketing-nav nav { display: flex; gap: 32px; }
.marketing-nav nav a, .nav-signin { color: #47616e; font-weight: 600; font-size: 14px; }
.marketing-nav nav a:hover, .nav-signin:hover { color: var(--teal); text-decoration: none; }
.marketing-nav-actions { display: flex; align-items: center; gap: 20px; }
.marketing-nav .btn { padding: 10px 18px !important; }

.hero-section {
    max-width: 1240px;
    min-height: 670px;
    margin: 0 auto;
    padding: 76px 28px 90px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 68px;
}

.eyebrow { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 24px; height: 2px; background: currentColor; }
.eyebrow.light { color: #83d8d3; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.03; letter-spacing: -.055em; margin: 20px 0 25px; font-weight: 800; }
.hero-copy h1 em { color: var(--teal); font-style: normal; }
.hero-lead { font-size: 19px; line-height: 1.65; max-width: 590px; color: #546e7a; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-actions .btn { padding: 15px 22px !important; font-size: 16px !important; }
.text-link { color: var(--ink); font-weight: 700; border-bottom: 1px solid #9db0ba; padding-bottom: 3px; }
.text-link:hover { color: var(--teal); text-decoration: none; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 38px; color: #718692; font-size: 12px; }
.hero-proof span { padding: 0 17px; border-right: 1px solid var(--line); }
.hero-proof span:first-child { padding-left: 0; }
.hero-proof span:last-child { border: 0; }
.hero-proof b { display: block; color: var(--ink); font-size: 13px; }

.report-workbench { background: #fff; border: 1px solid #cfdce3; border-radius: 18px; box-shadow: 0 28px 70px rgba(30, 67, 84, .16); overflow: hidden; transform: rotate(1deg); }
.workbench-topbar { height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.workbench-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; display: inline-grid; place-items: center; color: white; background: var(--teal); font-family: 'Manrope', sans-serif; font-weight: 800; }
.draft-status { font-size: 11px; color: #6a818c; }
.draft-status i { display: inline-block; width: 7px; height: 7px; background: #31a67d; border-radius: 50%; margin-right: 5px; }
.case-rail { background: #f8fafb; padding: 18px 26px 22px; display: flex; align-items: flex-start; }
.rail-step { display: grid; justify-items: center; gap: 5px; color: #91a2aa; min-width: 48px; }
.rail-step span { width: 27px; height: 27px; border: 1px solid #c8d5db; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #fff; }
.rail-step small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rail-step.complete { color: #298978; }
.rail-step.complete span { background: #298978; color: white; border-color: #298978; }
.rail-step.active { color: var(--teal); }
.rail-step.active span { color: var(--teal); border: 2px solid var(--teal); box-shadow: 0 0 0 4px #dff3f2; }
.rail-line { flex: 1; height: 1px; background: #cbd7dc; margin-top: 13px; }
.rail-line.complete { background: #54aa9b; }
.workbench-body { padding: 24px 28px 26px; }
.workbench-label { color: #6e818a; font-size: 9px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.template-select { border: 1px solid #c9d7de; border-radius: 9px; display: flex; align-items: center; gap: 12px; padding: 12px; }
.template-select div { flex: 1; }
.template-select b, .template-select small { display: block; }
.template-select b { font-size: 13px; }
.template-select small { color: #71858f; font-size: 10px; margin-top: 2px; }
.scope-icon { width: 33px; height: 33px; border-radius: 7px; background: var(--teal-soft); position: relative; }
.scope-icon::after { content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid var(--teal); border-radius: 50%; top: 6px; left: 7px; }
.split-label { display: flex; justify-content: space-between; margin-top: 21px; }
.split-label small { letter-spacing: 0; text-transform: none; font-weight: 500; }
.image-slots { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.image-slots > div { height: 102px; border-radius: 8px; }
.scope-image { position: relative; overflow: hidden; background: radial-gradient(circle at 48% 45%, #eeaa75 0 8%, #bd6444 9% 19%, #6f2221 35%, #20121a 75%); border: 2px solid white; box-shadow: 0 0 0 2px var(--teal); }
.scope-image::after { content: ''; position: absolute; inset: 11px 24px; border: 1px solid rgba(255,255,255,.4); border-radius: 45% 55% 52% 48%; transform: rotate(-18deg); }
.scope-image small { position: absolute; z-index: 2; left: 7px; bottom: 6px; background: rgba(10,23,31,.75); color: white; padding: 2px 5px; border-radius: 3px; font-size: 8px; }
.upload-slot { border: 1px dashed #b8c8d0; background: #f8fafb; display: grid; place-content: center; text-align: center; color: #82959e; }
.upload-slot span { font-size: 20px; }
.upload-slot small { font-size: 9px; }
.workbench-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; color: #71838c; font-size: 10px; }
.workbench-footer button { border: 0; background: var(--teal); color: white; border-radius: 6px; padding: 9px 13px; font-size: 10px; font-weight: 700; }

.trust-strip { background: var(--ink-deep); color: #d2e1e6; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 28px; font-size: 13px; font-weight: 600; }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
.workflow-section, .features-section { max-width: 1184px; margin: 0 auto; padding: 110px 28px; }
.workflow-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.section-intro h2, .feature-heading h2 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.08; margin: 18px 0 22px; }
.section-intro p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 440px; }
.workflow-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.workflow-list article:last-child { border-bottom: 1px solid var(--line); }
.workflow-list article > span { color: var(--teal); font-family: 'Manrope'; font-weight: 800; font-size: 13px; }
.workflow-list h3 { font-size: 19px; margin: 0 0 7px; }
.workflow-list p { margin: 0; color: var(--muted); line-height: 1.55; }
.features-section { padding-top: 50px; }
.feature-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; margin-bottom: 45px; }
.feature-heading h2 { margin-top: -9px; max-width: 700px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 30px; min-height: 235px; }
.feature-wide { grid-column: span 2; }
.feature-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.feature-card h3 { font-size: 20px; margin: 22px 0 10px; }
.feature-card p { color: var(--muted); line-height: 1.55; }
.finding-demo { display: flex; align-items: center; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.finding-demo > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
.finding-demo button { border: 1px solid #bbd7d7; background: #f4fbfa; color: #287775; font-size: 10px; border-radius: 14px; padding: 6px 9px; }

.pricing-section { background: var(--ink-deep); color: white; padding: 110px max(28px, calc((100vw - 1184px)/2)); display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: center; }
.pricing-copy h2 { color: white; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; margin: 20px 0; }
.pricing-copy p { color: #a9c0c9; font-size: 17px; line-height: 1.7; }
.price-cards { display: grid; grid-template-columns: 1fr 1.07fr; gap: 14px; align-items: center; }
.price-card { background: #f5f8fa; color: var(--ink); border-radius: 14px; padding: 30px; position: relative; }
.price-card.premium { background: white; border: 2px solid #4db8ae; padding: 38px 32px; }
.popular-label { position: absolute; top: -13px; left: 24px; background: var(--amber); color: #372311; border-radius: 4px; padding: 6px 10px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.plan-name { font-weight: 700; color: var(--teal); }
.price-card h3 { font-size: 42px; margin: 12px 0 0; letter-spacing: -.04em; }
.price-card small { color: var(--muted); }
.price-card ul { list-style: none; padding: 22px 0; margin: 20px 0 5px; border-top: 1px solid var(--line); }
.price-card li { margin: 11px 0; font-size: 13px; }
.price-card li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 9px; }
.price-card .btn { width: 100%; padding: 12px !important; border: 1px solid #c5d4da; }
.final-cta { max-width: 1184px; margin: 0 auto; padding: 95px 28px; display: flex; justify-content: space-between; align-items: center; }
.final-cta h2 { font-size: clamp(34px, 4vw, 50px); letter-spacing: -.045em; margin: 14px 0 0; }
.final-cta .btn { padding: 15px 23px !important; }
.marketing-footer { max-width: 1184px; margin: 0 auto; padding: 35px 28px 50px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.marketing-footer p { margin: 0; }
.marketing-footer > div:last-of-type { display: flex; gap: 20px; }
.marketing-footer a { color: var(--ink); }
.marketing-footer small { grid-column: 1 / -1; }

/* Authentication */
.auth-page { min-height: 100vh; background: var(--ink-deep); position: relative; }
.auth-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, black, transparent 70%); }
.auth-brand { position: absolute; top: 28px; left: 36px; z-index: 2; color: white; }
.auth-brand:hover { color: white; }
.auth-brand img { filter: brightness(0) invert(1); }
.auth-brand span { border-left: 1px solid rgba(255,255,255,.35); padding-left: 10px; font-size: 13px; }
.signup-layout, .login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(520px, .83fr); }
.signup-context, .login-context { padding: 145px 9vw 80px; color: white; align-self: center; }
.signup-context h1, .login-context h1 { color: white; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.08; letter-spacing: -.045em; margin: 20px 0 22px; }
.signup-context > p, .login-context > p { color: #a9c0c9; max-width: 520px; font-size: 17px; line-height: 1.7; }
.signup-benefits { list-style: none; padding: 0; margin: 42px 0 32px; max-width: 520px; }
.signup-benefits li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.signup-benefits li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.signup-benefits li > span { width: 28px; height: 28px; border: 1px solid #4da9a3; border-radius: 50%; display: grid; place-items: center; color: #83d8d3; font-weight: 700; font-size: 12px; }
.signup-benefits b, .signup-benefits small { display: block; }
.signup-benefits small { color: #8ea8b3; margin-top: 3px; }
.signup-assurance { display: flex; align-items: flex-start; gap: 12px; background: rgba(40,132,131,.15); border: 1px solid rgba(88,181,175,.25); border-radius: 10px; padding: 14px 16px; max-width: 520px; }
.signup-assurance > span { color: #79d5ca; }
.signup-assurance p { margin: 0; color: #a9c0c9; font-size: 13px; }
.signup-assurance b { color: white; }
.auth-panel { background: #f7fafb; padding: 74px clamp(36px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.auth-panel-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.auth-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.auth-panel a { color: var(--teal); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; color: #3e5662; font-weight: 700; font-size: 12px; margin-bottom: 7px; }
.auth-field input, .auth-field select { display: block; width: 100%; height: 48px; border: 1px solid #c8d6dc; border-radius: 8px; background: white; color: var(--ink); padding: 0 13px; font-family: inherit; font-size: 14px; outline: none; }
.auth-field input:focus-visible, .auth-field select:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,126,139,.11); }
.field-label-row { display: flex; justify-content: space-between; align-items: center; }
.field-label-row small { color: #80939c; font-size: 11px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 60px; }
.show-password, .forgot-link { border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; }
.show-password { position: absolute; right: 11px; top: 15px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: #657b86; font-size: 12px; margin: 2px 0 18px; }
.consent-row input { margin-top: 2px; accent-color: var(--teal); }
.auth-error, .auth-success { min-height: 0; font-size: 12px; margin-bottom: 12px; padding: 0; }
.auth-error:not(:empty), .auth-success:not(:empty) { padding: 10px 12px; border-radius: 7px; }
.auth-error:not(:empty) { color: #9e3d32; background: #fdecea; }
.auth-success:not(:empty) { color: #1b6c54; background: #e1f5ed; }
.auth-submit { width: 100%; height: 50px; display: flex !important; align-items: center; justify-content: space-between; padding: 0 17px !important; }
.auth-submit:disabled { opacity: .7; }
.button-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: auth-spin .7s linear infinite; display: inline-block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-footnote { color: #7b8e97; text-align: center; font-size: 11px; margin: 14px 0 0; }
.login-panel { padding-left: clamp(45px, 8vw, 120px); padding-right: clamp(45px, 8vw, 120px); }
.auth-divider { height: 1px; background: var(--line); margin: 28px 0; position: relative; }
.auth-divider span { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #f7fafb; color: #91a1a8; padding: 0 10px; font-size: 11px; }
.auth-secondary { width: 100%; height: 48px; display: grid !important; place-items: center; border: 1px solid #c8d6dc !important; color: var(--ink) !important; background: white !important; }
.mini-report-card { margin-top: 45px; width: min(500px, 100%); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); border-radius: 14px; padding: 22px; }
.mini-report-card > div:first-child { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; }
.mini-report-card > div:first-child small { grid-column: 2; color: #8faab5; margin-top: -8px; font-size: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.mini-stats span { padding: 17px 10px; border-right: 1px solid rgba(255,255,255,.1); }
.mini-stats span:last-child { border: 0; }
.mini-stats b, .mini-stats small { display: block; }
.mini-stats b { font-size: 22px; }
.mini-stats small { color: #89a2ad; }
.mini-case { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.mini-case > i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.mini-case span { flex: 1; }
.mini-case b, .mini-case small { display: block; }
.mini-case small { color: #8ea7b1; }
.mini-case em { font-style: normal; color: #7cd2c9; }
.auth-legal { position: absolute; bottom: 24px; left: 36px; display: flex; gap: 28px; color: #718e99; font-size: 11px; }
.auth-legal div { display: flex; gap: 16px; }
.auth-legal a { color: #8aa5b0; }

@media (max-width: 960px) {
    .marketing-nav nav { display: none; }
    .hero-section { grid-template-columns: 1fr; padding-top: 45px; }
    .report-workbench { max-width: 650px; transform: none; }
    .workflow-section, .pricing-section { grid-template-columns: 1fr; gap: 50px; }
    .feature-heading { grid-template-columns: 1fr; gap: 20px; }
    .signup-layout, .login-layout { grid-template-columns: 1fr; }
    .signup-context, .login-context { padding: 130px 8vw 65px; }
    .auth-panel { padding: 65px 8vw; }
    .auth-legal { display: none; }
}

@media (max-width: 700px) {
    .marketing-nav { padding: 0 18px; }
    .marketing-nav-actions .nav-signin, .brand-product { display: none; }
    .hero-section { padding: 45px 20px 65px; gap: 45px; }
    .hero-copy h1 { font-size: 42px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .hero-actions .text-link { align-self: flex-start; }
    .hero-proof { gap: 14px; }
    .hero-proof span { border: 0; padding: 0; width: 45%; }
    .report-workbench { margin: 0 -6px; }
    .case-rail { padding-left: 12px; padding-right: 12px; }
    .rail-step small { display: none; }
    .workbench-body { padding: 20px; }
    .image-slots { grid-template-columns: 1.3fr 1fr; }
    .image-slots > div:last-child { display: none; }
    .trust-strip { justify-content: flex-start; overflow: hidden; padding: 0 20px; white-space: nowrap; }
    .workflow-section, .features-section { padding: 75px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-wide { grid-column: auto; }
    .pricing-section { padding: 75px 20px; }
    .price-cards { grid-template-columns: 1fr; gap: 24px; }
    .final-cta { padding: 70px 20px; align-items: flex-start; flex-direction: column; gap: 30px; }
    .marketing-footer { margin: 0 20px; padding-left: 0; padding-right: 0; grid-template-columns: 1fr; }
    .marketing-footer > div:last-of-type { flex-wrap: wrap; }
    .signup-context, .login-context { padding: 120px 22px 55px; }
    .auth-brand { left: 22px; }
    .auth-panel { padding: 55px 22px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Authenticated clinical workspace */
.app-page {
    --app-ink: #102a43;
    --app-teal: #087e8b;
    --app-teal-dark: #056672;
    --app-canvas: #f4f7f9;
    --app-line: #dbe5ea;
    --app-muted: #647b87;
    background: var(--app-canvas);
    color: var(--app-ink);
    font-family: 'Inter', sans-serif;
}

.app-page .pulsing-upgrade-btn { animation: none !important; background: transparent !important; border: 1px solid rgba(255,255,255,.3) !important; box-shadow: none !important; }
.app-topbar.navbar.bg-primary { min-height: 68px; background: #0b2636 !important; padding-top: 7px; padding-bottom: 7px; box-shadow: 0 4px 18px rgba(16,42,67,.11); }
.app-workspace { max-width: 1160px; }
.plan-usage-bar { background: #e7f4f3; border: 1px solid #bfddda; border-radius: 10px; padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 4px 0 28px; }
.plan-usage-copy, .plan-usage-action { display: flex; align-items: center; gap: 13px; }
.plan-chip { color: #166b68; background: #c8e6e2; border-radius: 4px; padding: 5px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.plan-usage-copy b, .plan-usage-copy small { display: block; }
.plan-usage-copy b { font-size: 13px; }
.plan-usage-copy small { color: #667f88; font-size: 11px; margin-top: 1px; }
.usage-track { width: 150px; height: 5px; border-radius: 5px; background: #c4deda; overflow: hidden; }
.usage-track span { display: block; height: 100%; background: var(--app-teal); border-radius: inherit; }
.plan-usage-action button { border: 0; background: transparent; color: var(--app-teal-dark); font-weight: 700; font-size: 12px; white-space: nowrap; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.workspace-kicker { color: var(--app-teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 7px; }
.workspace-heading h1, .reports-heading h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 31px; letter-spacing: -.035em; margin: 0; }
.workspace-heading p, .reports-heading p { color: var(--app-muted); margin: 7px 0 0; font-size: 14px; }
.workspace-history-link { color: #496673; border: 1px solid var(--app-line); background: white; padding: 9px 13px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.workspace-history-link:hover { text-decoration: none; color: var(--app-teal); border-color: #a7cccb; }
.app-page .stepper { border-radius: 12px; padding: 18px 28px; margin-bottom: 24px !important; box-shadow: none; }
.app-page .stepper-circle { width: 35px; height: 35px; font-size: 12px; border-width: 2px; }
.app-page .stepper-label { font-size: 10px; text-transform: none; letter-spacing: 0; }
.app-page .stepper::before { height: 2px; }
.app-page .step-container > .card { border-radius: 12px !important; box-shadow: none !important; padding: 30px !important; }
.app-page .step-container > .card:hover { transform: none; }
.app-page .step-container h4.text-success { color: var(--app-ink) !important; font-size: 19px; }
.app-page .step-container .btn-success { background: var(--app-teal) !important; border-color: var(--app-teal) !important; box-shadow: none !important; }
.app-page .step-container .btn-success:hover { background: var(--app-teal-dark) !important; }
.app-page .step-container .form-label { color: #506a76 !important; text-transform: none; letter-spacing: 0; font-size: 12px !important; }
.app-page .step-container .form-control, .app-page .step-container .form-select { border-radius: 8px !important; font-size: 14px !important; }

.reports-topbar { height: 68px; padding: 0 max(24px, calc((100vw - 1160px)/2)); background: #fff; border-bottom: 1px solid var(--app-line); display: flex; align-items: center; }
.reports-brand { display: flex; align-items: center; gap: 9px; color: var(--app-ink); font-size: 12px; font-weight: 700; }
.reports-brand span { padding-left: 9px; border-left: 1px solid #bfccd2; }
.reports-brand:hover { text-decoration: none; }
.reports-nav-links { display: flex; height: 100%; margin-left: 55px; gap: 30px; }
.reports-nav-links a { color: #607783; height: 100%; display: flex; align-items: center; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.reports-nav-links a:hover, .reports-nav-links a.active { color: var(--app-teal); border-color: var(--app-teal); text-decoration: none; }
.reports-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.upgrade-link { border: 0; background: transparent; color: var(--app-teal); font-size: 12px; font-weight: 700; }
.avatar-link { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #163d50; font-size: 12px; font-weight: 800; }
.avatar-link:hover { color: white; text-decoration: none; }
.reports-workspace { max-width: 1160px; padding-top: 42px; padding-bottom: 70px; }
.reports-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 29px; }
.reports-heading .btn { padding: 11px 17px !important; box-shadow: none !important; }
.report-created-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -8px 0 24px; padding: 12px 15px; border: 1px solid #b9ddd3; border-radius: 9px; background: #e8f6f1; color: #286b59; font-size: 13px; }
.report-created-notice[hidden] { display: none; }
.report-created-notice i { margin-right: 8px; }
.report-created-notice button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #52766c; font-size: 20px; line-height: 1; }
.report-created-notice button:hover { background: rgba(40,107,89,.09); }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--app-line); background: #fff; border-radius: 11px; margin-bottom: 30px; }
.report-summary article { padding: 20px 24px; border-right: 1px solid var(--app-line); }
.report-summary article:last-child { border: 0; }
.report-summary span, .report-summary b, .report-summary small { display: block; }
.report-summary span { color: #6c818b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.report-summary b { font-family: 'Plus Jakarta Sans'; color: var(--app-ink); font-size: 26px; margin: 7px 0 3px; }
.report-summary b em { color: #8599a2; font-size: 14px; font-style: normal; font-weight: 600; }
.report-summary small { color: #7c9099; font-size: 11px; }
.reports-page .nav-pills { background: #e9eef1; padding: 4px; border-radius: 8px; width: max-content; }
.reports-page .nav-pills .nav-link { border-radius: 6px !important; padding: 7px 13px !important; font-size: 12px; }
.reports-page .nav-pills .nav-link.active { background: white !important; color: var(--app-ink) !important; box-shadow: 0 1px 3px rgba(20,54,70,.1) !important; }
.reports-page .table { box-shadow: none !important; border-radius: 10px !important; }
.reports-page .table th { background: #f5f8f9 !important; color: #59707b !important; padding: 13px 16px !important; font-size: 10px !important; }
.reports-page .table td { padding: 13px 16px !important; font-size: 13px; }
.reports-page .table form { display: inline; }
.reports-page .table .btn-light { padding: 7px 10px !important; border: 1px solid var(--app-line); }

@media (max-width: 780px) {
    .plan-usage-bar, .workspace-heading, .reports-heading { align-items: flex-start; flex-direction: column; }
    .plan-usage-action { width: 100%; }
    .usage-track { flex: 1; }
    .workspace-history-link, .reports-heading .btn { margin-top: 15px; }
    .app-page .stepper { padding: 15px 10px; }
    .app-page .stepper-label { font-size: 8px; }
    .app-page .step-container > .card { padding: 20px !important; }
    .reports-topbar { padding: 0 16px; }
    .reports-nav-links { display: none; }
    .reports-nav-actions { gap: 8px; }
    .report-summary { grid-template-columns: 1fr; }
    .report-summary article { border-right: 0; border-bottom: 1px solid var(--app-line); }
    .reports-workspace { padding-left: 16px; padding-right: 16px; }
    .reports-page .table { min-width: 760px; }
    .reports-page .tab-pane { overflow-x: auto; }
}
