/* ==========================================================================
   Covendo — Powered by MedFlo AI
   Single stylesheet shared by index.html, no-access.html, contact.html.
   No external requests: system fonts only, every icon and diagram inline SVG.

   The surface is a deep, saturated blue-teal — not a neutral near-black.
   Sections separate by TONE (three steps of the same hue), not by hairlines.
   Every muted ink is a desaturated tint of the same hue; nothing is grey.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- the surface ladder: one hue (~187deg), three steps ---------------- */
  --bg:        #071F22;   /* base                                            */
  --bg-raised: #0A2B2E;   /* one step up — alternating bands, cards          */
  --bg-panel:  #0C363B;   /* two steps up — the loudest band, app chrome     */
  --bg-sunken: #051719;   /* one step down — code-forward bands, footer      */
  --code-bg:   #041416;   /* deepest — code panels                           */

  /* Hairlines are tinted too, and only do detail work inside components. */
  --hair:        rgba(255, 255, 255, 0.085);
  --hair-soft:   rgba(255, 255, 255, 0.05);
  --hair-strong: rgba(255, 255, 255, 0.17);

  /* Translucent lifts — these sit correctly on any band tone. */
  --surf-1: rgba(255, 255, 255, 0.035);
  --surf-2: rgba(255, 255, 255, 0.065);

  /* --- ink: white headings, hue-tinted everything else ------------------- */
  --ink:      #F2FAF9;   /* body / primary                                   */
  --ink-dim:  #A7C4C2;   /*  9.2:1 on base,  7.1:1 on the lightest band      */
  --ink-mute: #7EA0A0;   /*  6.0:1 on base,  4.6:1 on the lightest band      */

  /* --- one accent, two shades ------------------------------------------- */
  --accent:      #35D6C0;  /* bright — primary CTA, active state  9.3:1      */
  --accent-deep: #0E8F84;  /* deeper — fills, rules, marks                   */
  --accent-ink:  #04211E;  /* text on a filled accent surface                */
  --accent-tint: rgba(53, 214, 192, 0.12);
  --accent-line: rgba(53, 214, 192, 0.34);

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  --shadow-md: 0 10px 26px -14px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 34px 60px -30px rgba(0, 0, 0, 0.85);
  --shadow-app: 0 60px 100px -40px rgba(0, 0, 0, 0.92), 0 4px 14px rgba(0, 0, 0, 0.35);
  /* A hairline of light on the top edge of a raised surface. */
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.07);

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

  --gutter: 24px;
  --maxw: 1180px;
  --maxw-wide: 1300px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-wrap: balance;
}
h1, .band h2, .cta-band h2 { font-weight: 700; letter-spacing: -0.038em; }

p { margin: 0; }
ul, ol { margin: 0; }
figure { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--hair); margin: 0; }

::selection { background: var(--accent-deep); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  z-index: 60;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--maxw-wide); }

/* Bands separate by tone. No border is needed between two different steps. */
.band { position: relative; padding-block: 120px; }
.band--tight  { padding-block: 88px; }
.band--raised { background: var(--bg-raised); }
.band--panel  { background: var(--bg-panel); }
.band--sunken { background: var(--bg-sunken); }

/* Same lit-from-above treatment as the hero, for the standalone pages. */
.band--glow {
  background:
    radial-gradient(ellipse 55% 42% at 50% -2%, rgba(53, 214, 192, 0.13), transparent 68%),
    radial-gradient(ellipse 80% 44% at 50% 0%, rgba(14, 143, 132, 0.15), transparent 72%),
    var(--bg);
}

@media (max-width: 880px) {
  .band { padding-block: 80px; }
  .band--tight { padding-block: 60px; }
}

/* ------------------------------------------------------------ type bits -- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow b { color: var(--accent); font-weight: 700; }

.lede {
  color: var(--ink-dim);
  font-size: 17.5px;
  line-height: 1.62;
  max-width: 60ch;
}
.lede--sm { font-size: 15.5px; }

.h-xl { font-size: clamp(34px, 5.2vw, 56px); }
.h-lg { font-size: clamp(29px, 4vw, 44px); }
.h-md { font-size: clamp(24px, 2.8vw, 33px); }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.figcap {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.stack    { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 31, 34, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
  max-width: var(--maxw-wide);
}

/* ----- wordmark ----- */

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

