/* leadgen marketing design system.
   One stylesheet for every static page (LapseWatch + FormAlert + blog), served
   by shared/site_server.py at /static/site.css with a long cache header.
   No framework, no webfonts: the system stack renders instantly and the whole
   file is a few KB, which matters more than a display face on a page whose job
   is to load fast on an agent's phone between appointments. */

:root {
  /* Ink is a very dark desaturated green rather than black, so it sits in the
     same family as the brand and does not read as a default. */
  --ink: #0f1c17;
  --ink-2: #33453d;
  --ink-3: #5c6f66;
  --line: #e2ebe6;
  --line-2: #eef4f1;
  --paper: #ffffff;
  --wash: #f6faf8;
  --wash-2: #eef5f1;

  --brand: #0b7a4b;
  --brand-ink: #075c38;
  --brand-wash: #e7f4ed;
  --accent: #b4531f;      /* rust: used only for expiry/urgency, never decoration */
  --accent-wash: #fdf1e9;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 23, .05), 0 1px 3px rgba(15, 28, 23, .04);
  --shadow: 0 4px 6px -1px rgba(15, 28, 23, .06), 0 12px 24px -8px rgba(15, 28, 23, .10);
  --shadow-lg: 0 24px 48px -16px rgba(15, 28, 23, .16);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale, 1.25 ratio, clamped so it holds from 360px to 1440px. */
  --step--1: clamp(.82rem, .8rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.1rem + .3vw, 1.33rem);
  --step-2: clamp(1.4rem, 1.28rem + .6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

/* FormAlert reskins the same system by swapping three tokens. */
:root.fa {
  --brand: #1558b0;
  --brand-ink: #0f4288;
  --brand-wash: #e8f0fa;
  --wash: #f6f8fc;
  --wash-2: #eef2fa;
  --line: #e2e9f4;
  --line-2: #eef2f9;
  --ink: #0f1723;
  --ink-2: #33404f;
  --ink-3: #5b6879;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 660; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -.032em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; }
.stack-2 { gap: .5rem; } .stack-3 { gap: .85rem; } .stack-4 { gap: 1.35rem; }
.stack-6 { gap: 2.2rem; } .stack-8 { gap: 3.2rem; }
.section { padding-block: var(--section); }
.section-wash { background: var(--wash); border-block: 1px solid var(--line); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-ink); font-weight: 600;
}
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.small { font-size: var(--step--1); color: var(--ink-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 650; }
.stat { color: var(--brand-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

#nav-sentinel { height: 1px; margin-bottom: -1px; }

/* ---------- nav ----------
   At rest the bar is a tinted panel with a hairline, not bare text on white: the
   wash tint plus the top hairline give it enough presence to read as chrome. On
   scroll `.is-stuck` (set by the sentinel observer in layout.page) solidifies the
   background, drops the height a notch and trades the hairline for a shadow, so
   the bar reads as lifted above the page rather than drawn on it. */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--wash) 88%, transparent);
  backdrop-filter: saturate(1.7) blur(12px);
  border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 12%, transparent),
              0 10px 24px -14px rgba(15, 28, 23, .28);
}
.nav-in { display: flex; align-items: center; gap: 1rem; height: 70px;
          transition: height .18s ease; }
.nav.is-stuck .nav-in { height: 62px; }
/* The lockup is the loudest thing in the nav after the primary action: it sits
   a step above the links in size and weight so the bar reads
   identity -> action -> navigation rather than as one flat row. */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700;
         letter-spacing: -.02em; color: var(--ink); text-decoration: none;
         font-size: 1.22rem; }
/* The LapseWatch gauge. Sized in em so it tracks the wordmark wherever the
   lockup is used, and never smaller than the 16px the geometry was cut for. */
