/* SubKoi: the parts the drawn scenes are made of, on the page and in the film (art/film copies this file).
   A phone with the buyer's page after payment, white tiles with product pictures, SubKoi's own tile as the hub, and hairlines
   with a streak of light that runs along them. Everything is set in em, so a scene sets one font-size and the parts follow.
   A scene draws its hairlines on a grid of ten units to the em (an svg.wires as large as the scene), and their weights are in those units.
   The product pictures are public/assets/products/*.webp (art/products/build.mjs); the words on the buyer's page are the app's own. */
:root { --k-koi: #CF4708; --k-leaf: #17834A; --k-ink: #11131A; --k-ink-2: #636770; --k-line: #E7E9EE; --k-wire: #D6D9E2; }

/* ---------- the phone ---------- */
.ph { position: relative; flex: none; width: 20em; height: 42em; padding: .62em; border-radius: 3.35em; background: #14151C; box-shadow: inset 0 0 0 .08em #3A3D46, 0 0 0 .07em #07080B, 0 2.6em 4.8em -1.8em rgb(20 27 61 / .5); font-family: "Inter", "Geist", system-ui, sans-serif; line-height: 1.3; letter-spacing: -.011em; color: var(--k-ink); text-align: left; }
.ph::before, .ph::after { content: ""; position: absolute; width: .2em; border-radius: .1em; background: #14151C; }
.ph::before { left: -.14em; top: 9.4em; height: 2.9em; box-shadow: 0 3.7em 0 #14151C, 0 -3.1em 0 0 #14151C; }
.ph::after { right: -.14em; top: 11.6em; height: 4.6em; }
.ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.75em; background: #fff; }
.ph-island { position: absolute; left: 50%; top: .72em; z-index: 6; width: 5.7em; height: 1.66em; margin-left: -2.85em; border-radius: 1em; background: #090A0D; }
.ph-status { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 3.1em; padding: .3em 1.55em 0 1.95em; }
.ph-status b { font-size: .84em; font-weight: 650; letter-spacing: -.01em; }
.ph-status svg { display: block; width: 3.5em; height: .86em; }
.ph-page { padding: 3.5em 1em 0; }
.ph-store { padding: .15em 0 .5em; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 1.22em; font-style: italic; font-weight: 700; letter-spacing: -.02em; }
.ph-steps { display: flex; align-items: center; justify-content: center; gap: .55em; margin-bottom: .75em; font-size: .56em; font-weight: 500; color: #7F838A; white-space: nowrap; }
.ph-steps span { display: inline-flex; align-items: center; gap: .4em; }
.ph-steps span::before { content: ""; width: .7em; height: .7em; border-radius: 50%; box-shadow: inset 0 0 0 .14em #C0C3C9; }
.ph-steps .done { color: var(--k-ink); } .ph-steps .done::before { background: var(--k-leaf); box-shadow: none; }
.ph-steps .now { font-weight: 650; color: var(--k-ink); } .ph-steps .now::before { background: var(--k-koi); box-shadow: 0 0 0 .22em rgb(207 71 8 / .18); }
.ph-paid { display: flex; align-items: center; gap: .6em; padding: .62em .75em; border-radius: .8em; background: #F1F8F3; }
.ph-paid svg { flex: none; width: 1.45em; height: 1.45em; color: var(--k-leaf); }
.ph-paid b { display: block; font-size: .74em; font-weight: 650; }
.ph-paid u { display: block; margin-top: .1em; font-size: .62em; color: var(--k-ink-2); text-underline-offset: .18em; }
.ph-offer { margin-top: .7em; padding: .8em; border-radius: 1em; box-shadow: inset 0 0 0 1px var(--k-line); }
.ph-timer { display: flex; align-items: center; gap: .4em; font-size: .66em; color: var(--k-ink-2); }
.ph-timer svg { width: 1.25em; height: 1.25em; color: var(--k-koi); } .ph-timer b { font-weight: 650; color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ph-img { position: relative; display: grid; place-items: center; height: 9.2em; margin-top: .6em; border-radius: .8em; background: #F7F6F3; }
.ph-img img { position: absolute; left: 50%; top: 2%; display: block; width: auto; height: 96%; transform: translateX(-50%); mix-blend-mode: multiply; }
.ph-img em { position: absolute; left: .7em; top: .7em; padding: .28em .7em; border-radius: 999px; background: var(--k-koi); font-size: .62em; font-style: normal; font-weight: 650; color: #fff; }
.ph-title { margin-top: .65em; font-size: .98em; font-weight: 650; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.ph-price { display: flex; align-items: baseline; gap: .6em; margin-top: .4em; font-size: .8em; }
.ph-price s { color: #979BA2; } .ph-price b { font-weight: 700; }
.ph-btn { position: relative; display: grid; place-items: center; height: 2.95em; margin-top: .7em; overflow: hidden; border-radius: .75em; background: var(--k-koi); box-shadow: 0 .5em 1.2em -.4em rgb(207 71 8 / .55); color: #fff; }
.ph-btn span { font-size: .86em; font-weight: 650; }
.ph-no { margin-top: .7em; text-align: center; font-size: .66em; color: var(--k-ink-2); text-decoration: underline; text-underline-offset: .2em; }
.ph-dim { position: absolute; inset: 0; z-index: 7; border-radius: inherit; background: rgb(13 16 34 / .34); -webkit-backdrop-filter: blur(.35em); backdrop-filter: blur(.35em); }
.ph-sheet { position: absolute; inset: auto 0 0; z-index: 8; padding: .7em 1.1em 1.9em; border-radius: 1.7em 1.7em 0 0; background: #fff; box-shadow: 0 -1em 2.4em -1em rgb(13 16 34 / .35); text-align: center; }
.ph-grab { display: block; width: 2.6em; height: .3em; margin: 0 auto 1em; border-radius: 1em; background: #DDE0E6; }
.ph-ok { display: grid; place-items: center; width: 2.9em; height: 2.9em; margin: 0 auto; border-radius: 50%; background: #1FA35C; color: #fff; box-shadow: 0 0 0 .45em rgb(31 163 92 / .14); }
.ph-ok svg { width: 56%; height: 56%; }
.ph-sheet-h { margin-top: .9em; font-size: 1.08em; font-weight: 650; letter-spacing: -.025em; }
.ph-line { display: flex; align-items: center; gap: .7em; margin-top: .9em; padding: .6em .7em; border-radius: .9em; background: #FFF1E6; text-align: left; }
.ph-thumb { flex: none; display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: .7em; background: #fff; }
.ph-thumb img { width: 84%; height: 84%; object-fit: contain; }
.ph-line span:nth-child(2) { font-size: .76em; font-weight: 600; } .ph-line small { display: block; font-size: .84em; font-weight: 400; color: var(--k-ink-2); }
.ph-line > b { margin-left: auto; font-size: .78em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-same { display: flex; align-items: center; justify-content: center; gap: .45em; margin-top: .85em; font-size: .72em; font-weight: 600; color: var(--k-leaf); }
.ph-same svg { width: 1.35em; height: 1.35em; }
.ph-tap { position: absolute; z-index: 9; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: rgb(255 255 255 / .5); box-shadow: 0 0 0 .1em rgb(255 255 255 / .9), 0 .2em .8em rgb(13 16 34 / .3); opacity: 0; pointer-events: none; }

/* ---------- tiles, the hub, and the hairlines between them ---------- */
.tl { position: absolute; display: grid; place-items: center; width: 5.6em; height: 5.6em; border-radius: 1.3em; background: #fff; box-shadow: 0 0 0 1px rgb(20 27 61 / .05), 0 .55em 1.4em -.4em rgb(24 34 78 / .18); }
.tl > img { display: block; width: 80%; height: 80%; object-fit: contain; }
.tl > svg { display: block; width: 44%; height: 44%; color: var(--k-ink); }
.tl-pill { position: absolute; right: -.9em; top: -.7em; z-index: 2; padding: .2em .58em; border-radius: 999px; background: var(--k-koi); font-size: .78em; font-weight: 650; line-height: 1.3; letter-spacing: 0; color: #fff; white-space: nowrap; }
.tl-cap { position: absolute; left: 50%; top: calc(100% + .6em); transform: translateX(-50%); font-size: 1em; font-weight: 500; line-height: 1.2; color: var(--k-ink-2); white-space: nowrap; }
.tl .tl-koi, .tl-koi { position: absolute; right: -1em; top: -1em; z-index: 3; width: 2.3em; height: 2.3em; border-radius: 50%; box-shadow: 0 .3em .7em -.2em rgb(13 18 44 / .5); }
.hub { position: absolute; width: 6.6em; height: 6.6em; border-radius: 1.55em; box-shadow: 0 1em 2.1em -.6em rgb(13 18 44 / .55); }
.hub img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.wires .w { stroke: var(--k-wire); stroke-width: 1.15; }
.wires .s { stroke: var(--k-koi); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 10 200; stroke-dashoffset: 12; } /* at rest the streak lies before the line; it runs to -112, past its end */
.wires .s--leaf { stroke: var(--k-leaf); }
.wl { position: absolute; display: inline-flex; align-items: center; gap: .32em; padding: .2em .55em .2em .42em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgb(20 27 61 / .07), 0 .3em .8em -.3em rgb(24 34 78 / .2); line-height: 1.3; color: var(--k-ink); transform: translate(-50%, -50%); white-space: nowrap; }
.wl::before { content: ""; width: .46em; height: .46em; border-radius: 50%; background: var(--dot, #AEB2B9); }
.wl i { font-size: .82em; font-style: normal; font-weight: 600; }

/* ---------- pills in the app's own colours, and a tile that stands for nothing (yet, or any more) ---------- */
.tl-pill--leaf { background: var(--k-leaf); } .tl-pill--bad { background: #C5221F; } .tl-pill--mute { background: #5C6170; }
.tl--ghost { background: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 .09em #CBD0DA; } .tl--ghost > svg { color: var(--k-ink-2); }

/* ---------- the product page with the app's subscription options (the widget, in its own words) ---------- */
.ph-prod { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: .8em; align-items: center; }
.ph-prod .ph-img { height: 5.2em; margin-top: 0; }
.ph-prod b { display: block; font-size: .94em; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; } .ph-prod span { display: block; margin-top: .25em; font-size: .7em; color: var(--k-ink-2); }
.ph-w { margin-top: .85em; }
.ph-w-h { font-size: .7em; font-weight: 600; color: var(--k-ink-2); }
.ph-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .32em .6em; align-items: center; margin-top: .5em; padding: .72em .75em; border-radius: .85em; background: #fff; box-shadow: inset 0 0 0 1px var(--k-line); }
.ph-opt > i:first-child { width: 1em; height: 1em; border-radius: 50%; box-shadow: inset 0 0 0 .12em #C0C3C9; }
.ph-opt > b { font-size: .8em; font-weight: 600; white-space: nowrap; } .ph-opt > em { font-size: .78em; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; text-align: right; white-space: nowrap; }
.ph-opt > em s { display: block; font-size: .84em; font-weight: 500; color: var(--k-ink-2); }
.ph-opt.is-on { background: #FFF6EE; box-shadow: inset 0 0 0 .12em var(--k-koi); } .ph-opt.is-on > i:first-child { box-shadow: inset 0 0 0 .3em var(--k-koi); }
.ph-save { margin-left: .4em; padding: .14em .5em; border-radius: 999px; background: var(--k-koi); font-size: .72em; font-weight: 650; color: #fff; }
/* inside the subscribe card, as the widget's default layout has them: what a subscriber can do, and how often (a dropdown) */
.ph-freq { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: .62em .75em; border-radius: .7em; background: #fff; box-shadow: inset 0 0 0 1px var(--k-line); font-size: .7em; font-weight: 500; }
.ph-swap { display: inline-grid; } .ph-swap > * { grid-area: 1 / 1; font-weight: inherit; }
.ph-menu { position: absolute; z-index: 8; left: .75em; right: .75em; top: 100%; display: grid; margin-top: -.45em; padding: .35em; border-radius: .8em; background: #fff; box-shadow: 0 0 0 1px var(--k-line), 0 1em 2em -.7em rgb(13 16 34 / .4); font-size: .7em; }
.ph-menu b { padding: .55em .6em; border-radius: .5em; font-weight: 500; }
.ph-freq svg { width: 1.1em; height: 1.1em; color: var(--k-ink-2); }
.ph-perks { grid-column: 1 / -1; display: grid; gap: .3em; margin-top: .3em; padding: .7em .8em; border-radius: .8em; background: #fff; box-shadow: inset 0 0 0 1px var(--k-line); font-size: .62em; color: var(--k-ink-2); } .ph-perks span { display: flex; align-items: center; gap: .45em; } .ph-perks svg { flex: none; width: 1.15em; height: 1.15em; color: var(--k-leaf); }
