:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-alt: #eef1f7;
  --ink: #181d25;
  --muted: #606977;
  --line: #d9dde5;
  --brand: #2f5f8f;
  --brand-dark: #1f4164;
  --amber: #a9602c;
  --red: #b64334;
  --blue: #2f5f8f;
  --copper: #a9602c;
  --code: #111722;
  --shadow: 0 18px 40px rgba(24, 29, 37, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.brand {
  min-width: 0;
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 95, 143, 0.2);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(24, 29, 37, 0.08);
}

.nav-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.nav-links {
  column-gap: clamp(18px, 2vw, 28px);
  row-gap: 10px;
}

.nav-links .nav-cta {
  min-height: 40px;
  margin-left: 2px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 70px) clamp(36px, 6vw, 70px);
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(31, 65, 100, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(24, 29, 37, 0.12);
}

.hero-actions,
.cta-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  border-color: #c6ceda;
  background: #f8f9fc;
}

.button.disabled {
  cursor: default;
  opacity: 0.66;
}

.hero-visual {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logo-showcase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
}

.logo-showcase img {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(47, 95, 143, 0.16);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.logo-showcase span {
  display: block;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.logo-showcase strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.18;
}

.mapping-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fafbfe;
}

.mapping-preview-row span,
.mapping-preview-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mapping-preview-row em {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(47, 95, 143, 0.12);
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 850;
}

.mapping-preview-row.warning em {
  background: rgba(175, 107, 20, 0.14);
  color: var(--amber);
}

.hero-visual p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.notice-band {
  border-block: 1px solid #e6d7b8;
  padding: 16px clamp(18px, 5vw, 70px);
  background: #fff8ea;
  color: #6f4a12;
  font-weight: 750;
}

.demo-section,
.content-band,
.faq-section,
.cta-band {
  padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 26px 0 14px;
}

