:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f6;
  color: #172026;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7f6;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.site-header nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
}

.site-header nav {
  gap: 8px;
}

.site-header nav a,
.secondary,
.primary {
  border: 1px solid rgba(23, 32, 38, .14);
  border-radius: 8px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.site-header nav a {
  padding: 10px 13px;
  background: rgba(255, 255, 255, .78);
  font-size: .9rem;
  font-weight: 700;
}

.site-header nav a:hover,
.secondary:hover,
.primary:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 49, 47, .45);
}

.hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  min-height: min(580px, calc(100vh - 120px));
  margin: 0 auto;
  padding: 64px 0 42px;
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-product-scene {
  position: absolute;
  inset: 18px 0 18px auto;
  width: min(520px, 48vw);
  pointer-events: none;
  opacity: .9;
}

.scene-window {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(100%, 500px);
  border: 1px solid rgba(23, 32, 38, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 70px rgba(23, 32, 38, .14);
  padding: 14px;
}

.scene-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.scene-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 32, 38, .18);
}

.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 10px;
}

.scene-alert,
.scene-map,
.scene-message {
  min-width: 0;
  border: 1px solid rgba(23, 32, 38, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
}

.scene-alert {
  padding: 14px;
}

.scene-kicker,
.scene-message span {
  display: block;
  color: #9f1f25;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scene-alert strong,
.scene-message strong {
  display: block;
  color: #172026;
}

.scene-alert strong {
  margin-top: 6px;
  font-size: 1.1rem;
  line-height: 1.15;
}

.scene-alert small {
  display: block;
  margin-top: 6px;
  color: #66757e;
  line-height: 1.35;
}

.scene-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.scene-action-row span {
  min-height: 28px;
  border-radius: 7px;
  background: #b71418;
  color: #fff;
  padding: 6px 9px;
  font-size: .72rem;
  font-weight: 850;
}

.scene-action-row span + span {
  background: #eef5f2;
  color: #0f6b5b;
}

.scene-map {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  background:
    linear-gradient(90deg, rgba(15, 107, 91, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 107, 91, .08) 1px, transparent 1px),
    #f4f8f6;
  background-size: 34px 34px;
}

.scene-road,
.scene-location {
  position: absolute;
  display: block;
}

.scene-road {
  height: 3px;
  border-radius: 999px;
  background: rgba(23, 32, 38, .2);
}

.road-a {
  width: 140px;
  top: 54px;
  left: -16px;
  transform: rotate(22deg);
}

.road-b {
  width: 160px;
  right: -22px;
  bottom: 45px;
  transform: rotate(-35deg);
}

.scene-location {
  width: 18px;
  height: 18px;
  top: 58px;
  left: 72px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #b71418;
  box-shadow: 0 0 0 8px rgba(183, 20, 24, .16);
}

.scene-message {
  grid-column: 1 / -1;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9f1f25;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: #34434b;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.55;
}

.hero-context {
  max-width: 660px;
  margin: -4px 0 0;
  color: #4d5c64;
  font-size: 1rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.safety-line {
  max-width: 680px;
  margin: 22px 0 0;
  color: #66757e;
  font-size: .95rem;
  line-height: 1.45;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 800;
}

.primary {
  background: #b71418;
  border-color: #b71418;
  color: #fff;
}

.secondary {
  background: rgba(255, 255, 255, .82);
}

.shop-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 44px;
  padding: 28px 0 10px;
}

.shop-copy {
  max-width: 720px;
}

.shop-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.shop-copy p,
.shop-note {
  color: #34434b;
  line-height: 1.58;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, .1);
  border-radius: 8px;
  background: rgba(23, 32, 38, .1);
}

.price-table div {
  min-width: 0;
  background: rgba(255, 255, 255, .88);
  padding: 16px;
}

.price-table strong,
.price-table span {
  display: block;
}

.price-table span {
  margin-top: 5px;
  color: #66757e;
  line-height: 1.35;
}

.shop-card {
  border: 1px solid rgba(23, 32, 38, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 60px rgba(23, 32, 38, .12);
  padding: 22px;
}

.shop-card-header,
.cart-total,
.cart-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.shop-card-header {
  margin-bottom: 18px;
}

.shop-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-total strong {
  white-space: nowrap;
}

.shop-field {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
}

.shop-field span {
  color: #34434b;
  font-size: .88rem;
  font-weight: 750;
}

.shop-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(23, 32, 38, .16);
  border-radius: 7px;
  background: #fff;
  color: #172026;
  padding: 0 11px;
  font: inherit;
}

.module-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.module-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #34434b;
  font-size: .88rem;
  font-weight: 750;
}

