/* Dictum site — same theme family as the original My Radiology Report site:
   Bootstrap-4-era palette (#007bff primary on #eff3f9, dark navy #010326 secondary),
   Source Sans Pro body + Montserrat display, gradient hero, 1rem-radius cards. */

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap");

:root {
    --primary: #007bff;
    --primary-hi: #248dfe;
    --primary-lo: #0069d9;
    --secondary: #010326;
    --secondary-hi: #252746;
    --body-bg: #eff3f9;
    --card-bg: #ffffff;
    --well-bg: #edf2f7;
    --text: #718096;
    --heading: #2d3748;
    --light: #e2e8f0;
    --field-red: #b22222;
    /* firebrick — the app's actual field color */
    --radius: 1rem;
    --font-body: "Source Sans Pro", -apple-system, "Segoe UI", sans-serif;
    --font-display: "Montserrat", var(--font-body);
    --font-mono: Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.15;
    margin: 0 0 .75rem;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 4.5rem 0; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    border-radius: .5rem;
    padding: .8rem 1.6rem;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--primary-hi), var(--primary));
    box-shadow: 0 6px 18px rgba(0, 123, 255, .35);
}

.btn-primary:hover { background: linear-gradient(180deg, var(--primary-hi), var(--primary-lo)); }

.btn-xl { font-size: 1.25rem; padding: 1rem 2.4rem; }

.btn-light-solid {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 6px 18px rgba(1, 3, 38, .25);
}

.btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .65);
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ------------------------------ Hero ------------------------------ */
.bg-gradient-primary {
    background: linear-gradient(180deg, var(--primary-hi), var(--primary)) repeat-x;
    color: #fff;
}

#hero { padding-bottom: 4.5rem; }

.hero-nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand img { filter: brightness(0) invert(1); }

.nav-download {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, .5);
    padding-bottom: 2px;
}

