/* Homepage offers: two equal cards (Claude, 9-10 Nov 2026; Alik's pick B, 9 Nov). PHP: template-parts/c3/offers.php,
   data inc/v2/z9-home-offers.php. The Explore tiles' own grey (#F2F2F2), 24 px corners, black buttons; the savings green only on
   the "−20%" badge and the best tier's %. Motion (CSS only): on entering view the cards rise, the three stack vials fan open
   and the surprise vial's "?" pops with one light; hover fans the vials a little more and tilts the "?".
   Off under prefers-reduced-motion and in html.shot. */

.c3-root.of{padding:0 0 var(--s2)}

.c3-root .of-b__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
.c3-root.of-b--one .of-b__row{grid-template-columns:minmax(0,1fr)}

/* ------------------------------------------------------------------ a card: words left, art right, button at the foot */
.c3-root .of-b__card{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,42%);
  grid-template-rows:1fr auto;grid-template-areas:"copy art" "btn art";column-gap:24px;min-height:340px;padding:40px 40px 40px 40px;
  border-radius:var(--r-panel);background:var(--tile);transition:background-color .35s var(--ease-out)}
.c3-root .of-b__card:hover{background:#ededee}
.c3-root .of-b__copy{grid-area:copy;min-width:0}
.c3-root .of-b__t{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:var(--t-h3);font-weight:500;line-height:1.05;letter-spacing:-.025em}
.c3-root .of-b__sub{margin-top:12px;color:var(--mute)}
.c3-root .of-b__copy .sx-timer{margin-top:16px}
.c3-root .of-b__btn{grid-area:btn;justify-self:start;align-self:end;position:static;margin-top:28px}
.c3-root .of-b__btn::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:2}
.c3-root .of-b__btn svg{transition:transform .3s var(--ease-out)}
.c3-root .of-b__card:hover .of-b__btn{background:#2a2a2e}
.c3-root .of-b__card:hover .of-b__btn svg{transform:translateX(3px)}

.c3-root.of .of-bdg{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:var(--r-pill);background:var(--cl-acc-ink,#077D55);color:#fff;
  font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap}

/* the tier ladder: one hairline row per tier, the best tier's % in the savings green */
.c3-root .of-lad{display:block;margin:24px 0 0;padding:0;list-style:none;border-top:1px solid var(--line);max-width:340px}
.c3-root .of-lad .of-tier{display:flex;align-items:baseline;gap:6px;height:auto;padding:9px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;
  font-size:var(--t-body);line-height:1.3;font-feature-settings:"tnum" 1,"lnum" 1}
.c3-root .of-lad .of-tier__n{font-weight:500;min-width:1.4em}
.c3-root .of-lad .of-tier__u{color:var(--mute)}
.c3-root .of-lad .of-tier__p{margin-left:auto;padding:0;border:0;font-weight:500}
.c3-root .of-lad .of-tier.is-top .of-tier__p{color:var(--cl-acc-ink,#077D55)}

/* ------------------------------------------------------------------ art */
.c3-root .of-b__art{grid-area:art;position:relative;align-self:center;justify-self:end;width:100%;max-width:300px;aspect-ratio:1/1}
.c3-root .of-b__v{position:absolute;bottom:-6%;width:56%;aspect-ratio:4/5;transition:transform .55s var(--ease)}
.c3-root .of-b__v img{width:100%;height:100%;max-width:none;object-fit:contain;
  -webkit-mask-image:radial-gradient(56% 56% at 50% 47%,#000 62%,transparent 100%);mask-image:radial-gradient(56% 56% at 50% 47%,#000 62%,transparent 100%)}
/* stack: three vials, the middle one in front */
.c3-root .of-b__art--stack .of-b__v--1{left:5%;z-index:3;width:90%}
.c3-root .of-b__art--stack .of-b__v--0{left:-17%;z-index:2;width:76%;transform:scale(.86);transform-origin:50% 92%;filter:brightness(.97)}
.c3-root .of-b__art--stack .of-b__v--2{left:41%;z-index:1;width:76%;transform:scale(.86);transform-origin:50% 92%;filter:brightness(.97)}
.c3-root .of-b__card:hover .of-b__art--stack .of-b__v--0{transform:translateX(-5%) scale(.86) rotate(-2deg)}
.c3-root .of-b__card:hover .of-b__art--stack .of-b__v--2{transform:translateX(5%) scale(.86) rotate(2deg)}
.c3-root .of-b__card:hover .of-b__art--stack .of-b__v--1{transform:translateY(-3%)}
/* surprise vial: [vial][vial] + [?] */
.c3-root .of-b__art--gift{display:flex;align-items:center;justify-content:center;gap:0}
.c3-root .of-b__art--gift .of-b__v{position:relative;bottom:auto;left:auto;flex:none;width:60%;margin:0 -18%}
.c3-root .of-b__art--gift .of-b__v--g0{margin-left:-12%}
.c3-root .of-b__plus{position:relative;z-index:2;display:grid;place-items:center;flex:none;width:28px;height:28px;margin:0 4px 0 2px;color:var(--mute)}
.c3-root .of-b__plus svg{width:22px;height:22px}
.c3-root .of-b__q{position:relative;z-index:2;display:grid;place-items:center;flex:none;width:40%;aspect-ratio:1/1;border-radius:50%;overflow:hidden;
  background:linear-gradient(160deg,#fbfbfc 0%,#eceef1 46%,#d6d9de 100%);box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(14,14,16,.08),0 18px 28px -22px rgba(14,14,16,.6);
  transition:transform .55s var(--ease)}
.c3-root .of-b__q .sx-gift__svg{width:52%;height:52%}
.c3-root .of-b__card:hover .of-b__q{transform:rotate(-8deg) scale(1.04)}
.c3-root .of-b__card:hover .of-b__art--gift .of-b__v{transform:translateY(-4%)}

/* AD pass (9 Nov): on desktop the surprise art matches the stack art's weight (it read small next to it); grows to the left */
@media (min-width:900px){.c3-root .of-b__art--gift{scale:1.16;transform-origin:100% 56%}}

/* one card only: the same card, the whole row wide */
.c3-root.of-b--one .of-b__card{grid-template-columns:minmax(0,1fr) minmax(0,260px);min-height:0;padding:44px 64px 44px 56px}

/* ------------------------------------------------------------------ 900 - 1199 */
@media (min-width:900px) and (max-width:1199.98px){
  .c3-root .of-b__card{padding:32px;grid-template-columns:minmax(0,1fr) minmax(0,40%)}
  .c3-root .of-b__t{font-size:30px}
}

/* ------------------------------------------------------------------ phone and small tablet: one under the other */
@media (max-width:899.98px){
  .c3-root .of-b__row{grid-template-columns:minmax(0,1fr)}
  .c3-root .of-b__card{grid-template-columns:minmax(0,1fr) minmax(0,38%);grid-template-areas:"copy art" "btn btn";column-gap:12px;min-height:0;padding:24px 20px 20px;border-radius:20px}
  .c3-root .of-b__t{font-size:26px;gap:6px 10px}
  .c3-root.of .of-bdg{height:22px;font-size:12px;padding:0 8px}
  .c3-root .of-lad{margin-top:16px;max-width:none}
  .c3-root .of-lad .of-tier{padding:8px 0;font-size:15px}
  .c3-root .of-b__btn{justify-self:stretch;margin-top:20px}
  .c3-root .of-b__art{max-width:none}
  .c3-root .of-b__art--gift{justify-content:center}
  .c3-root .of-b__art--gift .of-b__v,.c3-root .of-b__plus{display:none}
  .c3-root .of-b__q{width:min(100%,96px)}
  .c3-root .of-b__art--gift{aspect-ratio:auto;align-self:start} /* AD pass: no empty square under the copy on a phone */
  .c3-root .of-b__copy .sx-timer{flex-wrap:wrap}
}

/* small tablets: the two phone cards side by side */
@media (min-width:600px) and (max-width:899.98px){
  .c3-root.of-b:not(.of-b--one) .of-b__row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion:no-preference){
  html:not(.shot) .c3-root.of-b[data-inview] .of-b__card{opacity:0;transform:translateY(18px);
    transition:opacity .7s var(--ease),transform .8s var(--ease),background-color .35s var(--ease-out)}
  html:not(.shot) .c3-root.of-b[data-inview] .of-b__card--gift{transition-delay:.12s,.12s,0s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__card{opacity:1;transform:none}
  /* the side vials start tucked behind the middle one and fan out */
  html:not(.shot) .c3-root.of-b[data-inview]:not(.is-in) .of-b__art--stack .of-b__v--0{transform:translateX(30%) scale(.8)}
  html:not(.shot) .c3-root.of-b[data-inview]:not(.is-in) .of-b__art--stack .of-b__v--2{transform:translateX(-30%) scale(.8)}
  html:not(.shot) .c3-root.of-b[data-inview]:not(.is-in) .of-b__art--gift .of-b__v{transform:translateY(10%);opacity:0}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__art--gift .of-b__v{transition:transform .7s var(--ease) .35s,opacity .5s var(--ease) .35s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__art--gift .of-b__v--g1{transition-delay:.45s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__art--stack .of-b__v--0,
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__art--stack .of-b__v--2{transition:transform .9s cubic-bezier(.3,1.2,.4,1) .45s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__card:hover .of-b__art--stack .of-b__v{transition-delay:0s}
  html:not(.shot) .c3-root.of-b[data-inview]:not(.is-in) .of-b__q{transform:scale(.6);opacity:0}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__q{transition:transform .7s cubic-bezier(.3,1.35,.5,1) .6s,opacity .4s var(--ease) .6s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__card:hover .of-b__q{transition-delay:0s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__q::after{content:"";position:absolute;inset:-20% -60%;
    background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.95) 50%,transparent 60%);transform:translateX(-70%);animation:of-sheen 1.6s cubic-bezier(.2,.7,.2,1) 1.1s 1 both}
  html:not(.shot) .c3-root.of-b[data-inview] .of-lad .of-tier{opacity:0;transform:translateX(-6px);transition:opacity .5s var(--ease) calc(.35s + var(--i,0) * 90ms),transform .5s var(--ease) calc(.35s + var(--i,0) * 90ms)}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-lad .of-tier{opacity:1;transform:none}
}
@keyframes of-sheen{to{transform:translateX(70%)}}
@media (forced-colors:active){.c3-root .of-b__card{border:1px solid CanvasText}}
