:root {
  --bg: #f3eee5;
  --ink: #18222d;
  --muted: #66717f;
  --panel: rgba(255, 252, 247, 0.95);
  --panel-strong: #fffaf4;
  --line: #ddd2c2;
  --navy: #14384f;
  --navy-soft: #e8eff5;
  --gold: #b17822;
  --gold-soft: #fbf0de;
  --green: #1c6c52;
  --green-soft: #e7f3ed;
  --red: #964c43;
  --red-soft: #f8e7e4;
  --purple: #765f9a;
  --purple-soft: #efe9f7;
  --orange: #bf7849;
  --orange-soft: #faede4;
  --slate: #5d6c7b;
  --slate-soft: #e8edf1;
  --shadow: 0 22px 60px rgba(18, 27, 35, 0.08);
  --shadow-soft: 0 10px 28px rgba(18, 27, 35, 0.05);
  --radius: 24px;
  --maxw: 1220px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(177, 120, 34, 0.16), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(20, 56, 79, 0.10), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 54%, #efe7db 100%);
  font: 16px/1.68 "Iowan Old Style", "Georgia", "Palatino Linotype", serif;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

.shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 242, 0.82);
  border-bottom: 1px solid rgba(20, 56, 79, 0.08);
}

.topbar-inner,
.main,
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  white-space: nowrap;
  color: var(--navy);
  font: 700 18px/1.05 "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

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

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font: 13px/1.2 "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a.active,
.nav a:hover {
  background: rgba(20, 56, 79, 0.08);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.mobile-dock {
  display: none;
}

.asof,
.section-note,
.metric-label,
.footer-copy,
.mini,
.line-item,
.price-note,
.price-badge,
.status-note,
.bar-text,
.bar-n,
.prob-card span,
th,
td,
.legend-row,
.atlas-meta {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.asof {
  margin-left: auto;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.main {
  padding-top: 34px;
  padding-bottom: 60px;
}

.hero,
.panel,
.wide,
.screen,
.metric-card,
.price-card {
  background: var(--panel);
  border: 1px solid rgba(20, 56, 79, 0.10);
  box-shadow: var(--shadow);
}

.compare-launcher {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 241, 224, 0.96));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 36px;
  margin-bottom: 28px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(177, 120, 34, 0.16), transparent 70%);
}

.eyebrow,
.mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font: 12px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { margin-bottom: 14px; }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.mini-kicker { margin-bottom: 10px; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.12;
}

h1 {
  max-width: 940px;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.03em;
}

h2 { font-size: 31px; letter-spacing: -0.03em; }
h3 { font-size: 22px; letter-spacing: -0.025em; }
p { margin: 0; }

.lede {
  max-width: 860px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}

.lede.tight {
  max-width: none;
  font-size: 21px;
}

.actions,
.chips,
.hero-ribbon,
.topic-head,
.legend-row,
.filter-row,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions { margin-top: 22px; }
.section-gap { margin-top: 18px; }
.mini-space { margin-top: 8px; display: block; }

.btn,
.badge,
.chip-btn,
.pill {
  border-radius: 999px;
  font: 13px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(20, 56, 79, 0.18);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn.primary {
  background: linear-gradient(180deg, #1a435f 0%, #14384f 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 56, 79, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}

.badge.blue { background: var(--navy-soft); color: var(--navy); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.slate { background: var(--slate-soft); color: var(--slate); }

.chip-btn {
  padding: 9px 12px;
  border: 1px solid rgba(20, 56, 79, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.chip-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.chip-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 56, 79, 0.28);
}

.subtle-chip {
  background: rgba(255, 250, 244, 0.92);
}

.hero-ribbon span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(20, 56, 79, 0.08);
  font: 13px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.section { margin-top: 34px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-note,
.metric-label,
.footer-copy,
.mini,
.line-item,
.price-note,
.price-badge,
.status-note,
.bar-text,
.bar-n,
.prob-card span,
th,
td {
  color: var(--muted);
  font-size: 13px;
}

.grid-2,
.grid-3,
.split,
.cloud-layout,
.cloud-rail,
.metric-grid,
.feature-lead-grid,
.proof-strip,
.order-shell,
.form-grid,
.compare-grid {
  display: grid;
  gap: 18px;
}

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: 1.05fr 0.95fr; }
.cloud-layout { grid-template-columns: 1.1fr 0.9fr; }
.cloud-rail { grid-template-columns: 1fr; align-content: start; }
.feature-lead-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-shell { grid-template-columns: 1.1fr 0.9fr; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel,
.wide,
.screen,
.metric-card,
.price-card {
  padding: 24px;
  border-radius: var(--radius);
}

.metric-value {
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
}

.stack,
.faq {
  display: grid;
  gap: 14px;
}

.compact { gap: 10px; }

.story,
.line-item,
.watch-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 56, 79, 0.08);
}

.story-card,
.topic-card,
.bundle-card,
.feature-journey {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-card:hover,
.topic-card:hover,
.bundle-card:hover,
.feature-journey:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(20, 56, 79, 0.16);
}

.callout {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid rgba(177, 120, 34, 0.16);
}

.feature-card,
.proof-card,
.quote-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(20, 56, 79, 0.10);
  box-shadow: var(--shadow);
}

.news-stage {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 239, 226, 0.92));
}

.story-title {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.story-title a {
  color: var(--navy);
}

.feature-card h3,
.proof-card h3 {
  margin-bottom: 8px;
}

.proof-value {
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.proof-label {
  margin-top: 8px;
  color: var(--navy);
  font: 600 14px/1.4 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.proof-note {
  margin-top: 8px;
  color: var(--muted);
  font: 13px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.screen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(252, 246, 234, 0.96));
}

.screen-head,
.preview-head,
.dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.cloud-field {
  min-height: 420px;
}

.cloud-rail {
  position: sticky;
  top: 108px;
  gap: 14px;
}

.compare-tray-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 239, 226, 0.94));
}

