/* Help Center Doctor marketing site. No external resources. */
:root {
  --blue: #1f73b7;
  --blue-dark: #144a75;
  --blue-light: #edf7ff;
  --blue-border: #adcce4;
  --text: #2f3941;
  --muted: #68737d;
  --border: #d8dcde;
  --bg: #ffffff;
  --bg-alt: #f8f9f9;
  --bg-dark: #1c2a36;
  --green: #038153;
  --green-light: #edf8f4;
  --yellow-text: #703b15;
  --yellow-light: #fff8ed;
  --yellow-border: #f5d7a6;
  --red: #cc3340;
  --red-light: #fff0f1;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(47, 57, 65, 0.08), 0 8px 24px rgba(47, 57, 65, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
code, kbd { font-family: var(--mono); font-size: 0.92em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: 0.05em 0.35em; }
pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; overflow-x: auto; }
pre code { border: 0; background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
strong { font-weight: 600; }
small, .small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: #49545c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue-dark); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: saturate(160%) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--bg-alt); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-light); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 20px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { display: block; padding: 10px 12px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.3; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--bg-dark); color: #e9eef2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #9fd0f5; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #c2ccd6; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-dark .eyebrow { color: #9fd0f5; }

/* Hero */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .promise { display: inline-block; background: #fff; border: 1px solid var(--blue-border); color: var(--blue-dark); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.hero .lead { margin-bottom: 24px; }
.hero .fineprint { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.hero-shot img { border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%); }
.page-hero p { max-width: 720px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 28px 0; }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

/* Cards and grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.feature-card { display: flex; flex-direction: column; }
.feature-card .shot { margin: -22px -22px 18px; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-alt); }
.feature-card .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.feature-card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
.shot-frame { border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.shot-frame img { width: 100%; }

/* Feature sections on the features page */
.feature-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--border); }
.feature-block:first-of-type { border-top: 0; }
.feature-block.reverse .feature-text { order: 2; }
@media (max-width: 860px) { .feature-block { grid-template-columns: 1fr; gap: 24px; } .feature-block.reverse .feature-text { order: 0; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { position: relative; padding: 22px 22px 22px 70px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--green); font-weight: 600; }
td .no { color: var(--muted); }
table caption { text-align: left; padding: 10px 14px; font-weight: 600; caption-side: top; }

/* Badges and callouts */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
.badge-critical { background: var(--red-light); color: var(--red); border-color: #f0b5ba; }
.badge-warning { background: var(--yellow-light); color: var(--yellow-text); border-color: var(--yellow-border); }
.badge-info { background: var(--blue-light); color: var(--blue-dark); border-color: var(--blue-border); }
.badge-pro { background: #eef0f6; color: #3a3f6b; border-color: #c9cee6; }
.badge-soon { background: var(--bg-alt); color: var(--muted); border-color: var(--border); }
.callout { border: 1px solid var(--blue-border); background: var(--blue-light); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.2em; }
.callout-warning { border-color: var(--yellow-border); background: var(--yellow-light); }
.callout-success { border-color: #b7dfcc; background: var(--green-light); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 4px; }

/* Rules list */
.rules-group { margin-bottom: 28px; }
.rules-group h3 { display: flex; align-items: center; gap: 10px; }
.rules-group h3 .count { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.rules { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rules li { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; background: #fff; }
.rules li:last-child { border-bottom: 0; }
.rules .rule-title { font-weight: 600; }
.rules .rule-why { grid-column: 1 / -1; color: var(--muted); font-size: 0.92rem; }
.rules .rule-tags { display: flex; gap: 6px; }

/* Pricing */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.plan .price { font-size: 2.2rem; font-weight: 700; margin: 6px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--green-light); border: 1px solid #b7dfcc; }
.plan li.no::before { background: var(--bg-alt); border-color: var(--border); }
.plan li.no { color: var(--muted); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 0 64px; }
.docs-side { position: sticky; top: 84px; align-self: start; }
.docs-side h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; }
.docs-side h2:first-child { margin-top: 0; }
.docs-side ul { list-style: none; padding: 0; margin: 0; }
.docs-side li { margin: 0; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.docs-side a:hover { background: var(--bg-alt); }
.docs-side a[aria-current="page"] { background: var(--blue-light); color: var(--blue-dark); font-weight: 600; }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; gap: 24px; } .docs-side { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; } }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 2em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border: 1px solid var(--border); border-radius: var(--radius); margin: 1em 0; }
.prose table { font-size: 0.92rem; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.toc { border: 1px solid var(--border); background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px 14px 34px; margin: 0 0 1.5em; }
.toc li { margin-bottom: 4px; }

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* CTA band */
.cta-band { background: var(--blue-dark); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6f3; max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--blue-light); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #9fd0f5; }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band .btn-group { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 28px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr repeat(3, 1fr); }
.footer-grid .brand { margin-bottom: 10px; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; font-size: 0.85rem; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Changelog */
.release { border-left: 3px solid var(--blue); padding-left: 18px; margin-bottom: 32px; }
.release h2 { margin-bottom: 4px; }

/* Compare */
.compare th:first-child { min-width: 180px; }
.compare td.ours { background: var(--blue-light); }
.compare th.ours { background: #dcefff; }

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 32px; }
  .btn { width: 100%; }
  .btn-group .btn { width: 100%; }
  .card, .plan { padding: 18px; }
  .feature-card .shot { margin: -18px -18px 14px; }
}

/* Stats, quotes, checklists (SEO and compare pages) */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0 0 1.5em; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--blue-dark); line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.quote { border-left: 3px solid var(--blue-border); padding: 4px 0 4px 16px; color: #49545c; margin: 0 0 1em; }
.quote cite { display: block; font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-light); border: 1px solid #b7dfcc; }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 0.3em; margin-top: 4px; width: 6px; height: 3px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan h3 .badge { margin-left: 8px; }
.notfound { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.notfound .container { max-width: 560px; }
.section-head .btn-group { margin-top: 12px; }
