/*
 * ════════════════════════════════════════════════════════════════════════
 * BIZOPS·TOOL — CENTRAL DESIGN SYSTEM  |  bizops.css  v2.0 (Enterprise)
 * Single source of truth. Every page links this file.
 * Local <style> blocks contain ONLY page-specific layout after this.
 * ════════════════════════════════════════════════════════════════════════
 */

/* ── 1. DESIGN TOKENS (STRICT IDENTITY - UNCHANGED) ──────────────────── */
:root {
  /* Color Foundation */
  --paper:       #FAFAFA;
  --white:       #FFFFFF;
  --ink:         #111111;
  --slate:       #64748B;
  --fog:         #8A93A3;
  --mist:        #AEB4BF;
  --veil:        #E6E6EA;
  --gold:        #C5A059;
  --gold-strong: #B08D4A;
  --gold-pale:   #EAD9B8;
  --gold-bg:     rgba(197,160,89,.10);
  --gold-bd:     rgba(197,160,89,.34);
  --green:       #1E7B4E;
  --red:         #C2412C;
  --line:        #111111;
  /* Typography */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Geist', -apple-system, sans-serif;
  --mono:  'Geist Mono', 'SF Mono', ui-monospace, monospace;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  /* 46px graph-paper blueprint */
  background-image:
    linear-gradient(var(--veil) 1px, transparent 1px),
    linear-gradient(90deg, var(--veil) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ── 3. APEX SPINE — 3px gold bar pinned to top of every page ─────────── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-strong), var(--gold), var(--gold-strong));
  z-index: 9999;
  pointer-events: none;
}

/* ── 4. STRUCTURAL LAYOUT & HIERARCHY ─────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* 64px vertical rhythm for major sections - Scaled up for authority */
.sec { padding: 45px 0; border-bottom: 2px solid var(--line); }

.sec-head { 
  margin-bottom: 40px; 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-end; /* Strict baseline alignment */
  border-bottom: 4px solid var(--line); /* Brutalist structural underline */
  padding-bottom: 16px;
}

.sec-title { 
  font-family: var(--serif); 
  font-size: 48px; /* Scaled up for heavy impact */
  font-weight: 400; 
  color: var(--ink); /* Grounded, serious tone */
  line-height: 0.9; 
  font-style: normal; /* Removed italics for rigid authority */
  letter-spacing: -0.02em;
}

/* ── 5. STICKY HEADER ────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,.95); /* Slightly more opaque for solid feel */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--line); /* Swapped gold for ink to anchor the header */
}

.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--ink); display: flex; align-items: center; gap: 4px; text-transform: uppercase; }
.logo em { font-style: normal; color: var(--gold-strong); }

.live-indicator { 
  display: inline-flex; align-items: center; gap: 6px; 
  font-size: 9px; padding: 3px 8px; border: 1px solid var(--green); 
  color: var(--green); background: rgba(30,123,78,.1); 
  letter-spacing: .15em; font-weight: 600; margin-left: 4px; 
}
.live-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

nav { display: flex; align-items: center; gap: 14px; }
nav a.link { 
  font-family: var(--mono); font-size: 12px; font-weight: 600; 
  color: var(--slate); text-transform: uppercase; letter-spacing: .05em; 
  transition: color 0s; /* Brutalist zero-transition */
}
nav a.link:hover { color: var(--ink); }
.nav-sep { color: var(--mist); font-family: var(--mono); font-size: 11px; user-select: none; }

/* ── 6. BUTTONS — Industrial Switches ─────────────────────────────────── */
.nav-cta, .btn-primary {
  font-family: var(--mono); 
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: .08em;
  text-transform: uppercase; 
  background: var(--ink); 
  color: var(--white);
  border: 2px solid var(--line); 
  padding: 12px 20px; 
  transition: transform 0.1s ease, box-shadow 0.1s ease; /* Snappy, mechanical transition */
  cursor: pointer; 
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--gold-strong);
}

.nav-cta {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-left: 8px;
}

.nav-cta:hover { background: var(--gold-strong); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.nav-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gold-strong); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--gold-strong); }

/* ── 7. BRUTALIST BOX — Diagnostic Cards ─────────────────────────────── */
.brutal-box {
  background: var(--white);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.brutal-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-strong) 100%);
}
.brutal-box:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }

/* ── 8. TYPOGRAPHY & MICRO-COPY ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold-strong); margin-bottom: 16px; font-weight: 700;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold-strong); }

/* View-all ghost button */
.view-all-link {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .05em; border: 2px solid var(--line);
  padding: 8px 16px; background: var(--white); transition: all 0.1s ease; 
  display: inline-block; border-radius: 0;
}
.view-all-link:hover { 
  background: var(--gold-bg); 
  transform: translate(-2px, -2px); 
  box-shadow: 4px 4px 0 var(--ink); /* Swapped gold-strong for ink for consistency */
}

