/* ============================================================
   THINKBENCH — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --tb-bg:           #F7F5F0;
  --tb-surface:      #FFFFFF;
  --tb-stone:        #ECE7DD;
  --tb-line:         #E2DCCF;
  --tb-line-strong:  #C8C0AE;
  --tb-ink:          #0B1A2E;
  --tb-ink-2:        #1F2D44;
  --tb-ink-3:        #4A5970;
  --tb-ink-4:        #7B879A;
  --tb-ink-5:        #A6AEBD;

  --tb-accent:       #2F8F7F;
  --tb-accent-ink:   #0E5A4F;
  --tb-accent-soft:  #DCEEE8;
  --tb-accent-paper: #EFF7F4;

  --tb-warn:         #C97B2B;
  --tb-rose:         #B65A55;

  --tb-pad-x:        clamp(20px, 4vw, 56px);
  --tb-section:      clamp(72px, 9vw, 128px);
  --tb-radius:       14px;
  --tb-radius-sm:    8px;
  --tb-radius-lg:    22px;

  --tb-shadow-sm:    0 1px 2px rgba(11,26,46,0.04), 0 1px 0 rgba(11,26,46,0.03);
  --tb-shadow-md:    0 1px 2px rgba(11,26,46,0.05), 0 8px 24px -12px rgba(11,26,46,0.12);
  --tb-shadow-lg:    0 1px 2px rgba(11,26,46,0.05), 0 24px 48px -24px rgba(11,26,46,0.18);

  --tb-font-sans:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --tb-font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --tb-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html, body { margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--tb-bg);
  color: var(--tb-ink);
  font-family: var(--tb-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }

/* ---- Type ---- */

h1, h2, h3, h4, h5 {
  font-family: var(--tb-font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--tb-ink);
}
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 17px; line-height: 1.3; }

.tb-eyebrow {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-accent-ink);
  font-weight: 500;
}

.tb-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tb-eyebrow-line::before {
  content: "";
  width: 18px; height: 1px; background: var(--tb-accent);
}

.tb-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--tb-ink-3);
  max-width: 60ch;
}

.tb-mono {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---- Containers ---- */

.tb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--tb-pad-x);
  padding-right: var(--tb-pad-x);
}

.tb-container-tight {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--tb-pad-x);
  padding-right: var(--tb-pad-x);
}

/* ---- Buttons ---- */

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--tb-font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border 120ms ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
}
.tb-btn:hover { transform: translateY(-1px); }
.tb-btn-primary { background: var(--tb-ink); color: var(--tb-bg) !important; }
.tb-btn-primary:hover { background: var(--tb-ink-2); }
.tb-btn-accent { background: var(--tb-accent); color: #fff !important; }
.tb-btn-accent:hover { background: var(--tb-accent-ink); }
.tb-btn-ghost { background: transparent; color: var(--tb-ink) !important; border-color: var(--tb-line-strong); }
.tb-btn-ghost:hover { background: var(--tb-stone); }
.tb-btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.tb-arrow {
  width: 16px; height: 16px; flex: none;
  transition: transform 200ms ease;
}
.tb-btn:hover .tb-arrow { transform: translateX(3px); }

/* ---- Nav ---- */

.tb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,240,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--tb-line);
}

.tb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.tb-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--tb-ink-3);
  border-radius: 999px;
  transition: color 120ms ease, background 120ms ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
}
.tb-nav-link:hover { color: var(--tb-ink); background: rgba(11,26,46,0.04); text-decoration: none; }

.tb-nav-cta { display: flex; gap: 8px; align-items: center; }

/* Mobile toggle */
.tb-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--tb-line-strong);
  border-radius: var(--tb-radius-sm);
  color: var(--tb-ink);
  padding: 0;
}

.tb-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--tb-line);
}

.tb-mobile-nav .tb-nav-link {
  justify-content: flex-start;
  width: 100%;
}

.tb-mobile-cta {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--tb-line);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .tb-nav-links, .tb-nav-cta { display: none !important; }
  .tb-mobile-toggle { display: inline-flex; }
}

/* ---- Logo ---- */

.tb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tb-font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--tb-ink);
  background: none;
  border: none;
  padding: 0;
  text-decoration: none !important;
  cursor: pointer;
}

.tb-logo-mark {
  width: 28px; height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--tb-ink);
}

/* ---- Sections ---- */

.tb-section     { padding-top: var(--tb-section); padding-bottom: var(--tb-section); }
.tb-section-sm  { padding-top: clamp(48px,6vw,80px); padding-bottom: clamp(48px,6vw,80px); }
.tb-section-divider { border-top: 1px solid var(--tb-line); }

/* ---- Hero ---- */

.tb-hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 112px);
  position: relative;
  overflow: hidden;
}

.tb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 1000px) {
  .tb-hero-grid { grid-template-columns: 1fr; }
}

.tb-hero-eyebrow { margin-bottom: 24px; }
.tb-hero h1 { margin-bottom: 24px; }

.tb-hero-sub {
  margin-bottom: 36px;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--tb-ink-3);
  line-height: 1.5;
}

.tb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--tb-line);
}

