/* ==========================================================================
   TraceBench — PCB engineering tools
   Instrument-panel design system. Dark graphite, mint data accent, mono readouts.
   ========================================================================== */

@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono';
  font-style:normal;
  font-weight:100 800;
  font-display:swap;
  src:url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root{
  /* Core palette */
  --tb-bg:#070A0F;
  --tb-bg-2:#0A1018;
  --tb-panel:#0E1622;
  --tb-panel-2:#121C2A;
  --tb-panel-3:#162334;
  --tb-line:#1C293A;
  --tb-line-2:#273A52;
  --tb-text:#E8EFF8;
  --tb-text-2:#9DAEC4;
  --tb-text-3:#6C7F97;
  --tb-accent:#35E0B2;
  --tb-accent-2:#5B9BFF;
  --tb-accent-3:#B8F26B;
  --tb-warn:#FFB454;
  --tb-danger:#FF6B6B;

  /* Token aliases used by the ported quote calculator */
  --bg-primary:var(--tb-bg);
  --bg-secondary:var(--tb-bg-2);
  --bg-surface:var(--tb-panel);
  --bg-elevated:var(--tb-panel-2);
  --border:var(--tb-line);
  --border-light:var(--tb-line-2);
  --accent:var(--tb-accent);
  --accent-light:#6BEFC9;
  --accent-glow:#9BFFE4;
  --accent-subtle:rgba(53,224,178,.10);
  --accent-10:rgba(53,224,178,.10);
  --accent-15:rgba(53,224,178,.15);
  --accent-25:rgba(53,224,178,.25);
  --text-primary:var(--tb-text);
  --text-secondary:var(--tb-text-2);
  --text-muted:var(--tb-text-3);
  --success:#35E0B2;
  --warning:var(--tb-warn);
  --error:var(--tb-danger);
  --font-sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono','Consolas',monospace;
  --text-xs:.75rem;
  --text-sm:.875rem;
  --text-base:1rem;
  --text-lg:1.25rem;
  --text-xl:1.563rem;
  --text-2xl:1.953rem;
  --text-3xl:2.441rem;
  --text-4xl:3.052rem;
  --text-5xl:3.815rem;
  --space-xs:.5rem;
  --space-sm:1rem;
  --space-md:1.5rem;
  --space-lg:2.5rem;
  --space-xl:4rem;
  --space-2xl:6rem;
  --space-3xl:8rem;
  --radius-sm:4px;
  --radius-md:8px;
  --radius-lg:16px;
  --radius-xl:24px;
  --max-width:1240px;
  --header-h:68px;
  --ease:cubic-bezier(.4,0,.2,1);
  --duration:200ms;
  --duration-slow:400ms;
  --tb-shadow:0 18px 60px rgba(0,0,0,.45);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-sans);
  font-weight:300;
  font-size:1rem;
  line-height:1.7;
  color:var(--tb-text);
  background:var(--tb-bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
::selection{background:rgba(53,224,178,.28);color:#fff}

.container{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 1.5rem}
.container-narrow{max-width:860px}

/* ---- Typographic helpers ---- */
.mono{font-family:var(--font-mono)}
.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--font-mono);font-size:.7rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--tb-accent);
}
.eyebrow::before{content:'';width:22px;height:1px;background:var(--tb-accent);opacity:.7}
.section-label{
  font-family:var(--font-mono);font-size:.7rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--tb-text-3);
}
h1,h2,h3,h4{font-weight:500;line-height:1.12;letter-spacing:-.03em}
h1{font-size:clamp(2.4rem,5.2vw,4.4rem);font-weight:400}
h2{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:400}
h3{font-size:1.2rem;font-weight:500;letter-spacing:-.01em}
p{color:var(--tb-text-2)}
strong{color:var(--tb-text);font-weight:500}
em{font-style:normal;color:var(--tb-accent)}

