:root {
  --ink: #171815;
  --muted: #62675e;
  --line: #dfe4dc;
  --paper: #fbfcf8;
  --white: #ffffff;
  --green: #2f6b4f;
  --green-dark: #214934;
  --mint: #e5f2e6;
  --coral: #d95b3f;
  --gold: #b68125;
  --blue: #edf5fb;
  --shadow: 0 18px 45px rgba(28, 35, 27, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hanken Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #172019;
  color: #f5fff2;
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(229, 242, 230, 0.86), rgba(237, 245, 251, 0.72)),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 42px;
  padding: 54px 0 30px;
  align-items: start;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 10px 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lede {
  max-width: 730px;
  color: #33382f;
  font-size: 20px;
}

.hero-actions,
.card-actions,
.kit-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

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

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  color: var(--green-dark);
  border-color: #b8cdbc;
  background: var(--white);
}

.btn-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: #f4f6f0;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.source-strip div,
.fit-card,
.pick-card,
.kit,
.measure-table,
.faq details,
.photo-form,
.cart-drawer,
.solve-box,
.brief-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.source-strip div {
  padding: 12px;
  min-height: 74px;
}

.source-strip strong,
.source-strip span {
  display: block;
}

.source-strip strong {
  font-size: 14px;
}

.source-strip span {
  color: var(--muted);
  font-size: 13px;
}

.quick-answer {
  padding: 22px;
  border-radius: var(--radius);
  color: #f8fff4;
  background: #172019;
  box-shadow: var(--shadow);
}

.quick-answer h2 {
  color: #fff;
  font-size: 25px;
}

.quick-answer p {
  color: #dbe8d8;
}

.quick-answer ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.quick-answer li {
  margin: 8px 0;
}

.section {
  padding: 42px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

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

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.fit-card {
  padding: 18px;
}

.fit-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.fit-card li {
  margin: 8px 0;
}

.warning {
  border-color: #efc8b9;
  background: #fff7f4;
}

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

.pick-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pick-card .media {
  position: relative;
  aspect-ratio: 1 / 0.74;
  display: grid;
  place-items: center;
  background: #eef3ec;
  border-bottom: 1px solid var(--line);
}

.pick-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.pick-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #294230;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-size: 24px;
  font-weight: 900;
}

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

.pick-list {
  padding-left: 18px;
  margin: 0;
  color: #343930;
  font-size: 14px;
}

.pick-list li {
  margin: 6px 0;
}

.kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 22px;
  background: linear-gradient(120deg, #ffffff, #edf5fb);
}

.kit-items {
  display: grid;
  gap: 10px;
}

.kit-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.measure-table {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #29322a;
  background: #eef4ed;
  font-size: 13px;
}

td {
  color: #30362e;
}

.photo-form {
  padding: 20px;
  background: #172019;
  color: #f7fff4;
}

.photo-form h2,
.photo-form h3 {
  color: #fff;
}

.photo-form p {
  color: #d9e7d5;
}

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

label {
  display: grid;
  gap: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d3c7;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #f6e3ac;
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.28);
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  width: min(420px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 180ms ease;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head,
.cart-foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  display: block;
}

.cart-line span {
  color: var(--muted);
  font-size: 13px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.solve-page {
  min-height: 100vh;
  padding: 50px 0;
  background: linear-gradient(120deg, var(--mint), var(--blue));
}

.solve-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}

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

.brief-card {
  padding: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .kit,
  .fit-grid,
  .pick-grid,
  .form-grid,
  .source-strip,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

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

  h1 {
    font-size: 42px;
  }

  .hero-grid {
    gap: 24px;
    padding-top: 34px;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 18px;
  }

  .hero-actions,
  .card-actions,
  .kit-actions,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .cart-button {
    width: 100%;
  }

  th,
  td {
    padding: 11px 10px;
    font-size: 14px;
  }
}
