:root {
  color-scheme: light;
  --ink: #111217;
  --muted: #646879;
  --line: #d9dce5;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --panel-soft: #f0f3f0;
  --blue: #2367ff;
  --green: #16a06d;
  --red: #db3434;
  --yellow: #e4b526;
  --focus: #111217;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(35, 103, 255, 0.08), transparent 40%),
    linear-gradient(300deg, rgba(22, 160, 109, 0.12), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.chooffy-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px);
}

.drop-module {
  display: grid;
  gap: 18px;
}

.drop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.eyebrow,
.strip-label {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: min(520px, 100%);
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-heading {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(250px, 38vw, 480px);
  height: auto;
}

.drop-copy {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
}

.drop-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
}

.drop-status span {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.drop-status strong {
  display: block;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
}

.next-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.next-drop strong {
  color: var(--ink);
}

.next-drop .pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.carousel-shell {
  display: grid;
  gap: 12px;
}

.carousel-toolbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--ink);
  background: #f1f4ff;
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 7px;
}

.dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #c9cedb;
  padding: 0;
}

.dot.is-selected {
  background: var(--ink);
}

.product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.product-track:focus-visible {
  outline: 3px solid rgba(17, 18, 23, 0.28);
  outline-offset: 5px;
}

.product-card {
  position: relative;
  display: grid;
  min-height: 560px;
  grid-template-rows: auto 220px auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(17, 18, 23, 0.08);
  scroll-snap-align: start;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card[data-state="upcoming"] {
  opacity: 0.5;
}

.product-card[data-state="upcoming"]:hover,
.product-card[data-state="upcoming"]:focus-within {
  opacity: 0.86;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(17, 18, 23, 0.11);
}

.card-top {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-live {
  background: rgba(22, 160, 109, 0.12);
  color: #08734e;
}

.badge-wait {
  background: rgba(35, 103, 255, 0.12);
  color: #174fc8;
}

.stock-chip {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.product-stage {
  position: relative;
  margin: 8px 14px 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--stage-a), var(--stage-b));
  isolation: isolate;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  z-index: -1;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px 16px 0;
}

.card-body h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.date-line,
.stock-line,
.drop-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.date-line strong,
.stock-line strong {
  color: var(--ink);
}

.stock-meter {
  display: grid;
  gap: 6px;
}

.meter-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e6e8ec;
}

.meter-fill {
  display: block;
  width: var(--stock-percent);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c84343 0%, #b46b61 16%, #8d9b88 44%, #25b96f 100%);
}

.card-actions {
  display: grid;
  gap: 10px;
  align-self: end;
  padding: 16px;
}

.buy-button,
.waitlist-button,
.newsletter-controls button {
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  font-weight: 850;
}

.buy-button:hover,
.buy-button:focus-visible,
.waitlist-button:hover,
.waitlist-button:focus-visible,
.newsletter-controls button:hover,
.newsletter-controls button:focus-visible {
  background: #2b2d35;
}

.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
  background: #f6f7fb;
}

.waitlist-form {
  display: grid;
  gap: 8px;
}

.waitlist-form input,
.newsletter-controls input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.waitlist-form input:focus,
.newsletter-controls input:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(17, 18, 23, 0.14);
}

.card-message,
.form-message {
  min-height: 20px;
  margin: 0;
  color: #08734e;
  font-size: 0.83rem;
  line-height: 1.35;
}

.card-message.is-error,
.form-message.is-error {
  color: #b32323;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--panel-soft));
  padding: 18px;
}

.newsletter-strip h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.newsletter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-strip .form-message {
  grid-column: 2;
}

.community-vote {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.vote-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 18px;
  align-items: end;
}

.vote-header h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.vote-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

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

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

.vote-card {
  display: grid;
  min-height: 124px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fb;
  padding: 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.vote-card:hover,
.vote-card:focus-within {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.vote-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.vote-card:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.vote-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.vote-main strong,
.vote-main small {
  display: block;
}

.vote-main strong {
  font-size: 1rem;
  line-height: 1.15;
}

.vote-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.vote-swatch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 23, 0.2);
  border-radius: 8px;
}

.vote-swatch span:first-child {
  background: var(--swatch-a);
}

.vote-swatch span:last-child {
  background: var(--swatch-b);
}

.vote-result {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e6e8ec;
}

.vote-result span {
  display: block;
  width: var(--vote-percent);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.vote-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.vote-actions button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 850;
}

.vote-actions button:hover,
.vote-actions button:focus-visible {
  background: #2b2d35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .drop-header,
  .newsletter-strip,
  .vote-header {
    grid-template-columns: 1fr;
  }

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

  .product-track {
    grid-auto-columns: minmax(278px, 74%);
  }

  .newsletter-strip .form-message {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .chooffy-page {
    padding: 18px 14px;
  }

  h1 {
    max-width: 100%;
  }

  .drop-status,
  .newsletter-controls,
  .vote-actions {
    grid-template-columns: 1fr;
  }

  .carousel-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .product-track {
    grid-auto-columns: minmax(260px, 86%);
    gap: 12px;
  }

  .product-card {
    min-height: 536px;
    grid-template-rows: auto 194px auto 1fr auto;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-chip {
    text-align: left;
  }
}
