/* bernardogeadas.com — shared web style for the site and every tool page.
   One source of truth: tools link this file root-relative (/site.css).
   Spec: crypto-tools/redesign/handoff/README.md + style-guide-for-tools.md.
   Dark only. No shadows, no gradients. */

/* ---- tokens ------------------------------------------------------------- */
:root, :root[data-theme] {  /* [data-theme] beats legacy brand.css until it is removed */
  --bg: oklch(0.145 0.006 160);       /* near-black page */
  --panel: oklch(0.175 0.007 160);    /* cards, panels */
  --border: oklch(0.27 0.01 160);     /* hairlines */
  --fg: oklch(0.96 0.005 120);
  --muted: oklch(0.66 0.012 150);
  --accent: oklch(0.89 0.2 128);      /* acid lime */
  --accent-fg: oklch(0.18 0.03 130);
  --up: oklch(0.85 0.2 132);
  --down: oklch(0.68 0.19 25);
  --warn: oklch(0.75 0.15 50);
  --track: oklch(0.27 0.01 160);      /* empty rating segments */

  /* Theme colours: only on the Home stats and Experience tags. Lime stays the main colour. */
  --cyan: oklch(0.82 0.11 210);       /* partnerships */
  --violet: oklch(0.74 0.15 300);     /* compliance */
  --gold: oklch(0.86 0.13 90);        /* crypto */

  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pad-x: clamp(16px, 5vw, 64px);    /* page side padding */
  --pad-x-chrome: clamp(16px, 4vw, 32px);
  --pad-y: clamp(56px, 7vw, 80px);    /* section vertical padding */
  --max: 1440px;
  --r-panel: 8px;
  --r-ctl: 4px;

  color-scheme: dark;

  /* Transitional: map the old BG brand tokens used by legacy.css onto the new
     palette and fonts. Delete together with legacy.css once #5–#7 ship. */
  --text: var(--fg);
  --surface: var(--panel);
  --elevated: var(--panel);
  --tertiary: var(--muted);
  --display: var(--font-head);
  --body: var(--font-body);
}