/* ---- Grid / texture background ---- */
.grid-bg{
  position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(53,224,178,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(53,224,178,.045) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 90% 70% at 65% 0%,#000 20%,transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 65% 0%,#000 20%,transparent 75%);
}
.glow{
  position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;
  background:radial-gradient(circle,rgba(53,224,178,.16),transparent 65%);
}

/* ---- Header ---- */
.site-header{
  position:sticky;top:0;z-index:60;
  height:var(--header-h);
  background:rgba(7,10,15,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--tb-line);
}
.header-inner{
  height:100%;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
}
.brand{display:flex;align-items:center;gap:.7rem;min-width:0}
.brand-mark{width:30px;height:30px;flex:0 0 auto}
.brand-name{
  font-family:var(--font-mono);font-size:.95rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--tb-text);
}
.brand-name span{color:var(--tb-accent)}
.brand-sub{
  display:block;font-family:var(--font-mono);font-size:.55rem;font-weight:400;
  letter-spacing:.18em;color:var(--tb-text-3);text-transform:uppercase;
}
.site-nav{display:flex;align-items:center;gap:1.6rem}
.site-nav a{
  font-size:.82rem;font-weight:400;color:var(--tb-text-2);
  transition:color var(--duration);
}
.site-nav a:hover,.site-nav a.active{color:var(--tb-text)}
.site-nav a.active{color:var(--tb-accent)}
.header-cta{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.55rem 1rem;border:1px solid var(--tb-line-2);border-radius:6px;
  font-size:.78rem;font-weight:500;color:var(--tb-text);
  transition:all var(--duration);
}
.header-cta:hover{border-color:var(--tb-accent);color:var(--tb-accent);background:rgba(53,224,178,.06)}
.nav-toggle{display:none;width:40px;height:40px;align-items:center;justify-content:center;border:1px solid var(--tb-line);border-radius:6px}
.nav-toggle svg{width:18px;height:18px;stroke:var(--tb-text)}
.mobile-nav{display:none}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.8rem 1.35rem;border-radius:6px;border:1px solid transparent;
  font-size:.88rem;font-weight:500;line-height:1;white-space:nowrap;
  transition:all var(--duration) var(--ease);
}
.btn svg{width:16px;height:16px;flex:0 0 auto}
.btn-primary{background:var(--tb-accent);color:#04110D;border-color:var(--tb-accent)}
.btn-primary:hover{background:#6BEFC9;border-color:#6BEFC9;transform:translateY(-1px);box-shadow:0 10px 34px rgba(53,224,178,.22)}
.btn-ghost{border-color:var(--tb-line-2);color:var(--tb-text);background:transparent}
.btn-ghost:hover{border-color:var(--tb-accent);color:var(--tb-accent);background:rgba(53,224,178,.05)}
.btn-lg{padding:1rem 1.7rem;font-size:.95rem}
.btn-sm{padding:.55rem .9rem;font-size:.78rem}
.btn-block{width:100%}

/* ---- Hero (hub) ---- */
.hero{position:relative;padding:5rem 0 4rem;overflow:hidden}
.hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:3.5rem;align-items:center}
.hero h1{margin:1rem 0 1.2rem}
.hero h1 em{color:var(--tb-accent)}
.hero-lead{font-size:1.08rem;line-height:1.75;max-width:34rem;color:var(--tb-text-2)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.hero-trust{display:flex;flex-wrap:wrap;gap:1.2rem;margin-top:2rem;padding-top:1.4rem;border-top:1px solid var(--tb-line)}
.hero-trust span{display:inline-flex;align-items:center;gap:.45rem;font-family:var(--font-mono);font-size:.67rem;letter-spacing:.06em;color:var(--tb-text-3);text-transform:uppercase}
.hero-trust svg{width:14px;height:14px;stroke:var(--tb-accent);opacity:.9}

/* Instrument readout card */
.instrument{
  position:relative;background:linear-gradient(160deg,var(--tb-panel-2),var(--tb-panel));
  border:1px solid var(--tb-line-2);border-radius:14px;
  box-shadow:var(--tb-shadow);overflow:hidden;
}
.instrument::before,.instrument::after{
  content:'';position:absolute;width:14px;height:14px;border-color:var(--tb-accent);opacity:.7;
}
.instrument::before{top:10px;left:10px;border-top:1px solid;border-left:1px solid}
.instrument::after{bottom:10px;right:10px;border-bottom:1px solid;border-right:1px solid}
.instrument-head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.85rem 1.1rem;border-bottom:1px solid var(--tb-line);
  font-family:var(--font-mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tb-text-3);
}
.instrument-head .live{display:inline-flex;align-items:center;gap:.4rem;color:var(--tb-accent)}
.instrument-head .live::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--tb-accent);box-shadow:0 0 10px var(--tb-accent);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.instrument-body{padding:1.1rem}
.trace-diagram{width:100%;height:auto}
.readout{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1rem}
.readout-cell{background:var(--tb-bg);border:1px solid var(--tb-line);border-radius:8px;padding:.7rem .8rem}
.readout-cell .k{font-family:var(--font-mono);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tb-text-3)}
.readout-cell .v{font-family:var(--font-mono);font-size:1.05rem;font-weight:500;color:var(--tb-text);margin-top:.2rem}
.readout-cell .v b{color:var(--tb-accent);font-weight:500}
.instrument-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1.1rem;border-top:1px solid var(--tb-line);font-size:.72rem;color:var(--tb-text-3)}
.instrument-foot a{color:var(--tb-accent);font-weight:500}

