:root {
  --ink: #2a241e;
  --muted: #6f6257;
  --paper: #ffffff;
  --soft: #f8f4ee;
  --line: rgba(184, 137, 79, 0.24);
  --blue: #b8894f;
  --blue-dark: #2a241e;
  --accent: #b8894f;
  --shadow: 0 16px 42px rgba(42, 36, 30, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-grid,
.split {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 68px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: var(--blue);
  font-weight: 900;
}

.brand small,
.eyebrow,
.breadcrumbs,
.card span,
.site-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.nav a {
  text-decoration: none;
  font-weight: 800;
}

.nav a:hover {
  color: var(--accent);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}

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

.button.secondary {
  color: var(--blue);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.door-hero,
.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.door-hero-grid {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.page-hero .container {
  padding: 62px 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  color: inherit;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.hero-summary,
.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.door-hero .eyebrow,
.page-hero .eyebrow,
.breadcrumbs {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs {
  margin-bottom: 12px;
}

.breadcrumbs a {
  text-decoration: none;
}

.door-hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.door-hero-panel span {
  color: #ffcbc7;
  font-weight: 900;
  text-transform: uppercase;
}

.door-hero-panel strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 1.4rem;
}

.section {
  padding: 74px 0;
}

.muted-band {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.card,
.prose,
.product-json-card,
.product-scenario-card,
.product-json-review-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
}

.card p,
.prose,
.check-list,
.product-json-card p,
.product-scenario-card p {
  color: var(--muted);
}

.card a {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--blue-dark);
  color: #fff;
}

.site-footer p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.72);
}

.product-json-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.product-json-hero-grid,
.product-json-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: 64px 0;
}

.product-json-hero h1,
.product-json-cta h2 {
  color: #fff;
}

.product-json-hero p,
.product-json-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.product-tabs-scroll {
  min-height: 58px;
  display: flex;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.product-tab {
  flex: 0 0 auto;
  padding: 18px 0 15px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font-weight: 850;
}

.product-tab.active,
.product-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.product-json-grid {
  display: grid;
  grid-template-columns: repeat(var(--product-grid-columns, 3), minmax(0, 1fr));
  gap: 18px;
}

.product-json-card {
  display: grid;
  gap: 14px;
}

.product-json-card-media,
.product-json-media-placeholder,
.product-json-image-placeholder {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  border-radius: 8px;
  background: var(--soft);
}

.product-json-card-status {
  width: max-content;
  padding: 4px 8px;
  color: #7a4c00;
  border-radius: 999px;
  background: #fff4d8;
  font-size: 0.74rem;
  font-weight: 900;
}

.product-json-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.product-json-specs dd {
  margin: 0;
  color: var(--blue);
  font-weight: 850;
}

.product-json-scenarios,
.product-json-products {
  background: var(--soft);
}

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

.product-json-cta-band {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

@media (max-width: 980px) {
  .header-inner,
  .footer-grid,
  .split,
  .door-hero-grid,
  .product-json-hero-grid,
  .product-json-cta {
    display: grid;
  }

  .card-grid,
  .product-json-grid,
  .product-scenario-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    gap: 10px 14px;
  }

  .header-button {
    width: 100%;
  }

  .card-grid,
  .product-json-grid,
  .product-scenario-grid {
    grid-template-columns: 1fr;
  }
}
