/* =============================================
   Tank Logic — style.css  v4  (clean consolidated)
   Premium dark SaaS UI
   ============================================= */

/* ─── FONT ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');

/* ─── TOKENS ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:    #07101c;
  --bg-1:  #0a1525;
  --bg-2:  #0d1a2e;
  --bg-3:  #111f36;

  /* Borders */
  --border:     rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.10);
  --border-hi:  rgba(255,255,255,0.16);

  /* Accent palette */
  --accent:     #00c896;
  --accent-lo:  rgba(0,200,150,0.08);
  --accent-mid: rgba(0,200,150,0.14);
  --accent-hi:  rgba(0,200,150,0.24);
  --blue:       #4d94ff;
  --blue-lo:    rgba(77,148,255,0.08);
  --blue-mid:   rgba(77,148,255,0.14);
  --gold:       #f0a830;
  --gold-lo:    rgba(240,168,48,0.08);
  --purple:     #a78bfa;
  --purple-lo:  rgba(167,139,250,0.08);
  --red:        #f87171;
  --red-lo:     rgba(248,113,113,0.08);

  /* Text scale — all pass WCAG AA on darkest bg (#07101c)
     Contrast ratios measured against --bg:
     --tx-hi  : #f2f6ff  =  18.4:1  ✅ AAA
     --tx     : #c8daf0  =  11.8:1  ✅ AAA
     --tx-lo  : #8aafc8  =   6.4:1  ✅ AA
     --tx-xlo : #567898  =   3.8:1  ⚠️  decorative/metadata only  */
  --tx-hi:  #f2f6ff;
  --tx:     #c8daf0;
  --tx-lo:  #8aafc8;
  --tx-xlo: #567898;

  /* Compatibility aliases */
  --text-hi:   var(--tx-hi);
  --text:      var(--tx);
  --text-lo:   var(--tx-lo);
  --text-xlo:  var(--tx-xlo);
  --text-body: var(--tx);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --sz-10: 0.625rem;
  --sz-11: 0.6875rem;
  --sz-12: 0.75rem;
  --sz-13: 0.8125rem;
  --sz-14: 0.875rem;
  --sz-15: 0.9375rem;
  --sz-16: 1rem;
  --sz-17: 1.0625rem;
  --sz-18: 1.125rem;
  --sz-20: 1.25rem;
  --sz-24: 1.5rem;
  --sz-28: 1.75rem;
  --sz-32: 2rem;

  /* Radii */
  --r-sm:  4px;
  --r-md:  6px;
  --r-lg:  9px;
  --r-xl:  12px;
  --r-2xl: 18px;

  /* Layout */
  --max-w: 1060px;
  --nav-h: 52px;

  /* Motion */
  --t:    150ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: var(--sz-15);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── FOCUS ──────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
:focus:not(:focus-visible) { outline: none; }

/* ─── SELECTION ──────────────────────────────── */
::selection { background: rgba(0,200,150,0.22); color: var(--tx-hi); }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: var(--tx-xlo); }