.cloud-panel {
  min-height: 620px;
}

.entity-tabs {
  padding: 6px;
  border-radius: 18px;
  background: rgba(20, 56, 79, 0.05);
}

.entity-stage,
.product-stage {
  min-height: 200px;
}

.entity-stage {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 56, 79, 0.08);
}

.guided-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.order-workspace {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 241, 231, 0.96));
}

.quote-rail {
  display: grid;
  gap: 18px;
}

.product-tabs {
  padding: 6px;
  border-radius: 18px;
  background: rgba(20, 56, 79, 0.05);
}

.product-tabs .chip-btn,
.entity-tabs .chip-btn {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}

.product-stage {
  padding: 8px 0 0;
}

.quick-assurance {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(251, 243, 228, 0.94));
}

.cloud-wrap {
  text-align: center;
  line-height: 2.25;
}

.cloud-token {
  margin: 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: transform 120ms ease, opacity 120ms ease;
}

.cloud-token:hover,
.cloud-token.selected {
  transform: translateY(-1px);
  opacity: 0.85;
}

.tone-blue { color: #5b8db7; }
.tone-gold { color: var(--gold); }
.tone-green { color: #4f8d6b; }
.tone-red { color: #c55e58; }
.tone-purple { color: var(--purple); }
.tone-orange { color: var(--orange); }
.tone-slate { color: var(--slate); }

.cloud-panel .preview-question {
  margin-top: 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.24;
}

.order-shell {
  align-items: start;
}

.quote-card {
  position: sticky;
  top: 108px;
}

.bundle-card .price-badge,
.feature-journey .price-badge {
  display: inline-block;
}

.topic-card p,
.bundle-card p,
.feature-journey p {
  color: var(--muted);
}

.prob-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prob-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 56, 79, 0.08);
}

.prob-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--navy);
  font: 600 13px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 56, 79, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: 14px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.range-shell {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 56, 79, 0.08);
}

.range-shell input {
  width: 100%;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font: 12px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.frontier-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 56, 79, 0.08);
}

.mini-stat strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.mini-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 12px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  color: var(--navy);
  font: 13px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.bar-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bar {
  height: 10px;
  border-radius: 999px;
}

.bar.blue { background: #5b8db7; }
.bar.green { background: #5b9d77; }
.bar.red { background: #c55e58; }

.bar-text.blue { color: #5b8db7; }
.bar-text.green { color: #5b9d77; }
.bar-text.red { color: #c55e58; }

.table-wrap { overflow-x: auto; }
.mobile-card-list { display: none; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(20, 56, 79, 0.08);
  vertical-align: top;
}

th {
  color: var(--navy);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
}

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

.pill-red {
  background: var(--red-soft);
  color: var(--red);
}

.queue-story h3 { margin-top: 10px; }

.dossier-shell { padding: 28px; }
.soft { background: rgba(255, 255, 255, 0.74); }

.price-card.featured {
  outline: 2px solid rgba(177, 120, 34, 0.24);
  transform: translateY(-6px);
}

.price-badge {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.price {
  margin-top: 10px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
}

.footer {
  border-top: 1px solid rgba(20, 56, 79, 0.08);
  background: rgba(255, 250, 244, 0.72);
}

.footer-inner {
  padding-top: 22px;
  padding-bottom: 28px;
  display: grid;
  gap: 8px;
}

.subtle { opacity: 0.92; }

@media (max-width: 1040px) {
  .metric-grid,
  .feature-lead-grid,
  .proof-strip,
  .grid-3,
  .grid-2,
  .split,
  .cloud-layout,
  .cloud-rail,
  .frontier-row,
  .mini-grid,
  .order-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cloud-panel,
  .entity-stage,
  .product-stage {
    min-height: 0;
  }

  .screen-head,
  .preview-head,
  .dossier-top,
  .section-head,
  .topbar-inner {
    display: block;
  }

  .quote-card {
    position: static;
  }

  .asof {
    margin-left: 0;
    margin-top: 14px;
    text-align: left;
  }

  .cloud-rail,
  .quote-card {
    position: static;
    top: auto;
  }

  .nav {
    margin-top: 14px;
  }
}

@media (max-width: 700px) {
  .topbar-inner,
  .main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .panel,
  .wide,
  .screen,
  .metric-card,
  .price-card,
  .feature-card,
  .proof-card,
  .quote-card {
    padding: 18px;
    border-radius: 20px;
  }

  .main {
    padding-top: 18px;
    padding-bottom: 92px;
  }

  .topbar {
    position: static;
  }

  h1 { font-size: 34px; }
  .lede,
  .lede.tight { font-size: 17px; }

  .prob-row,
  .bar-row,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .entity-tabs,
  .product-tabs {
    gap: 8px;
  }

  .entity-tabs .chip-btn,
  .product-tabs .chip-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .entity-stage {
    padding: 14px;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .bar-pair {
    flex-wrap: wrap;
  }

  .cloud-wrap {
    line-height: 1.9;
  }

  .cloud-token {
    margin: 0 6px;
    transform: scale(0.78);
    transform-origin: center;
  }

  .table-wrap {
    display: none;
  }

  .mobile-card-list {
    display: grid;
    gap: 12px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 56, 79, 0.10);
    box-shadow: 0 12px 30px rgba(20, 30, 39, 0.14);
  }

  .dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    color: var(--muted);
    font: 12px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
  }

  .dock-item.active {
    background: rgba(20, 56, 79, 0.10);
    color: var(--navy);
    font-weight: 600;
  }
}
