/* =============================================
   Tank Logic — style.css  v5  NATURE THEME
   Bright freshwater ecosystem aesthetic
   ============================================= */


/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg: #030402;
  --bg-1: #0A0F08;
  --bg-2: #101609;
  --bg-3: #18200E;
  --border: rgba(255,255,255,0.10);
  --border-mid: rgba(255,255,255,0.16);
  --border-hi: rgba(255,255,255,0.24);
  --accent: #6FBF8E;
  --accent-lo: rgba(111,191,142,0.12);
  --accent-mid: rgba(111,191,142,0.22);
  --accent-hi: rgba(28,107,73,0.30);
  --water: #5FB7CC;
  --water-lo: rgba(95,183,204,0.12);
  --water-mid: rgba(95,183,204,0.22);
  --sand: #C9995B;
  --sand-lo: rgba(201,153,91,0.14);
  --sand-pale: #F0E7DB;
  --gold: #C9995B;
  --gold-lo: rgba(201,153,91,0.14);
  --moss: #8FD49B;
  --leaf: #6FBF8E;
  --red: #E08585;
  --red-lo: rgba(224,133,133,0.14);
  --green: #6FBF8E;
  --green-lo: rgba(111,191,142,0.12);
  --green-mid: rgba(111,191,142,0.26);
  --tx-hi: #FCFCFC;
  --tx: #C7D0C8;
  --tx-lo: #A8B5AA;
  --tx-xlo: #7C8A80;
  --purple: #A99FE0;
  --purple-lo: rgba(169,159,224,0.14);
  --font-head: 'Inter',system-ui,sans-serif;
  --font: 'Inter',system-ui,sans-serif;
  --font-mono: 'Inter',system-ui,sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5),0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.55),0 1px 4px rgba(0,0,0,0.4);
  --shadow-lg: 0 18px 50px -18px rgba(0,0,0,0.85),0 2px 8px rgba(0,0,0,0.5);
  --text-hi:var(--tx-hi);--text:var(--tx);--text-lo:var(--tx-lo);--text-xlo:var(--tx-xlo);--text-body:var(--tx);
  --blue:var(--water);--max-w:1200px;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #030402;
  color: #C7D0C8;
  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; }

/* ─── GRAIN TEXTURE OVERLAY ──────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
}

/* ─── 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(45,122,58,0.18); 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-head);
  color: var(--tx-hi);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}
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: 3px 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-family: var(--font-head);
  font-size: var(--sz-11);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-lo);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  margin-bottom: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--sz-11);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--water-lo);
  color: var(--water);
  border: 1px solid var(--water-mid);
}
.tag.tag-accent { background: var(--accent-lo); color: var(--accent); border-color: var(--accent-mid); }
.tag.tag-gold   { background: var(--gold-lo);   color: var(--gold);   border-color: rgba(200,134,10,0.2); }
.tag.tag-purple { background: var(--purple-lo); color: var(--purple); border-color: rgba(107,95,168,0.2); }

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(242,247,240,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.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: 9px;
  font-family: var(--font-head);
  font-size: var(--sz-15);
  font-weight: 800;
  color: var(--tx-hi);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.nav__logo:hover { opacity: 0.78; }
.nav__logo-icon {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--leaf));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45,122,58,0.3);
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  position: relative;
  font-family: var(--font);
  font-size: var(--sz-14);
  font-weight: 500;
  color: var(--tx-lo);
  padding: 5px 12px;
  border-radius: var(--r-lg);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__links a:hover  { color: var(--tx-hi); background: var(--accent-lo); }
.nav__links a.active { color: var(--accent); font-weight: 600; }
.nav__cta       { display: none; }
.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); }
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(3,4,2,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 8px 12px 14px;
  flex-direction: column;
  gap: 2px;
  z-index: 199;
  box-shadow: var(--shadow-md);
}
.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 18px;
  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);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(45,122,58,0.28);
}
.btn-primary:hover { background: #256b31; box-shadow: 0 4px 18px rgba(45,122,58,0.38); }
.btn-secondary {
  background: var(--bg-1);
  color: var(--tx);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--border-hi); color: var(--tx-hi); background: var(--bg-2); }
.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 var(--accent-mid);
}
.btn-outline-accent:hover { background: var(--accent-lo); }
.btn-full { width: 100%; justify-content: center; }

/* ─── HERO (shared) ──────────────────────────── */
.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(45,122,58,0.07) 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);
  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-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  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;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-family: var(--font-head);
  font-size: var(--sz-20);
  font-weight: 700;
  color: var(--tx-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.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: var(--bg-2);
}
.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);
  transition: color 150ms;
}
.strip__item:hover { color: var(--tx); }
.strip__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── TOOL CARDS ─────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tool-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.tool-card:not(.tool-card--dimmed):hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tool-card--dimmed { opacity: 0.3; pointer-events: none; filter: saturate(0); }
.tool-card__icon {
  width: 38px; height: 38px;
  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);
}
.tool-card:hover .tool-card__icon { transform: scale(1.08); }
.tool-card__icon.teal   { background: var(--accent-lo); color: var(--accent); }
.tool-card__icon.blue   { background: var(--water-lo);  color: var(--water);  }
.tool-card__icon.purple { background: var(--purple-lo); color: var(--purple); }
.tool-card__icon.gold   { background: var(--gold-lo);   color: var(--gold);   }
.tool-card__title {
  font-family: var(--font-head);
  font-size: var(--sz-15);
  font-weight: 700;
  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: 4px;
  transition: gap var(--t) var(--ease);
}
.tool-card:hover .tool-card__link { gap: 8px; }
.tool-card__status {
  font-size: var(--sz-10);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-xlo);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
}