.nav-download:hover { border-color: #fff; }

/* Desktop-first hero: copy left, live demo right (windows stacked, sync flows down) */
.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-demo .demo-grid {
    grid-template-columns: 1fr;
    gap: .35rem;
}

.hero-demo .sync-badge {
    color: #fff;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .15rem 0;
}

.hero-demo .sync-arrows { transform: rotate(90deg); font-size: 1.6rem; animation: sync-pulse 1.5s ease-in-out infinite; }

.hero-demo .demo-body { min-height: 8rem; font-size: .82rem; padding: .8rem 1rem; }

.hero-demo .ps1-report-body { min-height: 8rem; font-size: .8rem; }

.hero-demo .ps1-fieldlist { font-size: .58rem; line-height: 1.7; }

.hero-demo .voice-bubble { margin-bottom: .8rem; font-size: .88rem; min-height: 2.1rem; }

.hero-demo .demo-caption { color: rgba(255, 255, 255, .85); margin-top: .9rem; font-size: .76rem; }

.hero-demo .demo-label { padding: .45rem 1rem .6rem; font-size: .74rem; }

@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 1rem;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(180deg, #fff, #cfe7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .92);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 1.75rem 0 .75rem;
    flex-wrap: wrap;
}

.hero-fineprint { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* --- editor mock: the app's bracketed-field report, in CSS --- */
.editor-mock {
    background: #f3edde;
    /* the app's actual warm editor color */
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(1, 3, 38, .35);
    overflow: hidden;
    transform: rotate(1.2deg);
}

.editor-titlebar {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #e8e1d1;
    padding: .6rem .9rem;
    font-family: var(--font-body);
    font-size: .78rem;
    color: #5a4a3a;
}

.editor-titlebar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d3c8b0;
}

.editor-title { margin-left: .35rem; font-weight: 600; }

.mic-chip {
    margin-left: auto;
    background: #c0392b;
    color: #fff;
    border-radius: 999px;
    padding: .15rem .6rem;
    font-weight: 700;
    font-size: .72rem;
    animation: mic-pulse 1.6s ease-in-out infinite;
}

@keyframes mic-pulse {
    50% { opacity: .55; }
}

.editor-body {
    padding: 1.1rem 1.3rem 1.3rem;
    font-family: var(--font-mono);
    font-size: .88rem;
    line-height: 1.75;
    color: #2b2b2b;
}

.editor-body p { margin: 0 0 .3rem; }

.field { color: var(--field-red); font-weight: 600; }

.field.filled { color: #1a1a1a; }

.field.filled::before,
.field.filled::after { color: var(--field-red); }

.field.filled::before { content: "["; }

.field.filled::after { content: "]"; }

.editor-cue {
    margin-top: .9rem;
    padding-top: .7rem;
    border-top: 1px dashed #d3c8b0;
    font-family: var(--font-body);
    font-size: .82rem;
    color: #8a7a64;
}

.editor-cue .say { font-weight: 700; color: #5a4a3a; }

/* ------------------------------ Sections ------------------------------ */
.section-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 0 0 .5rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 3rem;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pain-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 30px rgba(45, 55, 72, .08);
    border-top: 4px solid var(--primary);
}

.pain-quote {
    font-style: italic;
    color: var(--heading);
    font-size: 1.02rem;
    margin: 0 0 1rem;
    min-height: 3.2em;
}

.pain-card h3 { font-size: 1.15rem; font-weight: 700; }

.pain-card p:last-child { margin-bottom: 0; font-size: .97rem; }

.secondary-row { margin-top: 1.5rem; }

.mini-card {
    background: var(--well-bg);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
}

.mini-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }

.mini-card p { margin: 0; font-size: .92rem; }

/* ------------------------------ Live-sync demo ------------------------------ */
.bg-white-section { background: #fff; }

.demo-lede {
    text-align: center;
    max-width: 44rem;
    margin: -1.5rem auto 2rem;
}

.voice-bubble {
    max-width: 40rem;
    margin: 0 auto 1.4rem;
    background: var(--secondary);
    color: #fff;
    border-radius: 999px;
    padding: .5rem 1.2rem;
    font-size: .95rem;
    text-align: center;
    min-height: 2.4rem;
}

.voice-mic { margin-right: .4rem; }

.demo-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.demo-pane {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(45, 55, 72, .14);
    display: flex;
    flex-direction: column;
}

/* --- miniature PowerScribe One window --- */
.ps1-window {
    background: #fff;
    border: 1px solid #b9bfc9;
    font-family: "Segoe UI", -apple-system, Arial, sans-serif;
}

.ps1-titlebar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    font-size: .78rem;
    color: #1a1a1a;
    background: #fff;
    border-bottom: 1px solid #e3e6eb;
}

.ps1-logo {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2fa3e0, #0f5f96);
}

.ps1-winbtns { margin-left: auto; display: flex; gap: .85rem; color: #555; font-size: .7rem; }

.ps1-menubar {
    padding: .28rem .7rem;
    font-size: .72rem;
    color: #333;
    border-bottom: 1px solid #e3e6eb;
}

.ps1-toolbar {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .3rem .7rem;
    font-size: .7rem;
    color: #444;
    background: #f8f9fb;
    border-bottom: 1px solid #e3e6eb;
    white-space: nowrap;
    overflow: hidden;
}

.ps1-sep { width: 1px; height: 14px; background: #d5d9e0; }

.ps1-clock { margin-left: auto; color: #888; }

.ps1-main { display: flex; flex: 1; min-height: 0; }

.ps1-sidebar {
    width: 118px;
    flex: none;
    border-right: 1px solid #e3e6eb;
    background: #fafbfc;
    overflow: hidden;
}

.ps1-sidebar-head {
    font-size: .74rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: .35rem .55rem;
    background: #eef1f5;
    border-bottom: 1px solid #e3e6eb;
}

.ps1-fieldlist {
    font-size: .62rem;
    line-height: 1.75;
    color: #555;
    padding: .35rem .55rem;
    white-space: nowrap;
}

.ps1-report { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.ps1-report-head {
    background: #5a5a5a;
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    padding: .3rem .7rem;
}

.ps1-report-body {
    padding: .8rem .9rem;
    font-size: .84rem;
    line-height: 1.5;
    min-height: 12.5rem;
    flex: 1;
}

.ps1-report-body p { margin: 0 0 .65rem; }

.ps1-statusbar {
    font-size: .66rem;
    color: #666;
    padding: .25rem .7rem;
    background: #f1f3f6;
    border-top: 1px solid #e3e6eb;
}

/* --- shared demo report content: blue labels, firebrick fields --- */
.d-lbl, .d-plbl { color: #2e75b6; }

.d-plbl { color: #1a1a1a; font-weight: 600; }

.d-heading { text-transform: uppercase; }

.d-fld { color: var(--field-red); }

.d-val { color: #1a1a1a; }

.d-br { color: var(--field-red); font-weight: 600; }

.d-sel { background: #bcd6f7; border-radius: 2px; }

.plugin-pane { background: #f3edde; }

.demo-body {
    font-family: var(--font-mono);
    font-size: .9rem;
    line-height: 1.7;
    color: #2b2b2b;
    padding: 1rem 1.2rem;
    min-height: 9.5rem;
    flex: 1;
}

.demo-body.warm { background: #f3edde; }

.demo-body p { margin: 0 0 .65rem; }

.caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #2b2b2b;
    vertical-align: text-bottom;
    animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.demo-label {
    font-size: .8rem;
    padding: .6rem 1.2rem .8rem;
    color: var(--text);
    border-top: 1px dashed var(--light);
}

.plugin-pane .demo-label { border-top-color: #d3c8b0; color: #8a7a64; }

.sync-badge {
    align-self: center;
    text-align: center;
    color: var(--primary);
}

.sync-arrows { font-size: 2rem; line-height: 1; display: block; animation: sync-pulse 1.5s ease-in-out infinite; }

@keyframes sync-pulse { 50% { opacity: .45; } }

.sync-text {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.demo-caption {
    text-align: center;
    font-size: .82rem;
    margin-top: 1.6rem;
    color: var(--text);
}

/* ------------------------------ Trust strip ------------------------------ */
.bg-gradient-dark {
    background: linear-gradient(180deg, var(--secondary-hi), var(--secondary)) repeat-x;
    color: rgba(255, 255, 255, .85);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.trust-item p { margin: 0; font-size: .98rem; }

.trust-item strong { color: #fff; }

.trust-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-hi);
    margin-bottom: .5rem;
}

/* ------------------------------ Download ------------------------------ */
.download-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(45, 55, 72, .12);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    padding: 2.6rem;
    align-items: center;
}

.download-copy h2 { font-size: 1.9rem; font-weight: 800; }

.dl-meta { color: var(--heading); font-weight: 600; margin: 0 0 1.4rem; }

.dl-hash {
    margin: 1rem 0 0;
    font-size: .78rem;
    word-break: break-all;
}

.dl-hash code { font-family: var(--font-mono); color: var(--heading); }

.dl-note {
    font-size: .88rem;
    background: var(--well-bg);
    border-radius: .6rem;
    padding: .8rem 1rem;
    margin-top: 1.2rem;
}

.install-steps {
    margin: 0;
    padding-left: 1.4rem;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
}

.install-steps li::marker {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
}

.install-steps strong { color: var(--heading); }

.install-steps code, kbd {
    font-family: var(--font-mono);
    background: var(--well-bg);
    border-radius: .3rem;
    padding: .05rem .35rem;
    font-size: .9em;
    color: var(--heading);
}

kbd { border: 1px solid var(--light); border-bottom-width: 2px; }

/* ------------------------------ Footer ------------------------------ */
footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, .55);
    padding: 2.2rem 0;
    font-size: .85rem;
}

.footer-inner p {
    margin: 0 0 .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-inner img { filter: brightness(0) invert(.7); }

.footer-small { display: block; font-size: .78rem; line-height: 1.5; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 900px) {
    .demo-grid { grid-template-columns: 1fr; }

    .sync-badge { transform: rotate(90deg); padding: .2rem 0; }

    .editor-mock { transform: none; max-width: 34rem; }

    .card-row, .trust-grid { grid-template-columns: 1fr; }

    .download-card { grid-template-columns: 1fr; padding: 1.8rem; }

    .pain-quote { min-height: 0; }
}
