/* ============================================================
   TenderWatch — civic/official styling
   Type: Newsreader (serif display) · Hanken Grotesk (UI) · IBM Plex Mono (data)
   ============================================================ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/newsreader-dd08b472.woff2") format("woff2-variations"),
       url("/assets/newsreader-dd08b472.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/newsreader-italic-0b0e0d9c.woff2") format("woff2-variations"),
       url("/assets/newsreader-italic-0b0e0d9c.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/hanken-grotesk-7b3229a0.woff2") format("woff2-variations"),
       url("/assets/hanken-grotesk-7b3229a0.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-400-d803141a.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-500-3f7bbac1.woff2") format("woff2");
}

:root {
  /* Paper & ink */
  --paper:      oklch(0.991 0.004 95);
  --paper-2:    oklch(0.975 0.005 95);
  --card:       oklch(1 0 0);
  --ink:        oklch(0.255 0.035 258);
  --ink-soft:   oklch(0.46 0.028 258);
  --ink-faint:  oklch(0.62 0.02 258);
  --line:       oklch(0.905 0.008 258);
  --line-soft:  oklch(0.945 0.006 258);

  --navy:       oklch(0.305 0.058 262);
  --navy-deep:  color-mix(in oklab, var(--navy), black 22%);

  --live:       oklch(0.60 0.125 152);
  --live-ink:   color-mix(in oklab, var(--live), black 26%);
  --live-bg:    color-mix(in oklab, var(--live), var(--paper) 90%);
  --live-ring:  color-mix(in oklab, var(--live), white 52%);

  --warn:       oklch(0.66 0.14 60);
  --warn-ink:   color-mix(in oklab, var(--warn), black 30%);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1100px;
  --pad: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px oklch(0.25 0.04 258 / 0.05), 0 1px 1px oklch(0.25 0.04 258 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.25 0.04 258 / 0.06), 0 2px 5px oklch(0.25 0.04 258 / 0.05);
  --shadow-lg: 0 18px 50px oklch(0.25 0.04 258 / 0.10), 0 6px 16px oklch(0.25 0.04 258 / 0.06);
}

/* ============================================================
   Reset — strip default UA margin/padding from block elements that
   are routinely styled from scratch, so we never have to remember
   that `<ul>` is paragraph-margin'd and inset, or that `<h2>` ships
   with a half-em top. Form controls inherit typography. Media is
   block-level by default.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
html { -webkit-text-size-adjust: 100%; }
/* The `hidden` attribute must win over component display rules (e.g. .btn's
   inline-flex), so JS show/hide via `el.hidden` works without inline styles. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  /* Sticky footer: body is a column flex container; main grows to fill
     remaining viewport so the footer is pinned to the bottom even on
     short pages, without absolute positioning. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: var(--live-ring); color: var(--navy-deep); }

/* Skip-to-content: invisible until focused, then anchors to the top-
   left so keyboard users can jump past the header. Sits in a fixed
   position so it doesn't shift layout on focus. */
.skip-to-content {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.15s;
}
.skip-to-content:focus { transform: translateY(0); outline: 2px solid var(--paper); outline-offset: 2px; }

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: oklch(0.991 0.004 95 / 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand__name b { font-weight: 700; }

/* Right side splits into primary product nav and account actions, with a
   hairline divider between the two groups so they read as distinct. */
.header-right { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 26px); min-width: 0; }
.header-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding-left: clamp(14px, 2.5vw, 26px);
  border-left: 1px solid var(--line);
}
.header-actions form { margin: 0; }

.header-link, .header-button {
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-link:hover, .header-button:hover { color: var(--live-ink); }
.header-link.is-active { color: var(--live-ink); }

/* Sign-in is the one filled call-to-action in the bar. */
.header-cta {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.header-cta:hover { background: var(--navy-deep); color: var(--paper); }

/* Hamburger toggle — hidden on desktop, shown when the bar collapses. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.nav-toggle__close { display: none; }
.is-open .nav-toggle__open { display: none; }
.is-open .nav-toggle__close { display: block; }

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; min-height: 60px; padding-block: 11px; }
  .nav-toggle { display: inline-flex; }

  /* The menu drops to its own full-width row below the brand and is
     hidden until the toggle adds `is-open` on the <header>. */
  .header-right {
    flex-basis: 100%;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
  }
  .site-header.is-open .header-right { display: flex; }

  .header-nav,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
  }
  .header-actions {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
  }
  .header-actions form { width: 100%; }

  .header-right .header-link,
  .header-right .header-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .header-right .header-link:hover,
  .header-right .header-button:hover { background: var(--paper-2); color: var(--ink); }
  .header-right .header-link.is-active {
    background: var(--live-bg);
    color: var(--live-ink);
  }
  .header-cta { justify-content: center; background: var(--navy); color: var(--paper); }
  .header-cta:hover { background: var(--navy-deep); color: var(--paper); }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--live-ink);
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); position: relative; }
.live-pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--live); opacity: 0.6;
  animation: ping 2.4s cubic-bezier(0.2,0.6,0.3,1) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 80%,100% { transform: scale(1.7); opacity: 0; } }

/* Honour the OS-level reduced-motion preference. The ping animation
   loops forever; users who opted out via a system setting (vestibular
   sensitivity, attention concerns, motion sickness) shouldn't get an
   in-perpetuity pulse. Other one-shot transitions (button hover,
   underline) stay — they're brief and event-driven. */
@media (prefers-reduced-motion: reduce) {
  .live-pill .dot::after,
  .hero__stat-dot::after { animation: none; }
}

.live-pill__num { font-weight: 500; }
.live-pill__suffix { white-space: nowrap; }
@media (max-width: 620px) {
  .live-pill__suffix { display: none; }
}

