/* BusinessDayBook public website. No build step: plain CSS, served from this site (CSP 'self'). */
:root {
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --bg: #ffffff;
    --soft: #f1f5f9;
    --brand: #0f4c81;
    --brand-ink: #ffffff;
    --accent: #0f766e;
    --accent-soft: #ccfbf1;
    --focus: #1d4ed8;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
    --max: 72rem;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --bg: #0b1120; --soft: #111827;
        --brand: #60a5fa; --brand-ink: #0b1120; --accent: #2dd4bf; --accent-soft: #134e4a; --focus: #93c5fd;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px }
img, svg { max-width: 100%; height: auto }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px }
.skip { position: absolute; left: -9999px; top: 0 }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10 }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5 }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em }
.logo img { width: 32px; height: 32px; border-radius: 7px }
.logo-text span { color: var(--brand); font-weight: 800 }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 2px }
.nav a:hover, .nav a[aria-current=page] { color: var(--ink) }
.nav a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--accent) }
.nav a.btn { color: #fff; padding: 8px 14px }
.nav a.btn:hover { color: #fff; opacity: .92 }
@media (prefers-color-scheme: dark) { .nav a.btn, .nav a.btn:hover { color: #0b1120 } }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0 }
@media (prefers-color-scheme: dark) { .btn { color: #0b1120 } }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line) }
.btn.small { padding: 8px 14px; font-size: .95rem }

/* Sections */
section { padding: 64px 0 }
section.soft { background: var(--soft) }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem) }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem) }
h3 { font-size: 1.2rem }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent) }
.center { text-align: center }
.center .lead { margin-left: auto; margin-right: auto }

.hero { padding: 72px 0 56px }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px }
.hero .note { color: var(--muted); font-size: .9rem; margin-top: 12px }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)) }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px }
.card p { color: var(--muted); margin: 0 }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; font-weight: 800 }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center }
.split.reverse > :first-child { order: 2 }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr } .split.reverse > :first-child { order: 0 } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0 }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0 }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800 }

figure { margin: 0 }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; text-align: center }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 32px }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); display: flex; flex-direction: column }
.plan.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow) }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 0 }
.plan .per { color: var(--muted); margin-bottom: 16px }
.plan .ticks { flex: 1 }
.plan .btn { text-align: center; margin-top: 20px }
.table { width: 100%; border-collapse: collapse; margin: 16px 0 }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top }
.table th { font-size: .9rem; color: var(--muted); font-weight: 600 }
.faq dt { font-weight: 700; margin-top: 18px }
.faq dd { margin: 4px 0 0; color: var(--muted) }

/* Legal pages */
.legal { max-width: 46rem }
.legal h2 { font-size: 1.4rem; margin-top: 2em }
.legal h3 { margin-top: 1.5em }
.legal p, .legal li { color: var(--ink) }
.legal .meta { color: var(--muted) }
.toc { background: var(--soft); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 }
.toc ol { margin: 0; padding-left: 20px }

/* CTA band + footer */
.cta { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 40px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between }
.cta h2 { margin: 0 }
.cta p { margin: 4px 0 0; opacity: .9 }
.cta .btn { background: #fff; color: #0f172a }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .92rem }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr }
.site-footer a { color: var(--muted) }
.site-footer ul { list-style: none; padding: 0; margin: 0 }
.site-footer li { margin: 6px 0 }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr } }

