/* Pluslet landing. Colours, type, radii and shadows are the DS tokens (tokens.css, a copy of design/bundle/ds/tokens.css
   without its @font-face); the fonts are the DS families, self-hosted. */
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-900.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("fonts/ShantellSans-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("fonts/ShantellSans-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* A spring that overshoots once and settles — the plusik's drop (DS --spring-drop is SwiftUI's; this is its CSS twin). */
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  --section: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-bg-canvas); }
body { margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 1.5; color: var(--color-text-primary); background: var(--color-bg-canvas); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-text-primary); outline-offset: 3px; border-radius: var(--radius-xs); }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- The plusik and the jar (DS Plus, Jar) ---------- */
.c-t { fill: var(--color-char-tomato); }
.c-b { fill: var(--color-char-butter); }
.c-m { fill: var(--color-char-sage); }
.c-s { fill: var(--color-char-sky); }
.pk-b { stroke: var(--color-sticker-rim); stroke-width: 10; paint-order: stroke; stroke-linejoin: round; }
.pk-i { stroke: var(--color-outline); stroke-width: 7; stroke-linejoin: round; }
.pk-face { color: var(--color-text-primary); }
.plusik { display: block; width: 100%; height: auto; overflow: visible; filter: var(--effect-sticker); }
.jar { display: block; width: 100%; height: auto; overflow: visible; }
.jar-lid { fill: var(--color-jar-lid); stroke: var(--color-outline); stroke-linejoin: round; }
.lid, .p { transform-box: fill-box; transform-origin: center; }
.coin { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; overflow: visible; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.langs { display: flex; gap: 4px; }
.langs a { display: inline-grid; place-items: center; min-width: var(--size-target); min-height: var(--size-target); border-radius: var(--radius-pill); font-size: 16px; font-weight: 800; text-decoration: none; color: var(--color-text-secondary); }
.langs a:hover { color: var(--color-text-primary); }
.langs a[aria-current] { color: var(--color-text-primary); background: var(--color-selected); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--size-target); font-weight: 900; font-size: 22px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-paper); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 40px; padding-block: 12px 88px; overflow-x: clip; }
.eyebrow { margin-bottom: 18px; font-weight: 800; font-size: 17px; color: var(--color-text-secondary); }
h1 { max-width: 6.4em; font-weight: 900; font-size: clamp(3.25rem, 1.5rem + 5.6vw, 6.75rem); line-height: .98; letter-spacing: -.03em; }
/* «Love coupons / for every / effort»: three lines at every width, so the last word and its plusik keep clear of the phone. */
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .08em; margin: -.1em -.08em; }
.mask > span { display: inline-block; }
.band { position: relative; z-index: 0; display: inline-block; }
.band::before { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .08em; height: .4em; border-radius: .1em; background: var(--color-selected); transform: rotate(-1.5deg); }
.perch { position: relative; display: inline-block; }
.on-word { position: absolute; width: clamp(40px, .48em, 60px); left: 100%; bottom: .12em; margin-left: .02em; rotate: 12deg; }
.lede { max-width: 32ch; margin: 26px 0 30px; font-size: clamp(18px, 1rem + .45vw, 23px); line-height: 1.45; color: var(--color-text-secondary); }
.badge { display: inline-block; padding: 12px; margin: -12px; line-height: 0; border-radius: 14px; }
.badge img { width: auto; height: 48px; }

.hero-visual { --w: clamp(220px, 60vw, 270px); position: relative; justify-self: center; padding-top: 34px; }
.device { position: relative; z-index: 1; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .15); background: var(--color-camera); box-shadow: var(--shadow-note); }
.hero-visual .device { rotate: -4deg; }
.screen { position: relative; overflow: hidden; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * .125); background: var(--color-bg-canvas); }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.on-device { position: absolute; z-index: 2; width: 62px; top: 4px; right: 14%; rotate: 10deg; }
.peek { position: absolute; z-index: 0; width: 104px; left: -62px; top: 44%; rotate: -16deg; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; min-height: calc(100svh - 84px); padding-block: 0 56px; }
  .hero-visual { --w: clamp(250px, 21vw, 300px); }
  .peek { width: 120px; left: -78px; }
}

