:root {
  --ink: #17212f;
  --muted: #5f6f7c;
  --line: #dbe3e4;
  --paper: #ffffff;
  --mist: #f5f8f7;
  --teal: #0d6b68;
  --teal-dark: #0a4746;
  --coral: #c95f4f;
  --gold: #d49b29;
  --blue: #335c81;
  --shadow: 0 14px 36px rgba(25, 39, 52, .12);
  color-scheme: light;
}

* {
  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: var(--mist);
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 14px;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 56px;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-footer nav,
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

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

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}

.button:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--teal-dark);
}

.button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 14px;
}

.button.wide {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 5vw 120px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

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

.hero h1 {
  font-size: 64px;
  max-width: 720px;
}

.hero p {
  max-width: 560px;
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.hero .eyebrow {
  color: #ffd173;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 5vw 0;
}

.section.narrow {
  max-width: 720px;
}

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

.section-heading.compact {
  margin-top: 34px;
}

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

.product-card,
.panel,
.metric,
.message {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24, 33, 47, .04);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
}

.product-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: #dfe9e8;
}

.product-card > :not(img) {
  padding: 0 18px;
}

.product-card .eyebrow {
  padding-top: 18px;
}

.card-footer {
  margin-top: auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

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

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

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric,
.panel {
  padding: 20px;
}

.metric span,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e7f2f0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.status {
  background: #f3ecd8;
  color: #684500;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

blockquote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 8px;
}

.filter-bar,
.form-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 2fr)
    minmax(160px, 1.2fr)
    minmax(110px, .8fr)
    minmax(110px, .8fr)
    minmax(150px, 1fr)
    minmax(140px, .8fr);
  gap: 12px;
  margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select,
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8d2d4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

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

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

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

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead {
  font-size: 18px;
  color: var(--blue);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.meta-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.meta-list dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.policy-box {
  padding: 16px;
  border-left: 4px solid var(--coral);
  background: #fff6f3;
  border-radius: 8px;
  margin-bottom: 20px;
}

.checkout-row,
.line-item,
.compact-list a,
.compact-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.compact-list a:last-child,
.compact-list span:last-child,
.checkout-row:last-child,
.line-item:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  background: #edf4f3;
  color: var(--teal-dark);
  font-size: 13px;
}

.flash {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 12px 5vw;
  border-radius: 8px;
  background: #e7f2f0;
  color: var(--teal-dark);
  border: 1px solid #bcdad5;
}

.flash.error {
  background: #fff0ec;
  color: #8b2e1f;
  border-color: #efc2b8;
}

.flash.warning {
  background: #fff8dd;
  color: #765000;
  border-color: #edd78d;
}

.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 5vw;
  background: #17212f;
}

.subnav a {
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.subnav a:hover {
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}

.mini-form {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.message-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.message {
  padding: 14px;
}

.message.admin {
  border-left: 4px solid var(--teal);
}

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

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 920px) {
  h1 {
    font-size: 38px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .product-grid,
  .split,
  .dashboard-grid,
  .three-col,
  .metric-grid,
  .product-detail,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 520px;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section {
    padding-top: 38px;
  }

  .section-heading,
  .line-item,
  .checkout-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}
