/* ============================================================
   Forecast Operator Room - Institutional Restyle
   Square geometry, hairline rules, ledger topography. No pills.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #060d17;
  --panel: #0b1524;
  --panel-2: #111d30;
  --text: #f4f7fb;
  --muted: #8295ad;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #3b82f6; /* Controlled crisp blue */
  --accent-2: #e2e8f0;
  --ink: #0a1424;
  --white: #ffffff;
  --max: 1140px;
  --radius: 0px;       /* Eliminated rounded borders completely */
  --radius-inner: 0px; /* Eliminated rounded elements */
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  color: var(--white);
}
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.2rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 740px; color: #a3b8cc; line-height: 1.5; }

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: .75rem;
  margin: 0 0 1rem;
  padding-left: .6rem;
  border-left: 2px solid var(--accent);
}

/* ---------- Structural Layout ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.hero { padding-top: 7rem; padding-bottom: 4.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: start;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card-grid, .rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rules-grid { grid-template-columns: repeat(4, 1fr); margin-top: 2rem; }

/* ---------- Cards & Panels ---------- */
.card, .price-card, .stack-card, .rule-card, .hero-card, .form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  padding: 1.75rem;
}
.hero-card { background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); }

/* High-Contrast Inverse White Band Sections */
.band { background: var(--white); color: var(--ink); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.band h2, .band h3 { color: var(--ink); }
.band p, .band .small { color: #4a5568; }
.band .eyebrow { color: var(--ink); border-left-color: var(--ink); }
.band .card, .band .price-card, .band .stack-card, .band .rule-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--ink);
}
.band .card ul, .band .price-card ul, .band .stack-card ul { color: #4a5568; }

/* ---------- Buttons & Inputs (Strictly Square) ---------- */
.button, .button-secondary, .button-small, form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) !important;
  font-family: var(--body);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button { background: var(--white); color: var(--bg); }
.button:hover { background: #e2e8f0; }
.button-secondary { border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }
.button-small { background: transparent; border-color: var(--line-strong); color: var(--text); padding: 0.4rem 0.9rem; min-height: 34px; font-size: 0.8rem; }
.button-small:hover { border-color: var(--white); }

.band .button { background: var(--ink); color: var(--white); }
.band .button:hover { background: #1e293b; }
.band .button-secondary { border-color: #cbd5e1; color: var(--ink); }
.band .button-secondary:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); }

/* ---------- Modernized Non-Pill Kickers / Badges ---------- */
.kicker-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 2rem 0; }
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
  padding: 0 0 2px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.band .kicker { color: var(--ink); border-bottom-color: #cbd5e1; }

/* ---------- Monospaced Ledger Elements ---------- */
.price {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.5rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.band .price { color: var(--ink); border-bottom-color: #cbd5e1; }
.small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.rule-number {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.band .rule-number { color: #475569; }

/* ---------- Linear Timelines & Grids ---------- */
.timeline { display: flex; flex-direction: column; margin-top: 2.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border: none;
  border-top: 1px dashed var(--line);
  background: transparent;
  border-radius: 0;
}
.timeline-item b { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; color: var(--white); letter-spacing: 0.05em; }
.band .timeline-item { border-top-color: #cbd5e1; }
.band .timeline-item b { color: var(--ink); }

.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); margin-top: 2.5rem; }
.week { padding: 1.25rem; background: var(--bg); border: none; border-radius: 0; }
.week b { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.band .week-grid { background: #cbd5e1; }
.band .week { background: #f8fafc; }

/* ---------- Structural List Cleanups ---------- */
ul { padding-left: 1.2rem; }
li { margin: 0.4rem 0; color: var(--muted); }
.card ul, .stack-card ul, .price-card ul { list-style: none; padding-left: 0; margin-top: 1.5rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.card li, .stack-card li, .price-card li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; }
.card li::before, .stack-card li::before, .price-card li::before { content: "—"; position: absolute; left: 0; color: var(--line-strong); }
.band .card ul, .band .stack-card ul, .band .price-card ul { border-top-color: #cbd5e1; }

.boundary { border: 1px solid var(--line) !important; border-top: 3px solid var(--white) !important; }

/* ---------- Flat Rules & Forms ---------- */
.notice { background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong); border-left: 3px solid var(--white); border-radius: 0; color: #cbd5e1; padding: 1.1rem; font-size: 0.9rem; }
.band .notice { background: #f1f5f9; border-color: #cbd5e1; border-left-color: var(--ink); color: #334155; }

label { display: block; font-family: var(--body); font-weight: 600; font-size: 0.85rem; color: var(--white); margin-bottom: 1rem; }
input, select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 0 !important; background: var(--bg); color: var(--text); padding: .65rem .85rem; font: inherit; font-size: 0.95rem; margin-top: 0.3rem;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--white); border-color: var(--white); }
textarea { min-height: 120px; }
.helper { font-size: .8rem; color: var(--muted); display: block; margin-top: 0.4rem; font-weight: 400; }

/* ---------- Header & Footer Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(6, 13, 23, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--white); }
.brand img { width: 32px; height: 32px; border-radius: 0; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; font-size: .9rem; font-weight: 500; }
.nav-links a:not(.button-small) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.button-small):hover { color: var(--white); }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; font-family: var(--mono); font-size: 0.78rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-inner a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-inner a:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---------- Accessibility & System Defaults ---------- */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; z-index: 1000; background: var(--white); color: var(--bg); padding: .6rem 1rem; border-radius: 0; font-weight: 700; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .card-grid, .rules-grid, .week-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 3.5rem 1.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .week-grid { gap: 1rem; background: transparent; }
  .band .week-grid { background: transparent; }
}