/* ─── GUIDE CARDS ────────────────────────────── */
.guides-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.guides-grid .guide-card:nth-child(n+7) { display: none; }
.guide-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-xl);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms var(--ease), border-left-color 160ms var(--ease),
              transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.guide-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-mid);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.guide-card__num {
  font-family: var(--font-head);
  font-size: var(--sz-12);
  font-weight: 700;
  color: var(--tx-xlo);
  line-height: 1;
  flex-shrink: 0;
  min-width: 22px;
  padding-top: 2px;
  transition: color 160ms var(--ease);
}
.guide-card:hover .guide-card__num { color: var(--accent); }
.guide-card__body { flex: 1; }
.guide-card__title { font-family: var(--font-head); font-size: var(--sz-14); font-weight: 700; 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-lo); font-weight: 500; }
.guide-card__link  {
  font-size: var(--sz-13); font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--t) var(--ease); margin-top: 10px;
}
.guide-card:hover .guide-card__link { gap: 8px; }

/* ─── CTA BANNER ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(45,122,58,0.04) 0%, var(--bg-1) 50%, rgba(42,127,168,0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 52px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(45,122,58,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2  { font-family: var(--font-head); 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-2);
  border-top: 1px solid var(--border);
  padding-top: 52px;
  padding-bottom: 28px;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; padding-bottom: 44px;
}
.footer__brand p { font-size: var(--sz-13); color: var(--tx-lo); max-width: 220px; line-height: 1.66; margin-top: 10px; }
.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__col h4 {
  font-family: var(--font-head);
  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; list-style: none; }
.footer__col a { font-size: var(--sz-13); color: var(--tx-lo); text-decoration: none; transition: color var(--t); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: var(--sz-11); color: var(--tx-xlo);
}
.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); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }

/* ─── AD SLOTS ───────────────────────────────── */
.ad-slot {
  background: var(--bg-2);
  border: 1px dashed var(--border);
  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: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0.6; flex-shrink: 0;
}
.sidebar-panel {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title { font-family: var(--font-head); font-size: var(--sz-14); font-weight: 700; color: var(--tx-hi); margin-bottom: 6px; }
.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; font-family: var(--font-head); }
.prose h3 { margin-top: 1.6em; font-family: var(--font-head); }

/* ─── SCROLL REVEAL ──────────────────────────── */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.44s ease, transform 0.44s ease;
}
/* Hidden pre-reveal state ONLY when JS has announced itself */
html.js-anim .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(14px);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── READABILITY PATCHES (carried forward) ──── */
.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;
}
.guide-card__title { color: var(--tx-hi); font-size: var(--sz-14); }
.tool-card__title  { color: var(--tx-hi); font-size: var(--sz-15); }
.tool-card p       { color: var(--tx);    font-size: var(--sz-13); }
.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 p, .page-body li { font-size: var(--sz-15); color: var(--tx); line-height: 1.8; }
.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-body p    { font-size: var(--sz-13); line-height: 1.68; }
.callout-body strong { font-size: var(--sz-13); }
.cta-banner p      { font-size: var(--sz-14); color: var(--tx); }
.breadcrumb        { font-size: var(--sz-13); color: var(--tx-lo); }
.footer__col a     { color: var(--tx-lo); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom    { color: var(--tx-xlo); }
.strip__item       { color: var(--tx-lo); font-size: var(--sz-12); }

/* ─── 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; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@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; }
  .footer__inner  { grid-template-columns: 1fr 2fr; gap: 56px; }
  .hero           { padding-top: calc(var(--nav-h) + 100px); padding-bottom: 96px; }
  .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; }
  .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); }
}
@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; }
}

//* ══════════════════════════════════════════════
   LANGUAGE SWITCHER — compact globe button
   ══════════════════════════════════════════════ */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

/* Compact button: globe icon + current flag only */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 6px 9px;
  cursor: pointer;
  color: var(--tx-lo);
  transition: border-color var(--t), background var(--t), color var(--t);
  line-height: 1;
}
.lang-btn:hover {
  border-color: var(--border-hi);
  background: var(--bg-1);
  color: var(--tx);
}
.lang-switcher.open .lang-btn {
  border-color: var(--accent-mid);
  background: var(--accent-lo);
  color: var(--accent);
}
.lang-globe    { flex-shrink: 0; }
.lang-cur-flag { font-size: 0.9rem; line-height: 1; }
.lang-chevron  { flex-shrink: 0; transition: transform var(--t) var(--ease); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

/* Dropdown */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-1);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  list-style: none;
  padding: 6px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  animation: langIn 0.16s var(--ease) both;
}
.lang-switcher.open .lang-dropdown { display: block; }

