/* V3 rapid round (Opus, Nov 8): Weekly Box funnel variants O1..O5, preview only.
   Group r2cfunnel (v4/r2/lane-c.js). Markup lives inside #r2cFunnel in index.html; behaviour in /js/r3-weekly-opus.js.
   O1 Photo lid · O2 Plum ticket · O3 Your week · O4 Fill the box · O5 Sticky dock. $40 a week, $2 under six Classics. */

/* The preview pill sits above the card instead of on top of its heading (all variants, preview hosts only). */
#r2cFunnel > .glzv { position: static; margin: 0 0 8px auto; width: max-content; max-width: 100%; }

.r3wo {
  --r3-ink: #2D1928; --r3-plum: #4A1942; --r3-plum-deep: #3a1336; --r3-gold: #D4A843; --r3-gold-light: #E5BE5E;
  --r3-gold-dark: #8a6b1e; --r3-cream: #FDF8F0; --r3-paper: #fff; --r3-line: #efe4d6; --r3-muted: #5a4d44; --r3-soft: #776759;
  --r3-ease: cubic-bezier(.22, 1, .36, 1);
  container-type: inline-size;
  position: relative; padding: 18px 20px 18px; border-radius: 22px; background: var(--r3-paper); border: 1px solid var(--r3-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(74, 25, 66, .05), 0 18px 40px -12px rgba(74, 25, 66, .2);
  color: var(--r3-ink); font-family: 'DM Sans', system-ui, sans-serif; text-align: left;
}
.r3wo p, .r3wo ul, .r3wo ol, .r3wo figure { margin: 0; }
.r3wo ul, .r3wo ol { list-style: none; padding: 0; }
.r3wo-tag { font: 700 .68rem/1.2 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--r3-gold-dark); margin-bottom: 6px !important; }
.r3wo-h { margin: 0 0 14px; font: 600 1.6rem/1.08 'Glaze Display', Georgia, serif; letter-spacing: -.01em; color: var(--r3-ink); text-wrap: balance; }
.r3wo-h em { font-style: italic; color: var(--r3-plum); }
.r3wo-math { font-size: .8rem; line-height: 1.4; color: var(--r3-soft); }
.r3wo s { color: #8c7d72; text-decoration-thickness: 1.5px; }
.r3wo-num { display: flex; align-items: flex-end; gap: 8px; }
.r3wo-num b { font: 600 2.7rem/.86 'Glaze Display', Georgia, serif; color: var(--r3-plum); letter-spacing: -.02em; }
.r3wo-num span { display: flex; flex-direction: column; font: 700 .95rem/1.15 'DM Sans', sans-serif; color: var(--r3-ink); padding-bottom: 2px; }
.r3wo-num small { font-weight: 500; font-size: .74rem; color: var(--r3-soft); }
.r3wo-fine1 { margin-top: 10px !important; font-size: .76rem; line-height: 1.45; color: var(--r3-soft); text-align: center; }

/* The button: one obvious action, full width on phones. */
.r3wo-go {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 8px 10px 8px 24px; border-radius: 999px;
  background: var(--r3-plum); color: var(--r3-cream); text-decoration: none; font: 700 1.04rem/1.1 'DM Sans', sans-serif; letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 14px 26px -12px rgba(74, 25, 66, .7);
  transition: background-color .2s ease, box-shadow .25s ease, transform .2s var(--r3-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.r3wo-arrow {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--r3-gold); color: var(--r3-ink); font-size: 1.05rem; transition: transform .28s var(--r3-ease);
}
@media (hover: hover) {
  .r3wo-go:hover { background: var(--r3-plum-deep); box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 18px 30px -12px rgba(74, 25, 66, .75); }
  .r3wo-go:hover .r3wo-arrow { transform: translateX(3px); }
}
.r3wo-go:active { transform: scale(.985); }
.r3wo-go:focus-visible { outline: 3px solid var(--r3-gold); outline-offset: 3px; }
/* Narrow cards (phones): the button label stays on one line. */
@container (max-width: 330px) {
  .r3wo-go { gap: 8px; padding-left: 16px; padding-right: 8px; font-size: .94rem; white-space: nowrap; }
  .r3wo-arrow { width: 28px; height: 28px; font-size: .95rem; }
  .r3wo-h { font-size: 1.45rem; }
}

/* ---------- O1 Photo lid: A, dressed up. A real box photo on top, the same three steps, a big honest price. ---------- */
.r3wo-o1 { padding: 0; overflow: hidden; }
.r3wo-o1 > :not(.r3wo-lid) { margin-inline: 20px !important; }
.r3wo-lid { position: relative; height: 176px; overflow: hidden; margin-bottom: 16px !important; background: #e9dccb; }
.r3wo-lid img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.r3wo-lid::after { content: ''; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(to top, rgba(45, 25, 40, .5), transparent); pointer-events: none; }
.r3wo-lid figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; font: 600 .72rem/1.2 'DM Sans', sans-serif; color: var(--r3-cream); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.r3wo-steps { display: grid; gap: 9px; margin-bottom: 16px !important; counter-reset: r3wo; }
.r3wo-steps li { position: relative; padding-left: 30px; font-size: .88rem; line-height: 1.4; color: var(--r3-muted); counter-increment: r3wo; }
.r3wo-steps li::before { content: counter(r3wo); position: absolute; left: 0; top: -3px; font: italic 600 1.3rem/1 'Glaze Display', Georgia, serif; color: #b8902d; }
.r3wo-steps b { color: var(--r3-ink); }
.r3wo-price { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; padding: 14px 0 16px; border-top: 1px solid var(--r3-line); }
.r3wo-o1 .r3wo-go { margin-bottom: 12px !important; }
.r3wo-fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-bottom: 16px !important; font-size: .76rem; color: var(--r3-soft); }
.r3wo-fine li::before { content: '\2713'; margin-right: 5px; font-weight: 700; color: #b8902d; }
@container (max-width: 400px) {
  .r3wo-price { grid-template-columns: 1fr; gap: 8px; }
  .r3wo-lid { height: 150px; }
}

/* ---------- O2 Plum ticket: the velvet-rope look (dark and gold), a perforated stub holds the price and the button. ---------- */
.r3wo-o2 {
  padding: 6px; overflow: hidden; background: var(--r3-ink); border-color: #44263c; color: var(--r3-cream);
  background-image: radial-gradient(90% 60% at 100% 0%, rgba(212, 168, 67, .13), transparent 70%);
  box-shadow: 0 2px 4px rgba(45, 25, 40, .2), 0 22px 44px -16px rgba(45, 25, 40, .65);
}
.r3wo-ticket { border: 1px solid rgba(212, 168, 67, .42); border-radius: 17px; }
.r3wo-main { padding: 16px 16px 16px; }
.r3wo-o2 .r3wo-tag { color: var(--r3-gold); }
.r3wo-o2 .r3wo-h { color: var(--r3-cream); }
.r3wo-o2 .r3wo-h em { color: var(--r3-gold-light); }
.r3wo-perks { display: grid; gap: 11px; }
.r3wo-perks li { position: relative; padding-left: 30px; font-size: .82rem; line-height: 1.4; color: rgba(253, 248, 240, .76); }
.r3wo-perks li::before {
  content: '\2713'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(212, 168, 67, .7); color: var(--r3-gold); font-size: .66rem; font-weight: 700;
}
.r3wo-perks b { display: block; color: var(--r3-cream); font-size: .9rem; margin-bottom: 1px; }
.r3wo-stub { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 14px; padding: 16px 16px 14px; border-top: 1.5px dashed rgba(212, 168, 67, .38); }
.r3wo-stub::before, .r3wo-stub::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--r3-cream); }
.r3wo-stub::before { left: -17px; }
.r3wo-stub::after { right: -17px; }
.r3wo-o2 .r3wo-num b { color: var(--r3-gold-light); }
.r3wo-o2 .r3wo-num span { color: var(--r3-cream); }
.r3wo-o2 .r3wo-math { color: rgba(253, 248, 240, .66); padding-bottom: 3px; }
.r3wo-o2 s { color: rgba(253, 248, 240, .5); }
.r3wo-stub .r3wo-go, .r3wo-stub .r3wo-fine1 { grid-column: 1 / -1; }
.r3wo-o2 .r3wo-go { margin-top: 8px; background: var(--r3-gold); color: var(--r3-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -2px 0 rgba(0, 0, 0, .14) inset, 0 14px 26px -12px rgba(212, 168, 67, .6); }
.r3wo-o2 .r3wo-arrow { background: var(--r3-ink); color: var(--r3-gold-light); }
@media (hover: hover) { .r3wo-o2 .r3wo-go:hover { background: var(--r3-gold-light); } }
.r3wo-o2 .r3wo-go:focus-visible { outline-color: var(--r3-cream); }
.r3wo-o2 .r3wo-fine1 { margin-top: 4px !important; color: rgba(253, 248, 240, .6); }
@container (min-width: 440px) { .r3wo-perks { grid-template-columns: 1fr 1fr; gap: 14px 16px; } }
@container (max-width: 340px) { .r3wo-stub { grid-template-columns: 1fr; } .r3wo-o2 .r3wo-math { padding-bottom: 0; } }

/* ---------- O3 Your week: the week as a four-stop line, the price and button share one row. ---------- */
.r3wo-week { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px !important; }
.r3wo-week::before {
  content: ''; position: absolute; top: 20px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--r3-gold), #e9d39c); transform-origin: left center;
}
.r3wo-week li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.r3wo-week i {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 5px; border-radius: 50%;
  background: #fdf3dc; border: 1px solid #ecd9a8; box-shadow: 0 0 0 4px var(--r3-paper);
}
.r3wo-week svg { width: 21px; height: 21px; fill: none; stroke: var(--r3-plum); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.r3wo-week b { font-size: .8rem; line-height: 1.2; color: var(--r3-ink); }
.r3wo-week span { font-size: .72rem; line-height: 1.35; color: var(--r3-soft); }
.r3wo-row { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--r3-line); }
.r3wo-row .r3wo-go { flex: 1; white-space: nowrap; padding-left: 20px; }
.r3wo-row .r3wo-num b { font-size: 2.35rem; }
.r3wo-o3 .r3wo-fine1 { text-align: left; }
@container (max-width: 400px) {
  .r3wo-week { grid-template-columns: 1fr; gap: 12px; }
  .r3wo-week::before { top: 21px; bottom: 21px; left: 20px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--r3-gold), #e9d39c); transform-origin: center top; }
  .r3wo-week li { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; text-align: left; align-items: center; }
  .r3wo-week i { grid-row: span 2; margin: 0; }
  .r3wo-week b { align-self: end; font-size: .88rem; }
  .r3wo-week span { align-self: start; font-size: .8rem; }
  .r3wo-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .r3wo-row .r3wo-num { justify-content: center; }
  .r3wo-o3 .r3wo-fine1 { text-align: center; }
}

/* ---------- O4 Fill the box: six real flavor photos in a box, the real menu math under it. ---------- */
.r3wo-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px; margin-bottom: 12px !important; border-radius: 18px;
  background: #f4ebdd; box-shadow: inset 0 2px 6px rgba(74, 25, 66, .12), inset 0 0 0 1px rgba(74, 25, 66, .05);
}
.r3wo-box li {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #e9dccb; box-shadow: 0 3px 8px -3px rgba(45, 25, 40, .35);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; padding: 7px 8px;
}
.r3wo-box img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--r3-ease); }
.r3wo-box li::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(45, 25, 40, .85), transparent); }
.r3wo-box b, .r3wo-box span { position: relative; z-index: 1; color: var(--r3-cream); text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.r3wo-box b { font-size: .7rem; line-height: 1.15; }
.r3wo-box span { font-size: .64rem; font-weight: 600; opacity: .85; }
.r3wo-box span::after { content: ' on its own'; }
.r3wo-box .is-prem::before {
  content: 'Premium'; position: absolute; z-index: 1; top: 6px; left: 6px; padding: 3px 7px; border-radius: 999px;
  background: var(--r3-gold); color: var(--r3-ink); font: 700 .56rem/1.2 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
@media (hover: hover) { .r3wo-box li:hover img { transform: scale(1.05); } }
.r3wo-sum { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px !important; }
.r3wo-sum span:first-child { font-size: .8rem; color: var(--r3-soft); }
.r3wo-sum span:last-child { font: 700 .9rem/1 'DM Sans', sans-serif; color: var(--r3-ink); }
.r3wo-sum b { margin-left: 4px; font: 600 1.85rem/1 'Glaze Display', Georgia, serif; color: var(--r3-plum); }
@container (max-width: 400px) {
  .r3wo-box span::after { content: ''; }
  .r3wo-box li { padding: 5px 6px; }
  .r3wo-box b { font-size: .62rem; }
  .r3wo-box span { font-size: .6rem; }
  .r3wo-box .is-prem::before { top: 4px; left: 4px; padding: 2px 5px; font-size: .5rem; }
}

/* ---------- O5 Sticky dock: a short, punchy card, and a slim Weekly Box bar under the nav once the card scrolls away. ---------- */
.r3wo-top { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; margin-bottom: 14px !important; }
.r3wo-thumb { display: block; width: 96px; height: 104px; overflow: hidden; border-radius: 14px; border: 3px solid var(--r3-paper); rotate: -3deg; box-shadow: 0 10px 20px -8px rgba(45, 25, 40, .45), 0 0 0 1px var(--r3-line); }
.r3wo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r3wo-o5 .r3wo-h { margin-bottom: 6px; font-size: 1.5rem; }
.r3wo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px !important; }
.r3wo-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #fdf3dc; border: 1px solid #ecd9a8; font: 700 .74rem/1.2 'DM Sans', sans-serif; color: #6b4f12; }
.r3wo-chips li::before { content: '\2713'; color: #b8902d; }
.r3wo-o5 .r3wo-go { min-height: 62px; font-size: 1.1rem; }

.r3wo-dock {
  position: fixed; z-index: 64; top: var(--r3wo-top, 76px); left: 50%; width: min(560px, calc(100% - 20px));
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: var(--r3-cream, #FDF8F0); border: 1px solid #ecd9a8; color: #2D1928; font-family: 'DM Sans', system-ui, sans-serif;
  box-shadow: 0 16px 34px -14px rgba(45, 25, 40, .5), 0 2px 6px rgba(45, 25, 40, .08);
  translate: -50% -12px; opacity: 0; visibility: hidden; transition: translate .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease-out, visibility 0s .4s;
}
.r3wo-dock.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.r3wo-dock img { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; }
.r3wo-dock p { flex: 1; min-width: 0; margin: 0; text-align: left; font-size: .82rem; line-height: 1.2; color: #5a4d44; }
.r3wo-dock p b { display: block; color: #2D1928; font-size: .9rem; }
.r3wo-dock a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; flex: none;
  background: #4A1942; color: #FDF8F0; text-decoration: none; font: 700 .9rem/1 'DM Sans', sans-serif; white-space: nowrap;
}
.r3wo-dock a i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #D4A843; color: #2D1928; font-style: normal; }
.r3wo-dock a:focus-visible, .r3wo-dock button:focus-visible { outline: 3px solid #D4A843; outline-offset: 2px; }
.r3wo-dock button { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #776759; font-size: 1.1rem; line-height: 1; cursor: pointer; }
@media (hover: hover) { .r3wo-dock a:hover { background: #3a1336; } .r3wo-dock button:hover { background: rgba(74, 25, 66, .08); } }
@media (max-width: 479.98px) {
  .r3wo-dock .r3wo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .r3wo-dock p { font-size: .76rem; }
}

/* ---------- Motion: the words rise once when a variant shows (0.8 s, ease-out, no bounce); O3's line draws, O4's tiles settle. ---------- */
.r3wo.is-in :is(.r3wo-lid, .r3wo-tag, .r3wo-h, .r3wo-steps, .r3wo-price, .r3wo-perks, .r3wo-week, .r3wo-top, .r3wo-chips, .r3wo-sum) { animation: r3wo-rise .8s var(--r3-ease) both; }
.r3wo-o3.is-in .r3wo-week::before { animation: r3wo-draw .9s .2s var(--r3-ease) both; }
.r3wo-o4.is-in .r3wo-box li { animation: r3wo-rise .7s var(--r3-ease) both; }
.r3wo-o4.is-in .r3wo-box li:nth-child(2) { animation-delay: .06s; }
.r3wo-o4.is-in .r3wo-box li:nth-child(3) { animation-delay: .12s; }
.r3wo-o4.is-in .r3wo-box li:nth-child(4) { animation-delay: .18s; }
.r3wo-o4.is-in .r3wo-box li:nth-child(5) { animation-delay: .24s; }
.r3wo-o4.is-in .r3wo-box li:nth-child(6) { animation-delay: .3s; }
/* The button and the price stub never move or wait on motion. */
@keyframes r3wo-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes r3wo-draw { from { scale: 0 1; } to { scale: 1 1; } }
@container (max-width: 400px) { .r3wo-o3.is-in .r3wo-week::before { animation-name: r3wo-draw-y; } }
@keyframes r3wo-draw-y { from { scale: 1 0; } to { scale: 1 1; } }
@media (prefers-reduced-motion: reduce) {
  .r3wo, .r3wo *, .r3wo *::before, .r3wo-dock { animation: none !important; transition: none !important; }
}
html.glz-static .r3wo, html.glz-static .r3wo *, html.glz-static .r3wo *::before, html.glz-static .r3wo-dock { animation: none !important; transition: none !important; }
@media print { .r3wo-dock { display: none; } }
