/* ============================================================================================
   Shorthop marketing site — no framework, no external assets.

   Built on navdeck-site's stylesheet (frontend/navdeck-site/public/styles.css): same
   dark-first palette, same class names and the same rules, so the two sites read as one
   family. The ONE deliberate difference is the accent: navdeck is teal, Shorthop is amber
   (an alert colour). It lives in the --accent* tokens below — change those, nothing else.

   Carried over from navdeck, each one a bug waiting to happen:
   * `--navy` is heading TEXT and is LIGHT here. `--brand-surface` is a dark SURFACE.
   * `--on-accent` is text ON the accent. The amber is light, so that text is DARK ink —
     white on it measures well under 3:1.
   * `a:where(:visited)` must stay `:where()`: a plain `a:visited` outranks `.btn-primary`
     and repaints a visited button's label blue on amber (navdeck measured 1.09:1).
   ============================================================================================ */
:root {
  color-scheme: dark;

  --navy: #dbe7f4;
  --brand-surface: #0b2545;
  --accent: #f0b44c;
  --accent-hover: #f6c46a;
  --accent-ink: #f5c873;     /* the accent as INK on a dark surface (eyebrows, captions) */
  --accent-soft: rgba(240, 180, 76, 0.16);
  --on-accent: #241703;      /* text on --accent */
  --blue: #7fb2e5;
  --teal-ink: #6fd3c2;       /* "works today" — the platform's ok colour */

  --ink: #e6edf5;
  --muted: #93a4b8;
  --bg: #0a1420;
  --card: #101f31;
  --bg-soft: #16273a;
  --border: #22364c;
  --border-2: #2b415a;
  --danger: #ff8a7d;

  --radius: 14px;
  --elev-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:where(:visited) { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
p { margin: 0.4rem 0 0.9rem; }
::selection { background: rgba(240, 180, 76, 0.3); color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--card); padding: 0.5rem 0.8rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 16, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--accent); }
.logo { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 18px rgba(240, 180, 76, 0.22); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* --- Hero --- */
.hero {
  display: flex; align-items: center; min-height: min(62vh, 560px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(240, 180, 76, 0.13), transparent 62%),
    radial-gradient(900px 500px at -10% 110%, rgba(29, 111, 184, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1a2b 0%, #0a1420 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero { min-height: 0; } .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.02em; color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 0.6rem;
}
.lede { font-size: 1.13rem; color: var(--muted); max-width: 34rem; }
.lede strong { color: #fff; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.hero-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); }

/* --- Mock window (navdeck's frame), holding an example alert --- */
.mock-window {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-2); background: var(--card);
  box-shadow: var(--elev-2);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar i:nth-child(1) { background: #e06c60; }
.mock-bar i:nth-child(2) { background: #d9a441; }
.mock-bar i:nth-child(3) { background: #5aab6a; }
.mock-bar span { margin-left: 8px; font-size: 0.75rem; color: var(--muted); }
.alert-mock { padding: 1.2rem 1.3rem 1.3rem; }
.alert-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sev {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(255, 138, 125, 0.16); color: var(--danger);
}
.alert-name { font-weight: 800; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; overflow-wrap: anywhere; }
.alert-meta { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 1rem; }
.alert-history {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 10px; background: var(--bg-soft); padding: 0.85rem 1rem;
}
.alert-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 0.35rem; }
.alert-history p { margin: 0.2rem 0; font-size: 0.92rem; }
.alert-history strong { color: #fff; }
.alert-history blockquote { margin: 0.5rem 0 0; color: var(--ink); font-size: 0.92rem; font-style: italic; }
.alert-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.mock-btn {
  font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.85rem; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
}
.mock-btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--border-2); }

/* --- Strip --- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 4rem);
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.strip-item h3 { font-size: 1.05rem; }
.strip-item p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* --- Sections --- */
.product { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); }
.product.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.inner { max-width: 1200px; margin: 0 auto; }
.section-lede { max-width: 44rem; margin: 0 auto clamp(1.6rem, 4vw, 2.2rem); text-align: center; }
.section-lede p { color: var(--muted); }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* --- Before / after flow --- */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 60rem; margin: 0 auto 2.2rem; }
@media (max-width: 760px) { .flows { grid-template-columns: 1fr; } }
.flow { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.flow.after { border-color: rgba(240, 180, 76, 0.55); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.2); }
.flow figcaption { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.flow.after figcaption { color: var(--accent-ink); }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 0.45rem 0 0.45rem 1.4rem; color: #fff; font-weight: 700; }
.flow li::before { content: ""; position: absolute; left: 0.25rem; top: 0.85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.flow.after li::before { background: var(--accent); }
.flow li + li::after { content: ""; position: absolute; left: calc(0.25rem + 3px); top: -0.2rem; height: 0.95rem; border-left: 2px solid var(--border); }
.flow li span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }

/* --- Feature grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; transition: transform 0.12s ease, border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature h4 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* --- Split --- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
/* A grid item's minimum width is its min-content; the `white-space: pre` code block would
   otherwise push the column (and the page) wider than a phone. */
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0.42rem 0 0.42rem 1.9rem; color: var(--muted); font-size: 0.97rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--accent); font-weight: 800; }
.checklist li strong { color: var(--ink); }
.code {
  background: #06101b; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
  color: var(--ink); overflow-x: auto; white-space: pre;
}
.code .c { color: var(--muted); }

/* --- Pricing cards (navdeck's .price-card) --- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; max-width: 1020px; margin: 0 auto; }
@media (max-width: 960px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 18px; background: var(--card);
  padding: 1.6rem 1.5rem;
}
.price-card.popular {
  border-color: rgba(240, 180, 76, 0.55);
  background: linear-gradient(180deg, #1d2a3a 0%, #121f30 100%);
  box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.25), 0 18px 44px rgba(0, 0, 0, 0.5);
}
.price-name { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0 0 0.3rem; }
.price-card.popular .price-name { color: #fff; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; min-height: 3.2em; }
.price-card.popular .price-desc { color: #c3d5e8; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.price-amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-left: 0.25rem; }
.price-sub { font-size: 0.83rem; color: var(--muted); margin: 0.35rem 0 0; }
.price-divider { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.price-card.popular .price-divider { border-color: rgba(255, 255, 255, 0.14); }
.price-plus { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.6rem; }
.price-card.popular .price-plus { color: var(--accent-ink); }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.price-feats li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--ink); }
.price-card.popular .price-feats li { color: #dbe7f2; }
.price-feats li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.price-cta { text-align: center; margin-top: auto; }
.price-pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: 0.7rem; font-weight: 800;
  padding: 0.24rem 0.85rem; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.price-trust {
  display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.pricing-promise {
  margin: 2.2rem auto 0; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); max-width: 1020px;
}
.pricing-promise p { color: var(--muted); margin: 0.3rem 0; }
.pricing-promise strong { color: var(--ink); }
.fine { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.2rem; }

/* --- Status --- */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 60rem; margin: 0 auto; }
@media (max-width: 760px) { .status-grid { grid-template-columns: 1fr; } }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.status-card h3 { font-size: 1.05rem; }
.status-card.ok { border-top: 4px solid var(--teal-ink); }
.status-card.soon { border-top: 4px solid var(--accent); }
.status-card .checklist li::before { color: var(--teal-ink); }
.status-card.soon .checklist li::before { content: "○"; color: var(--accent); }

/* --- Footer --- */
.footer {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--border);
  font-size: 0.92rem; color: var(--muted); background: #06101b;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.env-badge {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}

/* --- Screens: web UI tiles in browser frames, the app in phone frames --- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.shot { margin: 0; }
.shot .mock-window img { display: block; width: 100%; height: auto; }
.shot figcaption, .phone-shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; line-height: 1.45; }
.shot figcaption strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }
.phones-lede { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 1.6rem; }
.phone-shot { margin: 0; text-align: center; }
.phone-frame {
  border: 1px solid var(--border); border-radius: 28px; padding: 8px; background: #05080d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); max-width: 260px; margin: 0 auto;
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 21px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Screenshot lightbox (public/lightbox.js) ---------------------------------------------
   The script wraps each screenshot in a button; reset it so the tile looks exactly as before. */
.lb-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.lb-open img { display: block; width: 100%; height: auto; transition: filter 0.15s ease; }
.lb-open:hover img { filter: brightness(1.08); }
.lb-open:focus-visible { outline: 2px solid var(--accent-ink, var(--accent)); outline-offset: 3px; border-radius: 6px; }
.lb {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: hidden;
}
.lb::backdrop { background: rgba(4, 8, 14, 0.97); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
/* Horizontal gestures are ours (swipe to the next shot); vertical ones still scroll. */
.lb { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; max-width: 94vw; }
.lb-img {
  display: block; max-width: min(94vw, 1800px); max-height: 80vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #0b1220;
}
.lb-img.lb-tall { max-height: 84vh; border-radius: 26px; }
.lb-cap { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 70ch; line-height: 1.45; }
.lb-cap strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.15rem; }
.lb-count { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.9rem; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(15, 23, 36, 0.85); color: var(--ink);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); }
.lb-btn:focus-visible { outline: 2px solid var(--accent-ink, var(--accent)); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; font-size: 1.6rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-img { max-height: 72vh; }
}

