/* First Level Home — draft sales prototype v2
   Brand palette from 2026-11-10-brand-and-copy.md.
   Public storefront only: no internal data or internal nav. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #1F2A2E;         /* Cedar Slate — primary, type, dark fills */
  --brass: #B08D57;         /* Level Brass — accents only, not small text */
  --linen: #F2EFE9;         /* Fog Linen — page background */
  --fir: #8A5A3B;           /* Douglas Fir — tags, warm secondary */
  --mist: #A7B1B4;          /* Rainier Mist — rules, frames (not body text on linen) */
  --muted: #636E71;         /* 50% slate + 50% mist — AA 4.58:1 on linen */
  --bg: var(--linen);
  --bg-deep: #E7E4DD;
  --card: #E8E5DE;
  --card-hover: #E0DDD5;
  --ink: var(--slate);
  --ink-soft: #3A4649;
  --line: rgba(167, 177, 180, 0.65);
  --line-strong: #A7B1B4;
  --shadow: 0 1px 0 rgba(31, 42, 46, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 56px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 450;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--linen) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--slate);
  color: var(--linen);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.04em;
  display: grid;
  place-items: center;
  line-height: 1;
}

.wordmark {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-spacer { flex: 1; }

.draft-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  white-space: nowrap;
  background: var(--linen);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink);
}
.icon-btn:hover { background: var(--card); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--slate);
  color: var(--linen);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nav-desktop { display: none; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}

/* —— Banner —— */
.notice {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 8px 0;
  text-align: center;
}

/* —— Hero —— */
.hero { padding: 28px 0 12px; }
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 10px;
}
.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 34em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.chip .price-pending { margin: 0; }

/* —— Product grid —— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head .count {
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card:hover { background: var(--card-hover); }

.card-img {
  aspect-ratio: 1;
  background: var(--linen);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sku {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate);
}
.price-pending {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fir);
  margin-top: 2px;
}
.badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fir);
  background: color-mix(in srgb, var(--fir) 12%, var(--linen));
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

/* —— Product detail —— */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  margin: 16px 0 8px;
}
.back:hover { color: var(--ink); }

.product { padding-bottom: 40px; }
.product-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 1;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info { padding-top: 18px; }
.product-info h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.lead-price {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--slate);
}
.price-note {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fir);
  margin: 0 0 16px;
}
.product-info .desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 16px;
}
.points {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.points li { margin: 0 0 6px; }

.install-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 18px;
  border-left: 3px solid var(--brass);
}
.install-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.install-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--slate);
  flex: 0 0 auto;
}
.install-row label {
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}
.install-price {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
.install-note {
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.qty-row span { font-size: 14px; color: var(--ink-soft); }
.qty-row select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231F2A2E' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 8px 28px 8px 12px;
  min-width: 72px;
}

.running-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 16px;
  padding-top: 4px;
  font-size: 15px;
}
.running-total strong { font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--slate);
  color: var(--linen);
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost {
  background: var(--card);
  color: var(--slate);
}
.btn + .btn { margin-top: 8px; }

/* —— Cart / checkout —— */
.page-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
}

.cart-list { display: flex; flex-direction: column; gap: 10px; }

.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  align-items: center;
}
.line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
}
.line h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
.line .meta { font-size: 12.5px; color: var(--muted); }
.line .line-price { font-weight: 700; font-size: 15px; }

.summary {
  margin: 18px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  padding: 6px 0;
  color: var(--ink-soft);
}
.summary-row.total {
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}
.tax-note {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.stripe-box {
  border: 1px dashed var(--mist);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 16px;
  background: color-mix(in srgb, var(--linen) 80%, white);
}
.stripe-box .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.stripe-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.fine {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 40px;
}

/* —— Success —— */
.success {
  text-align: center;
  padding: 36px 0 48px;
}
.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--card);
  color: var(--slate);
  border: 2px solid var(--brass);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
}
.success h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.success .sub {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 16px;
}
.order-card {
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 auto 24px;
  max-width: 420px;
}
.order-card h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.order-card p { margin: 0 0 6px; font-size: 15px; }
.order-card .muted { color: var(--ink-soft); font-size: 13.5px; margin-top: 10px; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }

/* —— Desktop —— */
@media (min-width: 720px) {
  .nav-desktop { display: flex; align-items: center; gap: 2px; }
  .draft-tag { margin-left: 4px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero { padding: 48px 0 20px; }
  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 20px;
  }
  .product-info { padding-top: 0; }
  .cart-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.bundle-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: color-mix(in srgb, var(--brass) 22%, var(--linen));
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.contents {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15px;
}
.contents li {
  padding: 6px 0 6px 14px;
  border-top: 1px solid var(--line);
  position: relative;
}
.contents li:first-child { border-top: 0; }
.contents li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
.delivery-pending {
  display: inline;
  margin-left: 6px;
}
