/* SubKoi: 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(20 27 61 / .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-sub:first-child { margin: 0 0 6px; }
.ap-chart { display: block; width: 100%; height: 78px; margin-top: 10px; overflow: visible; fill: none; }
.ap-area { fill: rgb(207 71 8 / .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(3, 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, .ap-subs { padding-block: 4px; } .ap-subs p { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) 104px 104px; } .ap-fns p, .ap-subs p { display: grid; grid-template-columns: minmax(0, 1fr) 132px 84px; gap: 8px; align-items: center; padding: 11px 0; font-variant-numeric: tabular-nums; } .ap-fns p + p, .ap-subs p + p { border-top: 1px solid #EBEBEB; }
.ap-fns p > span:not(:first-child), .ap-subs p > span:nth-child(n+3) { text-align: right; } .ap-subs p > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ap-fns p > span:first-child, .ap-subs p > span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; } .ap-fns b, .ap-subs 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-subs .chip--bad { background: var(--bad-bg); color: var(--bad-ink); } .ap-fns .ap-fn-h span:first-child, .ap-subs .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) 104px 66px; gap: 6px; } .ap-subs p { grid-template-columns: minmax(0, 1fr) 84px 76px; gap: 6px; } .ap-subs p > span:nth-child(2) { display: none; } .ap-fns .chip { display: none; }
}

/* ---------- the drawn scenes. 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 grid over the stage: ten units to the em. ---------- */
.art-pick, .art-again, .art-portal, .art-keep, .art-retry { 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; }
.st .s { animation: var(--run, none) var(--loop) linear infinite; }

/* a streak leaving the hub along each of three hairlines in turn, and the tile it reaches answering: the portal's scene runs on these */
@keyframes hr-s0 { 0%, 4% { stroke-dashoffset: 12; } 12%, 100% { stroke-dashoffset: -112; } }
@keyframes hr-s1 { 0%, 12% { stroke-dashoffset: 12; } 26%, 100% { stroke-dashoffset: -112; } }
@keyframes hr-s2 { 0%, 38% { stroke-dashoffset: 12; } 50%, 100% { stroke-dashoffset: -112; } }
@keyframes hr-s3 { 0%, 62% { stroke-dashoffset: 12; } 76%, 100% { stroke-dashoffset: -112; } }
@keyframes k-p1 { 0%, 25%, 35%, 100% { transform: scale(1); } 29% { transform: scale(1.08); } }
@keyframes k-p2 { 0%, 49%, 59%, 100% { transform: scale(1); } 53% { transform: scale(1.08); } }
@keyframes k-p3 { 0%, 75%, 85%, 100% { transform: scale(1); } 79% { transform: scale(1.08); } }

/* the product page: the subscribe card is chosen when the page opens. A tap opens the delivery dropdown, a tap picks every
   month. Loop 10 s; it rests with every month chosen and the list shut */