/* Shorthop Watch: the web list beside the phone page; stacks on a phone. */
.watch-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem);
              align-items: center; margin: 1.6rem 0 2rem; }
.watch-grid .phone-frame { max-width: 240px; }
@media (max-width: 760px) { .watch-grid { grid-template-columns: minmax(0, 1fr); } }
.watch-price { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
               max-width: 1020px; margin: 1.4rem auto 0; padding: 1.2rem 1.5rem; border: 1px solid var(--border);
               border-radius: 18px; background: var(--card); }
.watch-price > div:first-child { flex: 1 1 320px; }
.watch-price h3 { margin: 0 0 0.2rem; }
.watch-price p { margin: 0; color: var(--muted); }
.watch-price-amount { flex: 0 1 auto; font-size: 1.35rem; font-weight: 800; text-align: right; }
.watch-price-amount span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-top: 0.15rem; }
@media (max-width: 600px) { .watch-price-amount { text-align: left; } }
.footer .legal { color: var(--muted); font-size: 0.78rem; }

/* --- Long-form text (privacy page) --- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.prose h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose-meta { color: var(--muted); font-size: 0.9rem; }
/* A table that is wider than a phone scrolls inside its own box, never the page. */
.table-wrap { overflow-x: auto; margin: 0.8rem 0 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--bg-soft); color: var(--navy); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* --- Service status (SHOR-11, /status rendered by src/canary.js) --- */
.status-head::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%;
  margin-right: 0.5em; vertical-align: 0.08em; background: var(--muted); }