/* ---- Sections ---- */
.section{padding:4.5rem 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:2.2rem}
.section-head p{max-width:34rem;margin-top:.7rem;font-size:.95rem}
.section-head .section-label{margin-bottom:.7rem}

/* Tool cards */
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.tool-card{
  position:relative;display:flex;flex-direction:column;
  background:linear-gradient(170deg,var(--tb-panel),var(--tb-bg-2));
  border:1px solid var(--tb-line);border-radius:14px;padding:1.2rem;
  transition:all .25s var(--ease);overflow:hidden;
}
.tool-card:hover{border-color:rgba(53,224,178,.45);transform:translateY(-3px);box-shadow:0 18px 44px rgba(0,0,0,.35)}
.tool-card .tc-visual{
  height:118px;border-radius:9px;background:var(--tb-bg);
  border:1px solid var(--tb-line);margin-bottom:1.1rem;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.tool-card .tc-visual svg{width:100%;height:100%}
.tool-card h3{margin-bottom:.35rem}
.tool-card p{font-size:.86rem;line-height:1.65;color:var(--tb-text-2);margin-bottom:1.1rem}
.tool-card .tc-go{
  margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;
  font-family:var(--font-mono);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tb-accent);
}
.tool-card .tc-go svg{width:14px;height:14px;transition:transform .2s}
.tool-card:hover .tc-go svg{transform:translateX(3px)}
.tool-card .tc-tag{
  position:absolute;top:1rem;right:1rem;
  font-family:var(--font-mono);font-size:.55rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tb-text-3);border:1px solid var(--tb-line);border-radius:99px;padding:.2rem .5rem;
}

