/* IT Toolbox umbrella page.
 * Tokens, type and shadow language are deliberately the same family as
 * CostWatch so the tools read as one shop. Bare :root is the complete light
 * palette; dark redefines tokens only, guarded so an explicit light choice
 * beats a dark OS.
 */

@font-face {
  font-family: "Inter var";
  src: url("/static/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --page: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #111722;
  --ink-2: #414c5c;
  --muted: #737e8d;
  --line: #e0e5ec;
  --line-strong: #ccd4de;

  --accent: #2557c7;
  --accent-2: #5b3df5;
  --accent-hover: #1c449e;
  --accent-quiet: rgba(37, 87, 199, 0.09);
  --on-accent: #ffffff;
  --good: #0d7a52;

  --shadow: 0 1px 2px rgba(17, 23, 34, 0.05), 0 8px 24px rgba(17, 23, 34, 0.05);
  --shadow-lift: 0 12px 40px rgba(17, 23, 34, 0.14);
  --focus: #2557c7;
  --sheen: none;

  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0a0d13;
    --surface: #131a27;
    --surface-2: #1b2334;
    --ink: #e7ebf2;
    --ink-2: #a9b4c4;
    --muted: #76828f;
    --line: #232c3a;
    --line-strong: #34404f;

    --accent: #4f7df7;
    --accent-2: #7c5cf6;
    --accent-hover: #6b93f9;
    --accent-quiet: rgba(106, 151, 245, 0.14);
    --good: #3cc78f;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.55);
    --focus: #8fb1f8;
    --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 46%);
  }
}

:root[data-theme="dark"] {
  --page: #0a0d13;
  --surface: #131a27;
  --surface-2: #1b2334;
  --ink: #e7ebf2;
  --ink-2: #a9b4c4;
  --muted: #76828f;
  --line: #232c3a;
  --line-strong: #34404f;
  --accent: #4f7df7;
  --accent-2: #7c5cf6;
  --accent-hover: #6b93f9;
  --accent-quiet: rgba(106, 151, 245, 0.14);
  --good: #3cc78f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.55);
  --focus: #8fb1f8;
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 46%);
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  max-width: var(--shell); margin: 0 auto; padding: 22px 24px;
}
.brand {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand span { color: var(--accent); }
.topnav { display: flex; gap: 22px; flex-wrap: wrap; }
.topnav a { color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.topnav a:hover { color: var(--accent); }

main { max-width: var(--shell); margin: 0 auto; padding: 0 24px 64px; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 44px; max-width: 46rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.1;
  letter-spacing: -0.035em; font-weight: 800; margin-bottom: 18px;
}
.hero .sub { font-size: 1.08rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- tool cards ---------- */

.tools {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: stretch;
}
.tool {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); background-image: var(--sheen);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px 22px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tool:hover {
  box-shadow: var(--shadow-lift); transform: translateY(-2px);
  border-color: var(--line-strong);
}
/* the stripe is the only place each tool gets its own hue */
.tool::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--tool-accent, var(--accent));
}
.tool-qbr { --tool-accent: var(--accent); }
.tool-cost { --tool-accent: var(--good); }
.tool-access { --tool-accent: var(--accent-2); }

.toolhead {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; margin-bottom: 12px;
}
.toolhead h2 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--tool-accent, var(--accent));
}
.who {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.tagline { font-weight: 650; margin-bottom: 10px; line-height: 1.4; }
.tool .body { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 16px; }
.tool ul { list-style: none; margin-bottom: 22px; }
.tool li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  font-size: 0.91rem; color: var(--ink-2); line-height: 1.5;
}
.tool li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tool-accent, var(--accent)); opacity: 0.75;
}

.toolfoot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.price {
  display: block; font-size: 0.85rem; color: var(--muted);
  margin-bottom: 14px; font-weight: 500;
}
.btn {
  display: inline-block; background: var(--tool-accent, var(--accent));
  color: var(--on-accent); font-weight: 650; font-size: 0.92rem;
  padding: 9px 18px; border-radius: var(--radius-sm);
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); }

/* ---------- reassurance band ---------- */

.band {
  margin-top: 56px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
}
.bandgrid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.bandgrid h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.bandgrid p { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- footer ---------- */

.sitefoot { border-top: 1px solid var(--line); background: var(--surface); }
.footcols {
  max-width: var(--shell); margin: 0 auto; padding: 34px 24px;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footcols strong { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footcols a { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink-2); }
.footcols a:hover { color: var(--accent); }
.footcols p { font-size: 0.9rem; }

/* white on the light dark-mode green fails contrast, so that one button
   takes dark ink instead */
.btn { color: var(--on-tool, var(--on-accent)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool-cost { --on-tool: #06231a; }
}
:root[data-theme="dark"] .tool-cost { --on-tool: #06231a; }
.btn:hover { color: var(--on-tool, var(--on-accent)); }

@media (max-width: 620px) {
  .hero { padding: 36px 0 32px; }
}

/* connect guide */
.scopetable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.scopetable th, .scopetable td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.scopetable th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.scopetable code { font-size: 0.86rem; }
.steps-block { margin-top: 48px; }
.steps-block h2, .band h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.bandlist { margin: 0 0 0 20px; }
.bandlist li { margin: 6px 0; color: var(--ink-2); }
.snippet {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem; line-height: 1.55; margin: 16px 0; white-space: pre;
}
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