.status-head.operational::before { background: var(--teal-ink); }
.status-head.degraded::before { background: var(--accent); }
.status-head.outage::before { background: var(--danger); }
/* Two short columns: unlike the privacy tables it never needs to scroll sideways on a phone. */
.table-wrap table.status-table, .table-wrap table.kv-table { min-width: 0; }
.kv-table th { width: 9rem; }
@media (max-width: 520px) { .kv-table th, .kv-table td { display: block; width: auto; } .kv-table th { border-bottom: 0; padding-bottom: 0.2rem; } }
.sstate { white-space: nowrap; font-weight: 600; vertical-align: middle !important; }
.sstate.ok { color: var(--teal-ink); }
.sstate.bad { color: var(--danger); }
.sbars { display: flex; gap: 1px; align-items: stretch; height: 34px; margin: 0.5rem 0 1rem; }
.sbar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--teal-ink); opacity: 0.85; }
.sbar.bad { background: var(--danger); opacity: 1; }

/* --- Docs (docs.shorthop.io, built by scripts/build-docs.mjs) --- */
.docs-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.12rem 0.45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  vertical-align: 0.15em; margin-left: 0.25rem; }
.docs-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem;
  max-width: 76rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem); }
.docs-side { position: sticky; top: 1rem; align-self: start; font-size: 0.92rem; }
.docs-side-title { display: none; }
.docs-side ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.docs-side li a { display: block; padding: 0.25rem 0.6rem; border-radius: 7px; color: var(--ink); }
.docs-side li a:hover { background: var(--bg-soft); text-decoration: none; }
.docs-side li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.docs-group { margin: 0 0 0.3rem 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.docs-body { max-width: 48rem; margin: 0; }
.docs-body pre { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem;
  overflow-x: auto; font-size: 0.86rem; line-height: 1.5; }
.docs-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.docs-body :not(pre) > code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 0.05rem 0.3rem; }
.docs-body blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--muted); }
.docs-body blockquote p { margin: 0; }
.docs-body h2 { margin-top: 2.2rem; }
.docs-body .table-wrap table { min-width: 0; }
.docs-edit { margin-top: 3rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  /* On a phone the page comes first and the contents after it. */
  .docs-side { position: static; order: 2; border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 1rem; }
  .docs-side-title { display: block; font-weight: 700; margin: 0 0 0.6rem; }
}