/* ============================================================
   Flash — full-width band flush against the navbar bottom border.
   Outer element paints the colour across the viewport; inner .wrap
   re-uses the navbar's max-width + --pad so the message aligns with
   the brand mark. Pattern mirrors the sibling Forcepull app.
   ============================================================ */
.site-flash {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.site-flash .wrap { padding-top: 12px; padding-bottom: 12px; text-align: center; }
.site-flash-notice {
  background: var(--live-bg);
  border-top: 1px solid color-mix(in oklab, var(--live-bg), var(--live) 11%);
  border-bottom: 1px solid color-mix(in oklab, var(--live-bg), var(--live) 22%);
  color: var(--live-ink);
}
.site-flash-alert {
  background: oklch(0.96 0.04 30);
  border-top: 1px solid color-mix(in oklab, oklch(0.96 0.04 30), oklch(0.55 0.18 30) 11%);
  border-bottom: 1px solid color-mix(in oklab, oklch(0.96 0.04 30), oklch(0.55 0.18 30) 22%);
  color: oklch(0.4 0.13 30);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(46px, 7vw, 80px); padding-bottom: 0; text-align: center; }
.hero__eyebrow { color: var(--ink); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink); display: inline-block; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 auto 26px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--navy); }

.hero__sub {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0 auto;
  text-wrap: pretty;
}
.hero__sub b { color: var(--ink); font-weight: 600; }

.hero__tagline {
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 16px auto 0;
}
.hero__tagline b { font-weight: 600; }

.hero__stat {
  display: inline-flex;
  align-items: stretch;
  margin-top: 28px;
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 22px -16px color-mix(in oklab, var(--live), transparent 35%);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero__stat:hover {
  border-color: var(--live);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -16px color-mix(in oklab, var(--live), transparent 25%);
}
.hero__stat-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: color-mix(in oklab, var(--live-bg), var(--live) 12%);
  border-right: 1px solid color-mix(in oklab, var(--live-ring), transparent 25%);
}
.hero__stat-body {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  position: relative;
  overflow: hidden;
}
.hero__stat-body > * { position: relative; z-index: 1; }
/* Hover sweep: the alcove tint washes across the body, as if the live
   signal is expanding through the pill. The arrow's existing
   hover-translate gives it directionality. */
