/* ============================================================================
   FLAVOUR REVEAL — the countdown pill and the Jelly Jury CTA that stand in for
   a flavour name until the drop. Markup is app/views/partials/flavour-reveal.php,
   the timer is driven by assets/js/countdown.js.

   This file used to carry the pre-launch teaser as well — blur every product
   image and overlay "THE DROP IS NEAR" — under the name teaser.css. That was
   removed on 2026-08-28 together with assets/js/teaser.js, and the file renamed
   to match what actually survives. The flavour reveal is a SEPARATE pre-launch
   cover with its own switch; see the header of countdown.js to turn it off.
   ========================================================================== */

/* ------------------------------------------------------------------------
   Flavour-reveal countdown — replaces the flavour name on ritual & product
   cards until the launch date. Site-wide so home + shop share one look.
   ------------------------------------------------------------------------ */
/* Also on the PDP wrapper (.pdp-grid.flavour-<accent>), which is why the selectors
   carry the .flavour-* half: the countdown and jury pills inherit the ritual colour
   wherever they appear, on a card or in the product hero. (The teaser flow used to
   read this too — that layer is gone; these three lines still feed the pills.) */
.card-focus, .flavour-focus { --cd-accent: var(--focus); }
.card-reset, .flavour-reset { --cd-accent: var(--reset); }
.card-flow,  .flavour-flow  { --cd-accent: var(--flow); }
.ritual-countdown {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  margin: 0; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cd-accent, var(--ink)) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cd-accent, var(--ink)) 26%, transparent);
}
.ritual-countdown .cd-lead {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ritual-countdown .cd-time {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-weight: 800; font-size: var(--text-base); color: var(--ink); letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------------
   Jelly Jury CTA — sits beside the countdown wherever a flavour is hidden.
   Row while the card is wide enough for two pills, stacked once it is not;
   the cards live in a 3-up grid, so "beside" has to degrade gracefully
   rather than squeeze both pills into unreadable columns.
   ------------------------------------------------------------------------ */
.flavour-reveal {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: var(--sp-2); max-width: 100%;
}
/* Shrinkable, never wider than the card that holds them. */
.flavour-reveal > * { flex: 0 1 auto; max-width: 100%; }

/* Light accent tint + ink text, matching the site's own .btn-focus/.btn-reset/.btn-flow
   treatment (~9.7:1). Solid accent text on an accent fill was both off-brand and unreadable
   — white on the flow amber measured 2.0:1. The countdown next to it is the same tint at
   12% with a hairline border; this one carries a full-strength border and an accent lead,
   so the pair reads as "state" beside "action" rather than as two equal chips. */
.jury-cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill); text-decoration: none;
  background: color-mix(in srgb, var(--cd-accent, var(--ink)) 10%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--cd-accent, var(--ink)) 70%, var(--surface));
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.jury-cta-lead {
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  /* Mixed toward ink so the accent stays legible at this size on every ritual. 40% is set
     by the lightest accent (flow amber): at 55% it measured 3.96:1, under the 4.5 floor. */
  color: color-mix(in srgb, var(--cd-accent, var(--ink)) 40%, var(--ink));
}
.jury-cta-action {
  font-weight: 800; font-size: var(--text-sm); letter-spacing: 0.01em;
  color: var(--ink); text-align: center;
  /* Deliberately NOT nowrap: the phrase is 221px and the ritual card is 218px at a 320px
     viewport, so pinning it to one line pushed the pill past the card edge. It stays on one
     line wherever it fits and wraps only when it genuinely cannot. */
  text-wrap: balance;
}
.jury-cta-arrow { margin-left: 0.35em; display: inline-block; transition: transform .15s ease; }

.jury-cta:hover,
.jury-cta:focus-visible {
  background: color-mix(in srgb, var(--cd-accent, var(--ink)) 20%, var(--surface));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cd-accent, var(--ink)) 30%, transparent);
}
.jury-cta:hover .jury-cta-arrow,
.jury-cta:focus-visible .jury-cta-arrow { transform: translateX(3px); }
.jury-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .jury-cta, .jury-cta-arrow { transition: none; }
  .jury-cta:hover, .jury-cta:focus-visible { transform: none; }
  .jury-cta:hover .jury-cta-arrow, .jury-cta:focus-visible .jury-cta-arrow { transform: none; }
}