@keyframes langIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t);
  outline: none;
}
.lang-option:hover, .lang-option:focus { background: var(--bg-2); }
.lang-option.active { background: var(--accent-lo); }

.lang-option-flag   { font-size: 1.1rem; flex-shrink: 0; }
.lang-option-native { font-size: var(--sz-14); font-weight: 600; color: var(--tx-hi); flex: 1; }
.lang-option-en     { font-size: var(--sz-11); color: var(--tx-lo); white-space: nowrap; }
.lang-check         { font-size: var(--sz-12); color: var(--accent); font-weight: 700; flex-shrink: 0; }
.lang-option.active .lang-option-native { color: var(--accent); }

/* Mobile section */
.lang-mobile-section {
  border-top: 1px solid var(--border);
  padding: 12px 14px 8px;
  margin-top: 6px;
}
.lang-mobile-label {
  font-family: var(--font-head);
  font-size: var(--sz-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx-lo);
  margin-bottom: 10px;
}
.lang-mobile-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-mobile-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  color: var(--tx);
  font-family: var(--font);
  font-size: var(--sz-12);
  font-weight: 500;
  padding: 6px 11px;
  cursor: pointer;
  transition: all var(--t);
}
.lang-mobile-btn:hover  { border-color: var(--accent-mid); color: var(--accent); }
.lang-mobile-btn.active { background: var(--accent-lo); border-color: var(--accent-mid); color: var(--accent); font-weight: 700; }

/* Hide Google Translate UI chrome */
.goog-te-banner-frame,
.goog-te-menu-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ── Global horizontal-overflow guard (sticky-safe) ── */
html, body { max-width:100%; overflow-x:hidden; overflow-x:clip; }
img, svg, video, iframe { max-width:100%; }
table { max-width:100%; }

/* ── Mobile hardening: nothing may extend past the viewport ── */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }
@media (max-width: 480px){
  .container { padding-inline: 16px !important; }
  .nav__inner { padding-inline: 14px; gap: 8px; }
  .nav__logo { font-size: 1.05rem; }
  .nav__right { gap: 7px; }
  .nav__right .btn, .nav__cta { padding: 8px 11px; font-size: 0.8rem; white-space: nowrap; }
}
@media (max-width: 374px){
  .nav__right .btn, .nav__cta { display: none; } /* hamburger menu still offers it */
}
@media (max-width: 480px){
  .btn, a.btn, button.btn { white-space: normal; max-width: 100%; text-align: center; }
  .nav__right .btn { white-space: nowrap; } /* nav CTA stays single-line */
}

a[href^="mailto:"] { overflow-wrap: anywhere; }
.about-hero, .db-hero, .guides-hero, .tool-hero, .contact-hero { overflow-x: clip; }

/* ── Spec 1: Inter type scale ── */
body { font-size: 16px; line-height: 1.6; font-weight: 400; }
@media (max-width: 640px){
  h1 { font-size: clamp(28px, 8vw, 32px) !important; line-height: 1.2 !important; font-weight: 700 !important; }
  h2 { font-size: clamp(22px, 6vw, 24px) !important; line-height: 1.3 !important; font-weight: 700 !important; }
  h3 { font-size: 18px !important; line-height: 1.4 !important; font-weight: 700 !important; }
}
td, th, .tag, .fish-tag, .gi-card__meta, .guide-meta-item, label, .result-label { font-size: 14px; font-weight: 500; line-height: 1.4; }
input, select, textarea { font-weight: 500; line-height: 1.4; }
@media (min-width: 641px){ input, select, textarea { font-size: 14px; } }
@media (max-width: 640px){ input, select, textarea { font-size: 16px; } } /* <16px focused inputs trigger iOS auto-zoom */