.hero__stat-body::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--live-bg), var(--live) 12%);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__stat:hover .hero__stat-body::before { transform: translateX(0); }
.hero__stat-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--live);
  position: relative;
  flex: none;
}
.hero__stat-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--live); opacity: 0.6;
  animation: ping 2.4s cubic-bezier(0.2,0.6,0.3,1) infinite;
}
.hero__stat .num {
  font-family: var(--mono);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 500;
  color: var(--live-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero__stat .cap {
  color: var(--live-ink);
  opacity: 0.78;
  font-size: 15.5px;
}
.hero__stat-arrow {
  margin-left: 4px;
  color: var(--live-ink);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s;
}
.hero__stat:hover .hero__stat-arrow { transform: translateX(3px); }

/* ── ticker ─────────────────────────────────────── */
.ticker {
  margin-top: clamp(46px, 7vw, 80px);
  border-block: 1px solid var(--line);
  background: linear-gradient(var(--paper-2), var(--paper-2));
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
.ticker__head {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 0 30px 0 var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker__head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live-ring); }
.ticker__track { display: flex; width: max-content; animation: scroll-x 180s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; white-space: nowrap; border-right: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.ticker__item .sect { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.ticker__item .title { color: var(--ink); font-weight: 500; }
.ticker__item .open { font-family: var(--mono); font-size: 11px; color: var(--live-ink); letter-spacing: 0.04em; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============================================================
   Panel (signup + manage + message variants)
   ============================================================ */
.section { padding-top: clamp(46px, 7vw, 80px); padding-bottom: clamp(46px, 7vw, 80px); }
/* Muted ground so a section reads as continuous with an adjacent paper-2 band
   (e.g. the pricing CTA flowing on from the FAQ band above it). */
.section--muted { background: var(--paper-2); }
.panel {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel--narrow { max-width: 560px; }
.panel--wide { max-width: none; }
.panel__head { padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 44px) clamp(20px, 3vw, 28px); }
.panel__head h2,
.panel__head h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3.4vw, 32px);
  letter-spacing: -0.015em; margin: 0 0 8px;
}
.panel__head p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.panel__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel__head-row .btn { margin-left: auto; }

.panel__body { padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px); }
.panel__body > p { color: var(--ink-soft); margin: 0 0 14px; }
.panel__body > p:last-child { margin-bottom: 0; }
.panel__body a { color: var(--navy); }

.step { padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px); border-top: 1px solid var(--line-soft); }
.step .field { margin-bottom: 14px; }
.step .field:last-of-type { margin-bottom: 0; }
.step .choice { margin-top: 4px; }

/* Utility classes — kept here so views never need inline style attrs
   (which would trip the strict CSP style-src directive). */
.u-text-faint    { color: var(--ink-faint); }
.u-text-center   { text-align: center; }
.u-mt-md         { margin-top: 18px; }
.u-flex-row      { display: flex; gap: 10px; flex-wrap: wrap; }
.u-confirm-start { justify-content: flex-start; }
.step__label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step__title { line-height: 1.3; font-weight: 700; font-size: 15.5px; letter-spacing: 0.005em; }
.step__no {
  font-family: var(--mono); font-size: 12px; color: var(--paper);
  background: var(--navy); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.step__optional { font-weight: 500; color: var(--ink-faint); }

/* fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label,
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field > input:not([type="checkbox"]):not([type="radio"]),
.field > textarea,
.field > select {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field > input:not([type="checkbox"]):not([type="radio"])::placeholder,
.field > textarea::placeholder { color: var(--ink-faint); }
.field > input:not([type="checkbox"]):not([type="radio"]):focus,
.field > textarea:focus,
.field > select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 4px oklch(0.305 0.058 262 / 0.1);
}
.input {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px oklch(0.305 0.058 262 / 0.1); }

/* Keyboard-only focus ring on every interactive element. Reset the
   browser default outline and re-establish a consistent ring that
   only appears for :focus-visible (so mouse clicks don't show it).
   The 4px offset matches the .input ring's visual weight. */
.btn:focus-visible,
.header-link:focus-visible,
.header-button:focus-visible,
.view-toggle__item:focus-visible,
.pagination-link:focus-visible,
.tender-title:focus-visible,
.brand:focus-visible,
.site-footer__links a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.field-hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.field .field-hint { margin: 0; }
/* Align step content with the step title text (past the numbered
   circle). Scoped to panels that render numbered circles anywhere, so:
   - un-numbered panels (account, login, contact, subscription success,
     admin blog form) sit flush instead of indenting for a circle they
     never render, and
   - on the numbered wizards, the un-numbered error-banner step still
     aligns with the numbered content beside it. */
.panel:has(.step__no) .step > :is(.field, .field-hint, .sectors, .choice, .form-errors) {
  margin-left: 34px;
}
/* Tucks the hint up under a numbered step title; same scope as above. */
.panel:has(.step__no) .step > .field-hint { margin-top: -4px; }

/* choice card (digest on/off toggle, admin publish) */
.choice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 13px; padding: 16px 18px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; background: var(--paper);
}
.choice + .choice { margin-top: 8px; }
.choice:hover { border-color: oklch(0.82 0.02 258); }
.choice input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.choice__body { flex: 1; }
.choice__title { display: block; font-weight: 700; font-size: 15.5px; }
.choice__desc { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin-top: 5px; }
.choice:has(input:checked) { border-color: var(--navy); background: oklch(0.305 0.058 262 / 0.035); box-shadow: var(--shadow-sm); }

/* sector accordion */
.sectors { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sector {
  border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sector.is-open { border-color: oklch(0.84 0.02 258); box-shadow: var(--shadow-sm); background: var(--card); }
.sector__bar {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 15px 16px; font: inherit; color: var(--ink);
}
.sector__check { width: 19px; height: 19px; flex: none; accent-color: var(--navy); cursor: pointer; }
.sector__name { font-weight: 600; font-size: 15.5px; flex: 1; }
.sector__count {
  font-family: var(--mono); font-size: 12px; color: var(--live-ink);
  background: var(--live-bg); border: 1px solid var(--live-ring);
  padding: 2px 8px; border-radius: 999px;
}
.sector__count.zero { color: var(--ink-faint); background: var(--paper-2); border-color: var(--line); }
.sector__chev { color: var(--ink-faint); transition: transform 0.2s ease; flex: none; }
.sector.is-open .sector__chev { transform: rotate(180deg); }

.sector__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.sector.is-open .sector__body { grid-template-rows: 1fr; }
.sector__inner { overflow: hidden; }
.areas {
  list-style: none; margin: 0; padding: 4px 16px 16px 48px;
  display: grid; gap: 2px;
}
.area label {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-size: 14.5px; color: var(--ink-soft); transition: background 0.12s;
}
.area label:hover { background: var(--paper-2); }
.area input { width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.area__name { flex: 1; }
.area__count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.area__count.has { color: var(--live-ink); }

/* submit row */
.submit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(22px, 3.5vw, 30px) clamp(24px, 4vw, 44px);
  background: var(--paper-2); border-top: 1px solid var(--line);
}
/* Upgrade nudge for Scout users: spaced off the panel above it and given the
   green Hunter accent (mirrors the featured pricing card) so it stands out and
   reads as "this leads to Hunter". */
.contextual-cta,
.newsletter-promo {
  margin-top: clamp(20px, 3.5vw, 34px);
}
.contextual-cta .panel__head,
.newsletter-promo .panel__head { padding-bottom: 0; }
.contextual-cta .panel__body,
.newsletter-promo .panel__body { padding-top: clamp(10px, 1.5vw, 14px); }
.contextual-cta .submit-row .summary:empty,
.newsletter-promo .submit-row .summary:empty { display: none; }
.contextual-cta--upgrade,
.contextual-cta--hawk_waitlist {
  border-color: var(--live);
  background: linear-gradient(180deg, var(--live-bg), var(--card));
  box-shadow: 0 26px 50px -32px color-mix(in oklab, var(--live), transparent 45%);
}
.contextual-cta--upgrade .submit-row,
.contextual-cta--hawk_waitlist .submit-row {
  background: transparent;
  border-top-color: color-mix(in oklab, var(--live), transparent 80%);
}
.contextual-cta--signup {
  border-color: var(--navy);
  background: linear-gradient(180deg, color-mix(in oklab, var(--navy), transparent 94%), var(--card));
  box-shadow: 0 22px 44px -30px color-mix(in oklab, var(--navy), transparent 55%);
}
.contextual-cta--signup .submit-row {
  background: transparent;
  border-top-color: color-mix(in oklab, var(--navy), transparent 82%);
}
.contextual-cta--hawk_waitlist_done {
  border-color: var(--live);
  background: var(--live-bg);
}
.newsletter-promo {
  border-color: var(--line);
  background: var(--paper-2);
}
.newsletter-promo .submit-row {
  background: transparent;
  border-top-color: var(--line-soft);
}
.blog-index .contextual-cta,
.blog-index .newsletter-promo,
.blog-article__content .contextual-cta,
.blog-article__content .newsletter-promo {
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 620px) {
  .contextual-cta .submit-row,
  .newsletter-promo .submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .contextual-cta .submit-row .btn,
  .newsletter-promo .submit-row .btn {
    width: 100%;
    justify-content: center;
  }
}
.summary { font-size: 14px; color: var(--ink-soft); }
.summary b { color: var(--ink); font-weight: 600; }

.btn {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 0; border-radius: 12px; padding: 15px 26px;
  background: var(--navy); color: var(--paper); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  box-shadow: var(--shadow-md); transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }

.btn--warn { background: var(--warn); }
.btn--warn:hover { background: var(--warn-ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  border: 1.5px solid var(--line);
  padding: 13px 22px;
}
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: oklch(0.82 0.02 258); }

.assure { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 13.5px; margin-top: 14px; }
.assure svg { color: var(--live); flex: none; }

.form-errors {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: oklch(0.97 0.05 30);
  border: 1px solid oklch(0.88 0.1 30);
  border-radius: 11px;
  color: oklch(0.38 0.16 30);
  font-size: 14.5px;
}
.form-errors p { margin: 2px 0; }

/* ============================================================
   How it works
   ============================================================ */
/* ============================================================
   Sources we watch — sits just above the footer.
   ============================================================ */
.sources { padding-block: clamp(34px, 5vw, 54px); border-top: 1px solid var(--line); }
.sources__row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between; }
.sources__intro { max-width: 36ch; }
.sources__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.sources__lead { color: var(--ink-soft); font-size: 15px; }
.sources__list { display: flex; flex-wrap: wrap; gap: 10px; }
.source-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--card);
}
.source-chip--soon {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
}

