/* Dr Monitor marketing site (C3). One stylesheet, self-hosted fonts. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --tint: #eef1ea;
  --ink: #0d1726;
  --ink-2: #24314a;
  --muted: #5c6675;
  --line: #dfe4da;
  --accent: #14713a;
  --accent-bright: #16a34a;
  --accent-soft: #e7f4ea;
  --navy: #0b1424;
  --navy-2: #101d33;
  --on-dark: #e8edf6;
  --on-dark-muted: #b7c4d8;
  --on-dark-faint: #8093ad;
  --green-on-dark: #6ee7a0;
  --radius: 14px;
  --shadow: 0 22px 55px rgba(13, 23, 38, 0.14);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -999px; top: 10px; z-index: 100;
  background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; }

.icon { width: 22px; height: 22px; }

/* ---- header -------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 244, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 680; font-size: 1.08rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand-dot { color: var(--accent); }
.mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--navy); border-radius: 9px; color: var(--green-on-dark);
}
.mark .icon { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); }
.nav .btn-green { color: #06210f; }
.nav .btn-green:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.62rem 1.05rem; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 0.94rem; font-weight: 620; text-decoration: none;
  color: var(--ink); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--accent-bright); color: #06210f; }
.btn-green:hover { background: #15803d; color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: #c7d0c1; }
.btn-lg { padding: 0.82rem 1.3rem; font-size: 1rem; }
.btn-small { padding: 0.42rem 0.8rem; font-size: 0.88rem; }

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(22, 163, 74, 0.16), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--navy);
  background-size: auto, 56px 56px, 56px 56px, auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px;
  align-items: center; padding: 72px 0 56px;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 14px; color: var(--accent);
}
.hero .eyebrow, .band .eyebrow, .page-hero .eyebrow { color: var(--green-on-dark); }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); margin: 0 0 22px; letter-spacing: -0.035em; }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 46rem; margin: 0 0 30px; }
.hero .lede, .page-hero .lede { color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.38); }
.hero-note { margin: 20px 0 0; font-size: 0.86rem; color: var(--on-dark-faint); }
.hero-shot { margin: 0; background: #fff; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-shot img { display: block; width: 100%; border-radius: 8px; }
.hero-shot figcaption { color: #667085; font-size: 0.78rem; padding: 8px 4px 2px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 26px 24px 36px;
}
.stats strong { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.stats span { font-size: 0.84rem; color: var(--on-dark-faint); }

/* ---- sections ----------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); margin: 0 0 12px; }
.section-lede { color: var(--muted); margin: 0; }
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.story-copy p { color: var(--ink-2); margin: 0 0 18px; }
.pull {
  border-left: 3px solid var(--accent-bright); padding-left: 18px;
  font-size: 1.16rem; font-weight: 560; color: var(--ink) !important; margin-top: 26px !important;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(13, 23, 38, 0.09); border-color: #c8d2c0; }
.card-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
}
.card h3 { margin: 16px 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-more { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step-n { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { margin: 10px 0 8px; font-size: 1.16rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.updates-page { grid-template-columns: repeat(2, 1fr); }
.update {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.update-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.tag {
  background: var(--accent-soft); color: var(--accent); border-radius: 999px;
  padding: 2px 9px; font-weight: 650; font-size: 0.76rem; letter-spacing: 0.02em;
}
.update h3 { margin: 12px 0 8px; font-size: 1.06rem; }
.update p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.price-card-hot { border-color: #b8d9c2; background: linear-gradient(180deg, #f3fbf5, #fff); }
.price-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.price { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink-2); }
.price strong { display: block; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); }
.price-card p { color: var(--muted); }
.price-card .btn { margin-top: 10px; }
.price-note { color: var(--muted); font-size: 0.9rem; margin-top: 20px; max-width: 720px; }

.band { background: var(--navy); color: var(--on-dark); padding: 64px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.band h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; }
.band p { margin: 0; color: var(--on-dark-muted); max-width: 40rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.band .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.38); }

.page-hero {
  background:
    radial-gradient(700px 300px at 82% 10%, rgba(22, 163, 74, 0.16), transparent 65%),
    var(--navy);
  color: var(--on-dark); padding: 72px 0 60px;
}
.page-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin: 0 0 18px; }
.page-hero .lede { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: start; }
.split-tall { grid-template-columns: 1fr 340px; }
.features { display: grid; gap: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(13, 23, 38, 0.07); }
.shot-tall img { max-width: 340px; margin-left: auto; display: block; }
.shot figcaption, .diagram figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; border-radius: 14px; }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose pre {
  background: var(--navy); color: #d7e2f2; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font-size: 0.9rem; line-height: 1.55;
}
.prose code { font-family: var(--mono); font-size: 0.88em; }
.prose p code, .feature code, .note-card code {
  background: #e9ede4; color: var(--ink); padding: 0.1em 0.35em; border-radius: 4px;
}
.pre { background: var(--navy); color: #d7e2f2; padding: 18px 20px; border-radius: 12px; overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 0.94rem; }
.spec th, .spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec th { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.prose .spec td:first-child { font-weight: 600; }
.note-card { background: #f2f6ec; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 34px; }
.note-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.note-card p { margin: 0; color: var(--ink-2); }
.principles { margin-top: 56px; max-width: 760px; }
.principles h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 0 0 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* ---- footer ------------------------------------------------------------- */
.foot { background: var(--navy); color: var(--on-dark-muted); }
.foot-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 62px 0 40px; }
.brand-foot { color: #fff; }
.foot-brand p { margin: 14px 0 0; font-size: 0.92rem; color: var(--on-dark-faint); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h3 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6f819b; margin: 0 0 12px; }
.foot-cols a { display: block; color: #c6d2e3; text-decoration: none; font-size: 0.92rem; margin: 7px 0; }
.foot-cols a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 0.82rem; color: var(--on-dark-faint);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: #c6d2e3; text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .hero-shot { max-width: 760px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .updates, .updates-page { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .split, .split-tall { grid-template-columns: 1fr; gap: 34px; }
  .shot-tall img { margin-left: 0; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; gap: 34px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 18px; box-shadow: 0 24px 40px rgba(13, 23, 38, 0.12);
  }
  .top[data-open="true"] .nav { display: flex; }
  .nav a { padding: 8px 0; }
  .nav .btn { margin-top: 8px; }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 18px; }
  .section { padding: 64px 0; }
  .cards, .updates, .updates-page, .price-cards { grid-template-columns: 1fr; }
  .stats { gap: 18px; padding-inline: 18px; }
  .stats strong { font-size: 1.3rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.6vw, 2.8rem); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
