@font-face { font-family: "Public Sans"; src: url("/public/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/public/fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/public/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* Midnight blue bands for the hero, header and calls to action; a cool off-white page with white cards. */
:root {
  --ground: #f4f7fb;
  --paper: #ffffff;
  --ink: #16202c;
  --muted: #4b5869;
  --line: #d5dee8;
  --line-soft: #edf1f5;
  --tint: #e3ecf5;
  --note: #e6f4ff;
  --note-ink: #1f4e79;
  --blue: #1f5fa0;
  --blue-ink: #154677;
  --night: #0b2e4f;
  --night-deep: #061c33;
  --night-ink: #e8f0f8;
  --night-muted: #bfd3e6;
  --night-line: #6f8fb0;
  --sky: #8fd0ff;
  --primary-bg: #0b2e4f;
  --primary-fg: #ffffff;
  --primary-hover: #061c33;
  --bad: #b42318;
  --warn: #9a5b00;
  --good: #146c43;
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e1621; --paper: #15202d; --ink: #e6edf5; --muted: #a7b4c3; --line: #2a3a4d; --line-soft: #1f2c3b;
    --tint: #1a2a3c; --note: #13283d; --note-ink: #b5d8f8; --blue: #8fc4f5; --blue-ink: #b5d8f8;
    --night: #0d2a4a; --night-deep: #071a30; --primary-bg: #8fd0ff; --primary-fg: #061c33; --primary-hover: #b5e0ff;
    --bad: #ff8a7a; --warn: #f0b45a; --good: #6fcf97;
  }
}
:root[data-theme="dark"] {
  --ground: #0e1621; --paper: #15202d; --ink: #e6edf5; --muted: #a7b4c3; --line: #2a3a4d; --line-soft: #1f2c3b;
  --tint: #1a2a3c; --note: #13283d; --note-ink: #b5d8f8; --blue: #8fc4f5; --blue-ink: #b5d8f8;
  --night: #0d2a4a; --night-deep: #071a30; --primary-bg: #8fd0ff; --primary-fg: #061c33; --primary-hover: #b5e0ff;
  --bad: #ff8a7a; --warn: #f0b45a; --good: #6fcf97;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 "Public Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .top :focus-visible { outline-color: var(--sky); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* dark bands: header, hero and calls to action */
.dark { background: var(--night); color: var(--night-ink); }
.dark h1, .dark h2 { color: #ffffff; }
.dark .lede, .dark p { color: var(--night-muted); }
.dark a:not(.btn) { color: var(--sky); }

/* header and footer */
.top { background: var(--night); color: var(--night-ink); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; min-height: 76px; }
.brand { color: #ffffff; text-decoration: none; display: flex; align-items: center; }
.brand > svg { height: 34px; width: auto; display: block; }
.brand .sq { fill: #1d4a75; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-left: auto; }
.top nav a { color: var(--night-ink); text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: #ffffff; text-decoration: underline; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.top nav a.buy { background: var(--sky); color: var(--night-deep); padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.top nav a.buy:hover { background: #b5e0ff; text-decoration: none; }
footer { background: var(--night); color: var(--night-muted); padding: 40px 0 48px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--night-ink); }
footer a:hover { color: #ffffff; }
footer .small { color: var(--night-muted); }
footer :focus-visible { outline-color: var(--sky); }
.maker { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.maker p { margin: 0; }
.geekery { color: #ffffff; display: block; }
.geekery .gk { fill: #ffffff; }
.geekery > svg { height: 34px; width: auto; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1.5px solid var(--primary-bg); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--tint); color: var(--ink); }
.btn.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-fg); }
.dark .btn { border-color: var(--night-line); color: #ffffff; }
.dark .btn:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }
.dark .btn.primary { background: var(--sky); border-color: var(--sky); color: var(--night-deep); }
.dark .btn.primary:hover { background: #b5e0ff; border-color: #b5e0ff; color: var(--night-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }

/* hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { font-size: 1.15rem; }
.early { display: inline-block; margin-top: 14px; color: var(--night-muted); font-size: .95rem; }

/* the nightly scan panel */
.pad {
  background: var(--paper); color: var(--ink); border-radius: 14px; padding: 22px 0 16px;
  box-shadow: 0 24px 60px rgba(4, 16, 30, .45); font-variant-numeric: tabular-nums;
}
.pad h2 {
  font-size: 1.2rem; padding: 0 22px 12px; margin: 0; color: var(--ink); letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
}
.pad .when { font-family: "Public Sans", system-ui, sans-serif; font-size: .82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pad table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pad th { font-size: .82rem; font-weight: 600; color: var(--muted); text-align: left; padding: 8px 22px 6px; border-bottom: 1px solid var(--line); }
.pad td { padding: 8px 22px; border-bottom: 1px solid var(--line-soft); }
.pad td.n, .pad th.n { text-align: right; }
.pad tr:last-child td { border-bottom: 0; font-weight: 600; }
.pad .ok { color: var(--good); font-weight: 600; }
.pad .warn { color: var(--warn); font-weight: 600; }
.pad .flag { color: var(--bad); font-weight: 700; }
.circled { position: relative; display: inline-block; padding: 0 4px; }
.circled svg { position: absolute; inset: -9px -12px; width: calc(100% + 24px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--bad); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s .5s ease-out forwards; }
.pad .note { margin: 12px 22px 2px; padding: 12px 14px; background: var(--note); color: var(--note-ink); border-radius: 8px; font-size: .9rem; max-width: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .circled path { animation: none; stroke-dashoffset: 0; } }

/* the strip under the hero */
.strip { background: var(--tint); }
.strip ul { list-style: none; margin: 0 auto; padding: 20px 24px; max-width: 1200px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; font-weight: 600; font-size: .95rem; }

/* sections */
section.band { padding: 104px 0 0; }
section.band:last-of-type { padding-bottom: 104px; }
.band > .wrap > h2:first-child { max-width: 24ch; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split.flip > .shot { order: -1; }
.split h2:not(:first-child), .split h3:not(:first-child) { margin-top: 1.4em; }
figure { margin: 0; }
.shot { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.shot img { border-radius: 8px; border: 1px solid var(--line); }
.shot figcaption { font-size: .85rem; color: var(--muted); padding: 12px 4px 0; }
.shot.night { background: var(--night); border-color: var(--night); }
.shot.night img { border-color: transparent; }
.shot.night figcaption { color: var(--night-muted); }
ul.plain { padding-left: 1.2em; margin: 0 0 1em; max-width: var(--measure); }
ul.plain li { margin: .35em 0; }

/* what it does: an open-and-close list beside the dashboard */
.features { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; margin-top: 40px; }
.features .list { border-top: 1px solid var(--line); }
.features details { max-width: none; padding: 20px 0; }
.features summary { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.features details p { color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.areas li { padding: 14px 0; border-top: 1px solid var(--line); }
.areas b { display: block; }
.areas span { color: var(--muted); font-size: .93rem; }

.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.who > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.who p:last-child { margin-bottom: 0; }

/* GP retirement */
.sunset { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 56px 48px; }
.sunset .head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
.sunset .head h2 { margin: 0; }
.sunset .head p { color: var(--muted); }
.dates { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dates li { background: var(--tint); border-radius: 12px; padding: 20px 22px; }
.dates span { display: block; font-size: .9rem; color: var(--muted); }
.dates b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; margin-top: 2px; }
.dates li.now { background: var(--night); color: #ffffff; }
.dates li.now span { color: var(--night-muted); }
.dates li.move { background: var(--note); }
.dates li.move span { color: var(--note-ink); }
.sunset .source { margin: 18px 0 0; }
.handoff { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.handoff > div { flex: 1 1 480px; }
.handoff h3 { margin-bottom: .4em; }
.handoff p { color: var(--muted); margin: 0; }

/* the closing call to action */
.cta { border-radius: 20px; padding: 72px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; }
.cta p { max-width: 56ch; }
.cta .actions { justify-content: center; margin-top: 16px; }

/* pricing */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.tier.founding { border: 2px solid var(--night); }
.tier.featured { border: 2px solid var(--night); }
.founding-band { margin-top: 24px; border-width: 1px; }
.trial-band { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.trial-band h2, .trial-band p { margin: 0; }
.trial-band > p:first-of-type { flex: 1 1 32ch; }
.trial-band .small { flex-basis: 100%; }
.amount { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.amount small { font-family: "Public Sans", system-ui, sans-serif; font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.code { font-weight: 800; letter-spacing: .04em; background: var(--note); color: var(--note-ink); border: 1px dashed var(--note-ink); padding: 2px 8px; border-radius: 4px; }

/* FAQ and other open-and-close lists */
details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
details p { margin: 10px 0 0; }

/* steps on the install guide: these really are in order */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0; max-width: 860px; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 28px 56px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--night); color: #ffffff; display: grid; place-items: center; font-weight: 800;
}
ol.steps ol, ol.steps ul { padding-left: 1.2em; }
code, pre { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }
code { background: var(--tint); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; max-width: 860px; }
pre code { background: none; padding: 0; }
.callout { background: var(--note); color: var(--ink); padding: 16px 20px; margin: 20px 0; max-width: 860px; border-radius: 12px; }
.callout p:last-child { margin-bottom: 0; }
video { width: 100%; max-width: 860px; border-radius: 14px; background: #000; }
.help-video { margin: 20px 0 28px; max-width: 860px; }
.help-video video { display: block; aspect-ratio: 16 / 9; }
.help-video figcaption { color: var(--muted); margin-top: 8px; }
.help-video .rate { margin-top: 6px; }
/* "Did you find this video / article helpful?" on every help page (2026-10-29): small and quiet, under the video and at the end */
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 1.6em 0 0; font-size: .9rem; color: var(--muted); }
.rate-q { margin-right: 4px; }
.rate button {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer;
}
.rate button:hover { background: var(--tint); color: var(--ink); }
.rate button svg { width: 18px; height: 18px; }
.rate button[aria-pressed="true"] { background: var(--note); border-color: var(--blue); color: var(--blue-ink); }
.rate button:disabled { cursor: default; }
.rate button:disabled:not([aria-pressed="true"]) { opacity: .45; }
.rate-thanks { margin-left: 4px; }
.rate-thanks:empty { display: none; }

/* legal pages and release notes */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.6rem; margin-top: 1.8em; }
.doc li { margin: .3em 0; }

/* help center: an index of articles by area, and articles that read like the legal pages */
.crumbs { font-size: .95rem; margin: 0 0 8px; }
.help-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.help-groups > section { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.help-groups h2 { font-size: 1.3rem; margin: 0 0 .5em; }
.help-groups ul { list-style: none; margin: 0; padding: 0; }
.help-groups li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.help-groups li:first-child { border-top: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.doc.wide { max-width: 1000px; }
table.ref td:first-child { white-space: nowrap; }
.related { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.15rem; margin: 0 0 .4em; }

@media (max-width: 960px) {
  .hero .wrap, .split, .split.flip, .price, .who, .features, .sunset .head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.flip > .shot { order: 0; }
  .hero { padding: 48px 0 64px; }
  section.band { padding-top: 72px; }
  section.band:last-of-type { padding-bottom: 72px; }
  .sunset, .cta { padding: 36px 22px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .dates { grid-template-columns: minmax(0, 1fr); }
  .top nav { margin-left: 0; gap: 4px 18px; }
  .pad h2 { padding: 0 14px 10px; }
  .pad td, .pad th { padding-left: 14px; padding-right: 14px; }
  .pad .note { margin-left: 14px; margin-right: 14px; }
  .shot { padding: 12px; }
  details { padding-left: 1.1em; }
}

/* Answer tags: how Ledger Doctor answers a call. Words carry the meaning; color only tells them apart at a glance. */
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.tag.fix { background: #e3f4ea; color: #0f5132; border-color: #b9e2c9; }
.tag.guide { background: #e6f0fb; color: #154677; border-color: #bcd5ef; }
.tag.explain { background: #fff1d1; color: #6b4200; border-color: #f1d79a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag.fix { background: #12301f; color: #8fe0b0; border-color: #1f5a39; }
  :root:not([data-theme="light"]) .tag.guide { background: #12263b; color: #b5d8f8; border-color: #26476b; }
  :root:not([data-theme="light"]) .tag.explain { background: #33270d; color: #f5cf80; border-color: #5c4718; }
}
:root[data-theme="dark"] .tag.fix { background: #12301f; color: #8fe0b0; border-color: #1f5a39; }
:root[data-theme="dark"] .tag.guide { background: #12263b; color: #b5d8f8; border-color: #26476b; }
:root[data-theme="dark"] .tag.explain { background: #33270d; color: #f5cf80; border-color: #5c4718; }

/* The hero's "Before you call" card: three findings, each with its answer */
.pad.answers ol { list-style: none; margin: 0; padding: 4px 22px 12px; display: grid; gap: 4px; }
.pad.answers li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.pad.answers li:last-child { border-bottom: 0; }
.pad.answers .tag { grid-row: span 2; justify-self: start; margin-top: 2px; }
.pad.answers b { font-size: 1rem; }
.pad.answers li > span:not(.tag) { color: var(--muted); font-size: .93rem; }

/* The calls table */
.calls { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; margin: 8px 0 18px; }
.calls table { width: 100%; border-collapse: collapse; min-width: 640px; }
.calls th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 14px 20px 10px; border-bottom: 1px solid var(--line); }
.calls td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.calls tr:last-child td { border-bottom: 0; }
.calls td:first-child { font-weight: 600; width: 30%; }
.calls td:last-child { white-space: nowrap; width: 1%; }
.shot.wide { margin-top: 32px; }
@media (max-width: 560px) {
  .pad.answers li { grid-template-columns: 1fr; }
  .pad.answers .tag { grid-row: auto; }
}
.who.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .who.four { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .calls table { min-width: 0; }
  .calls thead { display: none; }
  .calls tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  .calls tr:last-child { border-bottom: 0; }
  .calls td { display: block; padding: 2px 0; border: 0; width: auto !important; }
  .calls td:last-child { margin-top: 6px; }
}

/* 0.29: the plan comparison on Pricing */
.scroll { overflow-x: auto; }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; margin: 16px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
table.compare th, table.compare td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.compare thead th { font-weight: 700; }
table.compare tbody th { font-weight: 500; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; font-weight: 700; }
