/* ═══════════════════════════════════════════════════════════
   PAGES.CSS — Multi-page styles (v0.2)
   Used by: page-home, page-realtors, page-strategy,
            page-prelisting, page-loan-officers, router
   ═══════════════════════════════════════════════════════════ */

/* nav-link active state */
.nav-link.active {
  color: var(--fg);
  font-weight: 500;
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
[data-accent="coral"] .nav-link.active::after { background: #E8573A; }
[data-accent="teal"] .nav-link.active::after { background: #2EBDBD; }

/* ───────────── Page hero (used by sub-pages) ───────────── */
.page-hero {
  padding: clamp(64px, 9vw, 120px) var(--pad-section-x) clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}
.page-hero-h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 32px;
  text-wrap: balance;
}
.page-hero-sub {
  margin-top: 28px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 680px;
  text-wrap: pretty;
}

/* hero stacked-md variant for home */
.hero.stacked-md {
  grid-template-columns: 1.05fr 0.95fr;
}

/* ───────────── Home: 5-card strategy grid ───────────── */
.strategy-grid-section { background: var(--bg); }

.strategy-five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.strat-card {
  padding: 32px 24px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 280px;
}
.strat-card:last-child { border-right: none; }
.strat-card:hover { background: var(--bg-tint); }
.strat-num {
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.12em;
}
.strat-icon {
  color: var(--fg);
  height: 44px;
  display: flex;
  align-items: center;
}
[data-accent="coral"] .strat-icon { color: #E8573A; }
[data-accent="teal"] .strat-icon { color: #2EBDBD; }
.strat-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.strat-card p {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
.strat-foot {
  font-size: 9.5px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

@media (max-width: 1100px) {
  .strategy-five { grid-template-columns: repeat(2, 1fr); }
  .strat-card { border-bottom: 1px solid var(--border); }
  .strat-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .strat-card:nth-child(even) { border-right: none; }
}

/* ───────────── Home: 2-up audience split ───────────── */
.who-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.who-split-card {
  padding: 72px 56px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.who-split-card:last-child { border-right: none; }
.who-split-card.alt { background: var(--bg-tint); }
.who-split-card:hover { background: var(--bg-elev); }
[data-theme="dark"] .who-split-card.alt { background: var(--bg-elev); }

.who-split-eyebrow {
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
}
.who-split-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 8px;
}
.who-split-body {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 440px;
}
.who-split-cta {
  margin-top: auto;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg);
}
[data-accent="coral"] .who-split-cta { color: #E8573A; }
[data-accent="teal"] .who-split-cta { color: #2EBDBD; }

@media (max-width: 880px) {
  .who-split { grid-template-columns: 1fr; }
  .who-split-card { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ───────────── Realtors: anatomy grid ───────────── */
.anatomy {
  padding: var(--pad-section) var(--pad-section-x);
  max-width: 1320px;
  margin: 0 auto;
}
.anatomy-head { margin-bottom: 56px; max-width: 720px; }

.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ana-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 4px;
}
.ana-eyebrow {
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.ana-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.ana-vis {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ana-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ana-list li {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.ana-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--fg-muted);
}
.ana-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  margin-top: auto;
}

/* mini flyer */
.mini-flyer {
  width: 240px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.mini-flyer-top {
  padding: 18px 16px;
  color: white;
}
.mini-eyebrow {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  opacity: 0.9;
  margin-bottom: 8px;
}
.mini-headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.mini-flyer-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 16px;
  gap: 8px;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-stat span {
  font-size: 7.5px;
  color: #999;
  letter-spacing: 0.1em;
}
.mini-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
}

/* deck stack */
.deck-vis { perspective: 800px; }
.deck-stack {
  position: relative;
  width: 200px;
  height: 160px;
}
.deck-page {
  position: absolute;
  width: 140px;
  height: 100px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translate(calc(var(--i) * 8px), calc(var(--i) * -4px)) rotate(calc(var(--i) * -1deg));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px 8px;
  font-size: 8px;
  color: #999;
}

/* social calendar */
.cal-vis { flex-direction: column; gap: 12px; padding: 16px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
}
.cal-cell {
  aspect-ratio: 1;
  background: #E0D8D0;
  border-radius: 2px;
}
.cal-cell.reel { background: var(--coral, #E8573A); }
[data-accent="teal"] .cal-cell.reel { background: #2EBDBD; }
.cal-cell.carousel { background: #2EBDBD; }
.cal-legend {
  display: flex;
  gap: 14px;
  font-size: 8.5px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.cal-legend span { display: flex; align-items: center; gap: 4px; }
.cal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 1px;
}

/* market chart */
.chart-vis { flex-direction: column; gap: 8px; }
.chart-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.chart-stat-row strong { color: var(--fg); margin-left: 4px; }

/* bar comparison */
.bar-vis { flex-direction: column; gap: 10px; padding: 18px; width: 100%; }
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 10px;
  align-items: center;
}
.bar-label { font-size: 9px; color: var(--fg-muted); letter-spacing: 0.1em; }
.bar-track {
  position: relative;
  height: 16px;
  background: #F5F1ED;
  border-radius: 2px;
  overflow: hidden;
}
[data-theme="dark"] .bar-track { background: #1A1A1A; }
.bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}
.bar-fill.nbhd {
  background: #C8BFB6;
  height: 6px;
  top: 5px;
}
.bar-val {
  font-size: 10px;
  color: var(--fg);
  font-weight: 500;
  text-align: right;
}
.bar-legend {
  display: flex;
  gap: 16px;
  font-size: 8.5px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.bar-legend span { display: flex; align-items: center; gap: 4px; }
.bar-legend i { width: 10px; height: 4px; border-radius: 1px; }

/* prompter mini */
.prompter-vis { flex-direction: column; gap: 12px; padding: 18px; width: 100%; }
.prompter-screen {
  width: 100%;
  background: #0A0A0A;
  color: white;
  border-radius: 4px;
  padding: 20px 24px;
  height: 140px;
  overflow: hidden;
  position: relative;
}
.prompter-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
}
.prompter-text .line { transition: opacity 0.3s; }
.prompter-text .dim { opacity: 0.45; }
.prompter-text .bright { opacity: 1; }
.prompter-text em { font-style: italic; color: #FFD9C7; }
.prompter-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}
.prompter-controls {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.prompter-controls .rec { display: flex; align-items: center; gap: 4px; color: #E8573A; }
.prompter-controls .rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E8573A;
  animation: pulse 1.4s infinite;
}

/* ───────────── Realtors: flow steps ───────────── */
.flow-section {
  padding: var(--pad-section) var(--pad-section-x);
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .flow-section { background: #050505; }
.flow-steps {
  max-width: 1200px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.flow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: 4px;
}
.flow-step-n {
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.flow-step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.flow-step p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
}
.flow-arrow {
  font-size: 28px;
  color: var(--fg-faint);
  align-self: center;
  font-family: "Space Grotesk", sans-serif;
}
@media (max-width: 1000px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ───────────── Generic page CTA ───────────── */
.page-cta {
  padding: var(--pad-section) var(--pad-section-x);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.page-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.page-cta-inner h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.page-cta-inner p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--fg-muted);
}
.page-cta-inner .waitlist {
  margin-top: 36px;
  text-align: left;
}

/* ───────────── Pre-listing: deck preview ───────────── */
.prelisting-kicker {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  margin-top: 32px;
}

.deck-strip {
  padding: 32px var(--pad-section-x);
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
[data-theme="dark"] .deck-strip { background: #050505; }
.deck-strip-rail {
  display: flex;
  gap: 10px;
  max-width: 1320px;
  margin: 0 auto;
}
.deck-thumb {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  transition: all 0.15s;
}
.deck-thumb:hover { background: var(--bg-elev); }
.deck-thumb.active { border-width: 2px; padding: 11px 15px; }
.deck-thumb-n {
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.deck-thumb-t {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.deck-stage-section {
  padding: 64px var(--pad-section-x);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}
.deck-stage-meta { padding-top: 24px; position: sticky; top: 80px; }
.ds-eyebrow {
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.ds-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.ds-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.ds-controls {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ds-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.15s;
}
.ds-btn:hover { background: var(--bg-elev); }
.ds-counter {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  padding: 0 8px;
}

.deck-stage-paper {
  background: white;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
  overflow: hidden;
}

@media (max-width: 1000px) {
  .deck-stage-section { grid-template-columns: 1fr; }
  .deck-stage-meta { position: static; }
}

/* deck page interior */
.dp-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", sans-serif;
  color: #1A1A1A;
  background: white;
  position: relative;
}
.dp-page-chrome {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px 20px 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #999;
}
.dp-page-of { color: #C8BFB6; }
.dp-page-content {
  flex: 1;
  padding: 16px 32px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dp-page-foot {
  padding: 12px 20px;
  border-top: 1px solid #EFEAE5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #999;
}

.dp-eyebrow {
  font-size: 9px;
  color: #999;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.dp-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 16px;
}
.dp-sub { font-size: 12px; color: #777; margin-bottom: 16px; }

/* dp cover */
.dp-cover {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1.4fr) auto;
  gap: 16px;
  min-height: 0;
}
.dp-photo {
  border-radius: 3px;
  overflow: hidden;
  min-height: 0;
}
.dp-cover-meta { padding-bottom: 8px; }
.dp-cover-h {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.dp-cover-sub {
  font-size: 9px;
  color: #999;
  letter-spacing: 0.14em;
  margin-top: 8px;
}

/* dp cma */
.cma-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  border: 1px solid #EFEAE5;
  border-radius: 2px;
  overflow: hidden;
}
.cma-row {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.8fr 0.8fr 0.8fr;
  padding: 8px 12px;
  border-bottom: 1px solid #EFEAE5;
}
.cma-row:last-child { border-bottom: none; }
.cma-row.head { background: #FAF7F4; color: #777; letter-spacing: 0.1em; }
.cma-row.total {
  background: #FFF8F4;
  font-weight: 600;
  border-top: 1px solid #1A1A1A;
}
[data-accent="teal"] .cma-row.total { background: #F0FBFB; }

/* dp market */
.market-chart { flex: 1; }
.market-legend {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #999;
  letter-spacing: 0.1em;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #EFEAE5;
}
.market-legend strong { color: #1A1A1A; margin-right: 4px; }

/* dp plan */
.plan-grid { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  gap: 12px;
  align-items: center;
}
.plan-ch { font-size: 11px; color: #555; }
.plan-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 1.5px; }
.pb {
  height: 14px;
  background: #F0EBE5;
  border-radius: 1px;
}
.pb.on { background: #1A1A1A; }
.plan-count {
  font-size: 9px;
  color: #999;
  letter-spacing: 0.1em;
  text-align: right;
}

/* dp team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex: 1;
  align-content: center;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.team-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1A1A1A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.team-n { font-size: 11px; font-weight: 500; }
.team-r {
  font-size: 7.5px;
  color: #999;
  letter-spacing: 0.12em;
}

/* dp timeline */
.tl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 24px 0;
}
.tl-line {
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: #EFEAE5;
  z-index: 0;
}
.tl-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #1A1A1A;
}
.tl-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-label .mono {
  font-size: 8px;
  color: #999;
  letter-spacing: 0.14em;
}
.tl-t {
  font-size: 10px;
  font-weight: 500;
  text-wrap: balance;
  max-width: 100px;
  margin: 0 auto;
}

/* dp pricing */
.pricing-math {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #EFEAE5;
  border-radius: 2px;
  font-size: 11px;
}
.pm-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #EFEAE5;
  letter-spacing: 0.04em;
}
.pm-row:last-child { border-bottom: none; }
.pm-row.total {
  background: #FAF7F4;
  font-weight: 600;
}
.pm-row.final {
  background: #1A1A1A;
  color: white;
  font-size: 13px;
  padding: 14px;
  font-weight: 600;
}

/* dp sign */
.sign-doc {
  flex: 1;
  border: 1px solid #EFEAE5;
  border-radius: 2px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.sign-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed #EFEAE5;
}
.sign-line {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  font-size: 9px;
  color: #999;
  letter-spacing: 0.12em;
}
.sig-blank {
  font-family: "Brush Script MT", cursive;
  font-size: 18px;
  color: #1A1A1A;
  letter-spacing: 0;
  border-bottom: 1px solid #1A1A1A;
  padding: 0 4px 4px;
}

/* dp netsheet */
.dp-netsheet { display: flex; flex-direction: column; min-height: 0; }
.ns-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #EFEAE5;
  border-radius: 2px;
  font-size: 9.5px;
  overflow: hidden;
}
.ns-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 7px 12px;
  border-bottom: 1px solid #EFEAE5;
  letter-spacing: 0.02em;
}
.ns-row:last-child { border-bottom: none; }
.ns-row.head {
  background: #FAF7F4;
  color: #777;
  letter-spacing: 0.14em;
  font-size: 8px;
}
.ns-row.pos {
  background: #FFF8F4;
  font-weight: 600;
  font-size: 10.5px;
}
[data-accent="teal"] .ns-row.pos { background: #F0FBFB; }
.ns-row.sub { color: #555; }
.ns-row.sub > span:last-child { color: #1A1A1A; font-weight: 500; }
.ns-row.final {
  background: #1A1A1A;
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 12px;
  border-top: 1px solid #1A1A1A;
  letter-spacing: 0.06em;
}
.ns-row.final > span:last-child { font-size: 14px; }
.ns-foot {
  margin-top: 10px;
  font-size: 8px;
  color: #999;
  letter-spacing: 0.14em;
  text-align: center;
}

/* deck-all grid */
.deck-all {
  padding: var(--pad-section) var(--pad-section-x);
  border-top: 1px solid var(--border);
  background: var(--bg-tint);
}
[data-theme="dark"] .deck-all { background: #050505; }
.deck-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
}
.deck-all-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.deck-all-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.deck-all-thumb {
  background: white;
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #EFEAE5;
  position: relative;
}
.deck-all-thumb > .dp-page {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 0.55);
  height: calc(100% / 0.55);
  transform: scale(0.55);
  transform-origin: top left;
}
.deck-all-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.deck-all-meta span:first-child {
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.deck-all-meta span:last-child {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .deck-all-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ───────────── Strategy Engine: tabs + panels ───────────── */
.strat-tabs-section {
  padding: 48px var(--pad-section-x) var(--pad-section);
  max-width: 1320px;
  margin: 0 auto;
}
.strat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 48px;
}
.strat-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.strat-tab:hover { color: var(--fg); }
.strat-tab.active { font-weight: 600; }

.strat-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.strat-panel-h {
  max-width: 680px;
}
.strat-panel-h h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-wrap: balance;
}
.strat-panel-h p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* social */
.social-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.social-post {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-day {
  padding: 10px 14px;
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--border);
}
.sp-thumb {
  aspect-ratio: 4/5;
  background: #C8BFB6;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
  color: white;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.social-post.carousel .sp-thumb {
  background: linear-gradient(135deg, #2EBDBD 0%, #239696 100%);
}
.social-post.story .sp-thumb {
  background: linear-gradient(180deg, #FFD9C7 0%, #E8573A 100%);
  color: white;
}
.sp-title {
  padding: 12px 14px 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.sp-meta {
  padding: 0 14px 12px;
  font-size: 8.5px;
  color: var(--fg-faint);
  letter-spacing: 0.12em;
}
@media (max-width: 1000px) {
  .social-feed { grid-template-columns: repeat(2, 1fr); }
}

/* market intel */
.market-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}
.mi-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mi-card.big { grid-row: span 2; }
.mi-eyebrow {
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.mi-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.mi-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mi-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mi-stats span {
  font-size: 8.5px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
}
.mi-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: pretty;
}
.mi-attr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8.5px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.bp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.bp-row:last-of-type { border-bottom: none; }
.bp-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

@media (max-width: 1000px) {
  .market-grid { grid-template-columns: 1fr 1fr; }
  .mi-card.big { grid-row: span 1; grid-column: span 2; }
}

/* seller strategy */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ss-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ss-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.ss-card p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.ss-tag {
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* buyer strategy */
.bs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bs-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bs-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.bs-row:last-child { border-bottom: none; }
.bs-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: white;
}
.bs-n { font-size: 14px; font-weight: 500; }
.bs-t { font-size: 9px; color: var(--fg-muted); letter-spacing: 0.12em; margin-top: 3px; }
.bs-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bs-score strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bs-score span { font-size: 8px; letter-spacing: 0.14em; }

.bs-msg {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.bs-msg-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.12em;
}
.bs-msg-body {
  padding: 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bs-msg-body strong { font-weight: 600; }
.bs-msg-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
}

@media (max-width: 880px) {
  .bs-grid { grid-template-columns: 1fr; }
  .ss-grid { grid-template-columns: 1fr; }
}

/* graphics */
.gfx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gfx-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.gfx-eyebrow {
  font-size: 9.5px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.gfx-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

.dom-vis {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.dom-dial {
  width: 100px;
  height: 100px;
  position: relative;
}
.dom-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dom-center strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dom-center span { font-size: 8.5px; color: var(--fg-muted); letter-spacing: 0.14em; }
.dom-stat {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  flex: 1;
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: auto;
}
.sw-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.sw-cell strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sw-cell span { font-size: 9px; color: var(--fg-muted); letter-spacing: 0.12em; }

/* prompter big */
.pp-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pp-mode-tabs {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px;
}
.pp-mode {
  background: none;
  border: none;
  padding: 8px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 2px;
}
.pp-mode.active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pp-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.pp-play {
  background: #0A0A0A;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.prompter-stage {
  position: relative;
  background: #0A0A0A;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.prompter-screen.big {
  background: #0A0A0A;
  height: 360px;
  padding: 64px 80px;
  overflow-y: auto;
  scrollbar-width: none;
}
.prompter-screen.big::-webkit-scrollbar { display: none; }
.prompter-text.big {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-weight: 400;
}
.prompter-text.big p { color: rgba(255,255,255,0.92); text-wrap: balance; }
.prompter-text.big em { color: #FFD9C7; font-style: italic; }
.prompter-text.big strong { color: white; font-weight: 600; }
.prompter-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.95) 0%, transparent 18%, transparent 82%, rgba(10,10,10,0.95) 100%);
}

.pp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pp-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-card-n {
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}
.pp-card-t {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pp-card-b {
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .pp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .pp-cards { grid-template-columns: 1fr; }
}

/* responsive: anatomy */
@media (max-width: 980px) {
  .anatomy-grid { grid-template-columns: 1fr; }
}