.how { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); background: var(--paper-2); }
.how__eyebrow { color: var(--ink); margin-bottom: 28px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.how__num { font-family: var(--mono); font-size: 13px; color: var(--live-ink); margin-bottom: 14px; }
.how__step h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 9px; letter-spacing: -0.01em; }
.how__step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; line-height: 1.5; }
@media (max-width: 760px) { .how__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: oklch(0.86 0.01 258); }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(320px, 1fr);
  align-items: start;
  gap: 28px clamp(26px, 4vw, 52px);
  padding-block: 30px;
}
.site-footer__brand { display: grid; gap: 12px; align-content: start; }
.site-footer .brand { width: fit-content; }
.site-footer .brand__name { color: var(--paper); font-size: 17px; }
.site-footer__nav {
  display: grid;
  /* auto-fit so new footer groups (Legal today, Contact soon) wrap into
     the available track instead of overflowing it; the parent grid only
     guarantees this nav minmax(320px, 1fr), and the track is ~407px on
     desktop. 102px floor = widest link ("Browse tenders", 101px), so
     three groups fit side by side wherever the track is ≥3×102+gaps. */
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 18px clamp(16px, 3vw, 30px);
}
.site-footer__group { display: grid; gap: 10px; align-content: start; }
.site-footer__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.7 0.015 258);
}
.site-footer__links { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: oklch(0.82 0.012 258); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.site-footer a:hover { color: var(--paper); }
.site-footer__tagline {
  margin: 0;
  color: oklch(0.8 0.012 258);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-footer__fine {
  text-align: left;
  color: oklch(0.62 0.015 258);
  font-size: 12px;
  font-family: var(--mono);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 720px) {
  /* Stack brand above the link groups, but keep Explore/Account as two
     side-by-side columns so the footer reads as a structured sitemap
     instead of one long centered list. */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 34px;
  }
  .site-footer__brand {
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid oklch(1 0 0 / 0.08);
  }
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .site-footer__links { gap: 11px; }
  .site-footer__links a { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .site-footer__nav { grid-template-columns: 1fr; }
}

/* ============================================================
   Confirmation panel (.confirm — used on check_inbox, confirmed, etc.)
   ============================================================ */
.confirm { padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px); text-align: center; }
.confirm__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--live-bg);
  border: 1.5px solid var(--live-ring); display: grid; place-items: center; margin: 0 auto 26px; color: var(--live);
}
.confirm__icon--warn { background: oklch(0.97 0.05 60); border-color: oklch(0.85 0.12 60); color: oklch(0.55 0.16 60); }
.confirm h1, .confirm h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.015em;
}
.confirm p { color: var(--ink-soft); margin: 0 auto 8px; max-width: 46ch; font-size: 16.5px; line-height: 1.5; }
.confirm p b, .confirm p strong { color: var(--ink); font-weight: 600; }
.confirm__chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 26px 0 6px; }
.confirm__chip {
  font-family: var(--mono); font-size: 12px; color: var(--navy);
  background: oklch(0.305 0.058 262 / 0.06); border: 1px solid oklch(0.305 0.058 262 / 0.18);
  padding: 6px 12px; border-radius: 999px;
}
.confirm__actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.confirm__hint { color: var(--ink-faint); font-size: 14.5px; margin-top: 18px; }
.confirm__back {
  margin-top: 22px; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14.5px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.confirm__back:hover { color: var(--ink); }

/* ============================================================
   Manage page (panel subdivisions)
   ============================================================ */
.panel__section {
  padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.panel__section h2 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.panel__section p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 14px; }
.panel__section p:last-of-type { margin-bottom: 18px; }
.panel__section .field { margin-bottom: 14px; }

.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1; min-width: 220px; }

/* Newsletter signup: stacked full-width input + button, padded to align with
   the panel head. Reads cleaner than the inline form and gives big mobile
   tap targets. */
.newsletter-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 clamp(24px, 4vw, 44px) clamp(26px, 4vw, 36px);
}
.newsletter-form .btn { width: 100%; justify-content: center; }
.newsletter-form .assure { margin-top: 2px; }

/* Signed-in, already-subscribed state: status note + a collapsed
   "different email" form, sharing the form's horizontal padding. */
.newsletter-status { padding: 0 clamp(24px, 4vw, 44px) clamp(26px, 4vw, 36px); }
.newsletter-alt { margin-top: 16px; }
.newsletter-alt > summary {
  cursor: pointer; color: var(--ink-soft); font-size: 14px; width: fit-content;
}
.newsletter-alt > summary:hover { color: var(--ink); }
.newsletter-alt .newsletter-form { padding: 16px 0 0; }

