:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #6b6b66;
  --line: #e6e6e2;
  --soft: #f6f6f4;
  --font: "Outfit", "Segoe UI", sans-serif;
  --header: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection { background: var(--ink); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, 5vw);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 20;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.logo { height: 26px; width: auto; display: block; }

.nav { display: flex; gap: 22px; }

.nav a {
  color: #3a3a36;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover { color: var(--ink); }

.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: calc(var(--header) + 12px) max(20px, 5vw) 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 6vw, 64px); }

h2 { font-size: clamp(32px, 4vw, 48px); }

.lead, .prose {
  margin: 14px 0 0;
  color: #3c3c38;
  font-size: 17px;
  max-width: 38em;
}

.stage h1 { white-space: nowrap; }

.stage .lead { min-height: 3em; }

.variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.variant {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  min-width: 0;
}

.variant.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.v-name { display: block; font-weight: 500; font-size: 15px; }

.v-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.variant.is-on .v-sub { color: rgba(255, 255, 255, 0.68); }

.v-price { display: block; margin-top: 12px; font-size: 14px; }

.color-block { margin-top: 22px; }

.color-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.color-label span:first-child { color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 2px; }

.swatch {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.swatch i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.swatch.is-on i {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 1px #fff, 0 0 0 3px var(--ink);
}

.swatch.is-locked i { opacity: 0.38; }

.hint {
  min-height: 1.3em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.includes {
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  color: #333330;
  font-size: 14.5px;
}

.stage .includes { min-height: 160px; }

.includes li { margin: 5px 0; }

.includes-loose { margin-bottom: 22px; }

.buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.price-wrap { margin: 0; display: flex; flex-direction: column; }

.price {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-note { color: var(--muted); font-size: 13px; }

.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-wide { width: 100%; }

.visual {
  display: grid;
  place-items: center;
  min-height: 52vh;
}

#bottle {
  height: min(56vh, 560px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

#bottle.is-fading { opacity: 0; }

.band { padding: 84px 0; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.frame img {
  width: 100%;
  display: block;
}

.table-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare thead th { border-bottom: 0; font-weight: 500; padding: 0 4px 10px; }

.compare tbody th {
  text-align: left;
  font-weight: 400;
  font-size: 15px;
  padding: 16px 16px 16px 0;
  width: 42%;
}

.compare td { padding: 16px 8px; }

.compare button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 12px 8px;
  cursor: pointer;
  font-weight: 500;
}

.compare button small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.compare th.is-on button { background: var(--ink); color: #fff; }

.compare th.is-on button small { color: rgba(255, 255, 255, 0.7); }

.compare td.is-on { background: var(--soft); }

.dot, .dash {
  display: inline-block;
  vertical-align: middle;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.dash {
  width: 12px;
  height: 1px;
  background: #c4c4be;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 10px 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tile img { height: 150px; width: auto; }

.tile span { font-size: 13px; }

.tile.is-on { border-color: var(--ink); }

.tile.is-locked { opacity: 0.45; }

.lineup {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 36px auto 0;
}

.frame-phone img { max-height: 640px; width: auto; margin: 0 auto; }

.site-footer {
  padding: 28px max(20px, 5vw) 36px;
  border-top: 1px solid var(--line);
}

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dock strong { display: block; font-weight: 500; }

.dock span { color: var(--muted); font-size: 14px; }

dialog {
  border: 0;
  padding: 28px 24px 22px;
  border-radius: 22px;
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

dialog::backdrop { background: rgba(18, 18, 18, 0.36); }

dialog img {
  height: 180px;
  width: auto;
  display: block;
  margin: 0 auto 8px;
}

dialog h2 { font-size: 32px; }

dialog .price { margin: 8px 0 18px; }

#cart-color { margin: 6px 0 0; color: var(--muted); }

#cart-points {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
}

@media (hover: hover) {
  .variant:not(.is-on):hover,
  .tile:not(.is-on):hover { border-color: #bdbdb8; }
  .btn:hover { background: #2c2c2c; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .buy { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .dock { display: flex; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 28px; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .dock { display: flex; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (max-width: 960px) {
  .visual { order: -1; min-height: 0; }
  #bottle { height: min(46vh, 440px); }
  .stage { align-items: start; }
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile img { height: 180px; }
}

@media (min-width: 961px) {
  .stage {
    grid-template-columns: minmax(340px, 440px) auto;
    justify-content: center;
    align-items: center;
    gap: 48px;
    min-height: 100dvh;
    padding-bottom: 36px;
  }

  .visual {
    position: static;
    min-height: 0;
    width: auto;
  }

  #bottle {
    height: min(78vh, 820px);
    aspect-ratio: 3 / 4;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  h1 { font-size: 44px; }
  .variants { margin-top: 16px; }
  #bottle { height: min(74vh, 680px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #bottle { transition: none; }
}

#nl-badge-frame,
iframe[title="Powered by Netlify"] {
  display: none !important;
}
