/* ==========================================================================
   prophetmaxxing.com — Warm Parchment & Pine Editorial & Interactive Vibe System
   Non-destructive overlay preserving /assets/calc.mjs & /assets/rsio-commerce.mjs
   ========================================================================== */

:root {
  --canvas: #f7f4ec;
  --surface: #fffefb;
  --surface-alt: #ede8dc;
  --hero-bg: #f7f4ec;
  --hero-card: #11261e;
  --ink: #13261f;
  --ink-muted: #40534b;
  --border: #dcd5c6;
  --accent: #047857;
  --accent-dark: #065f46;
  --accent-soft: #e2f5ec;
  --accent2: #b45309;
  --font-head: "Iowan Old Style", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }

/* Header Refinement */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #bbb09a;
}
.brand-link { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { background: #11261e; color: #6ee7b7; font-family: var(--font-mono); }

/* Upgraded Editorial Hero */
.hero {
  background-color: #f7f4ec;
  border-top: 3px solid #047857;
  color: #13261f;
  border-bottom: 2px solid #bbb09a;
  padding: 3rem 0 2.8rem;
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 2.2rem;
  align-items: start;
}
.hero .hero-grid > * { min-width: 0; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #047857;
  background: #e2f5ec;
  border: 1px solid #bbb09a;
  padding: 0.24rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.95rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.025em;
  color: #13261f;
  margin: 0 0 1rem;
}
.hero .hero-lead {
  color: #40534b;
  font-size: 1.02rem;
  line-height: 1.62;
  margin: 0 0 1.4rem;
}
.hero .btn-primary {
  background: #047857;
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}
.hero .btn-primary:hover { opacity: 0.92; text-decoration: none; }
.hero .btn-outline-light {
  background: #ffffff;
  color: #13261f;
  border: 1px solid #bbb09a;
}
.hero .btn-outline-light:hover {
  background: #ede8dc;
  text-decoration: none;
}

/* Interactive Hero Console (Replaces Static .hero-card) */
.vibe-console {
  background: #11261e;
  color: #eef4fb;
  border: 1px solid #2a5545;
  border-top: 4px solid #6ee7b7;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}
.vibe-console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.65rem;
  padding-bottom: 0.78rem; margin-bottom: 0.88rem;
  border-bottom: 1px solid #2a5545;
  flex-wrap: wrap;
}
.vibe-kicker {
  margin: 0; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #b6c5d8;
}
.vibe-pill {
  font-family: var(--font-mono); font-size: 0.69rem; font-weight: 700;
  color: #6ee7b7; background: #19372c;
  border: 1px solid #2a5545; padding: 0.16rem 0.54rem; border-radius: 999px;
}
.vibe-presets {
  display: flex; flex-wrap: wrap; gap: 0.38rem; margin-bottom: 0.85rem;
}
.vibe-chip {
  background: #19372c; color: #cbd5e1;
  border: 1px solid #2a5545; border-radius: 6px;
  padding: 0.4rem 0.64rem; font-family: var(--font-mono); font-size: 0.71rem; font-weight: 700;
  cursor: pointer; text-align: left;
}
.vibe-chip[aria-pressed="true"] {
  background: #6ee7b7; color: #11261e; border-color: #6ee7b7;
}
.vibe-svg-stage {
  background: #070d14; border: 1px solid #2a5545;
  border-radius: 6px; padding: 0.48rem; margin-bottom: 0.85rem;
}
.vibe-svg-stage svg { display: block; width: 100%; height: auto; }
.vibe-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem; margin-bottom: 0.85rem;
}
.vibe-kpi {
  background: #19372c; border: 1px solid #2a5545;
  border-radius: 6px; padding: 0.54rem 0.64rem;
}
.vibe-kpi span {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: #9eb0c6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vibe-kpi strong {
  display: block; font-family: var(--font-mono); font-size: 0.96rem;
  color: #ffffff; margin-top: 0.14rem; font-variant-numeric: tabular-nums;
}
.vibe-console-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 0.65rem; flex-wrap: wrap;
}
.vibe-cta-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #6ee7b7; color: #11261e;
  border: none; border-radius: 6px; padding: 0.52rem 0.88rem;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.vibe-caption { font-family: var(--font-mono); font-size: 0.68rem; color: #9eb0c6; }

/* Headings & Calculator / Matrix Editorial Lift */
.section { scroll-margin-top: 84px; }
.section h2 { font-family: var(--font-head); letter-spacing: -0.02em; }
.calc-shell { border: 1px solid #bbb09a; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06); }
.calc-head { border-bottom: 2px solid #bbb09a; }

/* Companion Interactive Shortlist & Diligence Desk */
.vibe-desk {
  padding: 3.2rem 0;
  background: var(--surface-alt);
  border-top: 2px solid #bbb09a;
  border-bottom: 1px solid #bbb09a;
  scroll-margin-top: 84px;
}
.vibe-desk-head { margin-bottom: 1.5rem; max-width: 72ch; }
.vibe-desk-kicker {
  margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent);
}
.vibe-desk-head h2 {
  margin: 0 0 0.48rem; font-family: var(--font-head);
  font-size: clamp(1.52rem, 2.5vw, 2.08rem); line-height: 1.18; color: var(--ink);
}
.vibe-desk-head p { margin: 0; color: var(--ink-muted); font-size: 0.96rem; }

.vibe-tabs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-bottom: 1.25rem; border-bottom: 2px solid #bbb09a; padding-bottom: 0.78rem;
}
.vibe-tab {
  background: var(--surface); color: var(--ink-muted);
  border: 1px solid #bbb09a; border-radius: 6px;
  padding: 0.54rem 0.94rem; font-family: var(--font-mono); font-size: 0.77rem; font-weight: 700; cursor: pointer;
}
.vibe-tab[aria-selected="true"] {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
}
.vibe-panel-card {
  background: var(--surface); border: 1px solid #bbb09a;
  border-radius: 10px; padding: 1.35rem;
}
.vibe-panel-card h3 { margin: 0 0 0.5rem; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.vibe-pick-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem; margin: 0.9rem 0 1.1rem;
}
.vibe-pick-btn {
  text-align: left; background: var(--canvas); color: var(--ink);
  border: 1px solid #bbb09a; border-radius: 6px;
  padding: 0.52rem 0.68rem; font-size: 0.81rem; font-weight: 600; cursor: pointer;
}
.vibe-pick-btn[aria-pressed="true"] {
  background: var(--accent-soft); color: var(--accent-dark);
  border-color: var(--accent); border-left: 4px solid var(--accent);
}
.vibe-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #bbb09a; border-radius: 6px; margin: 0.9rem 0; }
.vibe-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.87rem; background: var(--surface); }
.vibe-table-wrap th, .vibe-table-wrap td { text-align: left; padding: 0.68rem 0.82rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.vibe-table-wrap th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-alt); color: var(--ink); }
.vibe-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 0.85rem; }
.vibe-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.54rem 0.94rem; border-radius: 6px; font-weight: 700; font-size: 0.84rem;
  cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #ffffff; text-decoration: none;
}
.vibe-btn:hover { background: var(--accent-dark); text-decoration: none; color: #ffffff; }
.vibe-btn-sec { background: transparent; color: var(--ink); border-color: #bbb09a; }
.vibe-btn-sec:hover { background: var(--surface-alt); color: var(--ink); }
.vibe-status { font-family: var(--font-mono); font-size: 0.77rem; color: var(--accent-dark); margin-top: 0.45rem; min-height: 1.2em; }

.vibe-check-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.72rem; align-items: start;
  padding: 0.72rem 0.84rem; margin-bottom: 0.5rem;
  background: var(--canvas); border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.vibe-check-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.14rem; accent-color: var(--accent); }
.vibe-check-title { display: block; font-weight: 700; color: var(--ink); font-size: 0.91rem; }
.vibe-check-desc { display: block; font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.16rem; }

.vibe-op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.vibe-op-card {
  background: #11261e; color: #edf4fb; border: 1px solid #2a5545;
  border-top: 3px solid #6ee7b7; border-radius: 8px; padding: 1.2rem;
}
.vibe-op-card h4 { margin: 0 0 0.4rem; font-family: var(--font-head); font-size: 1.08rem; color: #ffffff; }
.vibe-op-card p { margin: 0 0 0.9rem; font-size: 0.88rem; color: #c4d2e3; }

@media (max-width: 960px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .vibe-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vibe-kpis, .vibe-pick-grid, .vibe-op-grid { grid-template-columns: minmax(0, 1fr); }
  .vibe-panel-card { padding: 1rem; }
}