/* "Powered by MedFlo AI" — the parent brand, deliberately subordinate. */
.brand-badge {
  display: inline-flex;
  align-items: center;
  /* Flex strips whitespace BETWEEN items, so the space before <b> disappears
     and it reads "POWERED BYMEDFLO AI". gap restores it independently of how
     the markup is written. */
  gap: 0.34em;
  margin-left: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surf-1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brand-badge b { font-weight: 700; color: var(--ink-dim); }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
/* :not(.btn) matters — `.nav a` outranks `.btn--primary` on specificity, so
   without it the header CTA loses its dark ink and renders pale text on the
   accent fill. */
.nav a:not(.btn) { color: var(--ink-dim); font-size: 14.5px; letter-spacing: -0.01em; }
.nav a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 26px; }

@media (max-width: 960px) { .nav-links { display: none; } }

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .site-header .wrap { height: 62px; gap: 12px; }
  .brand-badge { display: none; }
  .brand-name { font-size: 20px; }
  .nav { gap: 12px; }
  .nav a.nav-signin { display: none; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.011em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn:hover { text-decoration: none; }

/* Bright filled primary + near-white secondary — the pairing this page uses. */
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn--primary:hover { background: #5ee3d1; }

.btn--secondary { background: #f2faf9; color: #062224; font-weight: 700; }
.btn--secondary:hover { background: #ffffff; }

.btn--ghost { background: var(--surf-1); border-color: var(--hair-strong); color: #fff; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: var(--surf-2); }

.btn--sm { height: 38px; padding-inline: 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}
.arrow-link svg { flex: none; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- hero -- */
/* Tall, centred, and lit from above. The glow is most of the depth. */

.hero {
  position: relative;
  padding-block: 152px 0;
  background:
    radial-gradient(ellipse 52% 46% at 50% 2%,  rgba(53, 214, 192, 0.20), transparent 66%),
    radial-gradient(ellipse 80% 50% at 50% 0%,  rgba(14, 143, 132, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 88% 26%, rgba(53, 214, 192, 0.07), transparent 72%),
    var(--bg);
}
/* A lit hairline along the very top of the page. */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 192, 0.5), transparent);
}

.hero-inner { text-align: center; }

.hero h1 {
  margin-inline: auto;
  max-width: 15ch;
  color: #fff;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

/* Deliberately one short line under the headline. */
.hero .lede {
  margin: 30px auto 0;
  max-width: 56ch;
  font-size: 19px;
  color: var(--ink-dim);
}

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 46px;
}
.cta-slot { display: grid; gap: 11px; justify-items: center; }
.cta-slot .cta-for {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-note {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-mute);
}
.hero-note b { font-weight: 500; color: var(--ink-dim); }
.hero-note i { font-style: normal; color: rgba(255, 255, 255, 0.18); }

/* The product window straddles the hero boundary. */
.hero-shot { margin-top: 104px; margin-bottom: -150px; }
.after-hero { padding-top: 216px; }

@media (max-width: 880px) {
  .hero { padding-block: 76px 0; }
  .hero-shot { margin-top: 56px; margin-bottom: -80px; }
  .after-hero { padding-top: 132px; }
}

/* ----------------------------------------------- product UI illustration -- */

.app {
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow-app), var(--lift);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg-panel);
}
.app-dots { display: flex; gap: 6px; flex: none; }
.app-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.app-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-tag {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 3px 10px;
}

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hair-soft);
}

.uic {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surf-1);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.uic .uic-label { color: var(--ink-mute); font-size: 12px; font-weight: 400; }
.uic .uic-caret { color: var(--ink-mute); font-size: 10px; }

.seg {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surf-1);
}
.seg > span {
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
  border-right: 1px solid var(--hair);
  white-space: nowrap;
}
.seg > span:last-child { border-right: 0; }
.seg > span.is-on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.seg .seg-n { margin-left: 6px; font-family: var(--mono); font-size: 11px; opacity: .8; }

