/* Shared styles for SitAware sub-pages (industry pages, calculator, comparisons).
   Mirrors the design tokens of the home page index.html so the experience is consistent.
   Keep this file lean — heavy/animated layout lives only on the home page. */

:root {
  --accent: #1A4D8C;
  --accent-strong: #143E70;
  --accent-soft: #E8F0F9;

  --bg: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-deep: #14181F;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A7468;
  --rule: #E8E2D5;
  --rule-strong: #D9D1BF;
  --danger: #B0321C;
  --good: #1F6F44;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --container: 980px;
  --container-wide: 1180px;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  flex-shrink: 0;
}
.nav-cta {
  display: inline-block; padding: 10px 18px;
  background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }

/* ====== BREADCRUMBS ====== */
.crumbs {
  font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 32px 0 0;
}
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ====== ARTICLE ====== */
article { padding: 24px 0 80px; }
article header { margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
article h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.1; margin: 0 0 20px;
  max-width: 22ch;
}
article .lede {
  font-size: 20px; color: var(--ink-soft); max-width: 62ch;
  line-height: 1.55;
}
article h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700; letter-spacing: -0.015em;
  margin: 56px 0 16px; line-height: 1.2;
  scroll-margin-top: 80px;
}
article h3 {
  font-size: 20px; font-weight: 700; margin: 32px 0 10px;
  scroll-margin-top: 80px;
}
article p { margin: 0 0 18px; max-width: 70ch; font-size: 17px; }
article ul, article ol { margin: 0 0 22px; padding-left: 22px; max-width: 70ch; }
article li { margin: 0 0 10px; font-size: 17px; }
article ul li::marker { color: var(--accent); }
article strong { color: var(--ink); font-weight: 700; }
article em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ====== CALLOUTS ====== */
.callout {
  background: var(--bg-card); border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 24px 28px; border-radius: var(--r-md);
  margin: 28px 0; max-width: 70ch;
}
.callout p:last-child { margin-bottom: 0; }
.callout-stat {
  font-family: var(--mono); font-size: 36px; color: var(--accent);
  font-weight: 600; line-height: 1; margin-bottom: 8px;
}

/* ====== COMPARISON TABLE ====== */
.cmp { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.cmp th, .cmp td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cmp thead th { background: var(--bg-card); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--rule-strong); }
.cmp .yes { color: var(--good); font-weight: 700; }
.cmp .no { color: var(--danger); font-weight: 700; }
.cmp .meh { color: var(--ink-muted); font-weight: 600; }

/* ====== STATS GRID ====== */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 28px 0; max-width: 100%;
}
.stat {
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 24px;
}
.stat .num {
  font-family: var(--mono); font-size: 32px; color: var(--accent);
  font-weight: 600; line-height: 1; margin-bottom: 8px;
}
.stat .lbl { font-size: 13px; color: var(--ink-muted); }
.stat .src { font-size: 11px; color: var(--ink-muted); margin-top: 8px; opacity: 0.8; }

/* ====== CALCULATOR ====== */
.calc {
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 32px; margin: 32px 0;
  display: grid; gap: 20px;
}
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.calc label { font-weight: 600; font-size: 14px; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc input[type="number"] {
  width: 100px; padding: 8px 12px; font-size: 16px; font-family: var(--mono);
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--bg);
}
.calc-out {
  background: var(--bg-deep); color: #fff; border-radius: var(--r-md);
  padding: 28px; margin-top: 8px;
}
.calc-out .big {
  font-family: var(--mono); font-size: clamp(36px, 6vw, 56px);
  color: #FBBF24; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
}
.calc-out .lbl { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ====== INTERNAL LINKS GRID (related pages) ====== */
.related {
  background: var(--bg-card); border-top: 1px solid var(--rule);
  padding: 64px 0;
}
.related h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: block; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 22px;
  transition: border-color .15s, transform .15s;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.related-card .tag {
  font-family: var(--mono); font-size: 11px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.related-card .ttl { color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.related-card .desc { color: var(--ink-soft); font-size: 13px; }

/* ====== CTA BLOCK ====== */
.cta-block {
  background: var(--bg-deep); color: #fff;
  border-radius: var(--r-lg); padding: 48px 40px; margin: 48px 0;
  text-align: center;
}
.cta-block h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; max-width: none; }
.cta-block p { color: rgba(255,255,255,0.75); max-width: 56ch; margin: 0 auto 24px; font-size: 17px; }
.cta-btn {
  display: inline-block; padding: 14px 28px; background: #FBBF24; color: #14181F;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform 0.15s, background 0.15s;
}
.cta-btn:hover { background: #FCD34D; transform: translateY(-1px); text-decoration: none; }

/* ====== FOOTER ====== */
footer { padding: 64px 0 40px; border-top: 1px solid var(--rule); background: var(--bg); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.foot-tag { color: var(--ink-soft); font-size: 14px; max-width: 36ch; margin-top: 12px; }
.foot-h { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.foot-list { display: flex; flex-direction: column; gap: 10px; }
.foot-list a { color: var(--ink-soft); font-size: 14px; }
.foot-list a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-muted);
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