/* Feature split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.split-visual{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--tb-line-2)}
.split-visual img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.split-visual .overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,10,15,.05),rgba(7,10,15,.7))}
.split-visual .tag{
  position:absolute;left:1rem;bottom:1rem;
  font-family:var(--font-mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tb-text);background:rgba(7,10,15,.7);border:1px solid var(--tb-line-2);
  border-radius:4px;padding:.35rem .55rem;backdrop-filter:blur(6px);
}
.feature-list{display:grid;gap:1.1rem;margin-top:1.8rem}
.feature{display:flex;gap:.9rem;align-items:flex-start}
.feature .ico{
  flex:0 0 auto;width:34px;height:34px;border-radius:8px;
  border:1px solid rgba(53,224,178,.35);background:rgba(53,224,178,.07);
  display:flex;align-items:center;justify-content:center;
}
.feature .ico svg{width:16px;height:16px;stroke:var(--tb-accent)}
.feature h4{font-size:.95rem;font-weight:500;margin-bottom:.15rem}
.feature p{font-size:.85rem;line-height:1.65;color:var(--tb-text-2)}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;counter-reset:step}
.step{position:relative;padding:1.3rem;border:1px solid var(--tb-line);border-radius:12px;background:var(--tb-bg-2)}
.step::before{
  counter-increment:step;content:'0' counter(step);
  font-family:var(--font-mono);font-size:2.6rem;font-weight:200;line-height:1;
  color:rgba(53,224,178,.18);display:block;margin-bottom:.7rem;
}
.step h3{font-size:.98rem;margin-bottom:.3rem}
.step p{font-size:.84rem;line-height:1.6}

/* CTA band */
.cta-band{
  position:relative;border:1px solid var(--tb-line-2);border-radius:18px;
  background:linear-gradient(120deg,rgba(53,224,178,.10),rgba(91,155,255,.07) 55%,transparent);
  padding:2.4rem;display:flex;align-items:center;justify-content:space-between;gap:2rem;overflow:hidden;
}
.cta-band h2{font-size:clamp(1.5rem,2.6vw,2.1rem);margin-bottom:.4rem}
.cta-band p{max-width:38rem;font-size:.92rem}

/* ---- Tool page ---- */
.tool-hero{position:relative;padding:2.6rem 0 2rem;border-bottom:1px solid var(--tb-line);overflow:hidden}
.breadcrumb{display:flex;align-items:center;gap:.45rem;font-family:var(--font-mono);font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:var(--tb-text-3);margin-bottom:1.2rem}
.breadcrumb a{color:var(--tb-text-3)}
.breadcrumb a:hover{color:var(--tb-accent)}
.breadcrumb span{opacity:.5}
.tool-hero h1{font-size:clamp(2.1rem,4.4vw,3.5rem);margin-bottom:.9rem}
.tool-hero .lead{font-size:1.02rem;max-width:46rem;color:var(--tb-text-2)}
.tool-meta{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.3rem}
.chip{
  display:inline-flex;align-items:center;gap:.35rem;
  font-family:var(--font-mono);font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--tb-text-2);border:1px solid var(--tb-line);border-radius:99px;padding:.3rem .65rem;background:var(--tb-bg-2);
}
.chip svg{width:12px;height:12px;stroke:var(--tb-accent)}
.chip.hot{color:var(--tb-accent);border-color:rgba(53,224,178,.4);background:rgba(53,224,178,.07)}