/* ── 9. FORM ELEMENTS — The Data Terminal ────────────────────────────── */
select,
input[type=email],
input[type=text],
input[type=search],
textarea {
  width: 100%; 
  font-family: var(--mono); 
  font-size: 13px; /* Technical scale */
  font-weight: 500;
  color: var(--ink); 
  background: var(--white); 
  border: 2px solid var(--line); 
  border-radius: 0; 
  padding: 16px; 
  outline: none; 
  transition: all 0s; /* Instant feedback */
  box-shadow: 4px 4px 0 transparent;
}

select:focus,
input[type=email]:focus,
input[type=text]:focus,
input[type=search]:focus,
textarea:focus {
  background: var(--white); 
  border-color: var(--gold-strong); 
  box-shadow: 4px 4px 0 var(--gold-strong); 
  transform: none; /* Keep forms rigidly grounded */
}

select::placeholder, 
input::placeholder, 
textarea::placeholder {
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Range slider */
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  background: var(--veil); border: 2px solid var(--line); border-radius: 0; outline: none; margin: 8px 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; background: var(--gold-strong);
  border: 2px solid var(--line); border-radius: 0; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: none;
}
input[type=range]::-webkit-slider-thumb:hover { background: var(--ink); box-shadow: 4px 4px 0 var(--gold-strong); }
input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; background: var(--gold-strong);
  border: 2px solid var(--line); border-radius: 0; cursor: pointer;
}

/* Chip toggles */
.chip, .wh-chip {
  font-family: var(--mono); font-size: 11px; padding: 8px 12px;
  border: 2px solid var(--line); background: var(--white); cursor: pointer;
  user-select: none; transition: transform .08s, box-shadow .08s, background .12s;
  font-weight: 600; text-transform: uppercase;
}
.chip:hover, .wh-chip:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--ink); }
.chip.on, .wh-chip.on { background: var(--gold); box-shadow: 2px 2px 0 var(--ink); font-weight: 700; }
.chip small { display: block; font-size: 9px; color: var(--slate); letter-spacing: .04em; margin-top: 4px; font-weight: 500; }
.chip.on small { color: #5c4a1e; }

/* ── 10. NEWSLETTER & FOOTER ─────────────────────────────────────────── */
.nl-section {
  background: var(--ink); color: var(--white); padding: 64px 0;
  border-bottom: 2px solid var(--gold); position: relative; overflow: hidden;
}
.nl-section::before {
  content: ''; position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 300px;
  background: radial-gradient(ellipse, rgba(197,160,89,.15) 0%, transparent 70%);
  pointer-events: none;
}
.nl-inner { max-width: 600px; margin: 0 auto; text-align: center; position: relative; }
.nl-title { font-family: var(--serif); font-size: 40px; color: var(--white); margin-bottom: 8px; font-style: normal; line-height: 1; letter-spacing: -0.02em; }
.nl-form { display: flex; border: 2px solid var(--white); box-shadow: 6px 6px 0 var(--gold-strong); background: var(--ink); margin-top: 24px; transition: box-shadow 0.1s ease; }
.nl-form:focus-within { box-shadow: 8px 8px 0 var(--gold-strong); transform: translate(-2px, -2px); }

.nl-form input {
  flex: 1; padding: 16px; border: none; outline: none; background: transparent;
  color: var(--white); font-family: var(--mono); font-size: 13px; border-radius: 0;
  transform: none !important; box-shadow: none !important;
}
.nl-form input::placeholder { color: var(--slate); }
.nl-form button {
  background: var(--white); color: var(--ink); border: none; border-left: 2px solid var(--white);
  padding: 0 24px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background 0s;
}
.nl-form button:hover { background: var(--gold-strong); color: var(--ink); border-left-color: var(--gold-strong); }

footer { padding: 54px 0; background: var(--paper); font-family: var(--mono); font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ── 11. SCORE BAR & METRICS ─────────────────────────────────────────── */
.score-bar-bg { height: 6px; background: var(--veil); overflow: hidden; width: 100%; border: 1px solid var(--line); margin-top: 8px; }
.score-bar-fill { height: 100%; background: var(--gold-strong); border-right: 1px solid var(--line); }

/* ── 12. RESPONSIVE STRUCTURE ────────────────────────────────────────── */
@media (max-width: 900px) {
  nav a.link, .nav-sep { display: none; }
}
@media (max-width: 768px) {
  .sec { padding: 48px 0; }
  .sec-title { font-size: 36px; }
  .brutal-box { box-shadow: 4px 4px 0 var(--ink); }
  .brutal-box:hover { box-shadow: 6px 6px 0 var(--ink); }
  .nl-title { font-size: 32px; }
  .nl-form { flex-direction: column; }
  .nl-form button { padding: 16px; border-left: none; border-top: 2px solid var(--white); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