/* Mock-ups of the real screens */
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 12px; line-height: 1.3; color: #0f172a }
.mock * { color: inherit }
.mock-bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; align-items: center }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; display: block }
.mock-bar b { margin-left: 10px; font-weight: 500; color: #64748b; font-size: 11px }
.mock-body { background: #fff; padding: 12px }
.mock-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap }
.mock-tools span { border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 8px; background: #fff }
.mock-tools strong { margin-right: auto; font-size: 13px }
.diary { display: grid; grid-template-columns: 34px repeat(3, 1fr); border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden }
.diary .head { background: #f8fafc; padding: 6px; font-weight: 700; border-bottom: 1px solid #e2e8f0; border-left: 1px solid #e2e8f0 }
.diary .head small { display: block; font-weight: 400; color: #64748b }
.diary .times { position: relative; height: 288px }
.diary .times span { position: absolute; right: 4px; font-size: 10px; color: #94a3b8 }
.diary .col { position: relative; height: 288px; border-left: 1px solid #e2e8f0; background: repeating-linear-gradient(#fff 0 35px, #f1f5f9 35px 36px) }
.appt { position: absolute; left: 3px; right: 3px; border-radius: 4px; padding: 3px 5px; color: #fff !important; overflow: hidden; font-size: 10.5px }
.appt b { display: block; color: #fff }
.appt.blue { background: #2563eb } .appt.teal { background: #0d9488 } .appt.amber { background: #d97706 } .appt.violet { background: #7c3aed } .appt.done { opacity: .6 }
.closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, #fee2e2 0 6px, #fef2f2 6px 12px); color: #991b1b !important; font-size: 10px; padding: 3px 5px }
.now { position: absolute; left: 0; right: 0; border-top: 2px solid #dc2626 }

.phone { width: 260px; margin: 0 auto; border: 10px solid #0f172a; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: #f6f7f9; color: #111827; font-size: 12px }
.phone .top { background: #0f4c81; color: #fff !important; padding: 14px 14px 12px; font-weight: 700 }
.phone .screen { padding: 12px }
.phone .card-m { background: #fff; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px }
.phone h4 { margin: 0 0 4px; font-size: 15px }
.phone p { margin: 0 0 8px; color: #4b5563 !important }
.phone .day { font-weight: 700; margin: 10px 0 6px }
.phone .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px }
.phone .slots span { border: 2px solid #d1d5db; border-radius: 6px; text-align: center; padding: 6px 0; font-weight: 700 }
.phone .slots span.on { border-color: #0f4c81; background: #eff6ff }
.phone .go { display: block; background: #0f766e; color: #fff !important; text-align: center; border-radius: 8px; padding: 9px; margin-top: 12px; font-weight: 700 }

.mock table { width: 100%; border-collapse: collapse }
.mock th, .mock td { text-align: left; padding: 6px; border-bottom: 1px solid #e2e8f0 }
.mock th { color: #64748b; font-weight: 600 }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 600 }
.badge.due { background: #fef3c7; color: #92400e !important } .badge.booked { background: #dbeafe; color: #1e40af !important } .badge.ok { background: #dcfce7; color: #166534 !important }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px }
.stat div { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px }
.stat small { color: #64748b; display: block }
.stat strong { font-size: 18px }

/* Booking flow on a phone: months, calendar, times */
.phone .months { display: grid; gap: 6px }
.phone .months span { border: 2px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-weight: 700 }
.phone .months span small { display: block; font-weight: 400; color: #6b7280 !important }
.phone .months span.on { border-color: #0f4c81; background: #eff6ff }
.phone .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px }
.phone .cal b { color: #6b7280 !important; font-weight: 600 }
.phone .cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; color: #9ca3af !important }
.phone .cal span.free { border: 2px solid #0f4c81; color: #111827 !important; font-weight: 700 }
.phone .cal span.on { background: #0f4c81; color: #fff !important }
.phone .steps-m { color: #6b7280 !important; font-size: 10.5px; margin-bottom: 6px }
.phones { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; align-items: start }
.phones figure .phone { width: 240px }

/* Staff screens: tabs, fields, stepper, groups */
.mock .tabs { display: flex; gap: 14px; border-bottom: 1px solid #e2e8f0; margin: 10px 0; color: #64748b }
.mock .tabs span { padding-bottom: 6px }
.mock .tabs span.on { color: #0f4c81; border-bottom: 2px solid #0f4c81; font-weight: 600 }
.mock .who { display: flex; gap: 10px; align-items: center }
.mock .who .av { width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: #1e40af !important; display: grid; place-items: center; font-weight: 700 }
.mock .who strong { font-size: 14px; display: block }
.mock .who small { color: #64748b }
.mock .chip { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; margin: 6px 6px 0 0 }
.mock .chip.alert { background: #fee2e2; color: #991b1b !important }
.mock .chip.info { background: #e0f2fe; color: #075985 !important }
.mock .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; margin-top: 4px }
.mock .facts small { display: block; color: #64748b }
.mock .field { margin-bottom: 8px }
.mock .field small { display: block; color: #64748b; margin-bottom: 3px }
.mock .field div { border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 8px; background: #fff }
.mock .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.mock .stepper { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap }
.mock .stepper span { flex: 1; min-width: 70px; border-top: 3px solid #e2e8f0; padding-top: 4px; color: #94a3b8; font-size: 10.5px }
.mock .stepper span.done { border-color: #0f766e; color: #0f766e !important }
.mock .stepper span.on { border-color: #0f4c81; color: #0f4c81 !important; font-weight: 700 }
.mock .btns { display: flex; justify-content: space-between; margin-top: 10px }
.mock .btns span { border-radius: 6px; padding: 5px 12px; border: 1px solid #cbd5e1 }
.mock .btns span.primary { background: #0f4c81; color: #fff !important; border-color: #0f4c81 }
.mock .swatches { display: flex; gap: 8px; align-items: center }
.mock .swatches i { width: 22px; height: 22px; border-radius: 6px; display: inline-block; border: 1px solid #e2e8f0 }
.mock .groups { display: grid; gap: 8px }
.mock .groups div { border-radius: 8px; padding: 8px 10px; border: 1px solid #e2e8f0 }
.mock .groups b { display: block; margin-bottom: 2px }
.mock .groups .del { background: #fef2f2 } .mock .groups .anon { background: #fffbeb } .mock .groups .keep { background: #f0fdf4 }
.mock .groups small { color: #475569 }

/* An email, as the patient sees it */
.email { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; color: #111827; max-width: 30rem; margin: 0 auto }
.email * { color: inherit }
.email .meta { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; font-size: 12px; color: #6b7280 !important }
.email .meta b { color: #111827 !important }
.email .brand { background: #0f4c81; color: #fff !important; padding: 14px; font-weight: 700 }
.email .body { padding: 16px }
.email .body p { margin: 0 0 10px }
.email .when { background: #f3f4f6; border-radius: 8px; padding: 10px 12px; margin: 10px 0 }
.email .btn-m { display: inline-block; background: #0f766e; color: #fff !important; border-radius: 6px; padding: 7px 12px; font-weight: 700; margin-right: 6px }
.email .attach { font-size: 11px; color: #6b7280 !important; margin-top: 10px }

/* Numbered steps and a day's timeline */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)) }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 24px; position: relative }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px }
.steps li h3 { margin-bottom: .3em }
.steps li p { color: var(--muted); margin: 0 }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 3px solid var(--line) }
.timeline li { position: relative; padding: 0 0 22px 24px }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg) }
.timeline time { font-weight: 800; color: var(--accent); display: block }
.timeline p { margin: 2px 0 0; color: var(--muted) }
.faq-group { margin-top: 40px }
.faq-group h2 { font-size: 1.4rem }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px }
.pill-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: .95rem }
.pill-nav a:hover { border-color: var(--accent) }

/* Long pages: browsers skip laying out sections far below the screen until they're scrolled near. */
main > section + section { content-visibility: auto; contain-intrinsic-size: auto 640px }
/* On phones the wrapped header is tall: let it scroll away instead of covering the page. */
@media (max-width: 700px) { .site-header { position: static } }
