:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef2e9;
  --ink: #1f241f;
  --muted: #656d63;
  --line: rgba(31, 36, 31, 0.14);
  --line-strong: rgba(31, 36, 31, 0.22);
  --green: #245f43;
  --green-dark: #173a2b;
  --amber: #a96f23;
  --red: #aa342e;
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px 0 rgba(0, 0, 0, 0.04);
  --shadow-border-hover:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.06);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

p,
li,
figcaption,
label,
textarea,
input,
select,
button {
  text-wrap: pretty;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 32px;
  border-radius: 7px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--green), var(--amber)) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 -8px 0 rgba(36, 95, 67, 0.12);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 2px;
  background: rgba(36, 95, 67, 0.42);
}

.brand-mark::before {
  top: 9px;
}

.brand-mark::after {
  top: 15px;
  right: 11px;
}

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

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 44px 0 70px;
}

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

.hero-copy h1,
.kit-header h1,
.single-panel h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  max-width: 900px;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.hero-actions,
.kit-actions,
.checkout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
  white-space: normal;
}

.button:active {
  scale: 0.96;
}

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

.button.primary:hover {
  background: #102c20;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-border);
}

.button.secondary:hover {
  box-shadow: var(--shadow-border-hover);
}

.product-shot {
  position: relative;
  margin: 0;
  border-radius: 10px;
  background: var(--surface);
  min-height: 520px;
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.product-shot img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #f7f8f4;
}

.product-shot.is-missing {
  background:
    linear-gradient(90deg, rgba(36, 95, 67, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 95, 67, 0.08) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
}

.product-shot.is-missing img {
  display: none;
}

.product-shot figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-border);
}

.product-shot figcaption span {
  color: var(--muted);
}

.workbench,
.kit-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 64px 0;
}

.form-panel,
.packet-list,
.single-panel,
.record-card,
.empty-state,
.pricing-band,
.summary-strip {
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
}

.form-panel,
.packet-list,
.single-panel,
.empty-state,
.pricing-band {
  padding: 22px;
}

.form-panel h2,
.packet-list h2,
.record-column h2,
.pricing-band h2 {
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.stacked-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 710;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(36, 95, 67, 0.16);
  border-color: var(--green);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.packet-list ul {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.packet-list li {
  display: grid;
  gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.packet-list span {
  color: var(--muted);
}

.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0 76px;
  background: #fdfdfb;
}

.pricing-band.compact {
  margin-top: 0;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.price-row article {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.price-row h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.price-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.kit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 42px 0 26px;
}

.kit-header p {
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
}

.summary-strip div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip strong {
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.summary-strip span {
  color: var(--muted);
}

.notice {
  margin: 0 0 16px;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
}

.notice.error {
  color: var(--red);
}

.notice.success {
  color: var(--green);
}

.record-column {
  min-width: 0;
}

.record-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.record-card {
  padding: 18px;
  transition-property: box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.record-card:hover {
  box-shadow: var(--shadow-border-hover);
}

.record-card h3 {
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.record-card > div:first-child p {
  margin-top: 4px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 16px 0 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.record-note {
  margin-top: 14px;
  color: var(--ink);
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  color: var(--green);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.empty-state {
  margin-top: 14px;
}

.empty-state h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.single-panel {
  max-width: 740px;
  margin: 72px auto;
}

.single-panel p {
  margin: 16px 0 22px;
  font-size: 18px;
}

.checkout-row {
  margin-top: 0;
}

.checkout-row form {
  display: contents;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 720px;
}

@media (max-width: 860px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
  }

  nav {
    gap: 12px;
  }

  .hero-grid,
  .workbench,
  .kit-grid,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 28px;
  }

  .product-shot,
  .product-shot img {
    min-height: 340px;
  }

  .kit-header {
    display: grid;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip div:nth-child(2) {
    border-right: 0;
  }

  .summary-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .two-col,
  .price-row,
  dl {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero-copy h1,
  .kit-header h1,
  .single-panel h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .kit-actions,
  .checkout-row {
    width: 100%;
  }
}