.st--pick { --loop: 10s; width: 56em; height: 35em; overflow: hidden; font-size: calc(100cqw / 56); }
.st--pick .ph { position: absolute; left: 50%; top: 1.6em; margin-left: -10em; font-size: 1.1em; } /* the button under the widget is inside the picture at this size */
.pk-f0, .pk-menu { opacity: 0; }
.pk-f0 { animation: pk-f0 var(--loop) infinite; } .pk-f1 { animation: pk-f1 var(--loop) infinite; }
.pk-menu { transform-origin: 50% 0; animation: pk-menu var(--loop) infinite; } .pk-pick { animation: pk-pick var(--loop) infinite; }
.st--pick .pk-t1 { left: 62%; top: 82%; animation: pk-tap var(--loop) infinite; } .st--pick .pk-t2 { left: 30%; top: 124%; animation: pk-tap var(--loop) -8.2s infinite; } /* the second tap 1.8 s after the first */
@keyframes pk-f0 { 0%, 2% { opacity: 0; } 5%, 49% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes pk-f1 { 0%, 2% { opacity: 1; } 5%, 49% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes pk-menu { 0%, 29% { opacity: 0; transform: translateY(-.5em) scale(.96); } 32%, 49% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: translateY(-.5em) scale(.96); } }
@keyframes pk-pick { 0%, 44% { background: rgb(255 241 230 / 0); } 46%, 52% { background: #FFF1E6; } 54%, 100% { background: rgb(255 241 230 / 0); } }
@keyframes pk-tap { 0%, 25% { opacity: 0; transform: scale(.5); } 29% { opacity: 1; transform: scale(1); } 35%, 100% { opacity: 0; transform: scale(1.5); } }

/* the same order again: one subscription over six months. Loop 8 s */
.st--again { --loop: 8s; width: 46em; height: 15.5em; font-size: calc(100cqw / 46); }
.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); }
.ag-t { left: calc(9.6em + var(--i) * 5.85em); top: 5.2em; width: 5.2em; height: 5.2em; border-radius: 1.2em; animation: ag-p var(--loop) infinite; animation-delay: calc(var(--i) * .5s); }
.ag-s { --run: ag-s; }
@keyframes ag-s { 0%, 4% { stroke-dashoffset: 12; } 46%, 100% { stroke-dashoffset: -112; } }
@keyframes ag-p { 0%, 9%, 19%, 100% { transform: scale(1); } 13% { transform: scale(1.09); } }

/* the customer portal: the next order, and three things the customer can do with it. Loop 9 s */
.st--portal { --loop: 9s; }
.po-s0 { --run: hr-s0; } .po-s1 { --run: hr-s1; } .po-s2 { --run: hr-s2; } .po-s3 { --run: hr-s3; }
.po-t1 { animation: k-p1 var(--loop) infinite; } .po-t2 { animation: k-p2 var(--loop) infinite; } .po-t3 { animation: k-p3 var(--loop) infinite; }

/* one offer before a cancellation: yes keeps the subscription, no ends it. Loop 8 s */
.st--keep { --loop: 8s; }
.kp-s1 { --run: kp-s1; } .kp-s2 { --run: kp-s2; } .kp-sy { --run: kp-sy; } .kp-sn { --run: kp-sn; }
@keyframes kp-s1 { 0%, 2% { stroke-dashoffset: 12; } 10%, 100% { stroke-dashoffset: -112; } }
@keyframes kp-s2 { 0%, 10% { stroke-dashoffset: 12; } 18%, 100% { stroke-dashoffset: -112; } }
@keyframes kp-sy { 0%, 26% { stroke-dashoffset: 12; } 42%, 100% { stroke-dashoffset: -112; } }
@keyframes kp-sn { 0%, 58% { stroke-dashoffset: 12; } 74%, 100% { stroke-dashoffset: -112; } }
.kp-offer { animation: kp-p1 var(--loop) infinite; } .kp-yes { animation: kp-p2 var(--loop) infinite; } .kp-no { animation: kp-p3 var(--loop) infinite; }
@keyframes kp-p1 { 0%, 17%, 27%, 100% { transform: scale(1); } 21% { transform: scale(1.08); } }
@keyframes kp-p2 { 0%, 41%, 51%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes kp-p3 { 0%, 73%, 83%, 100% { transform: scale(1); } 77% { transform: scale(1.08); } }

/* a card fails, the charge is tried again, and it goes through. Loop 8 s */
.st--retry { --loop: 8s; }
.rt-s1 { --run: kp-s1; } .rt-s2 { --run: kp-s2; } .rt-s3 { --run: rt-s3; }
@keyframes rt-s3 { 0%, 46% { stroke-dashoffset: 12; } 62%, 100% { stroke-dashoffset: -112; } }
.rt-try > svg { animation: rt-turn var(--loop) infinite; } .rt-paid { animation: kp-p3 var(--loop) infinite; }
@keyframes rt-turn { 0%, 18% { transform: rotate(0); } 44%, 100% { transform: rotate(1080deg); } }

/* ---------- 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: 20px; height: 20px; margin-block: -4px; border-radius: 50%; }
.proof-steps .is-now { background: #FFEBDD; color: #8A2E05; } .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; } }

@media (max-width: 640px) { #admin-p1 .ap-btn { display: none; } }
.ap-btn { white-space: nowrap; }
/* the Subscriptions window has three columns (two on a phone, without the products) */
.ap-card.ap-subs p { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 104px; } .ap-subs i { font-style: normal; } .ap .chip.chip--bad { background: var(--bad-bg); color: var(--bad-ink); }
@media (max-width: 640px) { .ap-card.ap-subs p { grid-template-columns: minmax(0, 1fr) 104px; } }
