/* ============================================================================
   SimBayCalc // Clubhouse Engineering Design System
   Dark Emerald Slate + Championship Gold + Precision Architectural Grid
   ============================================================================ */

:root {
  --bg-canvas: #07110d;
  --bg-surface: #0d1c16;
  --bg-surface-2: #12261e;
  --bg-elevated: #173026;
  --border-subtle: rgba(110, 231, 183, 0.14);
  --border-strong: rgba(110, 231, 183, 0.30);
  --text-primary: #f2f7f4;
  --text-secondary: #a8bfb5;
  --text-muted: #6f8c80;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --gold: #eab308;
  --gold-soft: #f5d061;
  --amber: #f59e0b;
  --crimson: #ef4444;
  --sky: #38bdf8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.42);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(234, 179, 8, 0.07), transparent 60%);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Top Navigation Bar ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 13, 0.86);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #047857);
  border: 1px solid rgba(245, 208, 97, 0.45);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.brand-lockup span.accent {
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-ghost, .btn-gold, .btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--border-strong);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #f5c84c, #d99b18);
  color: #0b1410;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.36);
  text-decoration: none;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #04130d;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
  text-decoration: none;
}

/* ── Main Container & Hero ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  max-width: 880px;
  margin: 0.5rem auto 1.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(234, 179, 8, 0.10);
  border: 1px solid rgba(234, 179, 8, 0.30);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  background: linear-gradient(90deg, #34d399, #f5d061);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.03rem;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

/* ── Preset Bar ── */
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.preset-btn.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald-bright);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.preset-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(245, 208, 97, 0.14);
  color: var(--gold-soft);
}

/* ── Primary Workspace Grid (Inputs Left, Blueprints & Verdict Right) ── */
.workspace-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 1.35rem;
  align-items: start;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #06140e;
  background: var(--emerald-bright);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}

/* ── Form Controls & Sliders ── */
.control-group {
  margin-bottom: 1.05rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.control-label-row label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.control-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-soft);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-elevated);
  outline: none;
  border: 1px solid var(--border-subtle);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-bright);
  border: 2px solid #06140e;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-bright);
  border: 2px solid #06140e;
  cursor: pointer;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: var(--bg-canvas);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.segmented-control.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.seg-btn {
  padding: 0.48rem 0.35rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: var(--bg-elevated);
  color: var(--emerald-bright);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.control-divider {
  border: 0;
  border-top: 1px dashed var(--border-subtle);
  margin: 1.15rem 0;
}

.select-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
}

.select-input:focus {
  outline: none;
  border-color: var(--emerald-bright);
}

/* ── Verdict Banner & 3-Pillar Cards ── */
.results-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.verdict-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.verdict-banner.status-pass {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13), var(--bg-surface) 58%);
}

.verdict-banner.status-caution {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), var(--bg-surface) 58%);
}

.verdict-banner.status-warn {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), var(--bg-surface) 58%);
}

.verdict-banner.status-fail {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), var(--bg-surface) 58%);
}

.verdict-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.grade-badge {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid currentColor;
}

.status-pass .grade-badge { color: var(--emerald-bright); background: rgba(16, 185, 129, 0.15); }
.status-caution .grade-badge { color: var(--gold-soft); background: rgba(245, 158, 11, 0.15); }
.status-warn .grade-badge { color: #fb923c; background: rgba(249, 115, 22, 0.16); }
.status-fail .grade-badge { color: #f87171; background: rgba(239, 68, 68, 0.16); }

.verdict-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.verdict-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ── 3 Clearance Metric Cards ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pillar-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.status-dot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.dot-pass { background: rgba(16, 185, 129, 0.16); color: var(--emerald-bright); border: 1px solid rgba(16, 185, 129, 0.35); }
.dot-caution { background: rgba(245, 158, 11, 0.16); color: var(--gold-soft); border: 1px solid rgba(245, 158, 11, 0.35); }
.dot-warn { background: rgba(249, 115, 22, 0.16); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.35); }
.dot-fail { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.pillar-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Live Blueprint SVG Studio ── */
.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.blueprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.blueprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blueprint-head h3 {
  font-size: 0.94rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.blueprint-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.svg-stage {
  background-color: #06100c;
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

.svg-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.blueprint-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* ── Section Blocks Below Workspace ── */
.section-block {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald-bright);
  color: var(--text-primary);
}

/* ── Launch Monitor Matrix Grid ── */
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1rem;
}

.gear-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gear-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.gear-card.fit-fail {
  opacity: 0.68;
  border-color: rgba(239, 68, 68, 0.25);
}

.gear-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.tech-tag.tech-radar {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-soft);
  border-color: rgba(245, 158, 11, 0.28);
}

.gear-name {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.gear-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.gear-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.gear-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.gear-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 9px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.gear-specs strong {
  color: var(--text-primary);
}

.fit-reason {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gear-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.amz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.62rem 0.9rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #f5c84c, #d99b18);
  color: #09130e;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.amz-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.30);
  text-decoration: none;
}

/* ── Projector Throw Section ── */
.screen-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.stat-tile .kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-tile .val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--emerald-bright);
  margin-top: 0.25rem;
}

.stat-tile .hint {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.projector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

/* ── Smart Tiered Build BOM ── */
.bom-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 208, 97, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

.bom-tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.tier-tab {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.tier-tab:hover {
  border-color: var(--border-strong);
}

.tier-tab.active {
  background: rgba(16, 185, 129, 0.13);
  border-color: var(--emerald-bright);
  color: var(--text-primary);
}

.tier-tab strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.15rem;
}

.tier-tab span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-soft);
}

.bom-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bom-row {
  display: grid;
  grid-template-columns: 165px 1fr 110px 210px;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
}

.bom-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.bom-item-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.bom-item-why {
  font-size: 0.81rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.bom-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-soft);
  text-align: right;
}

.bom-action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bom-total-bar {
  margin-top: 1.15rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bom-total-val {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-soft);
}

/* ── Guides Grid ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--emerald-bright);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.guide-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guide-link-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  background: #0e241b;
  color: var(--text-primary);
  border: 1px solid var(--emerald-bright);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer & FTC Compliance ── */
.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.25rem 3rem;
  background: rgba(5, 12, 9, 0.75);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.86rem;
}

.ftc-disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

/* ── Guide Article Layout ── */
.article-wrap {
  max-width: 860px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.article-card h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.article-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-bright);
  margin: 1.75rem 0 0.65rem;
}

.article-card p, .article-card li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.article-card ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.88rem;
}

.spec-table th, .spec-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--bg-canvas);
}

.callout-box {
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.32);
  margin: 1.25rem 0;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1080px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .bom-row {
    grid-template-columns: 1fr 1fr;
  }
  .bom-price {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .pillar-grid,
  .screen-summary-strip,
  .bom-tier-tabs,
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .bom-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .nav-links {
    display: none;
  }
  .article-card {
    padding: 1.3rem;
  }
}