.app-bar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.app-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.app-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 13.5px; }
.app-table th {
  text-align: left;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--hair);
  background: var(--surf-1);
  white-space: nowrap;
}
.app-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair-soft);
  color: var(--ink-dim);
  vertical-align: middle;
  white-space: nowrap;
}
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table .c-name { color: #fff; font-weight: 600; }
.app-table .c-sub { display: block; font-size: 11.5px; color: var(--ink-mute); font-weight: 400; margin-top: 2px; font-family: var(--mono); }
.app-table .c-mono { font-family: var(--mono); font-size: 12px; }
.app-table .c-from { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.app-table .c-to { color: #fff; font-weight: 600; }
.app-table .c-arrow { color: var(--ink-mute); padding-inline: 7px; }

.app-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--hair);
  background: var(--bg-panel);
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.app-foot .app-foot-right { margin-left: auto; display: flex; gap: 8px; }
.app-foot b { color: var(--ink); font-weight: 600; }

/* Severity ladder — one hue, three intensities. No second accent colour. */
.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  color: var(--ink-mute);
}
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.sev--high { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.sev--med  { border-color: var(--accent-line); color: #7fbfb6; }
.sev--low  { color: var(--ink-mute); }

/* ---------------------------------------------------------- stats band --- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stats > div { padding: 46px 34px 44px; border-right: 1px solid var(--hair-soft); }
.stats > div:last-child { border-right: 0; }
.stat-k {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.stat-n {
  display: block;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}
.stat-l { display: block; margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); max-width: 27ch; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-bottom: 1px solid var(--hair-soft); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { border-right: 0; padding: 34px 0; }
  .stats > div:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------ two-ways panels -- */

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }

.way {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  background: var(--surf-1);
  padding: 46px;
  box-shadow: var(--shadow-lg), var(--lift);
  overflow: hidden;
}
.way::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(53, 214, 192, 0));
}
.way--api::after { background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,0)); }

.way-for {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.way h3 { font-size: 29px; letter-spacing: -0.035em; }
.way > p { margin-top: 16px; color: var(--ink-dim); font-size: 16.5px; max-width: 42ch; }

.way ul { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--hair); }
.way li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 14.5px;
  color: var(--ink-dim);
}
.way li svg { flex: none; margin-top: 4px; color: var(--accent); }
.way .way-foot { margin-top: auto; padding-top: 34px; }

@media (max-width: 620px) { .way { padding: 30px 24px; } }

/* ----------------------------------------------------------- split shells */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split--top { align-items: start; }
.split--even > .code { display: flex; flex-direction: column; }
.split--even > .code > pre { flex: 1; }

.split-60 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 68px; align-items: start; }
.split-40 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 68px; align-items: center; }

@media (max-width: 980px) {
  .split, .split-60, .split-40 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  /* On one column, the visual always follows the words. */
  .flip-mobile > *:first-child { order: 2; }
}

/* --------------------------------------------------------------- cards --- */

.card {
  background: var(--surf-1);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md), var(--lift);
}
.card h3 { font-size: 17px; margin-bottom: 12px; }
.card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.62; }
.card--pad { padding: 38px; }
@media (max-width: 620px) { .card, .card--pad { padding: 26px 22px; } }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* The three change kinds. The alert card is deliberately the loud one. */
.kind {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surf-1);
  padding: 38px;
  box-shadow: var(--shadow-md), var(--lift);
}
.kind--loud {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-tint), rgba(53, 214, 192, 0.02)), var(--surf-1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(53, 214, 192, 0.25);
}
.kind-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.kind h3 { font-size: 20px; }
.kind p { color: var(--ink-dim); font-size: 14.5px; }
.kind p + p { margin-top: 12px; }
.kind-verdict { margin-top: auto; padding-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.kind--loud .kind-verdict { color: var(--accent); font-weight: 600; }
@media (max-width: 620px) { .kind { padding: 28px 22px; } }

/* --------------------------------------------------------------- tables -- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surf-1);
  box-shadow: var(--shadow-md), var(--lift);
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14.5px; }

caption { caption-side: top; text-align: left; padding: 18px 22px 2px; font-size: 13px; color: var(--ink-mute); }

th, td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--hair-soft); vertical-align: top; }
thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--hair);
  background: var(--surf-1);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-dim); }
td strong { color: #fff; font-weight: 600; }
td code, .mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------------------------------------------------------------- chips -- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  color: var(--ink-dim);
  white-space: nowrap;
}
.chip--alert { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.chip--muted { color: var(--ink-mute); border-color: var(--hair); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------------- code -- */

.code {
  background: var(--code-bg);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--surf-1);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}