.module-note {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: #66757e;
  font-size: .84rem;
  line-height: 1.35;
}

.module-picker label {
  min-width: 0;
  border: 1px solid rgba(23, 32, 38, .14);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  cursor: pointer;
}

.module-picker input {
  margin: 2px 0 0;
  accent-color: #b71418;
}

.module-picker strong,
.module-picker small {
  display: block;
}

.module-picker strong {
  color: #172026;
  font-size: .94rem;
  line-height: 1.1;
}

.module-picker small {
  margin-top: 4px;
  color: #66757e;
  font-size: .78rem;
  line-height: 1.2;
}

.module-picker label:has(input:checked) {
  border-color: rgba(183, 20, 24, .48);
  background: #fff7f7;
}

.addon-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid rgba(23, 32, 38, .14);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.addon-option input {
  margin: 3px 0 0;
  accent-color: #b71418;
}

.addon-option strong,
.addon-option small {
  display: block;
}

.addon-option strong {
  color: #172026;
  font-size: .96rem;
}

.addon-option small {
  margin-top: 3px;
  color: #66757e;
  line-height: 1.3;
}

.addon-option:has(input:checked) {
  border-color: rgba(183, 20, 24, .48);
  background: #fff7f7;
}

.cart-breakdown {
  margin: 12px 0 6px;
  border-top: 1px solid rgba(23, 32, 38, .08);
}

.cart-breakdown summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #34434b;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.cart-lines {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
}

.cart-line {
  padding: 0;
  flex-wrap: wrap;
}

.cart-line span,
.cart-line small {
  color: #66757e;
}

.cart-line small {
  flex: 1 1 100%;
}

.cart-total {
  border-top: 1px solid rgba(23, 32, 38, .16);
  margin: 14px 0 18px;
  padding-top: 14px;
  font-size: 1.1rem;
}

.checkout-fields {
  display: grid;
  gap: 2px;
}

.full-width {
  width: 100%;
}

.shop-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #66757e;
  line-height: 1.42;
}

.shop-status[data-status-level="ok"] {
  color: #0f6b5b;
}

.shop-status[data-status-level="warning"] {
  color: #7a5300;
}

.shop-status[data-status-level="error"] {
  color: #9f1f25;
}

footer {
  flex-wrap: wrap;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #66757e;
  font-size: .92rem;
}

footer a {
  text-decoration: none;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.legal-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.legal-page h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.legal-page p,
.legal-page li {
  color: #34434b;
  line-height: 1.62;
}

.legal-page ul {
  padding-left: 20px;
}

.notice {
  border: 1px solid rgba(183, 20, 24, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  padding: 16px;
}

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

  .site-header nav,
  .actions {
    width: 100%;
  }

  .site-header nav a,
  .primary,
  .secondary {
    flex: 1 1 180px;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 28px;
  }

  .hero-product-scene {
    position: relative;
    inset: auto;
    width: 100%;
    order: 2;
    margin-top: 28px;
    opacity: 1;
  }

  .scene-window {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .scene-map {
    min-height: 128px;
  }

  .shop-section,
  .price-table,
  .module-picker {
    grid-template-columns: 1fr;
  }
}
