/* ============================================================
   HoneyDB — public site design system + landing components
   Ported from design/HoneyDB-Design-20260719/ (styles.css + landing.css)
   Dark, refined enterprise SaaS · honey amber · honeycomb motif
   ============================================================ */

/* ---- self-hosted fonts (variable, latin subset, OFL-licensed) ---- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- canvas & surfaces (warm near-black) ---- */
  --bg:        #0b0c0f;
  --bg-2:      #0e1014;
  --surface:   #141720;
  --surface-2: #191d27;
  --surface-3: #1f2430;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);

  /* ---- text ---- */
  --ink:       #f4f2ec;   /* warm white */
  --ink-soft:  #c3c6cd;
  --muted:     #8b909b;
  --faint:     #5b616d;

  /* ---- honey amber (single accent hue) ---- */
  --honey:        #f5b301;
  --honey-bright: #ffc933;
  --honey-deep:   #d98a00;
  --honey-ink:    #1a1404;   /* text on amber */
  --honey-glow:   rgba(245, 179, 1, 0.14);

  /* ---- semantic (status only, sparing) ---- */
  --live:   #3ddc84;
  --alert:  #ff5c5c;
  --warn:   #ffb454;

  /* ---- type ---- */
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---- radii & shadow ---- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow:    0 18px 50px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 120px -40px rgba(0, 0, 0, 0.85);

  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--honey); color: var(--honey-ink); }

a { color: inherit; text-decoration: none; }

/* ---- accessibility: skip link + focus states ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--honey); color: var(--honey-ink);
  padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- honeycomb texture ---- */
.hex-field {
  position: absolute;
  inset: 0;
  background-image: url("/static/img/hex.svg");
  background-size: 40px 69.28px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--honey);
  opacity: 0.6;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }

.mono { font-family: var(--mono); }

/* section h2 sizing (extracted from design inline styles) */
.h2-section { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }
.split-sub { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.mt-30 { margin-top: 30px; }
.mt-28 { margin-top: 28px; }
.mt-16 { margin-top: 16px; }
.center { justify-content: center; text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* media-frame label (extracted from design inline styles) */
.frame-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.frame-head { margin-bottom: 16px; }
.frame-head-tight { margin-bottom: 8px; }
.live-pill.warn { color: var(--warn); border-color: rgba(255, 180, 84, 0.3); }
.live-pill.idle { color: var(--muted); border-color: var(--line-2); }
.live-pill.idle .dot-live { background: var(--muted); animation: none; box-shadow: none; }

/* ---- brand (shared across pages) ---- */
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .glyph { width: 30px; height: 30px; flex: none; object-fit: contain; display: block; }

/* ---- buttons ---- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--honey);
  color: var(--honey-ink);
  box-shadow: 0 10px 30px -12px var(--honey);
}
.btn-primary:hover { background: var(--honey-bright); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--honey); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: 13px; }

/* ---- reveal on scroll (hidden state only when JS is active) ---- */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dot-live { animation: none; }
  .trow { animation: none; }
}

/* ============================================================
   Landing page components
   ============================================================ */

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 38px; height: 72px; }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); transition: color .18s ease; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--honey); transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14.5px; color: var(--ink-soft); }
.nav-cta .login:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, var(--honey-glow), transparent 60%),
    radial-gradient(50% 60% at 12% 30%, rgba(245,179,1,0.06), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); margin: 22px 0 0; }