.step-heading span,
.step-label {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.step-heading span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(47, 95, 143, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(47, 95, 143, 0.1);
}

.step-heading h3,
.step-heading p,
.step-label {
  margin: 0;
}

.step-heading h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.step-heading p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.scenario-tab {
  min-height: 42px;
  border: 1px solid #c8d3cd;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.scenario-tab[aria-selected="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.panel,
.results-band,
.review-panel,
.json-grid details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel,
.results-band {
  padding: clamp(16px, 3vw, 24px);
}

.panel-heading,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h3,
.results-heading h3,
.review-panel h4 {
  margin: 0;
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf2f8;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.idle {
  background: #eff1f0;
  color: var(--muted);
}

.status-pill.loading {
  background: #ecf3ff;
  color: var(--blue);
}

.status-pill.fake {
  background: #fff3d7;
  color: var(--amber);
}

.status-pill.proxy {
  background: #e8f4ef;
  color: var(--brand-dark);
}

.status-pill.error {
  background: #fbe8e3;
  color: var(--red);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: inline-size;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #43514b;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--ink);
}

.source-table th,
.source-table td {
  min-width: 150px;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.field-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.field-item strong {
  overflow-wrap: anywhere;
}

.field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.action-row {
  justify-content: space-between;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-alt);
}

.action-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.results-band {
  margin-top: 18px;
  box-shadow: 0 12px 28px rgba(24, 32, 28, 0.06);
  opacity: 1;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.results-band.is-pending {
  box-shadow: none;
  filter: saturate(0.55);
  opacity: 0.42;
}

.hidden {
  display: none !important;
}

.empty-state {
  border: 1px dashed #b8c4bd;
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.mapping-table {
  min-width: 980px;
}

.mapping-table select {
  width: 100%;
  min-width: 170px;
  border: 1px solid #c7d2cc;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

.confidence {
  display: grid;
  min-width: 110px;
  gap: 6px;
}

.confidence-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eae6;
}

.confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.confidence.high .confidence-bar span {
  background: var(--brand);
}

.confidence.medium .confidence-bar span {
  background: var(--amber);
}

.confidence.low .confidence-bar span {
  background: var(--red);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: #eef2f7;
  color: #42504a;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.warning {
  background: #fff2d5;
  color: var(--amber);
}

.tag.error {
  background: #fde9e4;
  color: var(--red);
}

.review-grid,
.json-grid,
.workflow-grid,
.use-case-grid {
  display: grid;
  gap: 16px;
}

.review-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  margin-top: 18px;
}

.review-panel {
  padding: 16px;
}

.flag-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.flag-item {
  border-left: 4px solid var(--brand);
  padding: 10px 12px;
  background: #f4f7fb;
}

.flag-item.warning {
  border-color: var(--amber);
  background: #fff8ea;
}

.flag-item.error {
  border-color: var(--red);
  background: #fff0ed;
}

.flag-item strong,
.flag-item span {
  display: block;
}

.flag-item span {
  margin-top: 3px;
  color: var(--muted);
}

pre {
  overflow: auto;
  max-height: 420px;
  margin: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--code);
  color: #e6f0ea;
  font-size: 0.86rem;
  line-height: 1.5;
}

.json-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.json-grid details {
  overflow: hidden;
}

.json-grid summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 850;
}

.json-grid pre {
  border-radius: 0;
}

.content-band {
  background: #fff;
}

.muted-band {
  background: #eef1f7;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.use-case-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.workflow-grid span {
  color: var(--brand);
  font-weight: 900;
}

.workflow-grid h3 {
  margin: 10px 0;
}

.workflow-grid p,
.data-notes p,
.faq-section p,
.cta-band p {
  color: var(--muted);
  line-height: 1.65;
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid article {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  overflow: hidden;
  border-color: #c9d4e2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 252, 0.92)),
    radial-gradient(circle at top right, rgba(47, 95, 143, 0.16), transparent 46%);
  box-shadow: 0 14px 28px rgba(24, 29, 37, 0.06);
}

.use-case-grid article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(47, 95, 143, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.use-case-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(32, 89, 139, 0.98), rgba(17, 67, 111, 0.98));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 22px rgba(24, 29, 37, 0.14);
}

.use-case-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.use-case-icon::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.use-case-grid article:nth-child(2) .use-case-icon,
.use-case-grid article:nth-child(5) .use-case-icon {
  background:
    linear-gradient(135deg, rgba(18, 133, 151, 0.98), rgba(30, 83, 143, 0.98));
}

.use-case-grid article:nth-child(3) .use-case-icon,
.use-case-grid article:nth-child(4) .use-case-icon {
  background:
    linear-gradient(135deg, rgba(150, 83, 35, 0.98), rgba(47, 95, 143, 0.98));
}

.use-case-grid h3 {
  max-width: 280px;
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.15;
}

.use-case-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--brand-dark);
  color: #fff;
}

.cta-band .eyebrow,
.cta-band p {
  color: #c9e4da;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

.cta-actions {
  justify-content: flex-end;
}

.cta-band .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--brand-dark);
}

.cta-band .button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cta-band .button.disabled {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.data-notes {
  background: #fff;
}

.free-tier-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  border-block: 1px solid #ead5bd;
  padding: clamp(34px, 5vw, 56px) clamp(18px, 5vw, 70px);
  background: #fff6e9;
}

.free-tier-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1;
}

.free-tier-band p:last-child {
  margin: 0;
  color: #694016;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 750;
  line-height: 1.55;
}

.data-notes p {
  max-width: 900px;
}

.faq-section {
  background: #fafbfe;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 850;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 70px);
  background: #171c24;
  color: #fff;
}

.footer small {
  color: #d8dee8;
  font-size: 0.95rem;
}

.footer a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero,
  .demo-grid,
  .review-grid,
  .json-grid,
  .workflow-grid,
  .use-case-grid,
  .cta-band,
  .free-tier-band {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .mapping-preview-row {
    grid-template-columns: 1fr;
  }

  .logo-showcase {
    grid-template-columns: 1fr;
  }

  .logo-showcase img {
    width: 82px;
    height: 82px;
  }

  .scenario-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .scenario-tab,
  .button,
  .nav-links .nav-cta {
    width: 100%;
  }

  .step-heading {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .results-heading,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