/* ============================================================
   Welcome-back panel (home page for signed-in users)
   ============================================================ */
.welcome__matches { list-style: none; border-top: 1px solid var(--line-soft); }
.welcome__match {
  padding: 18px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.welcome__match:first-child { border-top: 0; }
.welcome__match-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.welcome__match-sect { color: var(--ink-faint); }
.welcome__match-when { color: var(--live-ink); }
.welcome__match-title {
  display: inline-block;
  font-weight: 600; font-size: 16px; color: var(--navy);
  text-decoration: none; line-height: 1.35;
}
.welcome__match-title:hover { text-decoration: underline; }
.welcome__match-buyer { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.welcome__empty {
  padding: 28px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.welcome__empty p { margin: 0; }

/* ============================================================
   Tenders table
   ============================================================ */
.page-header {
  padding-bottom: 18px;
}
.page-header h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.page-subtitle { color: var(--ink-soft); font-size: 17px; margin: 0; }
.last-refreshed {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* Watch summary now sits as a top-level panel band so each group gets
   its own full-width section, with hairlines that stretch edge to edge
   instead of being inset by the panel head's padding. Paper-2 ground
   sets it apart from the main panel body without dropping it out of the
   reading flow. */
.watch-summary {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
}
.watch-summary__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.5vw, 24px) clamp(24px, 4vw, 44px);
}
.watch-summary__group {
  border-top: 1px solid var(--line-soft);
}
.watch-summary__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.watch-summary__manage-wrap {
  margin-left: 4px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0.02em;
}
.watch-summary__manage {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.watch-summary__manage:hover { text-decoration: underline; }
/* Status line — flowing text so long messages wrap cleanly at narrow
   widths. The active/paused word carries the colour cue. */
.watch-summary__status {
  font-size: 14px;
  color: var(--ink-soft);
}
.watch-summary__status strong { font-weight: 600; }
.watch-summary__status--active strong { color: var(--live-ink); }
.watch-summary__status--paused strong { color: var(--warn-ink); }
.watch-summary__resume {
  display: inline-block;
  margin-left: 4px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.watch-summary__resume:hover { text-decoration: underline; }
.watch-summary__list {
  list-style: none;
  counter-reset: watch-item;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.watch-summary__list li { counter-increment: watch-item; }
.watch-summary__list li::before {
  content: counter(watch-item) ".";
  display: inline-block;
  min-width: 1.6em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--live);
}

.page-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.btn--small { padding: 9px 16px; font-size: 14px; }
/* Badge-sized action for dense table rows (admin comp grant/revoke):
   matches .badge metrics exactly (padding, 1px border, weight) so it
   sits at the same height as the pills beside it; keeps ghost colors,
   drops the lift/shadow. */
.btn--pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-width: 1px;
  border-radius: 999px;
  box-shadow: none;
}
.btn--pill:hover { transform: none; box-shadow: none; }
.view-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
  gap: 2px;
}
.view-toggle__item {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.view-toggle__item:hover { color: var(--ink); }
.view-toggle__item.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Secondary view switch below the tender list — mirrors the top tabs for
   users who've scrolled past them. */
.view-switch-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(18px, 3vw, 24px) clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.view-switch-footer__hint {
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
}
.view-switch-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--navy);
}
.view-switch-footer__link:hover { text-decoration: underline; }
.view-switch-footer__link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Card-style list of tenders — same shape as the welcome panel's matches
   list. Used on /tenders and /tenders/mine. */
.tender-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.tender-list__item {
  padding: 18px clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tender-list__item:last-child { border-bottom: 0; }
.tender-list__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tender-list__sect { color: var(--ink-faint); }
.tender-list__when { color: var(--live-ink); }
.tender-list__loc  { color: var(--ink-soft); }
.tender-list__title {
  display: inline-block;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
}
.tender-list__title:hover { text-decoration: underline; }
.tender-list__sub {
  display: flex;
  gap: 6px 16px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 2px;
}
.tender-list__buyer { color: var(--ink-soft); }
.tender-list__value { font-family: var(--mono); color: var(--ink); }
.tender-list__deadline { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

.tender-title { font-weight: 600; color: var(--navy); text-decoration: none; }
.tender-title:hover { text-decoration: underline; }

/* Data table — sits flush inside a panel; horizontal scroll wraps the
   table so the row layout stays clean on narrow screens instead of
   overflowing the panel. Picks up panel inset padding so cells align
   with .panel__head. */
.data-table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 14px clamp(12px, 2vw, 18px);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.data-table th:first-child, .data-table td:first-child { padding-left: clamp(24px, 4vw, 44px); }
.data-table th:last-child, .data-table td:last-child { padding-right: clamp(24px, 4vw, 44px); }
.data-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 500;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in oklab, var(--paper-2), white 40%); }
.data-table td.numeric, .data-table th.numeric {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.data-table td.nowrap, .data-table th.nowrap { white-space: nowrap; }
.data-table__primary { font-weight: 600; color: var(--navy); }

/* Contact-message cell: keep the sender's line breaks, cap the width so a
   long message doesn't blow out the table, and wrap unbroken strings. */
.data-table td.message-cell {
  white-space: pre-wrap;
  max-width: 42ch;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
}
.badge--admin {
  background: var(--live-bg);
  border-color: var(--live-ring);
  color: var(--live-ink);
}

.badge--draft {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--ink-soft);
}
.badge--live {
  background: var(--live-bg);
  border-color: var(--live-ring);
  color: var(--live-ink);
}

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vw, 24px) clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-size: 14px;
  gap: 14px;
}
.pagination-link {
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--card);
}
/* On touch viewports the pagination chips need a ≥44px tap target so
   the WCAG AA target-size guideline (and Apple/Material design
   minimums) are met. Bumps the inner padding rather than the font
   size so the visual weight stays even. */