.hero h1 .amber { color: var(--honey); }
.hero .sub { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 30em; }
.hero .sub code { font-family: var(--mono); font-size: 0.86em; color: var(--honey-bright); background: rgba(245,179,1,0.08); padding: 2px 7px; border-radius: 6px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.hero-meta span:not(:first-child)::before { content: "\00b7"; margin-right: 10px; color: var(--faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(61,220,132,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5);} 70%{ box-shadow: 0 0 0 7px rgba(61,220,132,0);} 100%{ box-shadow:0 0 0 0 rgba(61,220,132,0);} }

/* big stat cluster */
.stat-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 30px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat-card .hex-field { opacity: 0.18; }
.stat-head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.stat-head .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stat-head .live-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--live); border: 1px solid rgba(61,220,132,0.3); padding: 4px 10px; border-radius: 999px; }
.bignum { position: relative; font-family: var(--mono); font-weight: 700; font-size: clamp(44px, 6vw, 68px); letter-spacing: -0.03em; line-height: 1; margin: 18px 0 4px; color: var(--ink); }
.bignum .unit { color: var(--honey); }
.bigsub { position: relative; color: var(--muted); font-size: 14px; }
.stat-row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat-row .k { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat-row .v { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* live ticker inside hero card */
.ticker { position: relative; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.ticker .ttl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ticker-list { display: flex; flex-direction: column; gap: 0; height: 102px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 0, #000 85%, transparent); }
.trow { display: grid; grid-template-columns: 56px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12.5px; padding: 6px 2px; border-bottom: 1px solid rgba(255,255,255,0.04); animation: slideIn .5s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none; } }
.trow .t-time { color: var(--faint); white-space: nowrap; }
.trow .t-ip { color: var(--ink-soft); white-space: nowrap; }
.trow .t-cc { color: var(--muted); justify-self: end; }
.trow .t-svc { color: var(--honey); justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border: 1px solid rgba(245,179,1,0.25); border-radius: 6px; font-size: 11px; }

/* ---------- logo strip ---------- */
.logos { padding: 30px 0 8px; }
.logos .cap { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
/* The gs_* logos are dark grayscale artwork, some on opaque white boxes —
   invert for the dark theme, then lighten-blend so inverted boxes melt into
   the page background. Opacity must sit on the img: parent opacity would
   isolate the blend. */
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 26px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.6) opacity(0.6); mix-blend-mode: lighten; transition: filter .2s; }
.logo-link:hover img, .logo-link:focus-visible img { filter: grayscale(1) invert(1) brightness(1.8) opacity(0.95); }

/* ---------- section scaffold ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding-top: 40px; }
/* /threats: quarter the inter-panel gap (96+40 -> 24+10) */
body[data-analytics="page-threats"] .section.tight { padding-top: 10px; padding-bottom: 24px; }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.divider { height: 1px; background: var(--line); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .22s ease, border-color .22s ease, background .22s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--honey); letter-spacing: 0.15em; }
.card h3 { font-size: 21px; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(245,179,1,0.1); border: 1px solid rgba(245,179,1,0.22); display: grid; place-items: center; margin-bottom: 18px; }

/* ---------- API / code block ---------- */
.api-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.feature-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(245,179,1,0.12); color: var(--honey); display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
.feature-list .ft strong { display: block; font-size: 15.5px; }
.feature-list .ft span { color: var(--muted); font-size: 14px; }
.feature-list .ft a { color: var(--honey); border-bottom: 1px solid rgba(245,179,1,0.35); transition: border-color .2s; }
.feature-list .ft a:hover, .feature-list .ft a:focus-visible { border-bottom-color: var(--honey); }

.terminal {
  background: #0a0b0e; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--mono); font-size: 13.5px;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.term-bar .tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.term-bar .ttl { margin-left: 10px; font-size: 12px; color: var(--muted); }
.term-bar .tag { margin-left: auto; font-size: 11px; color: var(--honey); border: 1px solid rgba(245,179,1,0.3); padding: 2px 9px; border-radius: 6px; }
.term-body { padding: 20px 20px 22px; line-height: 1.85; overflow-x: auto; white-space: pre; }
.term-body .pl { color: var(--honey); }            /* prompt */
.term-body .cmd { color: var(--ink); }
.term-body .flag { color: var(--ink-soft); }
.term-body .cm { color: var(--faint); }            /* comment */
.tok-key { color: #8fb6ff; }
.tok-str { color: #6fe0b0; }
.tok-num { color: var(--honey-bright); }
.tok-punc { color: var(--muted); }

/* ---------- split feature (agent / monitors) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.rev .split-media { order: -1; }
.media-frame {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}

/* node grid viz for agent */
.node-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; position: relative; }
.node { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: background .3s, box-shadow .3s; }
.node.on { background: rgba(245,179,1,0.16); border-color: rgba(245,179,1,0.4); box-shadow: 0 0 14px -2px var(--honey-glow); }
.node.hot { background: var(--honey); border-color: var(--honey-bright); box-shadow: 0 0 18px -1px var(--honey); }

/* monitor rows */
.mon-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.mon-row:last-child { border-bottom: none; }
.mon-row .m-ip { color: var(--ink-soft); flex: 1; }
.mon-row .m-bar { flex: 1.4; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.05); overflow: hidden; }
.mon-row .m-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--honey-deep), var(--honey)); border-radius: 3px; }
.mon-row .m-st { font-size: 11px; padding: 2px 8px; border-radius: 5px; }
.m-st.ok { color: var(--live); border: 1px solid rgba(61,220,132,0.3); }
.m-st.al { color: var(--alert); border: 1px solid rgba(255,92,92,0.3); }