/* ─── LAYOUT ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}
.section    { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.section-xs { padding-block: 28px; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--tx-hi);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h2    { font-size: clamp(var(--sz-18), 2.4vw, var(--sz-24)); }
h3    { font-size: var(--sz-16); }
h4    { font-size: var(--sz-14); }
p     { color: var(--tx); line-height: 1.74; }
p.lead {
  font-size: var(--sz-16);
  color: var(--tx);
  line-height: 1.7;
}
strong { color: var(--tx-hi); font-weight: 600; }
em     { font-style: italic; }

.section-header {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  margin-bottom: 40px;
}
.section-header h2 { margin-bottom: 8px; }
.section-header p  {
  font-size: var(--sz-14);
  color: var(--tx);
  line-height: 1.68;
  max-width: 520px;
}

/* ─── BADGE / TAG ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--sz-11);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--accent-lo);
  color: var(--accent);
  border: 1px solid rgba(0,200,150,0.18);
  margin-bottom: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--sz-11);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--blue-lo);
  color: var(--blue);
  border: 1px solid rgba(77,148,255,0.18);
}
.tag.tag-accent { background: var(--accent-lo); color: var(--accent); border-color: rgba(0,200,150,0.18); }
.tag.tag-gold   { background: var(--gold-lo);   color: var(--gold);   border-color: rgba(240,168,48,0.18); }
.tag.tag-purple { background: var(--purple-lo); color: var(--purple); border-color: rgba(167,139,250,0.18); }

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7,16,28,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
  gap: 16px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--sz-14);
  font-weight: 600;
  color: var(--tx-hi);
  letter-spacing: -0.022em;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 1px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  position: relative;
  font-size: var(--sz-13);
  font-weight: 500;
  color: var(--tx);
  padding: 5px 10px;
  border-radius: var(--r-lg);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; right: 50%;
  height: 1px;
  background: var(--accent);
  transition: left var(--t) var(--ease), right var(--t) var(--ease);
  border-radius: 1px;
}
.nav__links a:hover             { color: var(--tx-hi); background: rgba(255,255,255,0.04); }
.nav__links a:hover::after,
.nav__links a.active::after     { left: 10px; right: 10px; }
.nav__links a.active            { color: var(--tx-hi); }
.nav__cta       { display: none; }
.nav__hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--tx);
  padding: 5px 8px;
  font-size: 0.8rem;
  line-height: 1;
  transition: border-color var(--t), color var(--t);
}
.nav__hamburger:hover { border-color: var(--border-mid); color: var(--tx-hi); }
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 14px;
  flex-direction: column;
  gap: 1px;
  z-index: 199;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: var(--sz-15);
  font-weight: 500;
  color: var(--tx);
  transition: background var(--t), color var(--t);
}
.nav__mobile a:hover { background: var(--bg-2); color: var(--tx-hi); }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: var(--sz-13);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #021a12;
  font-weight: 700;
  box-shadow: 0 1px 8px rgba(0,200,150,0.22);
}
.btn-primary:hover { background: #02dba5; box-shadow: 0 4px 18px rgba(0,200,150,0.32); }
.btn-secondary {
  background: var(--bg-2);
  color: var(--tx);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-mid); color: var(--tx-hi); background: var(--bg-3); }
.btn-ghost {
  background: transparent;
  color: var(--tx-lo);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-mid); color: var(--tx); }
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0,200,150,0.24);
}
.btn-outline-accent:hover { background: var(--accent-lo); }
.btn-full { width: 100%; justify-content: center; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 860px; height: 520px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0,200,150,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 660px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--sz-11);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tx-lo);
  margin-bottom: 22px;
}
.hero__eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 7px var(--accent); }
  50%       { opacity: 0.55; box-shadow: 0 0 14px var(--accent); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.11;
  color: var(--tx-hi);
  margin-bottom: 20px;
}
.hero__accent { color: var(--accent); }
.hero__desc {
  font-size: var(--sz-16);
  color: var(--tx);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
  letter-spacing: -0.008em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero__tool-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 48px;
  font-size: var(--sz-13);
  color: var(--tx-lo);
}
.hero__tool-links a {
  color: var(--tx);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(200,218,240,0.25);
  font-weight: 500;
  transition: color var(--t), text-decoration-color var(--t);
}
.hero__tool-links a:hover { color: var(--accent); text-decoration-color: var(--accent-mid); }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stats > div { transition: transform 180ms var(--ease); cursor: default; }
.hero__stats > div:hover { transform: translateY(-2px); }
.hero__stats > div:hover .hero__stat-num { color: var(--accent); }
.hero__stat-num {
  font-size: var(--sz-20);
  font-weight: 700;
  color: var(--tx-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  transition: color 160ms var(--ease);
}
.hero__stat-label {
  font-size: var(--sz-12);
  color: var(--tx-lo);
  font-weight: 500;
}

/* ─── FEATURE STRIP ──────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
  background: rgba(255,255,255,0.012);
}
.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: flex-start;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--sz-13);
  font-weight: 500;
  color: var(--tx-lo);
  letter-spacing: -0.005em;
  transition: color 150ms;
}
.strip__item:hover { color: var(--tx); }
.strip__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ─── TOOL CARDS ─────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tool-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,150,0.2), transparent);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.tool-card:not(.tool-card--dimmed):hover::before { opacity: 1; }
.tool-card:not(.tool-card--dimmed):hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.tool-card--dimmed { opacity: 0.2; pointer-events: none; filter: saturate(0); }
.tool-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tool-card:hover .tool-card__icon            { transform: scale(1.1); }
.tool-card__icon.teal   { background: var(--accent-lo); }
.tool-card__icon.blue   { background: var(--blue-lo);   }
.tool-card__icon.purple { background: var(--purple-lo); }
.tool-card__icon.gold   { background: var(--gold-lo);   }
.tool-card:hover .tool-card__icon.teal   { box-shadow: 0 0 16px rgba(0,200,150,0.24); }
.tool-card:hover .tool-card__icon.blue   { box-shadow: 0 0 16px rgba(77,148,255,0.24); }
.tool-card:hover .tool-card__icon.gold   { box-shadow: 0 0 16px rgba(240,168,48,0.24); }
.tool-card:hover .tool-card__icon.purple { box-shadow: 0 0 16px rgba(167,139,250,0.24); }
.tool-card__title {
  font-size: var(--sz-14);
  font-weight: 600;
  color: var(--tx-hi);
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin-bottom: 5px;
}
.tool-card p {
  font-size: var(--sz-13);
  color: var(--tx);
  line-height: 1.64;
}
.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}
.tool-card__link {
  font-size: var(--sz-12);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap var(--t) var(--ease);
  letter-spacing: -0.01em;
}
.tool-card:hover .tool-card__link { gap: 7px; }
.tool-card__status {
  font-size: var(--sz-10);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-lo);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 2px 7px;
}

/* ─── GUIDE CARDS ────────────────────────────── */
.guides-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
/* Homepage: show 6 only — guides page shows all */
.guides-grid .guide-card:nth-child(n+7) { display: none; }
.guide-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--r-xl);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 160ms var(--ease), border-left-color 160ms var(--ease),
              transform 160ms var(--ease), background 160ms var(--ease);
}
.guide-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-mid);
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.014);
}
.guide-card__num {
  font-size: var(--sz-12);
  font-weight: 700;
  color: var(--tx-lo);
  line-height: 1;
  flex-shrink: 0;
  min-width: 22px;
  letter-spacing: -0.02em;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
  transition: color 160ms var(--ease);
}
.guide-card:hover .guide-card__num { color: var(--accent); }
.guide-card__body { flex: 1; }
.guide-card__title {
  font-size: var(--sz-15);
  font-weight: 600;
  color: var(--tx-hi);
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin-bottom: 5px;
}
.guide-card__desc {
  font-size: var(--sz-13);
  color: var(--tx);
  line-height: 1.64;
  margin-bottom: 10px;
}
.guide-card__meta { display: flex; align-items: center; gap: 7px; }
.guide-card__read { font-size: var(--sz-12); color: var(--tx); font-weight: 500; }
.guide-card__link {
  font-size: var(--sz-13);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap var(--t) var(--ease);
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.guide-card:hover .guide-card__link { gap: 7px; }

/* ─── CTA BANNER ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,200,150,0.03) 0%, var(--bg-1) 50%, rgba(77,148,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 52px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,200,150,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,150,0.28), transparent);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2  { font-size: clamp(var(--sz-16), 2vw, var(--sz-20)); margin-bottom: 10px; }
.cta-banner p   {
  font-size: var(--sz-15);
  color: var(--tx);
  max-width: 360px;
  margin-inline: auto;
  margin-bottom: 24px;
  line-height: 1.68;
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: 52px;
  padding-bottom: 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__brand p {
  font-size: var(--sz-13);
  color: var(--tx);
  max-width: 220px;
  line-height: 1.66;
  margin-top: 10px;
}
.footer__col h4 {
  font-size: var(--sz-11);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-lo);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a  { font-size: var(--sz-13); color: var(--tx); transition: color var(--t); }
.footer__col a:hover { color: var(--tx-hi); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--sz-12);
  color: var(--tx-lo);
}

/* ─── AD SLOTS ───────────────────────────────── */
.ad-slot {
  background: rgba(255,255,255,0.007);
  border: 1px dashed rgba(255,255,255,0.04);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-xlo);
  font-size: var(--sz-10);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.ad-slot--leaderboard { height: 90px; }
.ad-slot--rectangle   { height: 250px; }

/* ─── UTILITIES ──────────────────────────────── */
.feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--sz-13);
  font-weight: 500;
  color: var(--tx);
}
.feature-item__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}
.sidebar-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
}
.sidebar-title {
  font-size: var(--sz-14);
  font-weight: 600;
  color: var(--tx-hi);
  margin-bottom: 6px;
  letter-spacing: -0.014em;
}
.sidebar-desc {
  font-size: var(--sz-13);
  color: var(--tx);
  line-height: 1.66;
  margin-bottom: 14px;
}
.prose { max-width: 68ch; line-height: 1.78; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }

