/* ──────────────────────────────────────────────────────────────
   Baya — base, global chrome and shared primitives
   Depends on tokens.css. No drop shadows anywhere.
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 900px) {
  body { background: var(--page); }
}

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

a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--selection); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font-family: inherit; letter-spacing: inherit; color: inherit; }

h1, h2, h3, h4 { font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 1.05; }

/* ─── Layout helpers ─────────────────────────────────────────── */

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

.section {
  padding: var(--section-top) var(--gutter) var(--section-bottom);
}

/* Full-width white band that bleeds the page gutter */
.band {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(36px, 4vw, 56px) var(--gutter);
}

.rule { height: 1px; background: var(--hairline); border: 0; }

.flanked {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flanked::before, .flanked::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.flanked > span {
  font-size: 10px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
@media (min-width: 900px) {
  .flanked { gap: 20px; }
  .flanked > span { font-size: 14.5px; letter-spacing: .18em; }
}

/* ─── Type primitives ────────────────────────────────────────── */

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.eyebrow--muted { color: var(--muted-2); }

.pill-eyebrow {
  display: inline-block;
  background: var(--tint);
  color: var(--body-muted-2);
  font-size: 10.5px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.display {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: var(--w-display);
  line-height: 1.03;
  letter-spacing: var(--track-display);
  margin: 0 0 18px;
}

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-muted-2);
  margin: 0;
  max-width: 52ch;
}

/* ─── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: var(--w-body);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  min-height: var(--tap);
}

.btn--dark {
  background: var(--ink);
  color: var(--on-dark);
  padding: 15px 30px;
  font-size: 13.5px;
}
.btn--dark:hover { background: var(--ink-hover); color: var(--on-dark); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 15px 28px;
  font-size: 13px;
  letter-spacing: .1em;
}
.btn--ghost:hover { background: var(--tint-hover); color: var(--ink); }

.btn--block { width: 100%; }

.btn--lg { padding: 17px 36px; font-size: 14px; }

/* ─── Chips (subscription interval) ──────────────────────────── */

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

/* ─── Accordion ──────────────────────────────────────────────── */

.acc__item { border-top: 1px solid var(--hairline); }
.acc__item:last-child { border-bottom: 1px solid var(--hairline); }

.acc__btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: var(--w-body);
  line-height: 1.35;
  cursor: pointer;
  min-height: var(--tap);
  transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--accent-hover); }
.acc__sign { color: var(--accent); flex: none; transition: color .2s var(--ease); }

.acc__panel { display: none; }
.acc__item.is-open .acc__panel { display: block; }
.acc__panel p {
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--body-muted);
}

@media (min-width: 900px) {
  .acc__btn { font-size: 17px; }
  .acc__panel p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
}

/* ─── Rating row ─────────────────────────────────────────────── */

