:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-deep: #f1ebe0;
  --ink: #211f1a;
  --ink-muted: rgba(55, 49, 41, 0.72);
  --ink-faint: rgba(55, 49, 41, 0.46);
  --rule: rgba(55, 49, 41, 0.14);
  --accent: #0874d1;
  --accent-dark: #075daa;
  --good: #15803d;
  --surface: rgba(255, 252, 246, 0.86);
  --shadow: 0 24px 80px rgba(42, 36, 27, 0.16);
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 8%, rgba(8, 116, 209, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--paper), #f8f1e7 58%, var(--paper));
  color: var(--ink);
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-muted);
}

.nav a {
  text-decoration: none;
}

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

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(33, 31, 26, 0.16);
}

.cta-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.primary-cta .cta-icon {
  width: 22px;
  height: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(540px, 0.92fr) minmax(500px, 0.9fr);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  padding: 42px 28px 58px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lede {
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.primary-cta {
  min-width: 168px;
  text-decoration: none;
  font-weight: 700;
}

.primary-cta:hover {
  background: #000;
  color: var(--paper);
}

.microcopy {
  color: var(--ink-muted);
  font-size: 12px;
}

.install-note {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
}

.install-note a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.hero-video {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.hero-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: #211f1a;
  border-radius: 6px;
  border: 1px solid rgba(33, 31, 26, 0.08);
}

.hero-video figcaption {
  margin: 12px 4px 2px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.savings-surfaces-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 48px;
}

.savings-surfaces-copy {
  max-width: 960px;
  margin-bottom: 28px;
}

.savings-surfaces-copy h2 {
  max-width: 34ch;
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.savings-surfaces-lede {
  max-width: 66ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.savings-surface-card {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(251, 247, 239, 0.72);
  overflow: hidden;
}

.savings-surface-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--rule);
}

.savings-surface-card div {
  padding: 17px 18px 20px;
}

.savings-surface-card h3 {
  margin: 14px 0 9px;
  font-size: 20px;
}

.savings-surface-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-note {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.66);
}

.checkout-note img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(33, 31, 26, 0.08);
  border-radius: 6px;
}

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

.checkout-note p {
  max-width: 66ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .savings-surface-grid,
  .checkout-note {
    grid-template-columns: 1fr;
  }

  .checkout-note img {
    display: none;
  }
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 28px 36px;
}

.proof-strip span {
  padding: 9px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.56);
  color: var(--ink-muted);
  font-size: 12px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 28px;
  border-top: 1px solid var(--rule);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.steps article {
  min-height: 250px;
  padding: 28px;
  background: rgba(251, 247, 239, 0.86);
}

.step-num {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

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

.steps p,
.privacy-list p,
.faq p {
  color: var(--ink-muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 64px;
}

.privacy-list {
  display: grid;
  gap: 18px;
  align-content: start;
  font-size: 17px;
}

.privacy-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

.privacy-list a:hover {
  text-decoration-color: var(--ink);
}

.faq {
  padding-bottom: 96px;
}

details {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

summary::marker {
  color: var(--accent);
}

details p {
  max-width: 720px;
  margin: 12px 0 0;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 56px;
  border-top: 1px solid var(--rule);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

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

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

.footer-fine {
  margin: 22px 0 0;
  max-width: 72ch;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.6;
}

/* Legal pages — sustained reading, sans body, mono headings + code */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 28px 96px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}

.legal h1 {
  margin: 0 0 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(34px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.legal .meta {
  margin: 0 0 40px;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.legal p,
.legal ul {
  color: var(--ink-muted);
}

.legal p {
  margin: 0 0 14px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--accent-dark);
}

.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(55, 49, 41, 0.06);
}

@media (max-width: 640px) {
  .legal {
    padding: 36px 20px 72px;
    font-size: 16px;
  }
  .legal h2 {
    margin-top: 32px;
  }
}

@media (max-width: 1120px) {
  .hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-top: 46px;
    overflow: hidden;
  }

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

  .hero-video {
    width: min(100%, 820px);
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

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

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px;
  }

  .brand span {
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section,
  .proof-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 36px;
    max-width: 16ch;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .savings-surfaces-section {
    padding: 20px 18px 42px;
  }

  .eyebrow {
    max-width: 28ch;
  }

  .lede {
    max-width: 28ch;
  }

  .wm-pdp-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .wm-pdp-image {
    min-height: 200px;
  }

  .cart-scene {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .savings-banner {
    position: static;
    width: auto;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .savings-banner button {
    grid-column: 1 / -1;
  }

  .cart-panel {
    padding: 16px;
  }

  .cart-line {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .cart-line b {
    grid-column: 2;
  }

  .thumb {
    width: 42px;
    height: 42px;
  }

  .review-sheet {
    padding: 16px;
  }

  .store-grid,
  .sheet-actions {
    grid-template-columns: 1fr;
  }
}