.code-bar .verb { color: var(--accent); font-weight: 700; }
.code pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-dim);
  tab-size: 2;
}
.code pre code { font: inherit; color: inherit; }

.t-key { color: #8fb6b4; }
.t-str { color: var(--accent); }
.t-num { color: #d8cf9a; }
.t-com { color: #6b8c8b; }

p code, li code, dd code, td code, .ep-note code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--surf-2);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
  white-space: nowrap;
}

/* ------------------------------------------------------------ endpoints -- */

.endpoints { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ep {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.ep:last-child { border-bottom: 0; }
.ep-verb { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; color: var(--accent); padding-top: 3px; }
.ep-verb--post { color: var(--ink-mute); }
.ep-path { font-family: var(--mono); font-size: 13px; color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.ep-note { grid-column: 2; font-size: 13.5px; color: var(--ink-mute); }

/* ------------------------------------------------------------- diagrams -- */

.diagram {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surf-1);
  padding: 30px;
  overflow-x: auto;
  box-shadow: var(--shadow-md), var(--lift);
}
.diagram svg { display: block; width: 100%; height: auto; min-width: 430px; }

/* Coverage breadth panel — replaces the old pipeline diagram. */
.coverage {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surf-1);
  padding: 34px;
  box-shadow: var(--shadow-md), var(--lift);
}
.coverage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair);
}
.coverage-n { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.045em; color: #fff; line-height: 1; }
.coverage-n span { font-size: 0.42em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-mute); margin-left: 8px; }

.statelist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  margin-top: 26px;
}
.statelist span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surf-1);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

/* Empty state inside the small product window. */
.app--sm .app-bar { padding: 14px 16px; }
.app-empty { padding: 56px 28px; text-align: center; }
.app-empty svg { color: var(--accent); margin-bottom: 18px; }
.app-empty-h { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.app-empty-p { margin-top: 10px; font-size: 14px; color: var(--ink-mute); max-width: 34ch; margin-inline: auto; }

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surf-1);
  box-shadow: var(--shadow-md), var(--lift);
  overflow: hidden;
}
.rail > div { padding: 34px 28px; border-right: 1px solid var(--hair-soft); }
.rail > div:last-child { border-right: 0; }
.rail-n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.rail h3 { font-size: 16px; margin-bottom: 10px; }
.rail p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.6; }
@media (max-width: 940px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail > div { border-bottom: 1px solid var(--hair-soft); }
  .rail > div:nth-child(2n) { border-right: 0; }
  .rail > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail > div { border-right: 0; }
  .rail > div:nth-last-child(2) { border-bottom: 1px solid var(--hair-soft); }
}