/* ---------- Section heads ---------- */
.sec-head { max-width: 760px; }
h2 { font-weight: 900; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.sec-head p { margin-top: 14px; font-size: 20px; color: var(--color-text-secondary); }

/* ---------- How it works: the jar and the steps ---------- */
.how { padding-block: calc(var(--section) * .6); overflow-x: clip; }
.stage { display: grid; place-items: center; padding: 72px 0 64px; }
/* The jar's box is the DS jar's 320-unit width and 600 units of height: 190 above the lid for the counter, the coupon and
   the open lid, 410 for the jar. Every layer covers the box, so one unit is the box's width / 320 everywhere. */
.jarwrap { position: relative; width: min(300px, 68vw); margin-inline: auto; }
.jarbox { position: relative; aspect-ratio: 320 / 600; }
.jar-layer, .pile, .air { position: absolute; inset: 0; width: 100%; height: 100%; }
.jar-layer { overflow: visible; }
.pile, .air { container-type: inline-size; pointer-events: none; }
.pile { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pk { --u: calc(100cqw / 320); position: absolute; left: 0; top: 0; width: calc(var(--s) * 1.12 * var(--u)); aspect-ratio: 1;
  transform: translate(calc(var(--x) * var(--u)), calc(var(--y) * var(--u))) translate(-50%, -50%) rotate(calc(var(--r) * 1deg)); filter: var(--effect-sticker); }
.pk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pk.out { opacity: 0; }
.air .pk { opacity: 0; }
.lid { position: absolute; left: 20.625%; top: 27.333%; width: 59.375%; height: 12.667%; transform-origin: 50% 100%; }
.lid svg { display: block; width: 100%; height: 100%; overflow: visible; }
.counter { position: absolute; z-index: 2; top: 0; left: -14%; margin: 0; font-family: var(--font-hand); font-weight: 800; line-height: 1; }
.counter .num { display: inline-block; min-width: 1.15em; text-align: right; font-size: clamp(52px, 4.6vw, 80px); transform-origin: 30% 85%; font-variant-numeric: tabular-nums; }
.counter .of { margin-left: .06em; font-size: clamp(22px, 1.9vw, 30px); }
.note { position: absolute; z-index: 3; top: 0; right: -10%; width: min(54%, 210px); padding: 24px 14px 12px; border-radius: var(--radius-xs); background: var(--color-note); box-shadow: var(--shadow-note); outline: var(--size-dash) dashed var(--color-currency); outline-offset: calc(var(--space-2) * -1); rotate: 3deg; }
.tape { position: absolute; top: calc(var(--size-tape-h) / -2); left: 50%; width: var(--size-tape-w); height: var(--size-tape-h); transform: translateX(-50%) rotate(var(--tilt-edge)); background: repeating-linear-gradient(135deg, var(--color-char-tomato) 0 var(--size-stripe), var(--color-tape) var(--size-stripe) calc(var(--size-stripe) * 2)); opacity: .85; }
/* Phones: the coupon stands above the jar, not on it, and only its foot reaches into the empty room over the jar —
   the lifted lid and the mouth stay in sight whatever the reward's name. */
@media (max-width: 899px) {
  .note { position: relative; top: auto; right: auto; margin: 0 -10% -32px auto; }
}
.note .sticker { position: absolute; top: -24px; right: -8px; width: 58px; height: 58px; rotate: var(--tilt-right); }
.note .lead { font-family: var(--font-hand); font-weight: 700; font-size: 15px; line-height: 19px; }
.note .title { margin: 2px 0 6px; font-family: var(--font-hand); font-weight: 800; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.2; }
.note .meta { font-weight: 900; font-size: 16px; }
.lead-b { display: none; }
.redeemed .lead-a { display: none; }
.redeemed .lead-b { display: inline; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: var(--radius-pill); background: var(--color-bg-paper); box-shadow: var(--shadow-paper); font-weight: 900; font-size: 18px; }
.step h3 { margin-bottom: 10px; font-weight: 900; font-size: clamp(26px, 1.2rem + 1.1vw, 36px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.step p { max-width: 36ch; margin-bottom: 24px; color: var(--color-text-secondary); }

/* A crop of a capture (DS frame now, the build's capture in the final): --cx --cy --cw --ch are the crop's left, top,
   width and height as fractions of the 1320 x 2868 capture. */
.shot { position: relative; overflow: hidden; max-width: 440px; aspect-ratio: calc(var(--cw) * 1320) / calc(var(--ch) * 2868); border-radius: var(--radius-lg); background: var(--color-bg-canvas); box-shadow: var(--shadow-note), inset 0 0 0 var(--size-hairline) var(--color-line); }
.shot > img { position: absolute; max-width: none; height: auto; width: calc(100% / var(--cw)); left: calc(-100% * var(--cx) / var(--cw)); top: calc(-100% * var(--cy) / var(--ch)); }

/* Wide screens: the heading and the steps on the left, the jar pinned on the right for the whole section; it fits the
   height of the screen as well as its width. */
@media (min-width: 900px) {
  .jarwrap { width: min(340px, 27vw, 40svh); }
  .note { right: -26%; }
  .js .scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 56px; }
  .js .scene > .sec-head { grid-column: 1; grid-row: 1; }
  .js .stage { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 0; height: 100svh; padding: 0; place-items: start center; padding-top: max(32px, 10svh); }
  .js .steps { grid-column: 1; grid-row: 2; gap: 0; padding-bottom: 24svh; }
  .js .step { display: grid; align-content: center; min-height: 76svh; }
  .js .step:first-child { align-content: start; min-height: 64svh; padding-top: 56px; }
}

/* ---------- Features ---------- */
.features { padding-block: calc(var(--section) * .6) var(--section); }
.grid { margin-top: 48px; columns: 1; column-gap: 20px; }
.card { position: relative; break-inside: avoid; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; padding: 28px; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-paper); box-shadow: var(--shadow-paper); }
.card h3 { font-weight: 900; font-size: 25px; line-height: 1.15; letter-spacing: -.01em; }
.card p { font-size: 17px; color: var(--color-text-secondary); }
.card .shot { margin-top: 18px; max-width: none; width: 100%; box-shadow: inset 0 0 0 var(--size-hairline) var(--color-line); }
.card.c { background: var(--color-home); }
.card.c p { color: var(--color-text-primary); }
.card.c .shot { background: var(--color-home); box-shadow: none; }
.pair { display: flex; justify-content: center; gap: 28px; margin-top: auto; padding-top: 24px; }
.pair .jar { width: 108px; }
.card.e { flex-direction: row; align-items: center; gap: 24px; justify-content: space-between; }
.e-plus { flex: none; width: 96px; rotate: 12deg; }
@media (min-width: 900px) {
  .grid { columns: 3; }
}

/* ---------- Plans and the close ---------- */
.plans { padding-block: 0 var(--section); }
.panel { max-width: 880px; margin-inline: auto; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--color-bg-paper); box-shadow: var(--shadow-paper); text-align: center; }
.panel p { max-width: 40ch; margin: 18px auto 0; font-size: clamp(18px, 1rem + .35vw, 21px); color: var(--color-text-secondary); }
.close { padding-block: calc(var(--section) * .4) var(--section); text-align: center; }
.wakers { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; }
.waker { width: 60px; }
.waker:nth-child(odd) { rotate: -8deg; }
.waker:nth-child(even) { rotate: 10deg; translate: 0 6px; }
.f-sleepy { opacity: 0; }
.js .waker .f-sleepy { opacity: 1; }
.js .waker .f-awake { opacity: 0; }
.js .awake .waker .f-sleepy { opacity: 0; }
.js .awake .waker .f-awake { opacity: 1; }
.close p { margin: 14px 0 30px; font-weight: 800; color: var(--color-text-secondary); }

/* ---------- Footer ---------- */
.foot { padding-block: 32px 48px; border-top: var(--size-hairline) solid var(--color-line); font-size: 16px; color: var(--color-text-secondary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 12px; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--size-target); font-weight: 800; color: var(--color-text-primary); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.credit { margin-top: 6px; font-size: 16px; }

/* ---------- The jar without the script ---------- */
/* It stands at the app's own 18: the first 18 places of the heap's first step (`Jar heap rule`). */
html:not(.js) .pile .pk:nth-child(n+19) { display: none; }

/* ---------- Motion — only for those who did not ask for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter .72s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .mask > span { animation: word .72s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .band::before { animation: band .6s var(--ease) .5s both; }
  .drop { animation: drop .8s var(--spring) both; animation-delay: calc(.55s + var(--i, 0) * 110ms); }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .72s var(--ease), transform .72s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }


  .js .waker .pk-face { transition: opacity .3s linear; transition-delay: calc(var(--i, 0) * 120ms + .2s); }
}
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
@keyframes word { from { transform: translateY(110%); } }
@keyframes band { from { clip-path: inset(0 100% 0 0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-160px); } 12% { opacity: 1; } }

/* A card lit under the pointer. */
@media (hover: hover) and (pointer: fine) {
  .js [data-spot]::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .42s;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--color-selected) 45%, transparent), transparent 70%); }
  .js [data-spot]:hover::before { opacity: 1; }
  .card > * { position: relative; z-index: 1; }
}