.rating { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rating__score { font-size: 26px; font-weight: var(--w-display); }
.rating__stars { color: var(--accent); font-size: 13px; letter-spacing: .18em; }
.rating__note { font-size: 12.5px; color: var(--body-muted); }

/* ─── Scroll rails ───────────────────────────────────────────── */

.snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.snap::-webkit-scrollbar { display: none; }

/* ─── Visually hidden ────────────────────────────────────────── */

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL CHROME
   ══════════════════════════════════════════════════════════════ */

/* ─── Announcement strip ─────────────────────────────────────── */

.announce {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: center;
  color: var(--body-muted-2);
}
@media (min-width: 900px) {
  .announce { font-size: 10.5px; padding: 11px 0; }
}

/* ─── Header ─────────────────────────────────────────────────── */

/* The announcement strip stays pinned with the header rather than
   scrolling out from under it. */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.site-header__bar {
  display: grid;
  grid-template-columns: var(--tap) 1fr 62px;
  align-items: center;
  padding: 8px 12px;
}

.site-header__menu {
  width: var(--tap);
  height: var(--tap);
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-header__menu span {
  display: block;
  height: 1px;
  background: var(--ink);
}

.site-header__wordmark { justify-self: center; display: block; }
.site-header__wordmark img { height: 40px; width: auto; }

.site-header__bag {
  justify-self: end;
  font-size: 12px;
  color: var(--body-muted-2);
  padding: 0 6px;
  white-space: nowrap;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}

.site-header__nav { display: none; }

@media (min-width: 900px) {
  .site-header__bar {
    grid-template-columns: 1fr auto 1fr;
    padding: 22px var(--gutter) 16px;
  }
  /* Keep the wordmark optically centred once the hamburger is gone. */
  .site-header__menu { visibility: hidden; pointer-events: none; }
  .site-header__wordmark { grid-column: 2; }
  .site-header__wordmark img { height: 68px; }
  .site-header__bag { grid-column: 3; font-size: 13.5px; padding: 0; }

  .site-header__nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 13.5px;
    padding: 0 var(--gutter) 18px;
  }
}

/* ─── Mobile menu ────────────────────────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--surface);
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow-y: auto;
}
.menu.is-open { display: flex; }

.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.menu__label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.menu__close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 20px;
}
.menu__nav a {
  font-size: 26px;
  font-weight: var(--w-display);
  letter-spacing: -.025em;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.menu__nav a:last-child { border-bottom: none; }

.menu__foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--hairline);
}
.menu__note {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: var(--body-muted);
}

body.is-locked { overflow: hidden; }

/* ─── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: clamp(36px, 5vw, 64px) var(--gutter) 28px;
}

.site-footer__statement {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: var(--w-display);
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 20ch;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 13.5px;
  margin-bottom: 26px;
}

.site-footer__legal {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--muted);
}
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--accent-hover); }

@media (min-width: 900px) {
  .site-footer {
    background: var(--tint);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .site-footer__statement { grid-column: 1; margin-bottom: 28px; }
  .site-footer__subscribe { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 0; }
  .site-footer__nav { grid-column: 1; gap: 14px 32px; margin-bottom: 0; }
  .site-footer__legal { grid-column: 1 / -1; margin-top: 36px; }
  .site-footer__input { background: var(--surface); }
}

/* ─── Newsletter (kept from the live site, restyled) ─────────── */

.site-footer__subscribe { margin-bottom: 26px; max-width: 46ch; }
.site-footer__subscribe-title {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.site-footer__subscribe-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body-muted);
  margin: 0 0 14px;
}
.site-footer__form { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer__input {
  flex: 1 1 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  min-height: var(--tap);
}
.site-footer__input::placeholder { color: var(--faint); }
.site-footer__input:focus-visible { border-color: var(--accent-hover); }

/* ─── Sticky buy bar ─────────────────────────────────────────── */

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 10px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.buybar.is-visible { opacity: 1; visibility: visible; transform: none; }
body.is-locked .buybar { opacity: 0; visibility: hidden; transform: translateY(100%); }

.buybar__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.buybar__thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--r-thumb);
  background: var(--image-bg);
  flex: none;
}
.buybar__name {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buybar__note {
  display: block;
  font-size: 12px;
  color: var(--body-muted);
}
.buybar__actions { display: flex; align-items: center; gap: 14px; }
.buybar__price { font-size: 16px; }

@media (min-width: 900px) {
  .buybar { padding: 12px var(--gutter); gap: 24px; }
  .buybar__product { gap: 14px; }
  .buybar__name { font-size: 15px; }
  .buybar__note { font-size: 12.5px; }
  .buybar__price { font-size: 17px; }
}

/* ─── Plan cards ─────────────────────────────────────────────── */

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 15px 16px;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.plan[aria-pressed="true"] { background: var(--tint-hover); border-color: var(--ink); }
.plan__name { display: block; font-size: 15.5px; font-weight: var(--w-body); }
.plan__note { display: block; font-size: 12px; color: var(--body-muted); margin-top: 3px; }
.plan__price { font-size: 18px; font-weight: var(--w-body); flex: none; }

.plans { display: grid; gap: 9px; margin-bottom: 16px; }

.intervals {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.intervals__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.intervals[hidden] { display: none; }

@media (min-width: 900px) {
  .plan { border-radius: var(--r-md); padding: 18px 22px; }
  .plan__name { font-size: 18px; }
  .plan__note { font-size: 13px; margin-top: 4px; }
  .plan__price { font-size: 20px; }
  .plans { gap: 10px; margin-bottom: 20px; }
  .intervals { gap: 12px; margin-bottom: 20px; }
}

/* ─── Bag drawer ─────────────────────────────────────────────── */

.bag { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; }
.bag[hidden] { display: none; }
.bag__scrim { position: absolute; inset: 0; background: rgba(42, 38, 34, .32); border: none; }

.bag__panel {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hairline);
}

.bag__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

.bag__body { flex: 1; overflow-y: auto; padding: 20px; }

.bag__empty-title { font-size: 26px; font-weight: var(--w-display); letter-spacing: -.025em; margin: 6px 0 8px; }
.bag__empty-note { font-size: 13.5px; color: var(--body-muted); margin: 0 0 20px; }
.bag__empty-plans { display: grid; gap: 9px; margin-bottom: 16px; }

.bag__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.bag__item:first-child { padding-top: 0; }
.bag__item-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--image-bg);
}
.bag__item-name { font-size: 16px; line-height: 1.25; margin: 0 0 6px; }
.bag__item-plan { font-size: 12px; color: var(--accent); margin: 0 0 12px; }
.bag__item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.stepper button {
  width: 38px; height: 38px;
  background: none; border: none;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--r-pill);
  color: var(--ink);
}
.stepper button:hover { color: var(--accent-hover); }
.stepper span { min-width: 24px; text-align: center; font-size: 14px; }

.bag__remove {
  background: none; border: none;
  padding: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bag__remove:hover { color: var(--accent-hover); }

.bag__foot { border-top: 1px solid var(--hairline); padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.bag__foot[hidden] { display: none; }
.bag__summary { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 6px; }
.bag__savings { font-size: 12.5px; color: var(--accent); margin: 0 0 14px; }
.bag__trust { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ─── Newsletter confirmation (rendered by subscribe.js) ─────── */

.footer-email-thanks { max-width: 420px; margin-top: 8px; }
.footer-email-thanks-headline {
  font-size: 22px;
  font-weight: var(--w-display);
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--ink);
}
