/* =========================================================================
   THE BEAN ARCHIVES — V5 · SUBSCRIBE PAGE
   Scoped add-ons for the Subscribe page only. Built entirely on the tokens
   and component classes in styles.css so a global restyle flows through.
   Kept in a separate file so concurrent edits to styles.css never collide.
   Components: product buy-box, media gallery, variant pickers, ship/renewal
   timeline, 4-vs-6 subset visual, benefits grid, testimonial wall.
   ========================================================================= */

/* ---- Product: gallery + buy box ------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

/* media gallery (Shopify-familiar: big image + thumb row) */
.gallery { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: 88px; }
.gallery__main { aspect-ratio: 1/1; }
.gallery__main img { transition: opacity .3s var(--ease); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.thumb {
  aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; background: var(--well);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  opacity: .62; transition: opacity .25s var(--ease), box-shadow .25s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-current="true"] {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--ochre);
}

/* the buy box */
.buybox { display: flex; flex-direction: column; gap: 1.15rem; }
.buybox__title { margin: .15rem 0 0; }
.buybox__sub { color: var(--ink-75); max-width: 40ch; }
.buybox .rating { margin-top: -.2rem; }

.price { display: flex; align-items: baseline; gap: .5rem; }
.price b {
  font-family: var(--serif); font-weight: 400; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 3.4rem); letter-spacing: .01em;
}
.price .per { font-family: var(--sans); font-size: var(--fs-base); color: var(--ink-60); font-weight: 500; }
.price .note { font-family: var(--sans); font-size: var(--fs-sm); color: var(--ink-60); margin-left: .15rem; }

/* variant pickers ---------------------------------------------------------- */
.optset { display: flex; flex-direction: column; gap: .6rem; }
.optset__label {
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm); color: var(--ink);
  display: flex; align-items: baseline; gap: .5rem;
}
.optset__label .hint { font-weight: 500; color: var(--ink-60); font-size: var(--fs-xs); }

.opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  width: 100%; text-align: left; padding: .95rem 1.1rem; border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  transition: box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.opt:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent); }
.opt[aria-checked="true"] {
  box-shadow: inset 0 0 0 2px var(--ochre), 0 8px 22px -16px color-mix(in srgb, var(--ochre) 80%, transparent);
  background: color-mix(in srgb, var(--ochre) 5%, transparent);
}
.opt__radio {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent);
  display: grid; place-items: center; transition: box-shadow .2s var(--ease);
}
.opt[aria-checked="true"] .opt__radio { box-shadow: inset 0 0 0 1.5px var(--ochre); }
.opt[aria-checked="true"] .opt__radio::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ochre);
}
.opt__main { display: flex; flex-direction: column; gap: .15rem; }
.opt__name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .015em; }
.opt__name .ct { font-family: var(--sans); font-size: .78rem; font-weight: 600; text-transform: none;
  letter-spacing: 0; color: var(--ink-60); vertical-align: .14em; margin-left: .1em; }
.opt__meta { font-size: var(--fs-sm); color: var(--ink-60); }
.opt__price { font-family: var(--serif); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.opt__price .pm { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-60); display: block; text-align: right; margin-top: .15rem; }

/* the lean picker (clean / mixed / funky) — own hooks so site.js doesn't bind */
.leanwrap { display: none; flex-direction: column; gap: .6rem; }
.leanwrap.is-on { display: flex; }
.leanpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.leanpick button {
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm);
  padding: .55em .5em; border-radius: var(--r-pill); color: var(--ink-60);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.leanpick button[aria-pressed="true"] { color: #fff; }
.leanpick button.clean[aria-pressed="true"] { background: var(--grape); }
.leanpick button.mixed[aria-pressed="true"] { background: var(--orange); }
.leanpick button.funky[aria-pressed="true"] { background: var(--cherry); }
.lean-readout { font-size: var(--fs-sm); color: var(--ink-75); min-height: 1.5em; line-height: 1.45; }
.lean-readout b { color: var(--ink); font-weight: 650; }

/* ship / renewal timeline -------------------------------------------------- */
.shipline {
  background: var(--well); border-radius: var(--r-lg); padding: 1.2rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.shipline__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shipline__title { font-family: var(--sans); font-weight: 650; font-size: var(--fs-sm); }
.countdown {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans);
  font-size: var(--fs-xs); font-weight: 600; color: var(--cherry);
  background: color-mix(in srgb, var(--cherry) 9%, transparent); padding: .35em .7em; border-radius: var(--r-pill);
}
.countdown .live { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); flex: none; }
.countdown .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--cherry); animation: livepulse 2.6s ease-out infinite; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.s3 { position: relative; display: flex; flex-direction: column; gap: .2rem; padding-top: 1.1rem; }
.s3::before { content: ""; position: absolute; top: 4px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 22%, transparent); }
.s3::after { content: ""; position: absolute; top: 8px; left: 9px; right: 0; height: 1.5px;
  background: color-mix(in srgb, var(--ink) 12%, transparent); }