/* ---- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(48px, 8vw, 96px); line-height: 0.95; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { top: 16px; color: var(--accent-fg); }

/* ---- layout ------------------------------------------------------------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); border-bottom: 1px solid var(--border); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.fg { color: var(--fg); }
.mono { font-family: var(--font-mono); }

/* Section label: "01 / ABOUT" */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;             /* also when used on an h2 */
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---- components --------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.panel.rows > * + * { border-top: 1px solid var(--border); }   /* stacked rows with hairlines */
a.panel { color: var(--fg); transition: border-color 150ms ease; }
a.panel:hover { border-color: var(--accent); color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 16px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;          /* keeps "Source ↗" on one line */
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.btn:hover { border-color: var(--fg); color: var(--fg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { border-color: var(--accent); color: var(--accent-fg); }
.btn-sm { padding: 12px 16px; font-size: 13px; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: var(--r-ctl);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-live { color: var(--accent); }
.badge-muted { color: var(--muted); }
.badge-down { color: var(--down); }

.chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}

/* Rating bar: 10 segments. Mark filled ones with .on; the bar's level class
   picks the colour (<40 down, 40–54 warn, 55+ up). */
.rating { display: flex; gap: 4px; }
.rating > i { flex: 1; height: 8px; border-radius: 2px; background: var(--track); }
.rating.lvl-down > i.on { background: var(--down); }
.rating.lvl-warn > i.on { background: var(--warn); }
.rating.lvl-up > i.on { background: var(--up); }
.rating-scale {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

.link-action { font-family: var(--font-mono); color: var(--accent); }
.link-action:hover { color: var(--fg); }

.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }

/* ---- site header -------------------------------------------------------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }

.ticker {
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--pad-x-chrome);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.ticker .ticker-label { flex: none; color: var(--accent); letter-spacing: 0.22em; }
.ticker .ticker-items { flex: 1; min-width: 0; overflow: hidden; display: flex; gap: 28px; }
.ticker .ticker-item { flex: none; display: flex; gap: 10px; color: var(--fg); }
.ticker .ticker-item:hover { color: var(--accent); }
.ticker .ticker-item .k { color: var(--muted); }
.ticker .ticker-item .n { color: var(--up); }
.ticker .ticker-time { flex: none; color: var(--up); }   /* never clipped */
.ticker .ticker-time.stale { color: var(--warn); }
.ticker .tl-short { display: none; }
@media (max-width: 600px) { .ticker .tl-long { display: none; } .ticker .tl-short { display: inline; } }

.site-nav-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 40px;
  padding: 10px var(--pad-x-chrome);
}
.site-logo {
  display: inline-block;
  padding: 10px 0;              /* 44px tap target */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--fg);
  white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.site-nav a {
  display: inline-block;
  padding: 10px 0;              /* 44px tap target */
  border-bottom: 1px solid transparent;
  color: var(--fg);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"],
.site-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.site-tagline {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}
/* Below the width where logo + nav + tagline fit on one row, the tagline
   would sit alone on its own line: hide it instead. */
@media (max-width: 1099px) { .site-tagline { display: none; } }

/* ---- site footer -------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.site-footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px;
  padding: 18px var(--pad-x-chrome);
}
.site-footer .site-logo { font-size: 14px; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-family: var(--font-mono); font-size: 13px; }
.site-footer-nav a { display: inline-block; padding: 12px 0; color: var(--muted); }
.site-footer-nav a:hover { color: var(--accent); }
.site-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--pad-x-chrome);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer-bottom .data-line { flex: 1 1 320px; min-width: 0; }
.site-footer-bottom .data-line .dot { color: var(--up); }
.site-footer-bottom .data-line .dot.stale { color: var(--warn); }
.site-footer-bottom .credit { flex: 0 1 auto; }

/* ---- shared page sections ------------------------------------------------ */
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px;
}
.body-text { font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Card grid + card (home tools, build log) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  color: var(--fg);
  transition: border-color 150ms ease;
}
a.card:hover { border-color: var(--accent); color: var(--fg); }

/* ---- home ---------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) var(--pad-x) clamp(48px, 6vw, 64px);
}
.intro-copy { display: flex; flex-direction: column; gap: 28px; }
.intro-copy .label { line-height: 1.6; }
.intro h1 { font-size: clamp(56px, 9vw, 104px); }
.intro-line { font-family: var(--font-mono); font-size: 16px; line-height: 1.6; max-width: 440px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

.stat-panel {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.stat-cell {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 2.4vw, 26px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}
.stat-num { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.2; }
.stat-cell { box-shadow: inset 0 2px 0 var(--theme, var(--border)); }
.stat-num { white-space: nowrap; }
.stat-unit { font-size: 0.55em; }
.stat-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--theme, var(--muted)); }

/* Theme classes (set --theme) */
.th-product { --theme: var(--accent); }
.th-partner { --theme: var(--cyan); }
.th-compliance { --theme: var(--violet); }
.th-crypto { --theme: var(--gold); }
.th-neutral { --theme: var(--muted); }
.stat-text { font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

.home-section { border-top: 1px solid var(--border); scroll-margin-top: 0; }
.home-section > .wrap { padding-block: var(--pad-y); }

.about-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 56px;
}
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy h2 { text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.facts-panel { align-self: start; }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; }
.fact .label { font-size: 11px; }
.fact p { font-size: 15px; line-height: 1.5; }

.experience { display: flex; flex-direction: column; gap: 32px; }
.jobs {
  display: flex; flex-direction: column;
  max-width: 880px;
  margin: 0 0 0 5px; padding: 0; list-style: none;
  border-left: 1px solid var(--border);
}
.job { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 0 40px clamp(20px, 3vw, 32px); }
.job::before {
  content: ""; position: absolute; left: -6px; top: 3px;
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--bg); border: 2px solid var(--accent);
}
.job-dates { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.job h3 { font-size: 24px; line-height: 1.25; }
.job h3 span { font-family: var(--font-body); font-weight: 400; font-size: 17px; color: var(--muted); letter-spacing: 0; }
.job-meta { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.job ul { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.job li::marker { color: var(--muted); }
.product { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.product-tag {
  display: inline-block; padding: 2px 7px;
  border: 1px solid var(--theme, var(--border)); border-radius: var(--r-ctl);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; line-height: 1.5;
  text-transform: uppercase; color: var(--theme, var(--muted)); white-space: nowrap;
}
.product-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); }
.job li { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.partners { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.partner-grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  border-radius: var(--r-panel); overflow: hidden;
}
@media (max-width: 1100px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner-grid li {
  padding: 22px 12px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  color: var(--muted); text-align: center; overflow-wrap: anywhere;
}

.tools-block { display: flex; flex-direction: column; gap: 28px; }
.tools-block .body-text { max-width: 720px; }
.tool-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tool-card-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tool-card-name { font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.tool-card-desc { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.tool-card-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px; margin-top: auto;
  font-family: var(--font-mono); font-size: 13px;
}
.tool-card-foot .cta { color: var(--accent); }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px 56px;
  align-items: end;
}
.home-section > .wrap.contact-layout { padding-block: clamp(64px, 8vw, 88px); }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: clamp(56px, 9vw, 88px); line-height: 0.95; }
.contact-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; }
.contact-list a {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border); margin-bottom: -1px;
  font-family: var(--font-mono); font-size: 14px;
  transition: background-color 150ms ease;
}
.contact-list a:hover { background: var(--panel); }
.contact-list .k { color: var(--muted); }
.contact-list .v { display: flex; gap: 8px; min-width: 0; }
.contact-list .v span:first-child { overflow-wrap: anywhere; }
.contact-list .v span:last-child { flex: none; }

/* ---- inner pages (build log, article, tool shell) ------------------------ */
.page-main { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg); }

.page-intro { display: flex; flex-direction: column; gap: 22px; padding: clamp(40px, 6vw, 64px) 0 clamp(40px, 5vw, 56px); }
.page-intro .standfirst { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 6px; font-family: var(--font-mono); font-size: 13px; }

.log-section { display: flex; flex-direction: column; gap: 24px; padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
.log-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.log-head .note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card-grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }

/* Live tool panel */
.tool-panel { display: flex; flex-direction: column; }
.tool-panel-bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted);
}
.tool-panel-body { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 24px 22px; }
.tool-panel h3 { font-size: 26px; }
.tool-q { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--fg); text-wrap: pretty; }
.tool-desc { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* Research panel link */
.research-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 48px; align-items: center;
  padding: clamp(22px, 4vw, 40px);
}
.research-copy { display: flex; flex-direction: column; gap: 16px; }
.research-copy .badge { align-self: flex-start; }
.research-copy h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.research-copy p { font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.stat-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden;
  font-family: var(--font-mono);
}
.stat-pair > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.stat-pair > div + div { border-left: 1px solid var(--border); }
.stat-pair .k { font-size: 11px; letter-spacing: 0.22em; color: var(--muted); }
.stat-pair .v { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }

/* Shelved cards */
.shelved-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px;
  border: 1px dashed var(--border); border-radius: var(--r-panel);
}
.shelved-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.shelved-card h3 {
  font-size: 24px; color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--down); text-decoration-thickness: 2px;
}
.shelved-card p { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.verdict-block { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.verdict-block .label { font-size: 11px; }
.verdict-block p { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: var(--fg); }

/* How I build */
.how { display: flex; flex-direction: column; gap: 28px; padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}
.steps .n { font-family: var(--font-mono); font-size: 28px; color: var(--accent); line-height: 1.2; }
.steps h3 { font-size: 22px; }
.steps p { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* ---- tool page shell (every tool repo links this file) ------------------- */
.tool-main {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad-x-chrome) 48px;
}
.tool-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 40px) 0 24px;
  border-bottom: 1px solid var(--border);
}
.tool-head-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 760px; }
.tool-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tool-title h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.tool-question { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-app { min-width: 0; }
.tool-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  font-family: var(--font-mono); font-size: 13px;
}
.tool-nav a { display: inline-block; padding: 12px 0; color: var(--muted); }
.tool-nav a:hover { color: var(--accent); }
.tool-nav span { display: flex; flex-wrap: wrap; gap: 0 20px; }