/* Calculator shell */
.calc-wrap{position:relative;padding:2.2rem 0 3rem}
.calc-shell{
  display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:1.1rem;align-items:start;
}
.calc-panel{
  background:var(--tb-panel);border:1px solid var(--tb-line-2);border-radius:14px;overflow:hidden;
}
.calc-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.8rem 1.1rem;border-bottom:1px solid var(--tb-line);
  font-family:var(--font-mono);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tb-text-3);
}
.calc-panel-head .dot{display:inline-flex;align-items:center;gap:.4rem;color:var(--tb-accent)}
.calc-panel-head .dot::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--tb-accent)}
.calc-body{padding:1.2rem}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tb-text-3)}
.field .hint{font-size:.7rem;color:var(--tb-text-3);line-height:1.4}
.field input,.field select{
  width:100%;padding:.62rem .7rem;background:var(--tb-bg);border:1px solid var(--tb-line);
  border-radius:6px;font-family:var(--font-mono);font-size:.9rem;color:var(--tb-text);
  transition:border-color var(--duration),box-shadow var(--duration);
}
.field input:focus,.field select:focus{outline:none;border-color:var(--tb-accent);box-shadow:0 0 0 3px rgba(53,224,178,.12)}
.field.full{grid-column:1/-1}
.seg{display:flex;border:1px solid var(--tb-line);border-radius:6px;overflow:hidden}
.seg button{flex:1;padding:.55rem .4rem;font-family:var(--font-mono);font-size:.72rem;color:var(--tb-text-3);background:var(--tb-bg);transition:all .15s}
.seg button.active{background:rgba(53,224,178,.12);color:var(--tb-accent)}
.calc-actions{display:flex;gap:.6rem;margin-top:1rem}
.result-panel{
  background:linear-gradient(165deg,var(--tb-panel-2),var(--tb-panel));
  border:1px solid var(--tb-line-2);border-radius:14px;overflow:hidden;position:sticky;top:calc(var(--header-h) + 1rem);
}
.result-head{padding:1.1rem 1.2rem .9rem;border-bottom:1px solid var(--tb-line)}
.result-head .rk{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tb-text-3)}
.result-hero{display:flex;align-items:baseline;gap:.5rem;margin-top:.25rem}
.result-num{font-family:var(--font-mono);font-size:clamp(2.4rem,4vw,3.2rem);font-weight:300;line-height:1;color:var(--tb-accent);letter-spacing:-.03em}
.result-unit{font-family:var(--font-mono);font-size:.8rem;color:var(--tb-text-3)}
.result-sub{font-size:.76rem;color:var(--tb-text-2);margin-top:.4rem}
.result-body{padding:1rem 1.2rem}
.result-rows{display:grid;gap:.15rem}
.result-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.42rem 0;border-bottom:1px solid rgba(28,41,58,.55);font-size:.8rem}
.result-row:last-child{border-bottom:0}
.result-row .k{color:var(--tb-text-3)}
.result-row .v{font-family:var(--font-mono);color:var(--tb-text);text-align:right}
.result-row .v.good{color:var(--tb-accent)}
.result-row .v.warn{color:var(--tb-warn)}
.result-note{
  margin-top:.8rem;padding:.6rem .7rem;border:1px solid var(--tb-line);border-radius:6px;
  background:var(--tb-bg);font-size:.72rem;line-height:1.55;color:var(--tb-text-3);
}
.result-cta{padding:1rem 1.2rem;border-top:1px solid var(--tb-line);display:grid;gap:.5rem}
.result-cta .btn{width:100%}
.result-disclaimer{font-size:.68rem;line-height:1.5;color:var(--tb-text-3);margin-top:.2rem}

/* Diagram */
.diagram-box{margin-top:1rem;border:1px solid var(--tb-line);border-radius:8px;background:var(--tb-bg);padding:.6rem}
.diagram-box svg{width:100%;height:auto}
.diagram-cap{display:flex;justify-content:space-between;gap:1rem;font-family:var(--font-mono);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tb-text-3);margin-top:.4rem}