/* widths for the static monitor bars (extracted from design inline styles) */
.w-92 { width: 92%; } .w-64 { width: 64%; } .w-38 { width: 38%; } .w-14 { width: 14%; } .w-8 { width: 8%; }

/* ---------- pricing ---------- */
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.tier:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tier.feat { border-color: rgba(245,179,1,0.45); background: linear-gradient(180deg, rgba(245,179,1,0.06), var(--surface) 40%); box-shadow: var(--shadow); }
.tier .badge { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey); border: 1px solid rgba(245,179,1,0.35); padding: 3px 9px; border-radius: 999px; margin-bottom: 16px; }
.tier h3 { font-size: 22px; }
.tier .price { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 2px; }
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier .desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.tier ul { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.tier li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tier li .tk { color: var(--honey); flex: none; }
.tier li strong.qty { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.tier .btn { margin-top: auto; justify-content: center; }

/* metal tier badges */
.badge.bronze { color: #d8924e; border-color: rgba(216,146,78,0.42); }
.badge.silver { color: #cbd0d9; border-color: rgba(203,208,217,0.40); }
.badge.gold   { color: #e9c45a; border-color: rgba(233,196,90,0.46); }
.badge.oem    { color: var(--ink-soft); border-color: var(--line-2); }

/* queries-per-month stat inside a tier */
.tier .qpm { margin: 16px 0 2px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.tier .qpm .q { font-family: var(--mono); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tier .qpm .ql { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* community / free strip */
.tier-free { margin-top: 52px; background: linear-gradient(110deg, rgba(245,179,1,0.07), var(--surface) 48%); border: 1px solid rgba(245,179,1,0.30); border-radius: var(--r-lg); padding: 28px 32px; display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 40px; align-items: center; }
.tier-free .free-id .badge { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey); border: 1px solid rgba(245,179,1,0.35); padding: 4px 9px; border-radius: 999px; display: inline-block; }
.tier-free h3 { font-size: 22px; margin-top: 12px; }
.tier-free .price { font-family: var(--mono); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 6px; }
.tier-free .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier-free .desc { color: var(--muted); font-size: 14px; max-width: 30ch; }
.tier-free ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tier-free li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tier-free li .tk { color: var(--honey); flex: none; }
.tier-free li strong.qty { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.tier-free .free-cta { display: flex; flex-direction: column; gap: 9px; min-width: 196px; }
.tier-free .free-cta .fineprint { font-size: 12px; color: var(--faint); text-align: center; }

/* paid tiers — 4 up (legacy default; #150 groups use cols-3 / cols-2) */
.tiers-paid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; align-items: stretch; }
.tiers-paid .tier { padding: 26px 22px; }
.tiers-paid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tiers-paid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }

/* pricing group headings (#150: Enterprise / Commercial groups) */
.tiers-group-head { margin-top: 44px; text-align: center; }
.tiers-group-head h3 { font-size: 19px; letter-spacing: 0.01em; }
.tiers-group-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* checkout CTAs + result banner (#152) */
.tier .tier-alt { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tier .tier-alt:hover { color: var(--ink); }
.checkout-note { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 14px 20px; margin-bottom: 26px; font-size: 14.5px; }
.checkout-note.ok { border-color: rgba(61,220,151,0.4); }
.checkout-note.err { border-color: rgba(255,92,92,0.4); }

/* pricing footnote */
.price-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }
.price-note a { color: var(--honey); }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, var(--honey-glow), transparent 60%); }
.cta-inner { position: relative; text-align: center; padding: 90px 0; }
.cta-inner h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta-inner p { color: var(--ink-soft); font-size: 18px; margin: 18px auto 32px; max-width: 34em; }

/* ---------- page header (interior public pages e.g. /plans) ---------- */
.page-head { position: relative; padding: 72px 0 20px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 22px; }
.page-head p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; max-width: 42em; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .18s; }
.foot-grid a:hover { color: var(--honey); }
.foot-blurb { color: var(--muted); font-size: 14.5px; max-width: 30ch; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 12.5px; flex-wrap: wrap; gap: 12px; }
.foot-bottom .status-ok { color: var(--live); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .api-grid, .split, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .tiers-paid, .tiers-paid.cols-3, .tiers-paid.cols-2 { grid-template-columns: 1fr 1fr; }
  .tier-free { grid-template-columns: 1fr; gap: 24px; }
  .tier-free .free-cta { min-width: 0; }
  .nav-links { display: none; }
}
/* ============================================================
   Public sub-pages (issue #114): long-form prose, auth card,
   agent download cards, newsletter feed.
   ============================================================ */

/* ---- long-form content (about / terms / privacy / workshop) ---- */
.prose { max-width: 46em; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.prose li { margin-bottom: 6px; }
.prose li ul { margin-top: 6px; margin-bottom: 0; }
.prose a { color: var(--honey); border-bottom: 1px solid rgba(245,179,1,0.35); transition: border-color .2s; }
.prose a:hover, .prose a:focus-visible { border-bottom-color: var(--honey); }
.prose h3 { font-size: 19px; margin: 26px 0 12px; }
.prose small { color: var(--muted); }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; margin-bottom: 22px; }
.section-card > h2 { font-size: 22px; margin-bottom: 16px; }

/* ---- sign-in page ---- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 30px 32px 26px; }
/* Provider buttons match the Google GSI widget's fixed 360px width (the
   GSI iframe cannot be fluid), all centered in the card. */
.auth-card .btn-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 360px; max-width: 100%; margin: 0 auto 10px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 16px; transition: border-color .2s, background .2s; }
.auth-card .btn-provider:hover, .auth-card .btn-provider:focus-visible { border-color: rgba(245,179,1,0.5); background: var(--surface-3); }
.auth-card .btn-provider svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.auth-card .g_id_signin { display: flex; justify-content: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-email-row { display: flex; gap: 10px; }
.auth-email-row input[type="email"] { flex: 1; min-width: 0; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-family: inherit; }
.auth-email-row input[type="email"]:focus-visible { outline: 2px solid var(--honey); outline-offset: 1px; border-color: transparent; }
.auth-turnstile { display: flex; justify-content: center; margin-top: 14px; min-height: 65px; }
.auth-guest { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); transition: color .2s; }
.auth-guest:hover, .auth-guest:focus-visible { color: var(--ink-soft); }
.auth-note { margin-top: 20px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.auth-note a { color: var(--honey); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- agent downloads ---- */
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-top: 26px; }
.os-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.os-card h3 { font-size: 17px; }
.os-card .badge-row img { height: 20px; width: auto; }
.distro-links { display: flex; flex-wrap: wrap; gap: 8px; }
.distro-links a { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; transition: color .2s, border-color .2s; }
.distro-links a:hover, .distro-links a:focus-visible { color: var(--honey); border-color: rgba(245,179,1,0.4); }
.code-block { position: relative; background: #0a0b0e; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); overflow-x: auto; white-space: pre; margin-top: auto; }
.prose .code-block { margin: 0 0 16px; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.copy-btn:hover, .copy-btn:focus-visible { color: var(--honey); border-color: rgba(245,179,1,0.4); }
.copy-btn.copied { color: var(--ok, #4ade80); }

/* ---- newsletter feed (about) ---- */
.feed-list { list-style: none; margin: 14px 0 0; padding: 0; }
/* The panel sits in .prose, whose `ul` rule (margin-left 22px) outranks the
   line above and indents this list for bullet markers it doesn't have —
   costing 22px of title width where it's scarcest, at 320px. Restore intent. */
.prose .feed-list { margin: 14px 0 0; }
.feed-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.feed-list a { color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.feed-list a:hover, .feed-list a:focus-visible { color: var(--honey); }
.feed-list .feed-date { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 3px; }
/* min-width:0 is load-bearing: flex items default to min-width:auto and refuse
   to shrink below their content, so a long unbroken title would widen the card. */
.feed-list .feed-text { min-width: 0; }
.feed-list .feed-thumb { flex: 0 0 96px; width: 96px; height: 64px; display: block; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .tiers-paid, .tiers-paid.cols-3, .tiers-paid.cols-2 { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px 20px; }
  .auth-email-row { flex-direction: column; }
  /* Shrink, don't stack: a full-width image per row would make the five-item
     panel enormous on the devices with the least room. */
  .feed-list .feed-thumb { flex-basis: 72px; width: 72px; height: 54px; }
}

/* ---- data pages (#119): datanav, tables, charts, host detail ---- */
.datanav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.datanav a {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  transition: all .15s;
}
.datanav a:hover { border-color: var(--line-2); color: var(--ink-soft); }
.datanav a.on {
  background: rgba(245, 179, 1, 0.12);
  border-color: rgba(245, 179, 1, 0.35);
  color: var(--honey-bright);
}

.chart-box { min-height: 380px; }
.chart-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: 13px;
}

.data-table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
table.data-table thead th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); padding: 12px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data-table td {
  padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}
table.data-table tbody tr { transition: background .15s; }
table.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.data-table a { color: var(--honey); }
table.data-table a:hover { color: var(--honey-bright); }
table.data-table img { vertical-align: middle; }
table.data-table small { color: var(--muted); }
table.data-table[data-sortable] thead th { cursor: pointer; user-select: none; }
table.data-table thead th.sort-asc::after { content: " \2191"; color: var(--honey); }
table.data-table thead th.sort-desc::after { content: " \2193"; color: var(--honey); }

.mono-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-weight: 400; }
select.stats-period {
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: var(--r-sm); padding: 9px 12px; font-family: var(--mono); font-size: 13.5px;
  width: 100%; max-width: 360px;
}

/* stats infographic (#119) — the .statsgraphic card is screenshot for monthly
   social media posts: brand, period, totals, and top services all live inside
   the card; the period selector (.statsctl) stays outside the capture. */
.statsctl { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.statsctl label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.statsgraphic { padding: 36px 40px 28px; }
.sg-brand { display: flex; align-items: center; gap: 11px; }
.sg-brand img { width: 32px; height: 32px; }
.sg-brand .b { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.sg-brand .sg-tag {
  margin-left: auto; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
}
.sg-period { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 20px 0 4px; }
.sg-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  margin-top: 18px; padding: 20px 0 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sg-hero .k {
  font-family: var(--mono); font-size: clamp(26px, 3vw, 36px); font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
}
.sg-hero .v {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}
.sg-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center; margin-top: 8px; }
.sg-body .chart-box { min-height: 340px; }
.sg-services h3 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.sg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sg-list li {
  display: grid; grid-template-columns: 10px minmax(58px, 110px) 1fr auto;
  align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px;
}
.sg-list .dot { width: 10px; height: 10px; border-radius: 50%; }
.sg-list .name { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-list .bar {
  height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.sg-list .bar i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--honey), rgba(245, 179, 1, 0.45));
}
.sg-list .num { color: var(--ink); }
.sg-foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.sg-foot span:first-child { color: var(--honey); }
@media (max-width: 900px) {
  .statsgraphic { padding: 24px 20px; }
  .sg-body { grid-template-columns: 1fr; }
}