/* Compact labelled rows — these replace paragraphs of prose. */
.rows { border-top: 1px solid var(--hair); margin: 0; }
.rows > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 14.5px;
}
.rows dt { color: #fff; font-weight: 600; margin: 0; }
.rows dd { color: var(--ink-mute); margin: 0; font-family: var(--mono); font-size: 12.5px; text-align: right; }

.deflist { margin: 0; border-top: 1px solid var(--hair); }
.deflist > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.deflist dt { font-family: var(--mono); font-size: 13px; color: #fff; }
.deflist dd { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
@media (max-width: 620px) { .deflist > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ------------------------------------------------------------------ note -- */

.note {
  border: 1px solid var(--hair);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surf-1);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* --------------------------------------------------------- digest mock --- */

.digest {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--lift);
}
.digest-head { padding: 22px; border-bottom: 1px solid var(--hair); background: var(--bg-panel); }
.digest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.digest-subject { font-size: 17px; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.digest-group { border-bottom: 1px solid var(--hair-soft); padding: 18px 22px; }
.digest-fac {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.digest-fac span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-mute); }
.digest-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink-dim); }
.digest-line b { color: #fff; font-weight: 600; min-width: 108px; }
.digest-line em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.digest-foot { padding: 16px 22px; background: var(--bg-panel); font-size: 12px; color: var(--ink-mute); }

/* ---------------------------------------------------------- closing CTA -- */

.cta-band {
  position: relative;
  padding-block: 124px;
  background:
    radial-gradient(ellipse 55% 80% at 78% 50%, rgba(53, 214, 192, 0.17), transparent 68%),
    radial-gradient(ellipse 70% 70% at 8% 20%,  rgba(14, 143, 132, 0.20), transparent 72%),
    var(--bg-sunken);
  border-top: 1px solid var(--hair-soft);
}
.cta-band h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.042em; color: #fff; max-width: 17ch; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 72px; align-items: center; }
.cta-routes { display: grid; gap: 16px; }
.cta-route {
  border: 1px solid var(--hair);
  background: var(--surf-1);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--lift);
}
.cta-route .cta-for {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.cta-route p { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 20px; }
@media (max-width: 940px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .cta-band { padding-block: 80px; }
}

/* --------------------------------------------------------------- footer -- */

.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--hair-soft); padding-block: 70px 34px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 52px; }
@media (max-width: 940px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.footer-blurb { margin-top: 20px; font-size: 13.5px; color: var(--ink-mute); max-width: 34ch; }

.footer-col h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-bottom nav a { color: var(--ink-dim); font-size: 13px; }
.footer-bottom nav a:hover { color: #fff; text-decoration: none; }

/* Compact footer for the utility pages. */
.footer-slim { padding-block: 34px; }
.footer-slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

.badge-powered { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-mute); }
.badge-powered b { color: var(--ink-dim); font-weight: 700; }

/* ================================================== no-access + contact == */

.page {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding-block: 88px;
  background:
    radial-gradient(ellipse 60% 44% at 50% -4%, rgba(53, 214, 192, 0.13), transparent 68%),
    radial-gradient(ellipse 80% 44% at 50% 0%, rgba(14, 143, 132, 0.14), transparent 72%),
    var(--bg);
}

.panel { width: 100%; max-width: 800px; margin-inline: auto; }
.panel h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.038em; }
.panel > .lede { margin-top: 22px; }

.identity {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hair);
  background: var(--surf-1);
  border-radius: var(--radius);
  padding: 11px 16px;
  max-width: 100%;
  box-shadow: var(--lift);
}
.identity svg { flex: none; color: var(--ink-mute); }
.identity .label { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.identity .value { font-family: var(--mono); font-size: 13px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }

.choices { margin-top: 46px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 720px) { .choices { grid-template-columns: minmax(0, 1fr); } }

/* Both choices are deliberately identical in weight — neither is "the" path. */
.choice {
  display: flex;
  flex-direction: column;
  background: var(--surf-1);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md), var(--lift);
}
.choice h2 { font-size: 18px; }
.choice p { margin-top: 12px; color: var(--ink-dim); font-size: 14.5px; }
.choice .choice-foot { margin-top: auto; padding-top: 26px; }
.choice .fineprint { margin-top: 12px; font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 620px) { .choice { padding: 26px 22px; } }

.quiet-links {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.5px;
}

/* State toggling for ?reason=deactivated — driven by a class on <body>. */
[data-when] { display: none; }
body[data-state="no-account"]  [data-when~="no-account"],
body[data-state="deactivated"] [data-when~="deactivated"] { display: revert; }

/* `revert` would drop the card back to block and break its column layout. */
body[data-state="no-account"]  .choice[data-when~="no-account"],
body[data-state="deactivated"] .choice[data-when~="deactivated"] { display: flex; }

body[data-state="deactivated"] .choices { grid-template-columns: minmax(0, 1fr); max-width: 480px; }

/* ---------------------------------------------------------------- forms -- */

.form { margin-top: 30px; display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--ink-mute); }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  transition: border-color .14s ease;
}
input::placeholder, textarea::placeholder { color: #6d8c8c; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent-deep);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #7ea0a0 50%),
                    linear-gradient(135deg, #7ea0a0 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 4px; }