/* Prose */
.prose{padding:3.5rem 0}
.prose .container{max-width:900px}
.prose h2{margin:2.6rem 0 .9rem;font-size:clamp(1.45rem,2.5vw,2rem)}
.prose h2:first-child{margin-top:0}
.prose h3{margin:1.8rem 0 .5rem;font-size:1.08rem}
.prose p{margin:.8rem 0;font-size:.98rem;line-height:1.85;color:var(--tb-text-2)}
.prose ul,.prose ol{margin:.8rem 0 .8rem 1.2rem;color:var(--tb-text-2)}
.prose li{margin:.35rem 0;font-size:.96rem;line-height:1.75}
.prose li::marker{color:var(--tb-accent)}
.prose a{color:var(--tb-accent);border-bottom:1px solid rgba(53,224,178,.35)}
.prose a:hover{border-bottom-color:var(--tb-accent)}
.prose table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.84rem}
.prose th,.prose td{padding:.55rem .7rem;border-bottom:1px solid var(--tb-line);text-align:left}
.prose th{font-family:var(--font-mono);font-size:.64rem;letter-spacing:.06em;text-transform:uppercase;color:var(--tb-text-3);font-weight:500}
.prose td{color:var(--tb-text-2)}
.prose td.num,.prose th.num{font-family:var(--font-mono);text-align:right}
.formula{
  margin:1.1rem 0;padding:.9rem 1rem;border:1px solid var(--tb-line-2);border-left:2px solid var(--tb-accent);
  border-radius:0 8px 8px 0;background:var(--tb-bg-2);
  font-family:var(--font-mono);font-size:.82rem;line-height:1.8;color:var(--tb-text);overflow-x:auto;white-space:pre;
}
.callout{
  margin:1.2rem 0;padding:.9rem 1rem;border:1px solid rgba(255,180,84,.3);border-radius:8px;
  background:rgba(255,180,84,.06);font-size:.86rem;line-height:1.7;color:var(--tb-text-2);
}
.callout strong{color:var(--tb-warn)}
.callout.info{border-color:rgba(91,155,255,.3);background:rgba(91,155,255,.06)}
.callout.info strong{color:var(--tb-accent-2)}

/* FAQ */
.faq-list{border-top:1px solid var(--tb-line);margin-top:1.2rem}
.faq-item{border-bottom:1px solid var(--tb-line)}
.faq-item summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 0;cursor:pointer;list-style:none;
  font-size:.98rem;font-weight:500;color:var(--tb-text);
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:'+';flex:0 0 auto;font-family:var(--font-mono);font-size:1.1rem;font-weight:300;color:var(--tb-accent);
  transition:transform .2s;
}
.faq-item[open] summary::after{content:'–'}
.faq-item .faq-a{padding:0 0 1.1rem;font-size:.9rem;line-height:1.8;color:var(--tb-text-2);max-width:760px}
.faq-item .faq-a p{margin:.3rem 0}

/* Lead form */
.lead-section{padding:3.5rem 0 4.5rem;border-top:1px solid var(--tb-line)}
.lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.lead-copy h2{font-size:clamp(1.6rem,2.8vw,2.2rem);margin-bottom:.7rem}
.lead-copy p{font-size:.95rem;max-width:34rem}
.lead-points{display:grid;gap:.55rem;margin-top:1.4rem}
.lead-points span{display:flex;align-items:center;gap:.5rem;font-size:.84rem;color:var(--tb-text-2)}
.lead-points svg{width:14px;height:14px;stroke:var(--tb-accent);flex:0 0 auto}
.lead-card{
  background:linear-gradient(165deg,var(--tb-panel-2),var(--tb-panel));
  border:1px solid var(--tb-line-2);border-radius:14px;padding:1.3rem;
}
.lead-card .form-row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.lead-card label{display:block;font-family:var(--font-mono);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tb-text-3);margin-bottom:.3rem}
.lead-card input,.lead-card textarea{
  width:100%;padding:.65rem .7rem;background:var(--tb-bg);border:1px solid var(--tb-line);
  border-radius:6px;font-size:.88rem;color:var(--tb-text);
}
.lead-card input:focus,.lead-card textarea:focus{outline:none;border-color:var(--tb-accent);box-shadow:0 0 0 3px rgba(53,224,178,.12)}
.lead-card .form-group{margin-bottom:.8rem}
.lead-card .note{font-size:.66rem;line-height:1.5;color:var(--tb-text-3);margin-top:.6rem}
.lead-card .hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.form-status{margin-top:.6rem;font-size:.8rem;color:var(--tb-accent)}
.form-status.error{color:var(--tb-danger)}
.lead-quote-preview{
  font-family:var(--font-mono);font-size:.66rem;line-height:1.6;color:var(--tb-text-3);
  background:var(--tb-bg);border:1px solid var(--tb-line);border-radius:6px;padding:.6rem .7rem;margin-bottom:.9rem;
  max-height:110px;overflow:auto;white-space:pre-wrap;
}

