/* ============================================================
   Medical Workspace — landing page
   Shares the design tokens of styles.css (the workspace) so the
   two pages feel like one product, but stays self-contained so a
   change in the app's layout can't break the marketing page.
   ============================================================ */

:root {
    --bg: #eef3f4;
    --surface: #ffffff;
    --surface-soft: #f5f9f9;
    --surface-soft-2: #eef4f4;
    --border: #e6edf0;
    --border-strong: #d6e0e4;
    --text: #16232e;
    --muted: #5b6875;
    --muted-soft: #8a97a3;
    --primary: #0f766e;
    --primary-2: #0d9488;
    --primary-dark: #0b5e57;
    --primary-soft: #e7f5f3;
    --primary-border: #bfe3dd;
    --success: #157347;
    --success-bg: #e9f7ef;
    --success-border: #bfe6cf;
    --warning: #9a6700;
    --warning-bg: #fff6e5;
    --warning-border: #f3ddab;
    --danger: #b42318;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 12px 30px rgba(15, 118, 110, 0.06);
    --shadow-lg: 0 6px 16px rgba(16, 24, 40, 0.08), 0 20px 44px rgba(15, 118, 110, 0.10);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(13, 148, 136, 0.08), transparent 60%),
        radial-gradient(800px 400px at -10% 30%, rgba(13, 148, 136, 0.05), transparent 60%),
        linear-gradient(180deg, #f7fbfb 0%, var(--bg) 100%);
    min-height: 100vh;
    line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }
svg { display: inline-block; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons (same look as the workspace) ---------- */

.btn {
    height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }

.btn--primary {
    background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 148, 136, 0.32); }

.btn--outline {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
    box-shadow: var(--shadow-sm);
}
.btn--outline:hover { background: var(--primary-soft); transform: translateY(-1px); }

.btn--light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

/* ---------- Brand ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 15.5px;
    letter-spacing: -0.01em;
}
.brand__mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--primary-2), var(--primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 700;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}
.brand__mark--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; box-shadow: none; }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--primary-dark); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; overflow: hidden; }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}
.eyebrow .ic { width: 15px; height: 15px; }

.hero h1 {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--primary-2), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    margin-top: 20px;
    font-size: 17px;
    color: var(--muted);
    max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__facts {
    list-style: none;
    margin: 36px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border-strong);
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); line-height: 1; }
.hero__facts span { font-size: 12.5px; color: var(--muted); }

/* --- hero illustration: two stacked mock result cards --- */

.hero__visual { position: relative; min-height: 440px; }

.mock {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    font-size: 13px;
}
.mock--rx { top: 0; left: 0; right: 56px; z-index: 2; }
.mock--speech { right: 0; bottom: 0; width: 66%; z-index: 3; }

.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-soft);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; }
.pill--ok { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.pill--warn { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }

.mock__med {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    margin-bottom: 8px;
}
.mock__med:last-child { margin-bottom: 0; }
.mock__med--review { background: var(--warning-bg); border-color: var(--warning-border); }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mock__name { font-weight: 700; font-size: 14px; }
.mock__unclear { color: var(--danger); font-weight: 900; }
.mock__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mock__meta span:last-child { color: var(--text); text-align: right; }
.mock__meta em { color: var(--muted-soft); font-style: italic; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11.5px; }

.rec-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: var(--danger);
    font-variant-numeric: tabular-nums;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.mock__wave { display: flex; align-items: center; gap: 3px; height: 34px; margin: 6px 0 12px; }
.mock__wave i {
    flex: 1; display: block; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-2), var(--primary-dark));
    height: 30%;
    animation: wave 1.6s ease-in-out infinite;
}
.mock__wave i:nth-child(3n) { animation-delay: -0.3s; }
.mock__wave i:nth-child(3n+1) { animation-delay: -0.8s; }
.mock__wave i:nth-child(5n) { animation-delay: -1.1s; }
.mock__wave i:nth-child(7n) { animation-delay: -0.5s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }

.mock__line { padding: 6px 0; border-top: 1px solid var(--border); color: var(--text); line-height: 1.45; }
.mock__line b { color: var(--muted-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.mock__line--fact { color: var(--primary-dark); font-weight: 600; }

/* ---------- Trust strip ---------- */

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.6); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 20px; }
.strip__item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.strip__item .ic { color: var(--primary); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--soft { background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(231, 245, 243, 0.55)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { max-width: 640px; margin-bottom: 40px; }
.kicker {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section__head p { margin-top: 14px; font-size: 16px; color: var(--muted); }

/* --- tools --- */

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 30px 32px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool__icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: var(--primary-soft); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.tool__icon svg { width: 24px; height: 24px; }
.tool__icon--alt { background: linear-gradient(140deg, var(--primary-2), var(--primary-dark)); color: #fff; }
.tool h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.tool > p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.tool .btn { align-self: flex-start; margin-top: auto; }

.checks { list-style: none; margin: 20px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.checks li::before {
    content: "";
    position: absolute; left: 0; top: 3px;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157347' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* --- steps --- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 24px 24px;
    box-shadow: var(--shadow-sm);
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(140deg, var(--primary-2), var(--primary-dark));
    color: #fff; font-weight: 800; font-size: 15px;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25);
}
.step h3 { font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* --- principles --- */

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle {
    padding: 24px 26px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-2);
    box-shadow: var(--shadow-sm);
}
.principle h3 { font-size: 17px; font-weight: 800; }
.principle p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */

.cta { padding: 0 0 80px; }
.cta__inner {
    background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 44px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    box-shadow: 0 20px 44px rgba(15, 118, 110, 0.28);
    max-width: calc(var(--wrap) - 40px);
}
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin-top: 8px; opacity: 0.9; font-size: 15px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.6); padding: 26px 0; }
.foot__inner { display: flex; align-items: center; gap: 24px; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.foot__note { flex: 1; color: var(--muted-soft); font-size: 12.5px; }
.foot__link { color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.foot__link:hover { color: var(--primary-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero { padding: 48px 0 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
    .mock { position: static; width: auto; }
    .mock--rx { right: auto; }
    .mock--speech { width: auto; }
    .strip__inner { grid-template-columns: repeat(2, 1fr); }
    .tools { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .cta__inner { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .nav__links { display: none; }
    .hero__actions .btn { width: 100%; }
    .strip__inner { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
    .principles { grid-template-columns: 1fr; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { width: 100%; }
    .cta__inner { max-width: none; border-radius: 18px; }
    .foot__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rec-dot, .mock__wave i { animation: none; }
    .mock__wave i { height: 55%; }
    .btn, .tool { transition: none; }
}
