/* ─────────────────────────────────────────────────────────────────────
   MedQuePMS — SEO landing-page stylesheet (static pages in public/).
   Mirrors the SPA landing design system (Manrope, ink palette, brand
   blue/cyan, soft card shadows) so /clinic-management-software/ etc.
   feel like the same site as / — without pulling in Tailwind or React.
   Dark mode: follows the OS by default; a tiny inline script on each
   page also honours the app's persisted choice via [data-theme].
   ───────────────────────────────────────────────────────────────────── */

:root {
  --ink-900: #0B1220; --ink-800: #0F172A; --ink-700: #1E293B;
  --ink-600: #334155; --ink-500: #475569; --ink-400: #64748B;
  --ink-300: #94A3B8; --ink-200: #CBD5E1; --ink-100: #E2E8F0; --ink-50: #F1F5F9;
  --blue: #2563EB; --blue-bright: #3B82F6; --cyan: #06B6D4;
  --bg: #F8FAFC; --surface: #FFFFFF; --surface-2: #F1F5F9;
  --text: #0F172A; --muted: #475569; --faint: #64748B; --line: #E2E8F0;
  --chip-bg: #EFF6FF; --chip-ink: #1D4ED8;
  --ok: #059669;
  --shadow-card: 0 1px 0 rgba(15,23,42,.04), 0 8px 32px -12px rgba(15,23,42,.12);
  --shadow-float: 0 30px 60px -25px rgba(15,23,42,.35);
  --maxw: 1120px;
  --f-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --surface: #101A2C; --surface-2: #0E1727;
    --text: #E9EFF7; --muted: #A6B4C8; --faint: #8494AB; --line: #22324A;
    --blue: #3B82F6; --blue-bright: #60A5FA; --cyan: #22D3EE;
    --chip-bg: #0C2233; --chip-ink: #7DD3FC;
    --ok: #34D399;
    --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-float: 0 30px 60px -25px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --surface: #101A2C; --surface-2: #0E1727;
  --text: #E9EFF7; --muted: #A6B4C8; --faint: #8494AB; --line: #22324A;
  --blue: #3B82F6; --blue-bright: #60A5FA; --cyan: #22D3EE;
  --chip-bg: #0C2233; --chip-ink: #7DD3FC;
  --ok: #34D399;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-float: 0 30px 60px -25px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.lp-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .q { color: var(--blue); }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.lp-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
@media (max-width: 760px) { .lp-nav .opt { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(37,99,235,.55); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.crumbs { padding: 18px 0 0; font-size: 13.5px; color: var(--faint); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-300); }
.crumbs a { color: var(--faint); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 48px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); max-width: 21ch; }
.hero .lede { margin-top: 18px; font-size: clamp(16.5px, 2vw, 19px); color: var(--muted); max-width: 62ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero .cta-note { font-size: 13px; color: var(--faint); margin-top: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.proof .p { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.proof .p b { color: var(--text); font-weight: 800; }

/* ── Sections ───────────────────────────────────────────────────────── */
.lp-section { padding: 44px 0; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-section h2 { font-size: clamp(23px, 3.2vw, 31px); max-width: 30ch; }
.lp-section .sub { margin-top: 12px; color: var(--muted); max-width: 68ch; font-size: 16px; }
.lp-section h3 { font-size: 18px; letter-spacing: -.015em; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--chip-ink); background: var(--chip-bg); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }

/* Checklist */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 28px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.checks li b { font-weight: 750; }
.checks li .d { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); counter-increment: step; }
.step::before { content: "0" counter(step); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.step h3 { margin-top: 8px; font-size: 16.5px; }
.step p { margin-top: 6px; font-size: 13.8px; color: var(--muted); }

/* Prose block for longer explanatory copy */
.prose { margin-top: 22px; max-width: 76ch; }
.prose p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.prose p b, .prose p strong { color: var(--text); }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); font-size: 15.5px; }
.prose li { margin-bottom: 6px; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--surface); font-size: 14.2px; }
table.cmp th, table.cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--surface-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th { font-weight: 700; width: 30%; }
table.cmp td .d { color: var(--muted); font-size: 13px; }
.footnote { margin-top: 14px; font-size: 12.8px; color: var(--faint); max-width: 78ch; }

/* FAQ */
.faq { margin-top: 26px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 16px 20px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.6px; max-width: 72ch; }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; color: var(--text); box-shadow: var(--shadow-card); }
.related a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.related a span { display: block; font-weight: 500; font-size: 12.8px; color: var(--faint); margin-top: 3px; }

/* CTA band */
.cta-band { margin: 48px 0 56px; border-radius: 20px; padding: 36px 32px; background: linear-gradient(135deg, #1D4ED8, var(--blue-bright)); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-float); }
.cta-band h2 { color: #fff; font-size: clamp(21px, 3vw, 27px); max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 14.5px; margin-top: 8px; max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn-white { background: #fff; color: #1D4ED8; }
.cta-band .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.lp-footer { background: var(--ink-900); color: rgba(255,255,255,.75); font-size: 14px; }
.lp-footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 44px 0 8px; }
.lp-footer h4 { color: #67E8F9; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp-footer a { color: rgba(255,255,255,.75); }
.lp-footer a:hover { color: #fff; }
.lp-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding: 20px 0 36px; font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 640px) {
  .hero { padding: 30px 0 38px; }
  .lp-section { padding: 36px 0; }
  .cta-band { padding: 28px 22px; }
}
