/* Ordercherry: the moving scenes of the cards, built from HTML, SVG and CSS. One block per scene.
   Every scene rests in its END state (what is true after a yes), and its animation plays up to it: with reduced motion,
   or if an animation never starts, the picture is still right. site.js adds .is-paused to a [data-scene] that is off screen. */
[data-scene].is-paused *, [data-scene].is-paused *::before, [data-scene].is-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { [data-scene] *, [data-scene] *::before, [data-scene] *::after { animation: none !important; } }

/* ---------- shared by the cards ---------- */
.bc--wide { min-height: 0; }
.bc--full { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
.bc--full .bc-head { flex: 0 0 44%; padding: 48px 0 48px 44px; }
.bc--full h3 { font-size: 24px; }
.bc--full .bc-art { flex: 1; min-width: 0; margin-top: 0; }
@media (max-width: 820px) { .bc--full { flex-direction: column; align-items: stretch; } .bc--full .bc-head { flex: none; padding: 28px 28px 0; } }
@media (max-width: 760px) { .bc--full .bc-head { padding: 22px 20px 0; } .bc--full h3 { font-size: 21px; } }
/* a product in a scene: a small tile in the cherry's own pink */

/* ---------- the app in three windows: Home, Order browser and Funnels, drawn in its own words ---------- */
.art-admin { position: relative; padding: 20px 28px 0; }
.admin-tabs { display: inline-flex; gap: 2px; margin-bottom: 14px; padding: 3px; border-radius: 999px; background: var(--card-2); }
.admin-tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--font); letter-spacing: -.01em; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.admin-tabs [aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(17 18 20 / .14); }
@media (hover: hover) { .admin-tabs button:hover { color: var(--ink); } }
.admin-win { position: relative; height: 322px; overflow: hidden; border-radius: 14px 14px 0 0; background: #F1F1F1; box-shadow: 0 0 0 1px rgb(17 18 20 / .1), 0 30px 60px -30px rgb(110 15 46 / .55); }
/* one window at a time: the old one leaves at once and the new one rises in, so two are never seen through each other */
.admin-shot { position: absolute; inset: 0 0 auto; display: block; visibility: hidden; }
.admin-shot.is-on { visibility: visible; animation: shot-in .26s cubic-bezier(.2, .7, .2, 1); }
@keyframes shot-in { from { opacity: 0; transform: translateY(8px); } }
.ap { padding: 16px 18px; font-size: 12.5px; line-height: 1.3; letter-spacing: -.005em; color: #303030; }
.ap-top { display: flex; align-items: center; gap: 8px; min-height: 28px; } .ap-top > b { font-size: 15.5px; font-weight: 650; letter-spacing: -.02em; color: #1A1A1A; }
.ap .chip { padding: 2px 8px; font-size: 11.5px; } .ap .chip:not(.chip--ok) { background: #E4E4E4; color: #616161; }
.ap-btn { margin-left: auto; padding: 6px 11px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 1px 0 rgb(0 0 0 / .06); font-size: 12px; font-weight: 600; color: #303030; }
.ap-btn--ink { background: #303030; box-shadow: none; color: #fff; }
.ap-card { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 0 rgb(0 0 0 / .05); }
.ap-big { font-size: 34px; font-weight: 650; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #1A1A1A; }
.ap-sub { margin-top: 5px; font-size: 13px; color: #616161; }
.ap-chart { display: block; width: 100%; height: 78px; margin-top: 10px; overflow: visible; fill: none; }
.ap-area { fill: rgb(215 30 67 / .1); } .ap-line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; } .ap-prev { stroke: #B5B5B5; stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.ap-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ap-facts span { display: block; font-size: 11.5px; color: #616161; } .ap-facts b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #1A1A1A; } .ap-facts i { margin-left: 5px; font-size: 11.5px; font-style: normal; color: #616161; }
.ap-tabs { display: flex; gap: 4px; margin-top: 10px; } .ap-tabs span { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 550; color: #616161; white-space: nowrap; } .ap-tabs .is-on { background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); color: #1A1A1A; }
.ap-rows { padding-block: 4px; } .ap-rows p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; } .ap-rows p + p { border-top: 1px solid #EBEBEB; }
.ap-rows b { font-weight: 650; color: #1A1A1A; } .ap-rows span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ap-rows em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--leaf); } .ap-rows .is-none { font-weight: 500; color: #8A8A8A; }
.ap-fns { padding-block: 4px; } .ap-fns p { display: grid; grid-template-columns: minmax(0, 1fr) 52px 58px 78px; gap: 8px; align-items: center; padding: 11px 0; font-variant-numeric: tabular-nums; } .ap-fns p + p { border-top: 1px solid #EBEBEB; }
.ap-fns p > span:not(:first-child) { text-align: right; } .ap-fns p > span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; } .ap-fns b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: #1A1A1A; }
.ap-fns i { font-style: normal; } .ap-fn-h { font-size: 11.5px; color: #616161; } .ap-fns .ap-fn-h span:first-child { font-size: 12.5px; font-weight: 650; color: #1A1A1A; } .ap-fns .is-off { color: #8A8A8A; } .ap-fns .is-off b { color: #616161; }
@media (max-width: 640px) {
  .art-admin { margin-top: 14px; padding: 0 16px; } .admin-tabs { margin-bottom: 10px; } .admin-tabs button { min-height: 40px; } .admin-win { height: 330px; }
  .ap { padding: 14px; } .ap-card { padding: 14px; } .ap-big { font-size: 30px; } .ap-chart { height: 62px; } .ap-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .ap-tabs span { padding: 5px 7px; font-size: 11.5px; } .ap-fns p { grid-template-columns: minmax(0, 1fr) 38px 44px 66px; gap: 6px; } .ap-fns .chip { display: none; }
}

/* ---------- the drawn scenes of the cards. Their parts are in kit.css (the phone, the tiles, the hub, the hairlines); here is
   where each scene puts them and what moves. A scene is a stage of a fixed number of em, and the em follows the card's width (cqw),
   so it scales like a picture. Hairlines are drawn on a 360 x 270 grid over the stage: ten units to the em. ---------- */
.art-press, .art-more, .art-funnel, .art-smart, .art-wallet { container-type: inline-size; }
.st { position: relative; width: 36em; height: 27em; margin-inline: auto; font-size: calc(100cqw / 36); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.st svg { display: block; }
@keyframes k-run { from { stroke-dashoffset: 12; } to { stroke-dashoffset: -112; } }
@keyframes k-pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } }

/* one press: the phone. Loop 10 s: the tap (28 to 34 %), the sheet comes up (34 to 42 %) and stays, and at 90 % it goes again */
.st--press { --loop: 10s; width: 56em; height: 35em; overflow: hidden; font-size: calc(100cqw / 56); }
.st--press .ph { --ph-cut: 1.9em; position: absolute; left: 50%; top: 1.6em; height: 31.5em; margin-left: -10em; font-size: 1.15em; }
.st--press .ph-img { height: 6.6em; }
.st--press .ph-sheet { padding-bottom: calc(1.9em + var(--ph-cut)); animation: pr-sheet var(--loop) infinite; }
.st--press .ph-dim { animation: pr-dim var(--loop) infinite; }
.st--press .ph-ok { animation: pr-ok var(--loop) infinite; }
.st--press .ph-btn { overflow: visible; animation: pr-btn var(--loop) infinite; }
.st--press .ph-tap { left: 64%; top: 56%; animation: pr-tap var(--loop) infinite; }
@keyframes pr-tap { 0%, 26% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; transform: scale(1); } 36%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes pr-btn { 0%, 29% { transform: scale(1); } 31% { transform: scale(.965); } 34%, 100% { transform: scale(1); } }
@keyframes pr-dim { 0%, 34% { opacity: 0; } 41%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes pr-sheet { 0%, 34% { transform: translateY(104%); animation-timing-function: cubic-bezier(.16, .84, .3, 1); } 43%, 90% { transform: translateY(0); animation-timing-function: cubic-bezier(.6, 0, .85, .3); } 96%, 100% { transform: translateY(104%); } }
@keyframes pr-ok { 0%, 40% { transform: scale(.4); opacity: 0; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); } 47%, 100% { transform: scale(1); opacity: 1; } }

/* more per order: twenty orders, one gets an item more (about one in twenty said yes in ReConvert's report on 2023). Loop 8 s */
.st--more { --loop: 8s; width: 46em; height: 15.5em; font-size: calc(100cqw / 46); }
.st--more > .tl { left: calc(.75em + var(--c) * 4.5em); top: calc(4.4em + var(--r) * 4.7em); width: 3.95em; height: 3.95em; border-radius: .95em; }
.more-tag { position: absolute; right: .75em; top: .9em; padding: .28em .8em; border-radius: 999px; background: var(--card-2); font-size: .82em; font-weight: 500; color: var(--ink-2); }
.st--more .tl--add { right: -1.05em; bottom: -1.05em; z-index: 2; width: 2.75em; height: 2.75em; border-radius: .72em; box-shadow: 0 0 0 .1em rgb(215 30 67 / .55), 0 .45em 1em -.3em rgb(90 20 40 / .35); animation: mo-add var(--loop) infinite; }
.tl .tl--add .tl-cherry { right: -.45em; top: -.95em; width: 1.2em; }
@keyframes mo-add { 0%, 14% { opacity: 0; transform: translateY(.8em) scale(.5); animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); } 24%, 100% { opacity: 1; transform: none; } }

/* a funnel: the order, the first offer, and what a yes and a no lead to. Loop 8 s */
.st--funnel { --loop: 8s; }
.fn-s1 { animation: fn-s1 var(--loop) linear infinite; } .fn-s2 { animation: fn-s2 var(--loop) linear infinite; } .fn-sn { animation: fn-sn var(--loop) linear infinite; } .fn-sy { animation: fn-sy var(--loop) linear infinite; }
@keyframes fn-s1 { 0%, 2% { stroke-dashoffset: 12; } 10%, 100% { stroke-dashoffset: -112; } }
@keyframes fn-s2 { 0%, 10% { stroke-dashoffset: 12; } 18%, 100% { stroke-dashoffset: -112; } }
@keyframes fn-sn { 0%, 24% { stroke-dashoffset: 12; } 40%, 100% { stroke-dashoffset: -112; } }
@keyframes fn-sy { 0%, 56% { stroke-dashoffset: 12; } 72%, 100% { stroke-dashoffset: -112; } }
.fn-first { animation: fn-p1 var(--loop) infinite; } .fn-no { animation: fn-p2 var(--loop) infinite; } .fn-yes { animation: fn-p3 var(--loop) infinite; }
@keyframes fn-p1 { 0%, 17%, 27%, 100% { transform: scale(1); } 21% { transform: scale(1.08); } }
@keyframes fn-p2 { 0%, 39%, 49%, 100% { transform: scale(1); } 43% { transform: scale(1.08); } }
@keyframes fn-p3 { 0%, 71%, 81%, 100% { transform: scale(1); } 75% { transform: scale(1.08); } }

/* Smart Funnel: what is in the order, and which of three goods it offers. Two orders take turns. Loop 9 s; it rests on the first */
.st--smart { --loop: 9s; }
.sm-in > span:not(.tl-cap) { position: absolute; inset: 0; display: grid; place-items: center; }
.sm-in img { width: 80%; height: 80%; object-fit: contain; }
.sm-b { opacity: 0; animation: sm-b var(--loop) infinite; } .sm-a { animation: sm-a var(--loop) infinite; }
@keyframes sm-a { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sm-b { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
.sm-s0 { animation: sm-s0 var(--loop) linear infinite; } .sm-sa { animation: sm-sa var(--loop) linear infinite; } .sm-sb { animation: sm-sb var(--loop) linear infinite; }
@keyframes sm-s0 { 0%, 2% { stroke-dashoffset: 12; } 9% { stroke-dashoffset: -112; } 50%, 52% { stroke-dashoffset: 12; } 59%, 100% { stroke-dashoffset: -112; } }
@keyframes sm-sa { 0%, 9% { stroke-dashoffset: 12; } 21%, 100% { stroke-dashoffset: -112; } }
@keyframes sm-sb { 0%, 59% { stroke-dashoffset: 12; } 71%, 100% { stroke-dashoffset: -112; } }
.sm-t { transition: none; }
.sm-ta { box-shadow: 0 0 0 .14em rgb(215 30 67 / .6), 0 .55em 1.4em -.4em rgb(90 20 40 / .28); animation: sm-ta var(--loop) infinite; }
.sm-tb { animation: sm-tb var(--loop) infinite; } .sm-tb .tl-cherry { opacity: 0; animation: sm-cb var(--loop) infinite; } .sm-ta .tl-cherry { animation: sm-ca var(--loop) infinite; }
@keyframes sm-ta { 0%, 20% { box-shadow: 0 0 0 0 rgb(215 30 67 / 0), 0 .55em 1.4em -.4em rgb(90 20 40 / .18); transform: scale(1); } 24% { transform: scale(1.07); } 28%, 46% { box-shadow: 0 0 0 .14em rgb(215 30 67 / .6), 0 .55em 1.4em -.4em rgb(90 20 40 / .28); transform: scale(1); } 50%, 100% { box-shadow: 0 0 0 0 rgb(215 30 67 / 0), 0 .55em 1.4em -.4em rgb(90 20 40 / .18); } }
@keyframes sm-tb { 0%, 70% { box-shadow: 0 0 0 0 rgb(215 30 67 / 0), 0 .55em 1.4em -.4em rgb(90 20 40 / .18); transform: scale(1); } 74% { transform: scale(1.07); } 78%, 96% { box-shadow: 0 0 0 .14em rgb(215 30 67 / .6), 0 .55em 1.4em -.4em rgb(90 20 40 / .28); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgb(215 30 67 / 0), 0 .55em 1.4em -.4em rgb(90 20 40 / .18); } }
@keyframes sm-ca { 0%, 21% { opacity: 0; transform: translateY(-.8em) scale(.4); animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); } 27%, 46% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: none; } }
@keyframes sm-cb { 0%, 71% { opacity: 0; transform: translateY(-.8em) scale(.4); animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); } 77%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* card or wallet: a card payment gets the offer after the payment, a wallet gets it on the Thank you page. Loop 8 s */
.st--wallet { --loop: 8s; }
.tl--mark > svg { width: 62%; height: 62%; }
.tl--page .pg { display: grid; gap: .32em; width: 60%; }
.pg img { display: block; width: 100%; height: 2.3em; object-fit: contain; }
.pg b { display: block; height: .72em; border-radius: .26em; background: var(--k-cherry); }
.pg--ty { justify-items: center; }
.pg--ty u { display: grid; place-items: center; width: 1.5em; height: 1.5em; margin-bottom: .1em; border-radius: 50%; background: #1FA35C; color: #fff; text-decoration: none; } .pg--ty u svg { width: 60%; height: 60%; }
.pg--ty s { display: block; width: 100%; height: .3em; border-radius: .2em; background: #E9E1E3; } .pg--ty s + s { width: 68%; }
.pg--ty b { width: 100%; background: var(--k-ink); }
.wa-a1 { animation: wa-a1 var(--loop) linear infinite; } .wa-a2 { animation: wa-a2 var(--loop) linear infinite; } .wa-b1 { animation: wa-b1 var(--loop) linear infinite; } .wa-b2 { animation: wa-b2 var(--loop) linear infinite; }
@keyframes wa-a1 { 0%, 4% { stroke-dashoffset: 12; } 15%, 100% { stroke-dashoffset: -112; } }
@keyframes wa-a2 { 0%, 15% { stroke-dashoffset: 12; } 27%, 100% { stroke-dashoffset: -112; } }
@keyframes wa-b1 { 0%, 54% { stroke-dashoffset: 12; } 65%, 100% { stroke-dashoffset: -112; } }
@keyframes wa-b2 { 0%, 65% { stroke-dashoffset: 12; } 77%, 100% { stroke-dashoffset: -112; } }
.wa-ta { animation: wa-pa var(--loop) infinite; } .wa-tb { animation: wa-pb var(--loop) infinite; }
@keyframes wa-pa { 0%, 26%, 36%, 100% { transform: scale(1); } 30% { transform: scale(1.08); } }
@keyframes wa-pb { 0%, 76%, 86%, 100% { transform: scale(1); } 80% { transform: scale(1.08); } }

/* ---------- the proof: the order of the steps, with the offer after the payment ---------- */
.proof-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.proof-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px; border-radius: 999px; background: var(--card); font-size: 14.5px; font-weight: 550; letter-spacing: -.015em; white-space: nowrap; }
.proof-steps svg { width: 16px; height: 16px; color: var(--leaf); } .proof-steps img { width: 19px; height: auto; margin-block: -4px; }
.proof-steps .is-now { background: #FFE9EC; color: #8E0B21; } .proof-steps li:last-child { padding-left: 15px; background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
@media (min-width: 641px) and (max-width: 1180px) { .press-card { width: 128px; padding: 14px; } .press-card b { font-size: 15px; } .press-gate { width: 64px; height: 64px; } .press-order { width: 218px; padding: 14px 16px; font-size: 13.5px; } }
