:root {
  color-scheme: light;
  --ink: #1d2528;
  --muted: #5d6a70;
  --line: #d8e0e0;
  --panel: #ffffff;
  --surface: #f5f7f6;
  --accent: #0d7f78;
  --accent-dark: #09615c;
  --warm: #c46c3d;
  --shadow: 0 18px 44px rgba(30, 45, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: inherit;
}

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

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.nav-links a {
  text-decoration: none;
}

.hero {
  min-height: 520px;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 23, 24, 0.76), rgba(12, 23, 24, 0.24) 58%, rgba(12, 23, 24, 0.08));
}

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

.hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
  color: white;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

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

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.eyebrow,
.product-type {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.18rem;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d4d4;
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--accent-dark);
  background: #eef8f6;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: #dff1ef;
}

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

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

.button.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.button.light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button.full {
  width: 100%;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.product-list {
  display: grid;
  gap: 16px;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.product p:not(.product-type) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.slot-date {
  grid-column: 1 / -1;
}

.product-action {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.basket {
  padding: 22px;
}

.basket h2 {
  margin-bottom: 18px;
}

.basket-items {
  display: grid;
  gap: 12px;
  min-height: 70px;
}

.empty {
  color: var(--muted);
  margin: 0;
}

.basket-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.basket-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.remove {
  border: 0;
  color: #9a321b;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-size: 1.15rem;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.payload {
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #163336;
  font-size: 0.9rem;
  line-height: 1.55;
}

.status {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #b7d8d5;
  border-radius: 6px;
  color: #07524e;
  background: #eef8f6;
  font-weight: 700;
}

.status.error {
  border-color: #e4b6a8;
  color: #8d2b16;
  background: #fff2ed;
}

.test-output-heading p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .hero {
    min-height: 470px;
  }

  .split,
  .form-grid,
  .product {
    grid-template-columns: 1fr;
  }

  .product-action {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy {
    padding-bottom: 44px;
  }

  .section {
    padding: 38px 0;
  }
}
