:root {
  --wine: #64012d;
  --wine-dark: #380119;
  --wine-deep: #240110;
  --gold: #ffe72b;
  --gold-soft: #fff5a8;
  --bg: #ffffff;
  --bg-soft: #f6f3f5;
  --ink: #1b1116;
  --ink-soft: #4c3b43;
  --ink-muted: #75626b;
  --border: rgba(36, 1, 16, 0.12);
  --border-dark: rgba(255, 231, 43, 0.24);
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(100, 1, 45, 0.08);
  color: var(--wine);
}

.hero code,
.section-wine code {
  background: rgba(255, 231, 43, 0.14);
  color: var(--gold);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 36px, 1140px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(100, 1, 45, 0.2);
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--wine);
}

.brand-text span {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--wine);
  font-weight: 600;
}

.btn-topbar {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--wine);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 1. HERO */
.hero {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #ffffff;
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 231, 43, 0.14);
  border: 1px solid rgba(255, 231, 43, 0.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.1vw, 46px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
}

.hero-sub strong {
  color: var(--gold);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--wine-deep);
  font-weight: 700;
  font-size: 14.5px;
}

.btn-ghost {
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
}

.hero-summary-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 231, 43, 0.25);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}

.summary-header img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.summary-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold);
}

.summary-header span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.summary-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.check-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine-deep);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.summary-list strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
}

.summary-list small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Shared Sections */
.section-white {
  background: var(--bg);
  padding: 76px 0;
}

.section-soft {
  background: var(--bg-soft);
  padding: 76px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-wine {
  background: var(--wine-deep);
  color: #ffffff;
  padding: 76px 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine);
  margin-bottom: 8px;
}

.section-tag-gold {
  color: var(--gold);
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--ink);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* 2. LAYERS (MODO DECISOR) */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.layer-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-card-highlight {
  background: var(--wine);
  border-color: var(--wine);
  color: #ffffff;
}

.layer-step {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wine);
}

.layer-card-highlight .layer-step {
  color: var(--gold);
}

.layer-card h3 {
  font-size: 18.5px;
}

.layer-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.layer-card-highlight p {
  color: rgba(255, 255, 255, 0.86);
}

.layer-card-highlight code {
  background: rgba(255, 231, 43, 0.16);
  color: var(--gold);
}

/* 3. ANCHOR VS EMPLOYEES */
.anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.anchor-card {
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.anchor-card-cost {
  background: var(--bg-soft);
}

.anchor-card-win {
  background: var(--wine);
  color: #ffffff;
  border-color: var(--wine);
}

.anchor-card-top {
  display: grid;
  gap: 8px;
}

.pill-neutral,
.pill-gold {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-neutral {
  background: rgba(36, 1, 16, 0.08);
  color: var(--ink-soft);
}

.pill-gold {
  background: var(--gold);
  color: var(--wine-deep);
}

.anchor-card h3 {
  font-size: 22px;
}

.anchor-price {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.anchor-card-win .anchor-price {
  border-color: rgba(255, 255, 255, 0.16);
}

.anchor-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  color: var(--wine);
}

.anchor-card-win .anchor-price strong {
  color: var(--gold);
}

.anchor-price strong small {
  font-size: 17px;
  font-weight: 600;
}

.anchor-price span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.anchor-card-win .anchor-price span {
  color: rgba(255, 255, 255, 0.8);
}

.anchor-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.anchor-card-win .anchor-list {
  color: rgba(255, 255, 255, 0.9);
}

.roi-callout {
  background: #fdf4f7;
  border: 1px solid rgba(100, 1, 45, 0.18);
  border-left: 4px solid var(--wine);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
}

/* 4. SAAS PREVIEW */
.saas-shell {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(36, 1, 16, 0.08);
}

.saas-header {
  background: var(--wine-deep);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.saas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.saas-brand strong {
  display: block;
  font-size: 14.5px;
  color: var(--gold);
}

.saas-brand span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.saas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saas-tab {
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 600;
}

.saas-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--wine-deep);
}

.saas-panel {
  display: none;
  padding: 24px;
}

.saas-panel.is-active {
  display: block;
}

/* Simulator */
.scenario-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.scenario-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.scenario-head-row > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-live-btn,
.skip-live-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
}