/* ─── SCROLL REVEAL ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.44s var(--ease), transform 0.44s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (min-width: 480px) { .container { padding-inline: 24px; } }

@media (min-width: 640px) {
  .tools-grid   { grid-template-columns: repeat(2, 1fr); }
  .guides-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__list  { justify-content: center; }
}

@media (min-width: 900px) {
  .nav__links     { display: flex; }
  .nav__cta       { display: inline-flex; }
  .nav__hamburger { display: none; }
  .tools-grid     { grid-template-columns: repeat(3, 1fr); }
  .guides-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .hero           { padding-top: calc(var(--nav-h) + 100px); padding-bottom: 96px; }
  .hero__content  { max-width: 700px; }
  .hero h1        { font-size: clamp(2.4rem, 4vw, 3.4rem); }
}

@media (min-width: 1200px) {
  .container  { padding-inline: 28px; }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .section    { padding-block: 60px; }
  .section-sm { padding-block: 40px; }
  .hero       { padding-top: calc(var(--nav-h) + 52px); padding-bottom: 56px; }
  .cta-banner { padding: 36px 22px; }
  .section-header { padding-left: 10px; }
}

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .hero__eyebrow-dot, .tool-card, .guide-card, .btn {
    transition: none !important;
    animation: none !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}


/* ════════════════════════════════════════════════
   PHASE 1 — GLOBAL READABILITY PATCH
   Ensures minimum contrast and size across all
   components. These override prior declarations
   via cascade (appended = higher specificity).
   ════════════════════════════════════════════════ */