.tb-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.tb-hero-meta-num  { font-family: var(--tb-font-sans); font-size: 26px; letter-spacing: -0.03em; }
.tb-hero-meta-label { font-size: 13px; color: var(--tb-ink-4); }

/* ---- Product visual card ---- */

.tb-prod-card {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-lg);
  box-shadow: var(--tb-shadow-lg);
  overflow: hidden;
}

.tb-prod-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tb-line);
  background: linear-gradient(180deg, #FBFAF7 0%, var(--tb-surface) 100%);
}

.tb-prod-card-body { padding: 20px; }

.tb-prod-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  color: var(--tb-accent-ink);
  background: var(--tb-accent-paper);
  padding: 4px 10px;
  border-radius: 999px;
}
.tb-prod-card-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tb-accent);
  box-shadow: 0 0 0 3px rgba(47,143,127,0.15);
}

/* ---- TC Ribbon / bars ---- */

.tb-tc-ribbon { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

.tb-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--tb-line);
  overflow: hidden;
}
.tb-bar > span {
  display: block;
  height: 100%;
  background: var(--tb-accent);
  border-radius: 999px;
}
.tb-bar-warn > span { background: var(--tb-warn); }

/* ---- Chip ---- */

.tb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tb-stone);
  color: var(--tb-ink-3);
  white-space: nowrap;
}

.tb-chip-accent {
  background: var(--tb-accent-paper);
  color: var(--tb-accent-ink);
}

.tb-chip-warn {
  background: rgba(201,123,43,0.12);
  color: var(--tb-warn);
}

/* ---- Problems grid ---- */

.tb-problems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--tb-line);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  overflow: hidden;
}

@media (max-width: 900px)  { .tb-problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tb-problems { grid-template-columns: 1fr; } }

.tb-problem {
  background: var(--tb-surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.tb-problem-num   { font-family: var(--tb-font-mono); font-size: 11px; color: var(--tb-ink-5); }
.tb-problem-title { font-family: var(--tb-font-sans); font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.tb-problem-desc  { font-size: 14px; color: var(--tb-ink-3); line-height: 1.5; }

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

.tb-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) { .tb-products { grid-template-columns: 1fr; } }

.tb-pcard {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  transition: transform 200ms ease, box-shadow 200ms ease, border 200ms ease;
  cursor: pointer;
}
.tb-pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--tb-shadow-md);
  border-color: var(--tb-line-strong);
}

.tb-pcard-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  color: var(--tb-ink-4);
}

.tb-pcard-flag-dot { width: 6px; height: 6px; border-radius: 50%; }

.tb-pcard-title {
  font-family: var(--tb-font-sans);
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tb-pcard-desc { font-size: 14px; color: var(--tb-ink-3); flex: 1; line-height: 1.55; }

.tb-pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--tb-line);
}