@media (max-width: 700px) {
  .pagination-link { padding: 14px 18px; }
}
.pagination-link:hover { border-color: var(--navy); color: var(--navy); }
.pagination-link.disabled { color: var(--ink-faint); background: var(--paper-2); cursor: default; }
.pagination-info { color: var(--ink-faint); font-family: var(--mono); font-size: 12.5px; }

.empty-state {
  padding: 28px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.guest-cta {
  margin-top: 28px;
  padding: clamp(22px, 3.5vw, 30px) clamp(24px, 4vw, 36px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.guest-cta__body { flex: 1 1 320px; min-width: 0; }
.guest-cta__body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.guest-cta__body p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.guest-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

code {
  background: var(--paper-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Blog */
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.blog-card:hover { background: color-mix(in oklab, var(--paper-2), white 40%); }
.blog-card__thumb {
  flex: none;
  width: 156px;
  aspect-ratio: 3 / 2;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* On phones the thumbnail and arrow crowd the row; drop them for a clean,
   full-width text list. */
/* From tablet down, the thumbnail + arrow squeeze the text column, so put the
   category tag on its own line above the meta — otherwise a long date/read
   line wraps awkwardly. (Qualified selector so it beats the base
   .blog-card__top rule, which is defined later in the file.) */
@media (max-width: 820px) {
  .blog-card .blog-card__top { flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 4px; }
}

@media (max-width: 560px) {
  .blog-card__thumb { display: none; }
  .blog-card { gap: 0; }
  /* Reading time is low-value on narrow screens; keep just the date. */
  .blog-card__read { display: none; }
  /* The whole featured card is tappable, so drop the explicit CTA on mobile. */
  .blog-featured .blog-featured__cta { display: none; }
}
.blog-card__text { flex: 1; min-width: 0; display: block; }
.blog-card__title {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: var(--navy);
  transition: color 0.15s;
}
.blog-card:hover .blog-card__title { color: var(--live-ink); }
.blog-card__intro { display: block; margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Avoid single dangling words on their own line across blog titles + prose. */
.blog-card__title,
.blog-card__intro,
.blog-featured__intro,
.blog-article__deck,
.blog-body__para { text-wrap: pretty; }
.blog-card__meta { display: block; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.blog-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--card);
  transition: transform 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
}
.blog-card:hover .blog-card__arrow {
  color: var(--live-ink);
  border-color: var(--live-ring);
  background: var(--live-bg);
  transform: translateX(3px);
}
.blog-list > li:first-child .blog-card { border-top: 0; }

/* Featured post — a standalone card that sits above the row-list panel,
   matching the design's two-card stack. */
.blog-featured {
  display: block;
  overflow: hidden;
  margin: 0 0 clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--live-bg), transparent 55%), transparent 60%),
    var(--card);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.blog-featured__text { display: block; padding: clamp(30px, 4.5vw, 44px); }

/* With a cover, the image sits full-width on top of the card with the text
   below. Nothing sits beside the image to force a height match, so the whole
   image shows at its natural aspect — no cropped edges (text baked into the
   image stays intact) and no empty gaps. */
.blog-featured--cover { display: flex; flex-direction: column; }
.blog-featured--cover .blog-featured__cover { order: -1; }
.blog-featured__cover {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.blog-featured__cover img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-rows { border-radius: 20px; }

/* Index content (featured + list) matches the widest column on the show
   page (the 900px cover) rather than the full 1100px wrap. */
.blog-index { max-width: 900px; }
.blog-featured:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-featured__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live-ink);
  margin: 0 0 14px;
}
.blog-featured__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 3px var(--live-bg);
}
.blog-featured__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.blog-featured__intro { display: block; font-size: 17px; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.55; max-width: 62ch; }
.blog-featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.blog-featured__meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }
.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
}
.blog-featured__cta svg { transition: transform 0.15s; }
.blog-featured:hover .blog-featured__cta { color: var(--live-ink); }
.blog-featured:hover .blog-featured__cta svg { transform: translateX(3px); }

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s, gap 0.15s;
}
.blog-back:hover { color: var(--navy); gap: 9px; }

/* Article flows open on the page (no card), centred in a reading column.
   Each block sets its own width so the header/body sit narrower than the
   cover and the keep-reading grid, matching the mockup. */
.blog-article { padding-top: clamp(40px, 6vw, 60px); }
.blog-article__head {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.blog-article .blog-back { margin-bottom: clamp(26px, 4vw, 34px); }
.blog-byline { padding-bottom: clamp(26px, 4vw, 34px); border-bottom: 1px solid var(--line); }
.blog-article__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.blog-article__kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Category badge — small green pill, shared by the index, cards and article. */
.blog-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--live-ink);
  background: var(--live-bg);
  border-radius: 6px;
  padding: 4px 10px;
}
.blog-tag--sm { font-size: 10px; padding: 3px 8px; border-radius: 5px; }

/* Category filter bar under the hero. */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-bottom: clamp(18px, 3vw, 26px);
}
.blog-filter__pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.blog-filter__pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.blog-filter__pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Featured card badge sits on its own line between the eyebrow and title. */
.blog-featured .blog-tag { display: block; margin: 0 0 16px; }

/* Row card — tag + meta share a line above the title. */
.blog-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.blog-card__top .blog-card__meta { margin: 0; }
.blog-article__head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
.blog-article__deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-soft);
  margin: 18px 0 0;
  line-height: 1.5;
  max-width: 56ch;
}
.blog-article__meta,
.legal-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin: 0; }