/* ── Body text minimum ───────────────────────── */
/* All card descriptions, panel text, guide body */
.guide-card__desc,
.tool-card p,
.sidebar-desc,
.sidebar-panel p,
.feature-item {
  color: var(--tx);
  font-size: var(--sz-13);
  line-height: 1.65;
}

/* ── Footer — lift text colour ───────────────── */
.footer__col a    { color: var(--tx-lo); }
.footer__col a:hover { color: var(--tx); }
.footer__bottom   { color: var(--tx-lo); }

/* ── Strip items — slightly more visible ─────── */
.strip__item { color: var(--tx-lo); font-size: var(--sz-12); }

/* ── Guide card body text ────────────────────── */
.guide-card__title { color: var(--tx-hi); font-size: var(--sz-14); }
.guide-card__desc  { color: var(--tx);    font-size: var(--sz-13); }

/* ── Tool card body ──────────────────────────── */
.tool-card__title  { color: var(--tx-hi); font-size: var(--sz-14); }
.tool-card p       { color: var(--tx);    font-size: var(--sz-13); }

/* ── Fish database modal ─────────────────────── */
.modal-care-text   { font-size: var(--sz-14); color: var(--tx); line-height: 1.72; }
.modal-stat-label  { font-size: var(--sz-11); color: var(--tx-lo); }
.modal-stat-val    { font-size: var(--sz-14); color: var(--tx-hi); }

/* ── Page body — about / contact / privacy ───── */
.page-body p,
.page-body li      { font-size: var(--sz-15); color: var(--tx); line-height: 1.8; }

/* ── Stocking calc — key labels ──────────────── */
.method-name       { font-size: var(--sz-12); color: var(--tx); }
.method-sub        { font-size: var(--sz-12); color: var(--tx-lo); }
.fish-list-header  { font-size: var(--sz-12); color: var(--tx); }
.fish-item-calc    { font-size: var(--sz-13); color: var(--tx-lo); }
.fish-total-val    { font-size: var(--sz-16); }
.gauge-labels      { font-size: var(--sz-12); color: var(--tx-lo); }

/* ── Callout minimum ─────────────────────────── */
.callout-body p    { font-size: var(--sz-13); line-height: 1.68; }
.callout-body strong { font-size: var(--sz-13); }

/* ── CTA banner ──────────────────────────────── */
.cta-banner p { font-size: var(--sz-14); color: var(--tx); }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb { font-size: var(--sz-13); color: var(--tx-lo); }

/* ── Mobile: no font below sz-12 in any prose ── */
@media (max-width: 600px) {
  .guide-card__desc,
  .tool-card p,
  .sidebar-desc,
  .callout-body p   { font-size: var(--sz-13); }
  
  .guide-meta-item  { font-size: var(--sz-12); }
  .strip__item      { font-size: var(--sz-12); }
}

/* ── Premium nav hamburger (span-based, matches home.css) ── */
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__hamburger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 9px 10px;
  cursor: pointer; transition: border-color var(--t);
}
.nav__hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--tx-lo); border-radius: 2px;
  transition: background var(--t);
}
.nav__hamburger:hover { border-color: var(--border-mid); }
.nav__hamburger:hover span { background: var(--tx); }
/* Footer inner layout (matches home.css) */
.footer__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; padding-bottom: 44px;
}
.footer__tagline {
  font-size: var(--sz-13); color: var(--tx-lo);
  line-height: 1.65; margin-top: 10px; margin-bottom: 10px;
}
.footer__email {
  font-size: var(--sz-12); color: var(--tx-lo);
  text-decoration: none; transition: color var(--t);
}
.footer__email:hover { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__bottom-right { display: flex; gap: 16px; }
.footer__bottom-right a {
  color: var(--tx-xlo); text-decoration: none; transition: color var(--t);
}
.footer__bottom-right a:hover { color: var(--tx-lo); }
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 2fr; gap: 56px; }
}