/* Related tools */
.related{padding:3rem 0;border-top:1px solid var(--tb-line)}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1.2rem}
.related-card{display:block;padding:1rem;border:1px solid var(--tb-line);border-radius:10px;background:var(--tb-bg-2);transition:all .2s}
.related-card:hover{border-color:rgba(53,224,178,.4);background:var(--tb-panel)}
.related-card h4{font-size:.9rem;font-weight:500;margin-bottom:.2rem}
.related-card p{font-size:.76rem;color:var(--tb-text-3);line-height:1.5}

/* Footer */
.site-footer{border-top:1px solid var(--tb-line);background:var(--tb-bg-2);padding:3rem 0 1.5rem}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2rem}
.footer-brand p{font-size:.8rem;line-height:1.7;color:var(--tb-text-3);max-width:20rem;margin-top:.8rem}
.footer-col h4{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tb-text-3);margin-bottom:.8rem;font-weight:500}
.footer-col a{display:block;font-size:.8rem;color:var(--tb-text-2);padding:.22rem 0}
.footer-col a:hover{color:var(--tb-accent)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:2.5rem;padding-top:1.2rem;border-top:1px solid var(--tb-line);font-size:.7rem;color:var(--tb-text-3)}
.footer-bottom a{color:var(--tb-text-2)}
.footer-bottom a:hover{color:var(--tb-accent)}

/* Utility */
.hidden{display:none!important}
.text-accent{color:var(--tb-accent)}
.text-muted{color:var(--tb-text-3)}
.nowrap{white-space:nowrap}

/* ---- Responsive ---- */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:2.5rem}
  .instrument{max-width:560px}
  .calc-shell{grid-template-columns:1fr}
  .result-panel{position:static}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr;gap:2rem}
  .lead-grid{grid-template-columns:1fr;gap:2rem}
  .footer-grid{grid-template-columns:1.2fr 1fr 1fr}
}
@media(max-width:768px){
  :root{--space-lg:2rem;--space-xl:3rem;--space-2xl:4rem;--space-3xl:5rem}
  .site-nav{display:none}
  .header-cta{display:none}
  .nav-toggle{display:flex}
  .mobile-nav{
    display:none;position:fixed;top:var(--header-h);left:0;right:0;z-index:55;
    background:rgba(7,10,15,.97);border-bottom:1px solid var(--tb-line);padding:1rem 1.5rem 1.4rem;
  }
  .mobile-nav.open{display:block}
  .mobile-nav a{display:block;padding:.7rem 0;border-bottom:1px solid var(--tb-line);font-size:.95rem;color:var(--tb-text-2)}
  .mobile-nav a:last-child{border-bottom:0}
  .mobile-nav .btn{margin-top:.8rem;width:100%}
  .hero{padding:3.2rem 0 2.8rem}
  .hero h1{font-size:clamp(2.1rem,9vw,3rem)}
  .tool-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .cta-band{flex-direction:column;align-items:flex-start;padding:1.6rem}
  .section-head{flex-direction:column;align-items:flex-start;gap:.8rem}
  .field-grid{grid-template-columns:1fr}
  .readout{grid-template-columns:1fr 1fr}
  .related-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .lead-card .form-row{grid-template-columns:1fr}
  .calc-body{padding:1rem}
  .prose{padding:2.5rem 0}
  .prose h2{margin-top:2rem}
  .prose table{font-size:.78rem}
  .prose th,.prose td{padding:.45rem .5rem}
}
@media(max-width:480px){
  .container{padding:0 1.1rem}
  .readout{grid-template-columns:1fr}
  .hero-actions .btn{width:100%}
  .result-num{font-size:2.6rem}
}
