/* ============================================================
   KBPilot · Shared Design System
   ============================================================
   Used by: index, security, privacy, terms,
   reset-password, trust
   ----------------------------------------------------------------
   Fonts: Inter (display), Roboto (body)
   Aesthetic: Dark, minimal, hairline borders, blue accent.
   Linear / Vercel inspired.
   ============================================================ */

/* ---------- 0. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* surfaces */
  --bg:        #0c0c0c;
  --bg2:       #111111;
  --bg3:       #161616;
  --surface:   #161616;

  /* lines */
  --border:    #2a2a2a;
  --border2:   #3a3a3a;
  --line:      #2a2a2a;
  --line-2:    #3a3a3a;

  /* text */
  --text:      #f0f0f0;
  --ink:       #f0f0f0;
  --ink-2:     #cccccc;
  --muted:     #888888;
  --subtle:    #555555;
  --dim:       #555555;

  /* accents */
  --accent:    #29B8EB;
  --accent2:   #1A9FD4;
  --accent-bg: rgba(41,184,235,0.12);
  --green:     #29B8EB;
  --teal:      #29B8EB;
  --yellow:    #f5a623;
  --red:       #f87171;
  --warn:      #f5a623;
  --warn-bg:   rgba(245,166,35,0.12);
  --info:      #29B8EB;
  --info-bg:   rgba(41,184,235,0.08);

  /* gradients */
  --grad:      linear-gradient(135deg, #29B8EB 0%, #1A9FD4 100%);
  --grad2:     linear-gradient(135deg, #29B8EB 0%, #1A9FD4 100%);

  /* shape */
  --radius:    10px;
  --radius-lg: 16px;

  /* shadow */
  --shadow-sm: 0 1px 0 rgba(11,13,16,0.04), 0 1px 2px rgba(11,13,16,0.04);
  --shadow:    0 1px 0 rgba(11,13,16,0.04), 0 8px 24px -12px rgba(11,13,16,0.12);

  /* layout */
  --max:       1180px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d8d8d6; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c0c0bd; }

/* ---------- 1. Typography ---------- */
h1, h2, h3, h4, h5, h6, .display {
  font-family: 'Inter', 'Roboto', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 0.85rem; line-height: 1.3; font-weight: 600; }
p  { color: var(--ink-2); }

.eyebrow, .section-tag, .page-tag, .blog-card-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before, .section-tag::before, .page-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 .grad,
.section-title .grad {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 2. Layout primitives ---------- */
.container,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 96px 24px; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 700;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
}

/* ---------- 3. Buttons ---------- */
.btn,
.btn-primary,
.btn-ghost,
.btn-hero,
.btn-submit,
.plan-cta,
.btn-subscribe,
.modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary,
.btn-hero,
.btn-submit,
.modal-submit,
.plan-cta.solid,
.btn-subscribe {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 2px rgba(0,0,0,0.1);
}
.btn-primary:hover,
.btn-hero:hover,
.btn-submit:hover,
.modal-submit:hover,
.plan-cta.solid:hover,
.btn-subscribe:hover {
  background: #1a1d22;
}

.btn-ghost,
.plan-cta.outline {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover,
.plan-cta.outline:hover {
  border-color: #d4d4d2;
  color: var(--ink);
}

/* sizes */
.btn-hero,
.modal-submit,
.btn-subscribe {
  height: 44px;
  padding: 0 22px;
  font-size: 0.95rem;
  border-radius: 10px;
}
.plan-cta { width: 100%; }

/* nav back link */
.nav-back {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--ink); }

/* arrow micro-interaction */
.arrow { transition: transform 0.2s; }
.btn:hover .arrow,
.btn-primary:hover .arrow,
.btn-hero:hover .arrow { transform: translateX(2px); }

/* ---------- 4. Nav ---------- */
nav, .nav, header.topbar, .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 250, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 28px;
}
nav.nav-simple, .topbar.simple { grid-template-columns: 1fr 1fr; }

.nav-logo,
.brand,
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-logo-icon,
.brand-mark,
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-logo-text { color: var(--ink); font-weight: 700; }
.nav-logo-text span { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

/* `.nav-ctas` (plural) is the wrapper container used in marketing-page navs.
   `.nav-cta` (singular) is the standalone CTA anchor used in blog/post navs —
   styled separately via `a.nav-cta` further down. Don't blanket-apply flex
   container styles to both, or the singular anchor stretches its grid cell. */
.nav-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: 96px 24px 56px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 50% -10%, rgba(31,111,67,0.10), transparent 60%),
    radial-gradient(600px 240px at 90% 0%, rgba(31,111,67,0.05), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-glow { display: none; } /* legacy radial removed in favor of ::before */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}
.hero-sub, .hero p.lead {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
  font-weight: 400;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto 16px;
}
.hero-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.hero-form input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,13,16,0.06);
}
.hero-form input::placeholder { color: var(--subtle); }

.hero-note {
  font-size: 13px;
  color: var(--subtle);
}
.hero-note span { color: var(--ink-2); font-weight: 500; }