.play-live-btn {
  background: #075e54;
  color: #ffffff;
}

.skip-live-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.scenario-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.sc-btn.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--gold);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.wa-mockup {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(17, 27, 33, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(17, 27, 33, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa-head {
  background: #075e54;
  color: #ffffff;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wa-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.wa-head strong {
  display: block;
  font-size: 14px;
}

.wa-head small {
  font-size: 11.5px;
  color: #b9f6ca;
  font-weight: 500;
}

.wa-head span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.wa-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 340px;
  max-height: 410px;
  overflow-y: auto;
  overflow-x: hidden;
}

.wa-msg {
  max-width: 85%;
  padding: 8px 11px 6px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.42;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  animation: msgPop 180ms ease;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-in {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-top-left-radius: 2px;
}

.wa-out {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 2px;
}

.wa-human {
  align-self: flex-end;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f59e0b;
}

.wa-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 3px;
  font-size: 10.5px;
  color: #667781;
}

.wa-ticks {
  color: #53bdeb;
  font-weight: 700;
}

.wa-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #075e54;
  margin-bottom: 3px;
}

.wa-photo-wrap {
  margin-bottom: 5px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(17, 27, 33, 0.12);
  background: #f0f2f5;
}

.wa-photo-img {
  display: block;
  width: 100%;
  max-width: 240px;
  max-height: 210px;
  object-fit: cover;
  cursor: zoom-in;
}

.wa-photo-cap {
  padding: 5px 8px;
  font-size: 11px;
  color: #54656f;
  background: rgba(255, 255, 255, 0.75);
}

.wa-in .wa-play-btn {
  background: #54656f;
}

.wa-in .wa-audio-player.is-playing .wa-wave-bars i.is-lit {
  background: #075e54;
}

.wa-lightbox[hidden] {
  display: none;
}

.wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wa-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.wa-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 560px);
  max-height: 88vh;
}

.wa-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.wa-lightbox-x {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #111b21;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wa-audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 225px;
  padding: 4px 2px;
}

.wa-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #00a884;
  color: #ffffff;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-wave-wrap {
  flex: 1;
  display: grid;
  gap: 4px;
}

.wa-wave-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
}

.wa-wave-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #8696a0;
  transition: background 120ms ease;
}

.wa-audio-player.is-playing .wa-wave-bars i.is-lit {
  background: #00a884;
}

.wa-audio-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #54656f;
}

.wa-cost-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(7, 94, 84, 0.12);
  color: #075e54;
  font-size: 10.5px;
  font-weight: 700;
}

.wa-typing {
  align-self: flex-end;
  background: #d9fdd3;
  color: #075e54;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
}

.logic-steps li {
  transition: opacity 200ms ease, transform 200ms ease;
}

.logic-steps li.is-pending {
  opacity: 0.35;
}

.logic-steps li.is-current {
  opacity: 1;
  transform: translateX(3px);
}

.logic-steps li.is-current strong {
  color: var(--gold);
}

.logic-box {
  background: var(--wine-deep);
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
}

.logic-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 14px;
}

.logic-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 13px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.logic-steps strong {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* Model Estimator + Billing KPIs */
.panel-note-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-soft);
}

.panel-note-bar strong {
  color: var(--wine);
  font-size: 12.5px;
}

.model-estimator,
.billing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.model-estimator > div,
.billing-kpi {
  background: var(--wine);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
}

.billing-kpi {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.model-estimator small,
.billing-kpi span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
}

.billing-kpi span {
  color: var(--ink-muted);
}

.model-estimator strong,
.billing-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin: 4px 0 2px;
}

.billing-kpi strong {
  font-size: 24px;
  color: var(--wine);
}

.billing-kpi small {
  font-size: 12px;
  color: var(--ink-soft);
}

.budget-meter {
  display: grid;
  gap: 8px;
}

.budget-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.budget-labels strong {
  color: var(--wine);
}

.budget-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #ece4e8;
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  background: var(--wine);
  border-radius: 999px;
  transition: width 200ms ease;
}

.budget-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d97706;
}

.budget-caption {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Config & Handoff Tabs */
.config-cols,
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
}