.tb-pcard-link {
  font-size: 14px;
  color: var(--tb-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- Feature section (dark) ---- */

.tb-feature {
  background: var(--tb-ink);
  color: #E5E9F0;
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.tb-feature h2 { color: #fff; }
.tb-feature .tb-eyebrow { color: #6FD0BC; }
.tb-feature .tb-lead { color: #B5C0D2; }

.tb-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 1000px) { .tb-feature-grid { grid-template-columns: 1fr; } }

.tb-feature-list { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }

.tb-feature-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tb-feature-item:first-child { border-top: 1px solid rgba(255,255,255,0.14); }

.tb-feature-item-num   { font-family: var(--tb-font-mono); font-size: 12px; color: #6FD0BC; padding-top: 2px; }
.tb-feature-item-title { color: #fff; font-family: var(--tb-font-sans); font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.tb-feature-item-desc  { color: #98A4B8; font-size: 14px; line-height: 1.5; }

/* ---- Mock dashboard (dark) ---- */

.tb-mock {
  background: #0F2236;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--tb-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}

.tb-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tb-mock-title { color: #fff; font-family: var(--tb-font-sans); font-size: 14px; }
.tb-mock-sub   { font-family: var(--tb-font-mono); font-size: 11px; color: #6B7B96; }
.tb-mock-body  { padding: 20px; display: grid; gap: 14px; }

/* ---- Stats row ---- */

.tb-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tb-line);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  overflow: hidden;
  margin-top: 36px;
}

.tb-stat { padding: 24px; background: var(--tb-surface); }
.tb-stat-num {
  font-family: var(--tb-font-sans);
  font-size: 38px;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 8px;
}
.tb-stat-label { font-size: 13px; color: var(--tb-ink-3); }

/* ---- Savings grid ---- */

.tb-savings-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 1000px) { .tb-savings-grid { grid-template-columns: 1fr; } }

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

.tb-consulting {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .tb-consulting { grid-template-columns: 1fr; } }

.tb-ccard {
  background: var(--tb-stone);
  border-radius: var(--tb-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}

.tb-ccard-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--tb-surface);
  display: grid;
  place-items: center;
  color: var(--tb-accent-ink);
  border: 1px solid var(--tb-line);
  font-size: 1rem;
}

.tb-ccard-title { font-family: var(--tb-font-sans); font-size: 19px; letter-spacing: -0.02em; }
.tb-ccard-desc  { font-size: 14px; color: var(--tb-ink-3); flex: 1; line-height: 1.55; }

/* ---- Why grid ---- */

.tb-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }

@media (max-width: 900px) { .tb-why { grid-template-columns: 1fr; } }

.tb-why-list { display: flex; flex-direction: column; }

.tb-why-item {
  padding: 22px 0;
  border-top: 1px solid var(--tb-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}
.tb-why-item:last-child { border-bottom: 1px solid var(--tb-line); }

.tb-why-item-num  { font-family: var(--tb-font-mono); font-size: 12px; color: var(--tb-ink-4); padding-top: 4px; }
.tb-why-item h4   { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
.tb-why-item-desc { color: var(--tb-ink-3); font-size: 14.5px; }

/* ---- CTA band ---- */

.tb-cta {
  background: var(--tb-ink);
  color: #fff;
  border-radius: var(--tb-radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 800px) { .tb-cta { grid-template-columns: 1fr; } }

.tb-cta h2 { color: #fff; max-width: 18ch; }
.tb-cta-sub { color: #B5C0D2; margin-top: 16px; max-width: 44ch; font-size: 15px; }
.tb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 800px) { .tb-cta-actions { justify-content: flex-start; } }

.tb-cta .tb-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,0.25); }
.tb-cta .tb-btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---- Page head ---- */

.tb-pagehead {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--tb-line);
}

.tb-pagehead-eyebrow { margin-bottom: 18px; }
.tb-pagehead h1 { font-size: clamp(40px, 5vw, 64px); max-width: 18ch; }
.tb-pagehead-sub { margin-top: 20px; max-width: 60ch; color: var(--tb-ink-3); font-size: 18px; }

/* ---- Tables ---- */

.tb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tb-table th, .tb-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--tb-line); }
.tb-table th { font-family: var(--tb-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tb-ink-4); font-weight: 500; background: #FBFAF7; }
.tb-table td { color: var(--tb-ink-2); }
.tb-table tbody tr:hover { background: #FBFAF7; }

/* ---- Forms ---- */

.tb-form { display: flex; flex-direction: column; gap: 18px; }

.tb-field { display: flex; flex-direction: column; gap: 8px; }
.tb-field label { font-size: 13px; color: var(--tb-ink-3); font-weight: 500; }

.tb-input, .tb-select, .tb-textarea {
  width: 100%;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--tb-ink);
  transition: border 120ms ease, box-shadow 120ms ease;
  appearance: none;
}

.tb-input:focus, .tb-select:focus, .tb-textarea:focus {
  outline: none;
  border-color: var(--tb-accent);
  box-shadow: 0 0 0 3px var(--tb-accent-soft);
}

.tb-textarea { min-height: 110px; resize: vertical; }

.tb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 600px) { .tb-row-2 { grid-template-columns: 1fr; } }

/* ---- Alert ---- */

.tb-alert {
  padding: 14px 16px;
  border-radius: var(--tb-radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.tb-alert-success {
  background: var(--tb-accent-paper);
  border: 1px solid var(--tb-accent-soft);
  color: var(--tb-accent-ink);
}
.tb-alert-error {
  background: #FFF4F2;
  border: 1px solid #E8C7C2;
  color: var(--tb-rose);
}
.tb-alert-note {
  background: #FBFAF7;
  border: 1px solid var(--tb-line);
  color: var(--tb-ink-3);
}
.validation-summary-valid {
  display: none;
}
.validation-summary-errors ul {
  margin: 0;
  padding-left: 18px;
}
.tb-recaptcha-wrap {
  min-height: 78px;
}

/* ---- Utility ---- */

.tb-hr { height: 1px; background: var(--tb-line); border: 0; margin: 0; }

.tb-link { color: var(--tb-ink); border-bottom: 1px solid var(--tb-ink-5); padding-bottom: 1px; }
.tb-link:hover { border-color: var(--tb-ink); }

.tb-placeholder {
  background-image: repeating-linear-gradient(135deg, var(--tb-stone) 0px, var(--tb-stone) 6px, var(--tb-bg) 6px, var(--tb-bg) 12px);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  display: grid;
  place-items: center;
  color: var(--tb-ink-4);
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 200px;
}

/* ---- Footer ---- */

.tb-footer {
  background: var(--tb-bg);
  border-top: 1px solid var(--tb-line);
  padding: 64px 0 32px;
}

.tb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) { .tb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tb-footer-grid { grid-template-columns: 1fr; } }

.tb-footer-col h5 {
  font-size: 12px;
  font-family: var(--tb-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-ink-4);
  font-weight: 500;
  margin-bottom: 16px;
}

.tb-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-footer-col a { font-size: 14px; color: var(--tb-ink-3); }
.tb-footer-col a:hover { color: var(--tb-ink); }

.tb-footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--tb-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--tb-ink-4);
}

.tb-footer-tag {
  max-width: 32ch;
  font-size: 14px;
  color: var(--tb-ink-3);
  margin-top: 16px;
}

/* ---- Page animation ---- */

.tb-page { animation: tbFade 280ms ease both; }
@keyframes tbFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
