:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #64748b;
  --line: #d8dee8;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
  --warning: #b45309;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef3f8;
}

a {
  color: inherit;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.topbar.storefront {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.store-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f1f25;
}

.store-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 19, 23, 0.82) 0%, rgba(8, 19, 23, 0.54) 38%, rgba(8, 19, 23, 0.12) 72%);
}

.store-hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding: 72px 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-hero-copy .eyebrow {
  color: #7dd3fc;
}

.store-hero-copy h1 {
  max-width: 600px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 850;
}

.store-hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button.hero-button {
  width: auto;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button.hero-button.scenario-button {
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(15, 23, 42, 0.34);
  color: #fff;
}

.button.hero-button.scenario-button:hover {
  background: rgba(15, 23, 42, 0.58);
}

.text-link {
  color: #e0f2fe;
  font-weight: 800;
  text-decoration: none;
}

.store-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.store-band-inner {
  max-width: 1180px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.store-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.store-section-head h2,
.store-split h2 {
  max-width: 560px;
  margin: 0;
  font-size: 32px;
  line-height: 1.14;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-media {
  height: 260px;
  background-color: #dbeafe;
  background-position: center;
  background-size: cover;
}

.product-media.shell-jacket {
  background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(37, 99, 235, 0.1)), url("/assets/hero-jacket.png");
}

.product-media.trail-pack {
  background:
    radial-gradient(circle at 38% 35%, #334155 0 10%, transparent 11%),
    linear-gradient(145deg, #cbd5e1 0 22%, #475569 23% 54%, #0f766e 55% 70%, #e2e8f0 71%);
}

.product-media.base-layer {
  background:
    radial-gradient(circle at 50% 18%, #e2e8f0 0 8%, transparent 9%),
    linear-gradient(135deg, #164e63 0 28%, #0f766e 29% 46%, #f8fafc 47% 64%, #64748b 65%);
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.product-info p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-info a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.store-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
}

.store-split > div:first-child {
  padding: 28px 0;
}

.store-split .muted {
  max-width: 650px;
  margin: 16px 0 0;
  line-height: 1.65;
}

.lab-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lab-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.lab-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.collector-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.shell {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 410px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
  margin-bottom: 18px;
}

h3 {
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.15);
}

.button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  width: auto;
  background: #e2e8f0;
  color: #0f172a;
}

.button.danger {
  background: var(--danger);
}

.summary-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.product-img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  border: 1px solid var(--line);
}

.price-line,
.total-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.total-line {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.stripe-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice {
  padding: 12px 14px;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #7c2d12;
  border-radius: 8px;
  font-size: 14px;
}

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

.scenario {
  display: block;
  min-height: 130px;
  padding: 18px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scenario strong {
  display: block;
  margin-bottom: 8px;
}

.scenario span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.scenario-action {
  width: auto;
  min-width: 158px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7c5d5;
  background: #ffffff;
  color: #12313b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.scenario-action:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.14);
  transform: translateY(-1px);
}

.scenario-action:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.1);
}

.toolbar .scenario-action:first-child,
.section > .scenario-action:first-of-type {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.toolbar .scenario-action:first-child:hover,
.section > .scenario-action:first-of-type:hover {
  background: #115e59;
  border-color: #115e59;
}

.log {
  margin-top: 18px;
  padding: 14px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.collector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.collector-head p {
  margin: 8px 0 0;
}

.collector-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.collector-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.collector-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.collector-stats strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.collector-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.collector-event {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.collector-event-top,
.collector-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.collector-event-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.collector-event-top strong {
  margin-right: 8px;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.collector-event-top span,
.collector-event-top time,
.collector-meta {
  color: var(--muted);
  font-size: 13px;
}

.collector-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.collector-event pre {
  max-height: 260px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #0f172a;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .checkout-grid,
  .scenario-grid,
  .product-grid,
  .store-split,
  .collector-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .store-hero {
    min-height: 680px;
    align-items: end;
  }

  .store-hero::after {
    background: linear-gradient(0deg, rgba(8, 19, 23, 0.88) 0%, rgba(8, 19, 23, 0.42) 68%, rgba(8, 19, 23, 0.16) 100%);
  }

  .store-hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px;
    padding: 56px 0;
  }

  .store-hero-copy h1 {
    font-size: 42px;
  }

  .store-band-inner {
    min-height: auto;
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .store-section {
    padding: 44px 18px;
  }

  .collector-head,
  .collector-event-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