.brand-logo { width: 1.62em; height: 1.62em; flex: none; display: block; }
.brand .wm { font-weight: 700; letter-spacing: -.025em; }
.brand .wm i { font-style: normal; color: var(--brand); }
.brand .wm-inv i { color: #8fd3b0; }
/* A rule between the lockup and the links, so the identity reads as its own
   block rather than as the first item in a list of five. */
.nav-links { display: none; gap: 1.5rem; margin-left: 2.1rem; padding-left: 2.1rem;
             border-left: 1px solid var(--line); }
.nav-links a { color: var(--ink-3); text-decoration: none; font-size: .89rem; font-weight: 500;
               padding-block: .3rem; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .85rem; }
@media (min-width: 860px) { .nav-links { display: flex; } }
/* Log in is a text link, not a button: two adjacent chips read as two equal
   choices, and only one of them is the action we want. */
.nav-cta .btn-quiet { font-size: .89rem; font-weight: 550; color: var(--ink-2); }
.nav-cta .btn-quiet:hover { color: var(--ink); text-decoration: underline; }
.nav-cta .btn-primary { padding: .66rem 1.4rem; font-size: .95rem; font-weight: 680;
                        letter-spacing: -.005em;
                        box-shadow: 0 1px 2px rgba(15,28,23,.10),
                                    0 8px 18px -8px color-mix(in srgb, var(--brand) 62%, transparent); }
.nav-cta .btn-primary:hover { box-shadow: 0 2px 4px rgba(15,28,23,.12),
                              0 12px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
/* On a phone the bar holds the lockup and one action. Log in lives inside the app
   anyway, and two controls plus a 150px lockup do not fit 390px cleanly. */
@media (max-width: 480px) {
  .nav-cta .btn-quiet { display: none; }
  .nav-cta .btn-primary { padding: .58rem 1.05rem; font-size: .9rem; }
  .brand { font-size: 1.12rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px);
                     box-shadow: var(--shadow); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: .5rem; }
.btn-lg { padding: .92rem 1.6rem; font-size: 1.02rem; font-weight: 650; }
.btn-primary.btn-lg { box-shadow: 0 2px 4px rgba(15,28,23,.10),
                                  0 12px 26px -10px color-mix(in srgb, var(--brand) 60%, transparent); }
.cta-row .btn-ghost { color: var(--ink-2); }
.cta-row .btn-ghost:hover { color: var(--ink); }

/* ---------- cards & surfaces ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.2vw, 1.6rem); box-shadow: var(--shadow-sm);
}
.card-raised { box-shadow: var(--shadow); }
.card-brand { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem;
  border-radius: 999px; background: var(--brand-wash); color: var(--brand-ink);
  font-size: .76rem; font-weight: 650; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.pill-accent { background: var(--accent-wash); color: var(--accent);
               border-color: color-mix(in srgb, var(--accent) 24%, transparent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) var(--section); }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 55% -10%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, var(--brand-wash), transparent 70%);
  opacity: .9;
}
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-block: .6rem .1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: .3rem; }
.trust span { font-size: var(--step--1); color: var(--ink-3); display: inline-flex; gap: .4rem; }

/* ---------- stat tiles ---------- */
.stat-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; box-shadow: var(--shadow-sm);
}
.tile .n { display: block; font-family: var(--mono); font-size: clamp(1.3rem, 3.2vw, 1.7rem);
           font-weight: 680; color: var(--brand-ink); font-variant-numeric: tabular-nums;
           letter-spacing: -.03em; }
.tile .l { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .15rem; line-height: 1.4; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .85rem;
  font-weight: 700; color: #fff; background: var(--brand); box-shadow: var(--shadow-sm);
}

/* ---------- coverage table styled as a feature ---------- */
.coverage { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
            box-shadow: var(--shadow-sm); background: var(--paper); }
.coverage-row {
  display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem;
  align-items: center; padding: .85rem clamp(1rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line-2);
}
.coverage-row:last-child { border-bottom: 0; }
.coverage-row:nth-child(odd) { background: color-mix(in srgb, var(--wash) 55%, transparent); }
.coverage-field { font-weight: 560; }
.coverage-field small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.bar { display: flex; align-items: center; gap: .6rem; }
.bar-track { width: clamp(70px, 16vw, 130px); height: 7px; border-radius: 99px; background: var(--wash-2);
             overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bar-val { font-family: var(--mono); font-size: .84rem; font-weight: 650; min-width: 3.6em;
           text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-none .bar-fill { background: var(--ink-3); opacity: .25; }
.bar-none .bar-val { color: var(--accent); }

/* ---------- live-file snapshot band ----------
   Holds the slot the customer quote will take back (marketing/pages.py,
   SHOW_TESTIMONIAL). Dark on purpose: it sits between two washed sections and
   has to break the page rhythm the way the quote card did. */
.snapshot {
  background: var(--brand-ink); color: #fff; border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow);
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
}
@media (min-width: 900px) { .snapshot { grid-template-columns: minmax(0, 28ch) minmax(0, 1fr); align-items: center; } }
.snapshot-head p { margin: 0; color: #cfe6da; font-size: var(--step--1); line-height: 1.55; }
.snapshot-head strong { color: #fff; font-weight: 650; }
.eyebrow-invert { color: #8fd3b0; }
.snapshot-figs { margin: 0; display: grid; gap: 1.1rem; }
@media (min-width: 620px) {
  .snapshot-figs { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .snapshot-figs > div + div { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 1.4rem; }
}
/* Figure above label, so the number is what the eye lands on. Explicit grid rows
   rather than column-reverse: with reversed flex each column stacked up from its
   own label, so a two-line label pushed its number higher than its neighbour's
   and the figures never sat on one line. */
.snapshot-figs > div { display: grid; grid-template-rows: auto auto;
                       align-content: start; gap: .35rem; }
.snapshot-figs dd { grid-row: 1; margin: 0; font-family: var(--mono); font-weight: 680;
                    font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.05;
                    letter-spacing: -.035em; font-variant-numeric: tabular-nums;
                    color: #fff; }
.snapshot-figs dt { grid-row: 2; font-size: .76rem; line-height: 1.45; color: #a8ccb9; }

/* ---------- quote ---------- */
.quote { display: grid; gap: 1rem; }
.quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink);
                    letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); color: var(--ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--wash-2);
          border: 1px solid var(--line); display: grid; place-items: center; font-weight: 650;
          color: var(--ink-3); font-size: .85rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 1.1rem; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.plan-featured { border-color: color-mix(in srgb, var(--brand) 40%, transparent);
                 box-shadow: var(--shadow); position: relative; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.plan-price .amount { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.04em;
                      font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--ink-3); font-size: .95rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }
.feature-list li { display: grid; grid-template-columns: 18px 1fr; gap: .55rem; align-items: start;
                   color: var(--ink-2); }
.feature-list .tick { color: var(--brand); font-weight: 700; }
.feature-list .no { color: var(--ink-3); }
.feature-list li.off { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
details.qa {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  padding: .95rem 1.1rem; box-shadow: var(--shadow-sm);
}
details.qa[open] { background: var(--wash); }
details.qa summary { cursor: pointer; font-weight: 600; list-style: none; display: flex;
                     justify-content: space-between; gap: 1rem; align-items: flex-start; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-family: var(--mono); color: var(--brand);
                            font-weight: 700; flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa .qa-body { margin-top: .7rem; color: var(--ink-2); font-size: .96rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d7e3dd; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer a { color: #eaf3ee; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
             color: #8fa89c; margin-bottom: .7rem; font-weight: 650; font-family: var(--mono); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #2a3b33;
                 font-size: .82rem; color: #8fa89c; display: grid; gap: .5rem; }

/* ---------- prose (blog) ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-size: var(--step-2); }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose li { padding-left: .15rem; }
.prose blockquote {
  margin: 0; padding: .9rem 1.2rem; border-left: 3px solid var(--brand);
  background: var(--wash); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose code { font-family: var(--mono); font-size: .88em; background: var(--wash-2);
              padding: .12em .38em; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: .74rem; text-transform: uppercase;
            letter-spacing: .08em; color: var(--ink-3); font-weight: 650; }
.prose .table-scroll { overflow-x: auto; }
.answer {
  background: var(--brand-wash); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.answer strong:first-child { color: var(--brand-ink); }

/* ---------- post list ---------- */
.post-list { display: grid; gap: 1rem; }
@media (min-width: 820px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit;
             transition: transform .12s ease, box-shadow .12s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.post-card h3 { letter-spacing: -.018em; }
.post-meta { font-family: var(--mono); font-size: .74rem; color: var(--ink-3);
             letter-spacing: .04em; text-transform: uppercase; }