.s3:last-child::after { display: none; }
.s3.is-now::before { background: var(--ochre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 22%, transparent); }
.s3__when { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-60); letter-spacing: .01em; }
.s3__what { font-family: var(--sans); font-size: var(--fs-sm); color: var(--ink); line-height: 1.3; }
.s3__what b { font-weight: 650; }

/* CTA + assurance ---------------------------------------------------------- */
.buy-cta { margin-top: .2rem; }
.assure { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-60);
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; letter-spacing: .01em; }
.assure .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grape); flex: none; }
.buybox__perks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; margin-top: .35rem;
  padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.buybox__perks li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); color: var(--ink-75); }
.buybox__perks .ic { width: 17px; height: 17px; color: var(--ochre); flex: none; }

/* ---- 4-vs-6 subset visual ------------------------------------------------- */
.subset { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.dots { display: flex; gap: .55rem; }
.dot-bag {
  width: clamp(34px, 5vw, 48px); aspect-ratio: 3/4; border-radius: 4px 4px 3px 3px;
  background: var(--well-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  position: relative; display: grid; place-items: end center; padding-bottom: .35rem;
  font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--ink-40);
}
.dot-bag.on { background: var(--flavor-soft); box-shadow: none; color: #fff; }
.subset__cap .lede { margin-bottom: .6rem; }

/* ---- Benefits grid -------------------------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.benefit {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.3rem; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit:hover { transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), var(--shadow-md); }
.benefit__ic { width: 30px; height: 30px; color: var(--ochre); }
.benefit h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.benefit p { font-size: var(--fs-sm); color: var(--ink-75); line-height: 1.5; }
.benefit .linky { margin-top: auto; }

/* ---- Testimonial wall (masonry) ------------------------------------------- */
.wall { columns: 3; column-gap: 1rem; }
.wall .card-q {
  break-inside: avoid; margin-bottom: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), var(--shadow-sm);
  display: flex; flex-direction: column; gap: .9rem; background: var(--paper);
}
.wall .card-q p { font-family: var(--sans); font-style: italic; font-size: var(--fs-base);
  line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.wall .card-q footer { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .01em; color: var(--ink-60); }
.wall .card-q .stars { font-size: .85rem; }

/* ---- Format recap mini-stats --------------------------------------------- */
.recap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; }
.recap__cell { display: flex; flex-direction: column; gap: .3rem; }
.recap__v { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1;
  background: var(--flavor); -webkit-background-clip: text; background-clip: text; color: transparent; }
.recap__k { font-family: var(--sans); font-size: var(--fs-sm); color: var(--ink-75); line-height: 1.35; }

/* ---- Lineup note + cards reuse homepage .cards ---------------------------- */
.lineup-note { font-size: var(--fs-sm); color: var(--ink-75); }
.lineup-note b { color: var(--ink); font-weight: 650; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .wall { columns: 2; }
  .recap { grid-template-columns: 1fr 1fr; }
  .subset { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .wall { columns: 1; }
  .steps3 { grid-template-columns: 1fr; gap: 0; }
  .s3 { padding-top: 0; padding-left: 1.3rem; padding-bottom: 1rem; }
  .s3::before { top: 3px; }
  .s3::after { top: 9px; left: 4px; bottom: -1rem; right: auto; width: 1.5px; height: auto; }
  .s3:last-child { padding-bottom: 0; }
  .opt { grid-template-columns: auto 1fr auto; gap: .7rem; padding: .85rem .9rem; }
  .opt__name { font-size: 1.3rem; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