.panel-card h4 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--wine-deep);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-stack label {
  display: grid;
  gap: 5px;
}

.form-stack span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-stack input,
.form-stack select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

.rules-stack {
  display: grid;
  gap: 10px;
}

.rule-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: left;
}

.rule-toggle strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.rule-toggle small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.pill-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cfc5ca;
  padding: 3px;
  flex-shrink: 0;
  transition: background 150ms ease;
}

.pill-switch i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 150ms ease;
}

.rule-toggle.is-on .pill-switch {
  background: var(--wine);
}

.rule-toggle.is-on .pill-switch i {
  transform: translateX(20px);
  background: var(--gold);
}

/* Handoff */
.chat-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-row {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  text-align: left;
  display: grid;
  gap: 4px;
}

.chat-row.is-selected {
  background: #fdf4f7;
  border-color: var(--wine);
}

.chat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chat-row-top strong {
  font-size: 14px;
}

.chat-row small {
  font-size: 12px;
  color: var(--ink-muted);
}

.chat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-ai {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-human {
  background: var(--warn-bg);
  color: var(--warn);
}

.chat-inspector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.inspector-top strong {
  display: block;
  font-size: 18px;
  font-family: var(--font-display);
}

.inspector-top span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.btn-handoff {
  padding: 9px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--wine);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
}

.btn-handoff.is-human {
  background: var(--ok);
  color: #ffffff;
}

.inspector-summary {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px;
}

.inspector-summary small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 4px;
}

.inspector-summary p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.inspector-hint {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdf4f7;
  border-left: 3px solid var(--wine);
  font-size: 13px;
  color: var(--ink-soft);
}

/* 5. COST BREAKDOWN */
.cost-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.cost-item-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 8px;
}

.cost-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wine);
}

.cost-item-card > strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
}

.cost-item-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.cost-total-banner {
  background: var(--wine);
  color: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
}

.cost-total-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
}

.cost-total-banner span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

/* 6. SCOPE */
.scope-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.scope-box {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
}

.scope-in {
  background: #ffffff;
}

.scope-out {
  background: #ffffff;
}

.scope-box h3 {
  font-size: 19px;
  color: var(--wine-deep);
  margin-bottom: 14px;
}

.scope-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.scope-out p {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}

/* 7. INVESTMENT */
.invest-header {
  max-width: 68ch;
  margin-bottom: 32px;
}

.invest-header h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: #ffffff;
  margin-bottom: 12px;
}

.invest-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.invest-header strong {
  color: var(--gold);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pay-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-card-best {
  background: var(--wine);
  border: 2px solid var(--gold);
}

.pay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-soft);
}

.pay-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--wine-deep);
}

.pay-badge-soft {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.pay-card h3 {
  font-size: 23px;
  color: #ffffff;
}

.pay-amount {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pay-old {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.pay-amount strong {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.1;
  color: var(--gold);
  margin: 4px 0;
}

.pay-amount small {
  font-size: 13px;
  color: var(--gold-soft);
}

.pay-card p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.post-delivery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-delivery > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px;
}

.post-delivery strong {
  display: block;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 4px;
}

.post-delivery span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

/* Footer */
.footer {
  background: #17010a;
  color: rgba(255, 255, 255, 0.78);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 231, 43, 0.18);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .brand-text strong {
  color: var(--gold);
}

.footer .brand-text span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-author {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsive */
@media (max-width: 960px) {
  .topnav {
    display: none;
  }

  .hero-grid,
  .layers-grid,
  .anchor-grid,
  .sim-grid,
  .model-estimator,
  .billing-cards,
  .config-cols,
  .handoff-grid,
  .cost-breakdown-grid,
  .scope-split,
  .payment-grid,
  .post-delivery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero,
  .section-white,
  .section-soft,
  .section-wine {
    padding: 52px 0;
  }

  .topbar-inner {
    min-height: 62px;
    gap: 10px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 14.5px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .btn-topbar {
    padding: 8px 12px;
    font-size: 12px;
  }

  .saas-header,
  .saas-panel {
    padding: 16px;
  }

  .wa-msg {
    max-width: 92%;
  }

  .wa-audio-player {
    min-width: 0;
    width: 100%;
  }
}