/* Byline — author avatar + name + date/reading-time. */
.blog-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.blog-byline__avatar {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.blog-byline__name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.blog-byline__meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* Reading-progress bar — fixed sliver across the top of the viewport. The
   inner bar's width is driven by the reading_progress controller. */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.reading-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--live);
  transition: width 0.08s linear;
}
@media (prefers-reduced-motion: reduce) { .reading-progress__bar { transition: none; } }

/* Cover image — wider than the reading column, sits below the header. */
.blog-cover {
  max-width: 900px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding-inline: var(--pad);
}
.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

/* Reading column shared by the article body + newsletter strip. Matches the
   header column width so the body text lines up with the title and the side
   gutters are consistent down the page. */
.blog-article__content {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* Inline newsletter strip at the foot of an article. */
.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  padding: clamp(20px, 3vw, 26px) clamp(22px, 3vw, 28px);
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  border-radius: 14px;
}
.blog-cta__title { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 22px); margin: 0; color: var(--ink); }
.blog-cta__sub { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.blog-cta .btn { flex: none; }
.blog-body {
  padding: clamp(36px, 5vw, 48px) 0 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
}
.blog-body > * { max-width: 100%; }
.blog-body__para { margin: 0 0 1.15em; }
.blog-body__para:last-child { margin-bottom: 0; }
.blog-body h2,
.blog-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 1.6em 0 0.6em;
  max-width: 65ch;
}
.blog-body h2 { font-size: clamp(22px, 3vw, 28px); }
.blog-body h3 { font-size: clamp(19px, 2.5vw, 22px); }
.blog-body ul,
.blog-body ol { margin: 0 0 1.15em; padding-left: 1.4em; max-width: 65ch; }
.blog-body li { margin-bottom: 0.45em; }
.blog-body a { color: var(--navy); text-underline-offset: 2px; }
.blog-body a:hover { color: var(--live-ink); }
.blog-body blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--navy);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05em;
  max-width: 60ch;
}
.blog-body strong { font-weight: 600; color: var(--ink); }
.blog-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
.blog-more {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(46px, 7vw, 80px);
}
.blog-more__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.blog-more__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.blog-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Compact card — a self-contained column tile used in the keep-reading
   grid, with a meta/arrow footer pinned to the bottom. */
.blog-card--compact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.blog-card--compact:hover {
  border-color: var(--navy);
  background: var(--card);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card__media { display: block; }
.blog-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.blog-card__pad {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.5vw, 22px);
}
.blog-card--compact .blog-card__title { font-size: clamp(18px, 2.5vw, 21px); margin: 0; }
.blog-card--compact .blog-card__intro { margin: 0; font-size: 14.5px; flex: 1; }
.blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.blog-card--compact .blog-card__arrow {
  width: 32px; height: 32px;
}
@media (max-width: 820px) {
  .blog-more__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .blog-more__grid { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 36px);
}
.pricing-billing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.pricing-billing__text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.pricing-billing form.button_to { margin: 0; }
.pricing-footnote {
  margin: 0;
  padding: 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(20px, 3vw, 28px);
}
.pricing-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 30px);
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pricing-card:hover { border-color: oklch(0.82 0.02 258); box-shadow: var(--shadow-sm); }
.pricing-card--featured {
  border-color: var(--live);
  overflow: hidden;
  box-shadow: 0 26px 50px -32px color-mix(in oklab, var(--live), transparent 45%);
  background: linear-gradient(180deg, var(--live-bg), var(--card));
}
.pricing-card--featured:hover {
  border-color: var(--live);
  box-shadow: 0 30px 56px -30px color-mix(in oklab, var(--live), transparent 38%);
  transform: translateY(-2px);
}
.pricing-card--current {
  border-color: var(--navy);
  box-shadow: 0 20px 40px -28px color-mix(in oklab, var(--navy), transparent 55%);
}
.pricing-card--current.pricing-card--featured {
  border-color: var(--navy);
  background: linear-gradient(180deg, oklch(0.97 0.01 258), var(--card));
}
.pricing-card--current.pricing-card--featured:hover {
  border-color: var(--navy);
  box-shadow: 0 24px 44px -26px color-mix(in oklab, var(--navy), transparent 48%);
}

/* Sheen — a hairline at the top of the Hunter card with a highlight that
   sweeps across it on a loop, hinting the plan is "live". */
.pricing-card__sheen {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--live-ring), transparent);
}
.pricing-card__glint {
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--paper), transparent);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) { .pricing-card__glint { animation: none; } }

.pricing-card__badge { display: inline-flex; align-items: center; gap: 6px; }
.pricing-card__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  animation: badge-pulse 1.8s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .pricing-card__badge-dot { animation: none; } }
.pricing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pricing-card__name {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0;
}
.pricing-card__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--live-ring);
  background: var(--live-bg);
  color: var(--live-ink);
}
.pricing-card__badge--current {
  border-color: color-mix(in oklab, var(--navy), transparent 70%);
  background: color-mix(in oklab, var(--navy), transparent 92%);
  color: var(--navy);
}
.pricing-card__price {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 46px);
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
  line-height: 1;
}
.pricing-card__per { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.pricing-card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pricing-card__features li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.55em;
}
.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--live);
  border-bottom: 2px solid var(--live);
  transform: rotate(-45deg);
}
.pricing-card__note { font-size: 14px; color: var(--ink-faint); margin: 0 0 14px; }
/* Hunter waitlist confirmation panel (shown when the signed-in user has
   already joined). Fills the space the form would otherwise occupy. */