/* ---------- 6. Hero product mockup ---------- */
.hero-mockup {
  margin: 56px auto 0;
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(11,13,16,0.04),
    0 24px 48px -24px rgba(11,13,16,0.16),
    0 60px 100px -40px rgba(31,111,67,0.08);
}
.mockup-bar {
  height: 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0dfdc;
}
.mockup-title {
  font-family: 'Roboto', monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--subtle);
  margin: 0 auto;
  font-weight: 500;
}
.mockup-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.mockup-q {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
}
.mockup-a {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.a-yes  { background: var(--accent-bg); color: var(--accent); }
.a-no   { background: #fbe7e7; color: var(--red); }
.a-part { background: var(--warn-bg); color: var(--warn); }

.mockup-conf {
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.01em;
  font-size: 12px;
  width: 42px;
  text-align: right;
  font-weight: 600;
  color: var(--muted);
}
.c-high { color: var(--accent); }
.c-mid  { color: var(--warn); }
.c-low  { color: var(--red); }

/* ---------- 7. Logos strip ---------- */
.logos {
  padding: 56px 24px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.logos-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.7;
  filter: none;
}
.logo-item {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

/* ---------- 8. Compare (us vs them) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-card.us {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.compare-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  color: var(--muted);
}
.compare-card.us .compare-label { color: var(--accent); }

.compare-list { list-style: none; display: flex; flex-direction: column; }
.compare-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  line-height: 1.5;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list li .ico { flex-shrink: 0; margin-top: 2px; font-size: 0.9rem; line-height: 1; }
.compare-card.them .compare-list li .ico { color: var(--red); }
.compare-card.us   .compare-list li .ico { color: var(--accent); }

/* ---------- 9. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.step {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.step-connector { display: none; }

/* ---------- 10. Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.feature-card {
  padding: 30px 28px;
  background: var(--surface);
  border: none;
  transition: background 0.15s;
}
.feature-card:hover {
  background: #fafaf8;
  transform: none;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-bottom: 18px;
  font-size: 1.05rem;
  filter: grayscale(0.2);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- 11. Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.plan-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.plan-card:hover { border-color: #d4d4d2; transform: none; }
.plan-card.featured,
.plan-card.popular {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  background: var(--surface);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.plan-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-price {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}
.plan-period {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.plan-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 22px;
}
.plan-features li {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.plan-features li.dim { color: var(--subtle); }
.plan-features li.dim::before { content: '–'; color: var(--subtle); }

.plan-cta { display: block; text-align: center; }
.plan-margin {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.pricing-footnote {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

/* ---------- 12. Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.t-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.t-stars { color: var(--warn); font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 0.05em; }
.t-text {
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 22px;
  font-style: normal;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.t-name { font-size: 13.5px; font-weight: 600; color: var(--ink); font-family: 'Inter', sans-serif; }
.t-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 32px auto 96px;
  max-width: var(--max);
  padding: 64px 48px;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(31,111,67,0.30), transparent 60%);
  pointer-events: none;
}
.cta-band-glow { display: none; }
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 26px;
  font-size: 1rem;
}
.cta-band-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.cta-band-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}
.cta-band-form input::placeholder { color: rgba(255,255,255,0.45); }
.cta-band-form input:focus { border-color: rgba(255,255,255,0.4); }
.cta-band .btn-primary,
.cta-band .btn-hero {
  background: #fff;
  color: var(--ink);
}
.cta-band .btn-primary:hover,
.cta-band .btn-hero:hover { background: #f3f3f0; }

/* ---------- 14. Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 24px 36px;
  margin-top: 0;
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer-col li a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- 15. Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11, 13, 16, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 48px -12px rgba(11, 13, 16, 0.25);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--bg3); color: var(--ink); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.modal-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.modal-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.modal h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.modal .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 22px;
}
.modal-tab {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
}
.modal-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.modal-field { margin-bottom: 14px; }
.modal-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.modal-field input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,13,16,0.06);
}

.modal-err {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 12px;
  display: none;
}
.modal-submit {
  width: 100%;
  margin-top: 4px;
  height: 42px;
}
.modal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.modal-footer a { color: var(--ink); font-weight: 500; }
.modal-footer a:hover { text-decoration: underline; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.modal-divider span {
  font-size: 12px;
  color: var(--subtle);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.55;
  cursor: not-allowed;
  font-family: 'Inter', 'Roboto', sans-serif;
}
.btn-google .soon-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* ---------- 16. Plan select (signup) ---------- */
.plan-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.plan-opt {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.plan-opt:hover { border-color: #d4d4d2; }
.plan-opt.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.plan-opt-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.plan-opt-price {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 17. Doc / legal pages ---------- */
.page-hero {
  padding: 80px 24px 40px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: var(--surface);
}
.page-hero .container { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

.doc-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.doc-wrap h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 14px;
  letter-spacing: -0.02em;
}
.doc-wrap h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.doc-wrap p { margin-bottom: 14px; color: var(--ink-2); }
.doc-wrap ul, .doc-wrap ol {
  margin: 0 0 14px 22px;
  color: var(--ink-2);
}
.doc-wrap li { margin-bottom: 6px; }
.doc-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc-wrap a:hover { color: var(--accent2); }
.doc-wrap strong { color: var(--ink); font-weight: 600; }
.doc-wrap code {
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.01em;
  background: var(--bg3);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--ink);
}

.doc-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--subtle);
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.highlight-box {
  background: var(--accent-bg);
  border: 1px solid #d4e8db;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.highlight-box strong { color: var(--accent); }

/* ---------- 18. Contact ---------- */
.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-method {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  align-items: flex-start;
  transition: border-color 0.15s;
}
.contact-method:hover { border-color: #d4d4d2; }
.cm-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-method h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-method p,
.contact-method a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.contact-method a { color: var(--accent); }
.contact-method a:hover { color: var(--accent2); }
.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.cm-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.cm-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.cm-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.contact-form-wrap h3,
.contact-form-wrap .sub {
  margin-bottom: 6px;
}
.contact-form-wrap .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,13,16,0.06);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.success-msg {
  background: var(--accent-bg);
  border: 1px solid #d4e8db;
  color: var(--accent);
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 14px;
  display: none;
}
.success-msg.visible { display: block; }

/* ---------- 19. Blog ---------- */
.blog-hero {
  padding: 80px 24px 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--surface);
}
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.blog-hero p { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

.blog-grid {
  max-width: var(--max);
  margin: 56px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: #d4d4d2; transform: translateY(-1px); }
.blog-card-category {
  margin-bottom: 12px;
  color: var(--muted);
}
.blog-card h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.blog-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.01em;
}
.blog-card-author { color: var(--subtle); font-weight: 500; }
.blog-card-readmore {
  color: var(--ink);
  font-weight: 500;
  transition: transform 0.15s;
}
.blog-card:hover .blog-card-readmore { transform: translateX(2px); }
.blog-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 20. Docs (api docs) ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 56px;
  min-height: calc(100vh - 64px);
}
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 32px 0;
  border-right: 1px solid var(--line);
  margin-right: -28px;
  padding-right: 28px;
}
.sidebar-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin: 18px 0 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: 'Roboto', monospace;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--info);
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: var(--bg3); color: var(--ink); }
.sidebar-link.active { background: var(--bg3); color: var(--ink); font-weight: 600; }
.sidebar-method {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sidebar-method.m-get    { background: var(--info-bg); color: var(--info); }
.sidebar-method.m-post   { background: var(--accent-bg); color: var(--accent); }
.sidebar-method.m-delete { background: #fbe7e7; color: var(--red); }
.sidebar-method.m-patch  { background: var(--warn-bg); color: var(--warn); }

.content { padding: 32px 0 96px; max-width: 760px; }
.api-section { margin-bottom: 56px; }
.api-section h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.endpoint {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.endpoint-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.01em;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.endpoint-method .m-get,
.endpoint-method .m-post,
.endpoint-method .m-delete,
.endpoint-method .m-patch {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.endpoint-method .m-get    { background: var(--info-bg); color: var(--info); }
.endpoint-method .m-post   { background: var(--accent-bg); color: var(--accent); }
.endpoint-method .m-delete { background: #fbe7e7; color: var(--red); }
.endpoint-method .m-patch  { background: var(--warn-bg); color: var(--warn); }

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 14px 0;
}
.param-table th, .param-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
}
.param-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg);
}
.param-table td code,
.doc-wrap code,
.callout code,
.api-section p code {
  font-family: 'Roboto', monospace;
  letter-spacing: 0;
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid #cfe0ee;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 500;
}

.code-wrap {
  position: relative;
  margin: 14px 0;
}
.code-wrap pre {
  background: var(--ink);
  color: #f4f4f0;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'Roboto', monospace;
  letter-spacing: 0.01em;
  font-size: 13px;
  line-height: 1.55;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.callout {
  border-left: 3px solid var(--info);
  background: var(--info-bg);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.callout-info  { border-left-color: var(--info);   background: var(--info-bg); }
.callout-warn  { border-left-color: var(--warn);   background: var(--warn-bg); }
.callout strong { color: var(--ink); font-weight: 600; }

/* ---------- 21. Reset password / auth cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.card .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.card .field { margin-bottom: 14px; }
.card .err {
  font-size: 13px;
  color: var(--red);
  background: #fbe7e7;
  border: 1px solid #f0c8c8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: none;
}
.card .err.visible { display: block; }
.card .btn {
  width: 100%;
  height: 42px;
  background: var(--ink);
  color: #fff;
}
.card .btn:hover { background: #1a1d22; }

.loading-wrap, .invalid-wrap, .form-wrap, .success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth page (reset-password etc) */
body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.state-icon { font-size: 2rem; margin-bottom: 14px; }
.state-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.state-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.55;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.link-btn:hover { background: #1a1d22; }

/* ---------- 22. Checkout ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 1.05rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.notice {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 14px 0;
  border: 1px solid;
}
.notice.success {
  background: var(--accent-bg);
  border-color: #d4e8db;
  color: var(--accent);
}
.notice.info {
  background: var(--info-bg);
  border-color: #cfe0ee;
  color: var(--info);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  text-align: left;
}
.compare-table th {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table tr:last-child td { border-bottom: none; }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(251,251,250,0.85);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.loading-overlay.open { display: flex; }

/* ---------- 23. Trust public share portal ---------- */
header.trust-header,
.trust-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gate-section,
.nda-section,
.error-card,
main.trust-main,
.trust-main {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 24px;
}
.gate-section .card,
.nda-section .card,
.error-card .card {
  max-width: none;
}
.nda-checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
}
.nda-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ink);
}
.nda-checkbox-row label {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 18px;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}
.doc-row:last-child { border-bottom: none; }
.doc-row .doc-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.doc-row .doc-meta {
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.01em;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 24. Pills / badges ---------- */
.pill,
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-bg);
  color: var(--accent);
  letter-spacing: 0.01em;
}
.pill.warn,
.access-badge.nda { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { background: var(--bg3); color: var(--muted); }
.pill .pdot,
.access-badge .pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid, .plans { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 200px 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  nav, .nav, .topbar { padding: 0 20px; grid-template-columns: 1fr auto; height: 60px; }
  .nav-links { display: none; }
  .compare-grid, .steps, .testimonials, .blog-grid {
    grid-template-columns: 1fr;
  }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .plans { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  section { padding: 64px 24px; }
  .hero { padding: 64px 20px 32px; }
  .hero-mockup { margin-top: 36px; }
  .cta-band { padding: 48px 28px; margin: 24px 16px 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid, .plans { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-form, .cta-band-form { flex-direction: column; }
  .plan-select-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- 26. Utilities ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============================================================
   27. App shell overrides
   ============================================================
   Applied via `body.app-shell` on the logged-in pages
   (dashboard.html, app.html, trust-center.html).

   Strategy: app pages use the same dark theme as Sales Tools.
   .kbp-main-content variables are set to dark values consistent
   with :root. Sidebar (`.kbp-sidebar`) uses literal #252525.
   ============================================================ */

body.app-shell {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.app-shell .kbp-main-content {
  /* re-skin the entire main column's tokens */
  --bg:        #0c0c0c;
  --bg2:       #111111;
  --bg3:       #161616;
  --surface:   #161616;
  --surface2:  #111111;
  --surface3:  #161616;
  --border:    #2a2a2a;
  --border2:   #3a3a3a;
  --text:      #f0f0f0;
  --muted:     #888888;
  --muted2:    #555555;
  --dim:       #555555;
  --accent:    #29B8EB;
  --accent2:   #1A9FD4;
  --accent-dim: rgba(41,184,235,0.12);
  --red:       #f87171;
  --yellow:    #f5a623;
  --blue:      #29B8EB;
  background: #0c0c0c;
  color: #f0f0f0;
}
body.app-shell .kbp-main-content,
body.app-shell .kbp-main-content * {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.app-shell .kbp-main-content h1,
body.app-shell .kbp-main-content h2,
body.app-shell .kbp-main-content h3,
body.app-shell .kbp-main-content h4,
body.app-shell .kbp-main-content h5,
body.app-shell .kbp-main-content .page-title,
body.app-shell .kbp-main-content .display {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: #e8e8e8;
}

/* ── Common dark-theme patterns that need explicit override on light bg ── */

/* Card / panel surfaces keep dark theme */

/* Page-level scaffolding */
body.app-shell .kbp-main-content .page,
body.app-shell .kbp-main-content main.page {
  background: #0c0c0c;
  color: #f0f0f0;
  padding: 32px 28px 64px;
}
body.app-shell .kbp-main-content .page-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8e8e8;
  margin-bottom: 6px;
}
body.app-shell .kbp-main-content .page-sub {
  color: #5b6270;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* Sections */
body.app-shell .kbp-main-content .section {
  margin-bottom: 36px;
}
body.app-shell .kbp-main-content .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
body.app-shell .kbp-main-content .section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 0;
}
body.app-shell .kbp-main-content .section-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #f4f4f2;
  color: #5b6270;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Cards & doc/grant/run rows */
body.app-shell .kbp-main-content .card,
body.app-shell .kbp-main-content .panel,
body.app-shell .kbp-main-content .doc-card,
body.app-shell .kbp-main-content .grant-row,
body.app-shell .kbp-main-content .run-row,
body.app-shell .kbp-main-content .upload-card,
body.app-shell .kbp-main-content .stat-card,
body.app-shell .kbp-main-content .tile,
body.app-shell .kbp-main-content .mini-card {
  background: #111111;
  border: 1px solid #555555;
  border-radius: 12px;
  color: #e8e8e8;
  box-shadow: 0 1px 0 rgba(11,13,16,0.04);
}
body.app-shell .kbp-main-content .card:hover,
body.app-shell .kbp-main-content .doc-card:hover,
body.app-shell .kbp-main-content .grant-row:hover,
body.app-shell .kbp-main-content .run-row:hover,
body.app-shell .kbp-main-content .tile:hover {
  border-color: #666666;
}

/* Buttons */
body.app-shell .kbp-main-content .btn-sm,
body.app-shell .kbp-main-content .btn-secondary,
body.app-shell .kbp-main-content button.btn-sm {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #555555;
  background: #111111;
  color: #c8c8c8;
  box-shadow: 0 1px 0 rgba(11,13,16,0.04);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
body.app-shell .kbp-main-content .btn-sm:hover {
  border-color: #666666;
  color: #e8e8e8;
}
body.app-shell .kbp-main-content .btn-primary {
  background: #0b0d10;
  color: #ffffff;
  border: 1px solid #0b0d10;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
body.app-shell .kbp-main-content .btn-primary:hover {
  background: #1a1d22;
  border-color: #1a1d22;
}
body.app-shell .kbp-main-content .btn-blue {
  background: #29B8EB;
  color: #ffffff;
  border: 1px solid #29B8EB;
}
body.app-shell .kbp-main-content .btn-blue:hover {
  background: #1A9FD4;
  border-color: #1A9FD4;
}
body.app-shell .kbp-main-content .btn-primary:disabled,
body.app-shell .kbp-main-content .btn-blue:disabled,
body.app-shell .kbp-main-content .btn-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inputs / textareas / selects */
body.app-shell .kbp-main-content input[type="text"],
body.app-shell .kbp-main-content input[type="email"],
body.app-shell .kbp-main-content input[type="password"],
body.app-shell .kbp-main-content input[type="number"],
body.app-shell .kbp-main-content input[type="search"],
body.app-shell .kbp-main-content input[type="url"],
body.app-shell .kbp-main-content textarea,
body.app-shell .kbp-main-content select {
  background: #111111;
  color: #e8e8e8;
  border: 1px solid #555555;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.app-shell .kbp-main-content input::placeholder,
body.app-shell .kbp-main-content textarea::placeholder {
  color: #8a91a0;
}
body.app-shell .kbp-main-content input:focus,
body.app-shell .kbp-main-content textarea:focus,
body.app-shell .kbp-main-content select:focus {
  border-color: #29B8EB;
  box-shadow: 0 0 0 3px rgba(41,184,235,0.15);
}
body.app-shell .kbp-main-content input:disabled,
body.app-shell .kbp-main-content textarea:disabled,
body.app-shell .kbp-main-content select:disabled {
  background: #f4f4f2;
  color: #8a91a0;
  cursor: not-allowed;
}

/* Tables */
body.app-shell .kbp-main-content table {
  width: 100%;
  border-collapse: collapse;
  background: #111111;
  border: 1px solid #555555;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
  color: #e8e8e8;
}
body.app-shell .kbp-main-content table th {
  background: #2E2E2E;
  border-bottom: 1px solid #555555;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6270;
  padding: 10px 14px;
  text-align: left;
}
body.app-shell .kbp-main-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0efed;
  color: #c8c8c8;
}
body.app-shell .kbp-main-content table tr:last-child td {
  border-bottom: none;
}

/* Modal backdrops & boxes */
body.app-shell .modal-backdrop {
  background: rgba(11, 13, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.app-shell .modal-backdrop .modal {
  background: #111111;
  border: 1px solid #555555;
  color: #e8e8e8;
  box-shadow: 0 24px 48px -12px rgba(11, 13, 16, 0.25);
}
body.app-shell .modal-backdrop .modal h2 {
  font-family: 'Inter', sans-serif;
  color: #e8e8e8;
}
body.app-shell .modal-backdrop .modal .modal-sub {
  color: #5b6270;
  font-size: 14px;
}
body.app-shell .modal-backdrop .modal label {
  color: #5b6270;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
}
body.app-shell .modal-backdrop .modal input,
body.app-shell .modal-backdrop .modal textarea,
body.app-shell .modal-backdrop .modal select {
  background: #111111;
  color: #e8e8e8;
  border: 1px solid #555555;
}
body.app-shell .modal-backdrop .modal input:focus,
body.app-shell .modal-backdrop .modal textarea:focus,
body.app-shell .modal-backdrop .modal select:focus {
  border-color: #29B8EB;
  box-shadow: 0 0 0 3px rgba(41,184,235,0.15);
}
body.app-shell .modal-backdrop .btn-sm {
  border: 1px solid #555555;
  background: #111111;
  color: #c8c8c8;
}
body.app-shell .modal-backdrop .btn-sm:hover {
  border-color: #666666;
  color: #e8e8e8;
}

/* Topbar (dark by convention since it sits next to dark sidebar — keep dark) */
body.app-shell .kbp-topbar,
body.app-shell #topbar,
body.app-shell .topbar-fixed {
  background: #111111;
  border-bottom: 1px solid #555555;
  color: #e8e8e8;
}
body.app-shell .kbp-topbar a,
body.app-shell #topbar a,
body.app-shell .topbar-fixed a {
  color: #c8c8c8;
}

/* Empty states */
body.app-shell .kbp-main-content .empty-state {
  background: #111111;
  border: 1px dashed #555555;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: #5b6270;
}
body.app-shell .kbp-main-content .empty-state .empty-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* Toast (keep dark — looks good against either bg) */
body.app-shell #toast {
  background: #0b0d10;
  border: 1px solid #2b2f36;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
}
body.app-shell #toast.success { border-color: #29B8EB; color: #29B8EB; }
body.app-shell #toast.error   { border-color: #cf4747; color: #fca5a5; }

/* Spinner remains green-tinted but uses light track */
body.app-shell .kbp-main-content .spinner {
  border-color: #555555;
  border-top-color: #29B8EB;
}

/* Type badges on doc cards / runs / pricing */
body.app-shell .kbp-main-content .doc-type-badge,
body.app-shell .kbp-main-content .badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  background: #f4f4f2;
  color: #5b6270;
}
body.app-shell .kbp-main-content .badge-soc2,
body.app-shell .kbp-main-content .doc-type-badge.badge-soc2     { background: #eaf1f9; color: #1d4e89; }
body.app-shell .kbp-main-content .badge-iso27001,
body.app-shell .kbp-main-content .doc-type-badge.badge-iso27001 { background: rgba(41,184,235,0.10); color: #29B8EB; }
body.app-shell .kbp-main-content .badge-pentest,
body.app-shell .kbp-main-content .doc-type-badge.badge-pentest  { background: #fbe7e7; color: #cf4747; }
body.app-shell .kbp-main-content .badge-privacy,
body.app-shell .kbp-main-content .doc-type-badge.badge-privacy  { background: rgba(41,184,235,0.10); color: #29B8EB; }
body.app-shell .kbp-main-content .badge-dpa,
body.app-shell .kbp-main-content .doc-type-badge.badge-dpa      { background: #fdf3e7; color: #b54708; }
body.app-shell .kbp-main-content .badge-other,
body.app-shell .kbp-main-content .doc-type-badge.badge-other    { background: #f4f4f2; color: #5b6270; }

/* Sensitive badge */
body.app-shell .kbp-main-content .sensitive-badge {
  background: #fdf3e7;
  color: #b54708;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* Notice banners */
body.app-shell .kbp-main-content .notice {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid;
  margin-bottom: 16px;
}
body.app-shell .kbp-main-content .notice.success { background: rgba(41,184,235,0.08); border-color: rgba(41,184,235,0.3); color: #29B8EB; }
body.app-shell .kbp-main-content .notice.info    { background: #eaf1f9; border-color: #cfe0ee; color: #1d4e89; }
body.app-shell .kbp-main-content .notice.warn    { background: #fdf3e7; border-color: #f5dab1; color: #b54708; }
body.app-shell .kbp-main-content .notice.error   { background: #fbe7e7; border-color: #f0c8c8; color: #cf4747; }

/* Dark "code" / pre blocks remain dark for contrast */
body.app-shell .kbp-main-content pre,
body.app-shell .kbp-main-content code {
  background: #0b0d10;
  color: #f4f4f0;
  font-family: 'Roboto', monospace;
  letter-spacing: 0.01em;
}
body.app-shell .kbp-main-content code {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
body.app-shell .kbp-main-content pre {
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
body.app-shell .kbp-main-content pre code {
  background: transparent;
  padding: 0;
}

/* Doc grids */
body.app-shell .kbp-main-content .doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
body.app-shell .kbp-main-content .doc-card {
  position: relative;
  cursor: pointer;
}
body.app-shell .kbp-main-content .doc-card.selected {
  border-color: #29B8EB;
  box-shadow: 0 0 0 1px #29B8EB;
}

/* Selection bar */
body.app-shell #selection-bar {
  background: #0b0d10;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
}
body.app-shell #selection-bar .btn-sm {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}
body.app-shell #selection-bar .btn-sm:hover {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

/* Stat tiles (used on dashboard) */
body.app-shell .kbp-main-content .stat-num,
body.app-shell .kbp-main-content .tile-num,
body.app-shell .kbp-main-content .big-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8e8e8;
}

/* Override hard-coded text colors that would be invisible on light bg */
body.app-shell .kbp-main-content[style*="color:#fff"],
body.app-shell .kbp-main-content [style*="color:#fff"]:not(button):not(.btn-primary):not(.btn-blue) {
  color: inherit;
}

/* Toggle switches keep accent green */
body.app-shell .kbp-main-content .toggle-switch input:checked + .toggle-slider {
  background: #29B8EB;
}
body.app-shell .kbp-main-content .toggle-slider {
  background: #d8d8d6;
}

/* ── Drop zones — global hover indicator ──
   Applies to .upload-card, .import-drop-zone, .sec-drop-zone, and any .drop-zone.
   Idle state: subtle dashed gray. Drag-over state: bold green dashed +
   light green tint, with a slight inset glow. Loaded/error states retained
   for the import/section-question flows in app.html. */
body.app-shell .kbp-main-content .upload-card,
body.app-shell .kbp-main-content .import-drop-zone,
body.app-shell .kbp-main-content .sec-drop-zone,
body.app-shell .kbp-main-content .drop-zone {
  border: 2px dashed #666666;
  border-radius: 12px;
  background: #111111;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
body.app-shell .kbp-main-content .upload-card:hover,
body.app-shell .kbp-main-content .import-drop-zone:hover,
body.app-shell .kbp-main-content .sec-drop-zone:hover,
body.app-shell .kbp-main-content .drop-zone:hover {
  border-color: #b8b8b5;
}
body.app-shell .kbp-main-content .upload-card.dragover,
body.app-shell .kbp-main-content .upload-card.dz-active,
body.app-shell .kbp-main-content .import-drop-zone.dragover,
body.app-shell .kbp-main-content .import-drop-zone.dz-active,
body.app-shell .kbp-main-content .sec-drop-zone.dragover,
body.app-shell .kbp-main-content .sec-drop-zone.dz-active,
body.app-shell .kbp-main-content .drop-zone.dragover,
body.app-shell .kbp-main-content .drop-zone.dz-active {
  border-color: #29B8EB;
  border-width: 2px;
  background: #ecf5ef;
  box-shadow: inset 0 0 0 4px rgba(31,111,67,0.08);
}
body.app-shell .kbp-main-content .sec-drop-zone.dz-loaded {
  border-color: rgba(41,184,235,0.3);
  border-style: solid;
  background: #111111;
}
body.app-shell .kbp-main-content .sec-drop-zone.dz-error,
body.app-shell .kbp-main-content .import-drop-zone.dz-error,
body.app-shell .kbp-main-content .upload-card.dz-error {
  border-color: rgba(207,71,71,0.6);
  border-style: solid;
  background: #fbe7e7;
}

/* ============================================================
   29. Document Vault — redesigned doc card + tier sections
   ============================================================ */

body.app-shell .kbp-main-content .doc-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
body.app-shell .kbp-main-content .doc-card {
  background: #111111;
  border: 1px solid #555555;
  border-left: 3px solid #1d4e89;
  border-radius: 12px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  min-height: 168px;
}
body.app-shell .kbp-main-content .doc-card:hover {
  border-color: #666666;
  box-shadow: 0 4px 12px -4px rgba(11,13,16,0.08);
}
body.app-shell .kbp-main-content .doc-card.selected {
  border-color: #29B8EB;
  box-shadow: 0 0 0 1px #29B8EB;
  background: #f6fbf7;
}
body.app-shell .kbp-main-content .doc-card .doc-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 24px; /* leave room for the corner check */
}
body.app-shell .kbp-main-content .doc-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
body.app-shell .kbp-main-content .doc-icon-wrap.pdf   { background: #fbe7e7; color: #cf4747; }
body.app-shell .kbp-main-content .doc-icon-wrap.word  { background: #eaf1f9; color: #1d4e89; }
body.app-shell .kbp-main-content .doc-icon-wrap.image { background: #f0eaf9; color: #6b46c1; }
body.app-shell .kbp-main-content .doc-icon-wrap.text  { background: #f4f4f2; color: #5b6270; }
body.app-shell .kbp-main-content .doc-icon-wrap.other { background: #fdf3e7; color: #b54708; }

body.app-shell .kbp-main-content .doc-card .doc-info { flex: 1; min-width: 0; }
body.app-shell .kbp-main-content .doc-card .doc-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #e8e8e8;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
body.app-shell .kbp-main-content .doc-card .doc-type-badge {
  display: inline-block;
  margin-bottom: 0;
  margin-top: 2px;
}
body.app-shell .kbp-main-content .doc-card .doc-meta {
  font-size: 12px;
  color: #5b6270;
  margin-top: 6px;
  line-height: 1.4;
}
body.app-shell .kbp-main-content .doc-card .doc-meta strong {
  color: #29B8EB;
  font-weight: 600;
}
body.app-shell .kbp-main-content .doc-card-check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid #666666;
  background: #111111;
  transition: all 0.15s;
}
body.app-shell .kbp-main-content .doc-card.selected .doc-card-check {
  background: #29B8EB; border-color: #29B8EB;
}
body.app-shell .kbp-main-content .doc-card.selected .doc-card-check::after {
  content: '✓'; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; height: 100%;
}

/* Sensitive toggle */
body.app-shell .kbp-main-content .sensitive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5b6270;
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}
body.app-shell .kbp-main-content .sensitive-toggle input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: #29B8EB;
  cursor: pointer;
}

/* Action row — sits below the tier row, no top border (tier row has it). */
.doc-card-actions {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.doc-card-actions .doc-act {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #555555;
  background: #111111;
  color: #c8c8c8;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
}
.doc-card-actions .doc-act:hover { border-color: #666666; color: #e8e8e8; }
.doc-card-actions .doc-act.view:hover      { color: #1d4e89; border-color: #1d4e89; }
.doc-card-actions .doc-act.changelog:hover { color: #29B8EB; border-color: #29B8EB; }
.doc-card-actions .doc-act.copy-link:hover { color: #29B8EB; border-color: #29B8EB; }
.doc-card-actions .doc-act.delete:hover    { color: #cf4747; border-color: #cf4747; }
/* Tier picker — own row above the action buttons. Was previously inside
   `.doc-card-actions` with `margin-left:auto`, but the row would wrap on
   narrower cards and the dropdown landed under the buttons looking awkward. */
.doc-card-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid #f0efed;
  min-width: 0;
}
.doc-card-tier-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a91a0;
  flex-shrink: 0;
}
/* Specificity bumped past the generic `body.app-shell .kbp-main-content select`
   rule in §27 — without this, font-size/padding/border-radius from §27 win. */
body.app-shell .kbp-main-content .doc-card-tier select.tier-pick,
.doc-card-tier select.tier-pick {
  flex: 1;
  min-width: 0;
  padding: 4px 26px 4px 8px;
  border-radius: 6px;
  border: 1px solid #555555;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #c8c8c8;
  cursor: pointer;
  height: 28px;
  line-height: 1;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
}
body.app-shell .kbp-main-content .doc-card-tier select.tier-pick:focus,
.doc-card-tier select.tier-pick:focus {
  outline: none;
  border-color: #29B8EB;
  box-shadow: 0 0 0 3px rgba(41,184,235,0.15);
}

/* Tier sections */
.tier-section { margin-bottom: 28px; }
.tier-section .tier-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0efed;
  cursor: pointer;
  user-select: none;
}
.tier-section .tier-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e8e8e8;
  letter-spacing: 0;
  margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.tier-section .tier-arr {
  display: inline-block;
  color: #8a91a0;
  font-size: 11px;
  transition: transform 0.15s;
  font-family: 'Inter', sans-serif;
  width: 14px; text-align: center;
}
.tier-section.collapsed .tier-arr { transform: rotate(-90deg); }
.tier-section.collapsed .doc-grid,
.tier-section.collapsed .tier-empty { display: none; }
.tier-section .tier-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #f4f4f2;
  color: #5b6270;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tier-section .tier-blurb {
  font-size: 12.5px;
  color: #8a91a0;
  font-weight: 400;
  margin-left: auto;
}
.tier-section.tier-public      .tier-header h4 .tier-dot { background: #29B8EB; }
.tier-section.tier-invite_only .tier-header h4 .tier-dot { background: #5b6270; }
.tier-section .tier-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}

.tier-empty {
  font-size: 13px;
  color: #8a91a0;
  padding: 18px 20px;
  background: #2E2E2E;
  border: 1px dashed #555555;
  border-radius: 12px;
  text-align: center;
}

/* Tier hint shown on Public / Standard doc cards in place of the
   sensitive toggle (which only applies to Invite-only docs). */
body.app-shell .kbp-main-content .tier-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #5b6270;
  margin-top: 4px;
  padding: 4px 0;
  letter-spacing: 0.01em;
}

/* Drag-and-drop between tier sections */
.doc-card[draggable="true"] { cursor: grab; }
.doc-card[draggable="true"]:active { cursor: grabbing; }
.doc-card.dragging { opacity: 0.35; pointer-events: none; }
.tier-section.drag-over {
  background: rgba(31, 111, 67, 0.05);
  border-radius: 12px;
  outline: 2px dashed #29B8EB;
  outline-offset: 4px;
}
.tier-section.drag-over .tier-header {
  border-bottom-color: #29B8EB;
}
.tier-section.drag-over .tier-empty {
  border-color: #29B8EB;
  background: rgba(31, 111, 67, 0.04);
  color: #29B8EB;
}

/* Per-doc changelog modal (lighter list inside the existing modal) */
.cl-doc-existing {
  max-height: 180px;
  overflow-y: auto;
  background: #2E2E2E;
  border: 1px solid #555555;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}
.cl-doc-existing-empty {
  font-size: 12.5px;
  color: #8a91a0;
  text-align: center;
  padding: 16px 8px;
}
.cl-doc-existing-row {
  padding: 6px 8px;
  border-bottom: 1px solid #f0efed;
  font-size: 12.5px;
  color: #c8c8c8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.cl-doc-existing-row:last-child { border-bottom: none; }
.cl-doc-existing-row strong { color: #e8e8e8; font-weight: 600; }
.cl-doc-existing-row .when {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #8a91a0;
  white-space: nowrap;
}

/* ============================================================
   28. Blog post pages
   ============================================================
   Used by /blog/post-*.html — long-form articles with a top nav,
   article wrap, post-body prose, callouts, and a bottom CTA card.
   ============================================================ */

/* nav-cta as a standalone primary CTA anchor (used in blog post nav).
   Sized to content + right-aligned in its grid cell (the parent <nav>
   uses `grid-template-columns: 1fr auto 1fr` from §4, so without
   `justify-self: end` the button stretches across the whole cell). */
a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  justify-self: end;
  height: 36px;
  padding: 0 14px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
a.nav-cta:hover { background: #1a1d22; }

/* Article wrap */
.post-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 28px 72px;
}
@media (max-width: 720px) {
  .post-wrap { padding: 72px 20px 56px; }
}

/* Category eyebrow pill */
.post-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.post-category::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.post-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--ink);
}

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--subtle);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.01em;
}
.post-meta span {
  color: var(--ink-2);
  font-weight: 500;
}

/* Body prose */
.post-body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.post-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  color: var(--ink);
  line-height: 1.2;
}
.post-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--ink);
  line-height: 1.3;
}
.post-body p {
  margin-bottom: 16px;
  color: var(--ink-2);
}
.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.post-body li {
  margin-bottom: 8px;
  color: var(--ink-2);
}
.post-body li::marker { color: var(--subtle); }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(31,111,67,0.35);
  transition: text-decoration-color 0.15s;
}
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body code {
  font-family: 'Roboto', monospace;
  letter-spacing: 0.01em;
  background: var(--bg3);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ink);
}
.post-body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--ink);
  background: var(--bg);
  font-style: normal;
  color: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Callout (post variant — picks up the .callout base from §20) */
.post-body .callout,
.post-wrap .callout {
  background: var(--accent-bg);
  border: 1px solid #d4e8db;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.post-body .callout p,
.post-wrap .callout p {
  color: var(--ink-2);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.post-body .callout p + p,
.post-wrap .callout p + p {
  margin-top: 8px;
}
.post-body .callout strong,
.post-wrap .callout strong {
  color: var(--accent);
  font-weight: 600;
}

/* Bottom CTA card */
.post-cta {
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  margin: 56px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 50% 0%, rgba(31,111,67,0.30), transparent 60%);
  pointer-events: none;
}
.post-cta > * { position: relative; }
.post-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}
.post-cta p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 22px;
  line-height: 1.55;
}
.post-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  background: #111111;
  color: var(--ink);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.post-cta a:hover { background: #f3f3f0; }
                                                                                                  