.waitlist-confirm {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 26px);
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  border-radius: 12px;
}
.waitlist-confirm__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--live-ink);
  background: color-mix(in oklab, var(--live-bg), var(--live) 16%);
}
.waitlist-confirm__title { margin: 0 0 4px; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.waitlist-confirm__sub { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

.pricing-waitlist { flex-direction: column; align-items: stretch; gap: 12px; }
.pricing-waitlist .input { width: 100%; flex: none; min-width: 0; }
.pricing-waitlist .btn { width: 100%; flex: none; justify-content: center; }
.pricing-card .btn,
.pricing-card form.button_to {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
}
.pricing-card .btn { justify-content: center; }
.pricing-card form.button_to .btn { width: 100%; }

/* Sample digest preview inside the Scout card. */
.digest {
  margin: 4px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.digest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.digest__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.digest__count { font-family: var(--mono); font-size: 11px; color: var(--live-ink); }
.digest__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.digest__row:last-child { border-bottom: 0; }
.digest__tag {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--live-ink);
  background: var(--live-bg);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.digest__title { font-size: 13px; line-height: 1.35; color: var(--ink); }
.digest__buyer { color: var(--ink-faint); }

/* FAQ accordion */
.faq__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 26px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq__num { font-family: var(--mono); font-size: 13px; color: var(--live-ink); flex: none; }
.faq__question { flex: 1; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); }
.faq__icon {
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--live);
  transition: transform 0.3s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s ease; }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__answer {
  overflow: hidden;
  margin: 0;
  padding: 0 26px 0 57px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq__item.is-open .faq__answer { padding-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .faq__panel, .faq__icon { transition: none; } }
@media (max-width: 560px) {
  .faq__q { gap: 12px; padding: 18px 18px; }
  .faq__answer { padding-left: 18px; padding-right: 18px; }
}

/* Dark feature CTA (pricing page) — navy panel with the faint grid motif. */
.guest-cta--dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  padding: clamp(32px, 5vw, 52px);
  /* The base .guest-cta top margin would collapse through the muted section
     (which has no top padding here), exposing a lighter strip of body paper
     above the panel. The section spacing handles the gap instead. */
  margin-top: 0;
}
.guest-cta--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.guest-cta--dark > * { position: relative; }
.guest-cta--dark .guest-cta__body h2 { color: var(--paper); font-size: clamp(28px, 4vw, 40px); }
.guest-cta--dark .guest-cta__body p { color: oklch(0.82 0.012 258); font-size: 17px; }
.btn--on-dark { background: var(--paper); color: var(--ink); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }

/* Page intro (compact marketing header) */
.page-intro {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
  text-align: center;
}
.page-intro__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--live-ink);
  margin: 0 0 18px;
}
.page-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.page-intro h1 em { font-style: italic; color: var(--navy); }
.page-intro__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.5;
  margin: 0 auto;
  text-wrap: pretty;
}

/* The hero already carries its own bottom padding; don't stack the next
   section's full top padding under it (that left far too big a gap vs. the
   mockup). The category filter, when present, supplies the spacing instead. */
.page-intro + .section { padding-top: clamp(14px, 2vw, 22px); }
.blog-filter + .section { padding-top: clamp(6px, 1.5vw, 12px); }

/* Admin cover-image field — a neat fixed-aspect preview with the remove
   control overlaid on its corner, and the file picker beneath. */
.cover-field { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cover-field__preview { position: relative; width: 340px; max-width: 100%; }
.cover-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.cover-field__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: oklch(1 0 0 / 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cover-field__remove:hover { background: oklch(0.96 0.04 30); color: oklch(0.4 0.13 30); border-color: oklch(0.85 0.1 30); }
.cover-field__remove svg { flex: none; }
.cover-field__input { font-size: 14px; color: var(--ink-soft); }

/* Roomier spacing between fields on the blog post form. */
.step--form .field,
.step--form .field:last-of-type { margin-bottom: clamp(22px, 3vw, 30px); }
.step--form .choice--publish { margin-top: 4px; }

/* Give the publish toggle room before the footer band. */
.choice--publish { margin-bottom: 6px; }

/* Footer action band — sits flush at the foot of the form panel. */
.submit-row--footer { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }

/* FAQ band (reuses how-grid structure) */
.page-faq {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.page-faq .how__eyebrow { color: var(--ink); margin-bottom: 28px; }
/* The FAQ band and the muted CTA below share a background, so don't stack
   both their paddings into one oversized gap. */
.page-faq + .section { padding-top: 0; }

/* Admin nav in subtitles */
.admin-nav { display: inline; }
.admin-nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.admin-nav__link:hover { color: var(--navy); }
.admin-nav__link.is-active { color: var(--navy); }
.admin-nav__sep { color: var(--ink-faint); margin-inline: 0.25em; }
.data-table__actions {
  font-family: var(--mono);
  font-size: 12.5px;
}
.data-table__actions a {
  text-decoration: none;
  color: var(--navy);
}
.data-table__actions a:hover { color: var(--live-ink); }
.data-table__actions-sep { color: var(--ink-faint); margin-inline: 0.35em; }

/* ============================================================
   Contact form
   ============================================================ */
.input--textarea { resize: vertical; min-height: 140px; }
/* Bot trap: moved out of view rather than display:none, which some
   form-filling bots use to skip fields. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Social sign-in (login page)
   ============================================================ */
.oauth {
  padding: 20px clamp(24px, 4vw, 44px) 26px;
  border-top: 1px solid var(--line);
}
.oauth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.oauth__divider::before,
.oauth__divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.oauth__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.oauth__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.oauth__button:hover { border-color: var(--ink-faint); background: var(--paper-2); }
.oauth__button svg { flex: none; }

/* ============================================================
   Legal pages (privacy, terms)
   Prose typography comes from .blog-body (the views use both classes);
   only the deltas live here.
   ============================================================ */
.legal-body {
  padding: 0;
  max-width: 72ch;
  font-size: 17px;
}
/* .blog-body spaces paragraphs via .blog-body__para; legal copy is plain <p>. */
.legal-body p { margin: 0 0 1.1em; }

/* small responsive tweaks */
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .inline-form .input { width: 100%; }
}
