/* Features page. Sits on top of styles.css. Every picture is drawn in CSS and animated in CSS:
   the site allows no scripts. All motion is at the end of this file, and off for reduced motion. */
:root { --glow: rgba(45, 212, 191, 0.16); --glow-amber: rgba(245, 165, 36, 0.10); --device: #0A100F; --device-screen: #131C1A; }
@media (prefers-color-scheme: light) { :root { --glow: rgba(15, 118, 110, 0.12); --glow-amber: rgba(232, 146, 12, 0.10); } }

/* Hero: the headline, and a receipt that is the page's contents list */
.fhero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-block: 40px 80px; }
.fhero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 20px; }
.fhero h1 em { font-style: normal; color: var(--accent-text); }
.fhero .lede { color: var(--on-counter-muted); font-size: 1.2rem; max-width: 30em; margin: 0 0 28px; }
.fhero .slip { max-width: 380px; width: 100%; justify-self: center; transform: rotate(1.5deg); }
.fhero .slip a { color: inherit; text-decoration: none; }
.fhero .slip a:hover span:first-child { text-decoration: underline; }
.fhero .slip .n { color: var(--ink-faint); margin-right: 4px; }
.fhero .slip .val { color: var(--accent-ink); font-weight: 600; }

/* One feature: words on one side, a picture on the other */
.feat { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; padding-block: 44px; scroll-margin-top: 16px; }
.feat.flip .words { order: 2; }
.feat .num { font-family: var(--mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 2px; color: var(--deadline-text); margin: 0 0 12px; }
.feat h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.feat .words > p { color: var(--on-counter-muted); margin: 0 0 20px; max-width: 30em; }
.also { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.also li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.98rem; }
.also li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.also b { font-weight: 700; }
.also span { color: var(--on-counter-muted); }

/* The stage a picture sits on */
.art {
  position: relative; min-height: 420px; border-radius: 28px; padding: 36px 28px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  background:
    radial-gradient(420px 300px at 80% 0%, var(--glow), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, var(--glow-amber), transparent 70%),
    var(--counter-raised);
  border: 1px solid var(--counter-line); overflow: hidden;
}

/* Small paper parts used inside pictures */
.slip.mini { padding: 16px 16px 22px; font-size: 0.8rem; line-height: 1.45; width: 100%; max-width: 250px; margin-bottom: 10px; }
.slip.mini .slip-head { padding-bottom: 8px; margin-bottom: 8px; }
.slip.mini .slip-head strong { font-size: 0.9rem; letter-spacing: 3px; }
.slip.mini .slip-head span { font-size: 0.68rem; }
.slip.mini .row { margin: 3px 0; }
.slip.mini .total { margin-top: 8px; padding-top: 8px; font-size: 0.85rem; }
.slip.mini .stamp { margin-top: 10px; font-size: 0.7rem; }
.slip.wide { max-width: 360px; }
/* A cleaner torn edge than the main one: it stays sharp when the slip is tilted. */
.fhero .slip::after, .art .slip::after {
  bottom: -9px; height: 10px;
  background: conic-gradient(from -45deg at bottom, transparent, var(--paper) 1deg 89deg, transparent 90deg) 50% 0 / 18px 100% repeat-x;
}
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.ok { color: var(--accent-ink); font-weight: 600; }

/* 01 Scan: a phone looking at a receipt, and the receipt it read */
.phone { flex: none; width: 190px; height: 372px; border-radius: 34px; background: var(--device); padding: 9px; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #26332F; }
.phone .screen { position: relative; height: 100%; border-radius: 26px; background: var(--device-screen); overflow: hidden; }
.phone .screen::before { content: ""; position: absolute; left: 50%; top: 8px; width: 58px; height: 16px; margin-left: -29px; border-radius: 10px; background: var(--device); z-index: 2; }
.shot { position: absolute; left: 28px; right: 28px; top: 52px; bottom: 86px; background: #F5F2EA; transform: rotate(-3deg); padding: 14px 10px; display: grid; gap: 7px; align-content: start; }
.shot i { display: block; height: 5px; border-radius: 3px; background: #B9B4A8; }
.shot i:nth-child(1) { width: 60%; height: 9px; background: #1B1F1D; margin: 0 auto 6px; }
.shot i:nth-child(3n) { width: 78%; }
.shot i:last-child { width: 44%; height: 8px; background: #1B1F1D; margin-left: auto; margin-top: 6px; }
.frame { position: absolute; left: 16px; right: 16px; top: 40px; bottom: 74px; }
.frame b { position: absolute; width: 24px; height: 24px; border: 3px solid #2DD4BF; }
.frame b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.frame b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.frame b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.frame b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.beam { position: absolute; left: 6px; right: 6px; top: 45%; height: 3px; border-radius: 2px; background: #2DD4BF; box-shadow: 0 0 18px 6px rgba(45, 212, 191, 0.45); }
.shutter { position: absolute; left: 50%; bottom: 16px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #EEF4F2; box-shadow: 0 0 0 4px var(--device-screen), 0 0 0 6px #EEF4F2; }
.arrow { flex: none; width: 44px; height: 44px; color: var(--accent); }
.art.scan { gap: 14px; flex-wrap: nowrap; }
.art.scan .slip.mini { max-width: 210px; }

/* 02 Find: a search box and the receipt it found */
.art.find { flex-direction: column; flex-wrap: nowrap; gap: 26px; }
.search { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; background: var(--counter); border: 2px solid var(--accent); border-radius: 999px; padding: 12px 20px; font-size: 1.15rem; box-shadow: 0 0 0 6px var(--glow); }
.search svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.search .q { font-family: var(--mono); font-size: 1.05rem; display: inline-block; white-space: nowrap; overflow: hidden; width: 8ch; }
.search u { text-decoration: none; width: 2px; height: 1.3em; background: var(--accent); margin-left: -8px; }
.pile { position: relative; width: 100%; max-width: 270px; }
.pile .back { position: absolute; inset: 0 0 10px; background: var(--paper-shade); box-shadow: var(--paper-shadow); }
.pile .back.a { transform: rotate(-7deg) translateX(-34px); opacity: 0.75; }
.pile .back.b { transform: rotate(6deg) translateX(34px); opacity: 0.75; }
.pile .slip { position: relative; max-width: none; }
mark { background: linear-gradient(transparent 12%, rgba(45, 212, 191, 0.55) 12% 88%, transparent 88%) no-repeat 0 0 / 100% 100%; color: inherit; padding: 0 3px; margin: 0 -3px; font-weight: 600; }

/* 03 Returns: the receipt, its countdown, and the reminder */
.art.returns { flex-direction: column; flex-wrap: nowrap; gap: 20px; }
.days { display: flex; gap: 5px; margin-top: 10px; }
.days i { flex: 1; height: 16px; border-radius: 3px; background: var(--paper-shade); border: 1.5px solid var(--ink-rule); }
.days i.left { background: #F5A524; border-color: #9A4A06; }
.note-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; width: 100%; max-width: 360px; background: var(--counter); border: 1px solid var(--counter-line); border-radius: 18px; padding: 12px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
.note-card img { width: 40px; height: 40px; border-radius: 10px; }
.note-card small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1px; color: var(--on-counter-muted); }
.note-card b { display: block; line-height: 1.25; }
.note-card span { display: block; font-size: 0.88rem; color: var(--on-counter-muted); line-height: 1.3; }

/* 04 Warranties and offers: a warranty card and a coupon */
.meter { height: 12px; border-radius: 6px; background: var(--paper-shade); border: 1.5px solid var(--ink-rule); margin: 10px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 34%; background: #0F766E; transform-origin: left; }
.meter.spend i { width: 80%; }
.ends { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--ink-faint); }
.coupon { position: relative; width: 100%; max-width: 230px; background: #F5A524; color: #1B1F1D; border-radius: 14px; padding: 18px 18px 16px; font-family: var(--mono); box-shadow: var(--paper-shadow); transform: rotate(3deg); }
.coupon::before, .coupon::after { content: ""; position: absolute; top: 62%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--counter-raised); }
.coupon::before { left: -11px; }
.coupon::after { right: -11px; }
.coupon strong { display: block; font-family: var(--sans); font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; }
.coupon span { display: block; font-size: 0.78rem; margin-top: 4px; }
.coupon em { display: block; font-style: normal; font-weight: 600; font-size: 0.72rem; letter-spacing: 1.5px; border-top: 2px dashed rgba(27, 31, 29, 0.5); margin-top: 16px; padding-top: 12px; }

/* 05 Reports: a month printed as bars */
.art.reports { flex-direction: column; flex-wrap: nowrap; gap: 18px; }
.bars { display: grid; gap: 7px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: 82px 1fr 52px; gap: 8px; align-items: center; }
.bar i { display: block; height: 14px; border-radius: 2px; background: #0F766E; transform-origin: left; }
.bar .v { text-align: right; }
.w1 { width: 100%; } .w2 { width: 57%; } .w3 { width: 39%; } .w4 { width: 29%; } .w5 { width: 22%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; border: 1.5px dashed var(--counter-line); border-radius: 999px; padding: 6px 14px; background: var(--counter); }
.chip b { color: var(--accent-text); }

/* 06 Envelopes: receipts tucked into an envelope with a budget */
.envelope { position: relative; width: 100%; max-width: 330px; padding-top: 74px; }
.envelope .peek { position: absolute; top: 0; width: 44%; height: 150px; background: var(--paper); box-shadow: var(--paper-shadow); padding: 12px 10px; display: grid; gap: 6px; align-content: start; }
.envelope .peek i { display: block; height: 4px; border-radius: 2px; background: #B9B4A8; }
.envelope .peek i:first-child { height: 7px; width: 60%; background: #1B1F1D; }
.envelope .peek.a { left: 8%; transform: rotate(-6deg); }
.envelope .peek.b { right: 8%; top: 12px; transform: rotate(5deg); background: var(--paper-shade); }
.envelope .body { position: relative; background: #D9C9A3; color: #1B1F1D; border-radius: 6px 6px 12px 12px; padding: 54px 22px 20px; font-family: var(--mono); font-size: 0.8rem; box-shadow: 0 16px 26px rgba(0, 0, 0, 0.4); }
.envelope .body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; background: #C7B588; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope .body strong { display: block; font-family: var(--sans); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.envelope .meter { background: rgba(255, 255, 255, 0.5); border-color: rgba(27, 31, 29, 0.45); }
.envelope .ends { color: #3d3a30; }

/* 07 Private: a padlock, and the slip that says what leaves the phone */
.lock { flex: none; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: var(--counter); border: 2px solid var(--accent); box-shadow: 0 0 0 10px var(--glow); color: var(--accent-text); }
.lock svg { width: 58px; height: 58px; }

/* The end of the roll */
.fend { text-align: center; padding-block: 56px 96px; }
.fend h2 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
.fend p { color: var(--on-counter-muted); margin: 20px 0 0; }

@media (max-width: 860px) {
  .fhero, .feat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fhero { padding-block: 16px 48px; }
  .feat { padding-block: 32px; }
  .feat.flip .words { order: 0; }
  .art { min-height: 0; padding: 28px 16px; border-radius: 22px; }
  .arrow { transform: rotate(90deg); }
  .art.scan { flex-direction: column; gap: 18px; }
  .art.scan .slip.mini { max-width: 250px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root { --loop: 9s; }

  /* The top: the contents receipt prints, line by line, and is stamped. */
  .fhero .slip { animation: hfeed 700ms ease-out both; }
  .fhero .slip .row { animation: hrow 420ms ease-out both; }
  .fhero .slip .row:nth-child(2) { animation-delay: 350ms; }
  .fhero .slip .row:nth-child(3) { animation-delay: 440ms; }
  .fhero .slip .row:nth-child(4) { animation-delay: 530ms; }
  .fhero .slip .row:nth-child(5) { animation-delay: 620ms; }
  .fhero .slip .row:nth-child(6) { animation-delay: 710ms; }
  .fhero .slip .row:nth-child(7) { animation-delay: 800ms; }
  .fhero .slip .row:nth-child(8) { animation-delay: 890ms; }
  .fhero .slip .row:nth-child(9) { animation-delay: 1050ms; }
  .fhero .slip .stamp { animation: hstamp 380ms ease-out 1500ms both; }
  .fhero h1, .fhero .label, .fhero .lede, .fhero .soon { animation: hrow 600ms ease-out both; }
  .fhero .lede { animation-delay: 120ms; }
  .fhero .soon { animation-delay: 240ms; }
  .fhero .slip .val { animation: nudge 1.6s ease-in-out 2.2s infinite; }
  .fhero .slip .total .val { animation: none; }
  @keyframes hfeed { from { opacity: 0; translate: 0 -28px; } to { opacity: 1; translate: 0 0; } }
  @keyframes hrow { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  @keyframes hstamp { from { opacity: 0; scale: 2.6; } 60% { opacity: 1; scale: 0.9; } to { opacity: 1; scale: 1; } }
  @keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }

  /* Each picture plays its own short story on a loop, then holds. */
  .art.scan .slip > :nth-child(2) { animation: in34 var(--loop) ease-out infinite both; }
  .art.scan .slip > :nth-child(3) { animation: in40 var(--loop) ease-out infinite both; }
  .art.scan .slip > :nth-child(4) { animation: in46 var(--loop) ease-out infinite both; }
  .art.scan .slip > :nth-child(5) { animation: in52 var(--loop) ease-out infinite both; }
  .art.scan .stamp { animation: thump60 var(--loop) ease-out infinite both; }
  .art.find .pile .slip { animation: in28 var(--loop) ease-out infinite both; }
  .art.returns .days i:nth-child(1) { animation: day12 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(2) { animation: day16 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(3) { animation: day20 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(4) { animation: day24 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(5) { animation: day28 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(6) { animation: day32 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(7) { animation: day36 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(8) { animation: day40 var(--loop) linear infinite both; }
  .art.returns .days i:nth-child(9) { animation: day44 var(--loop) linear infinite both; }
  .art.returns .stamp { animation: thump50 var(--loop) ease-out infinite both; }
  .art.returns .note-card { animation: in58 var(--loop) ease-out infinite both; }
  .art.keep .meter i { animation: grow10 var(--loop) ease-out infinite both; }
  .art.keep .ends { animation: in22 var(--loop) ease-out infinite both; }
  .art.keep .stamp { animation: thump28 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(1) i { animation: grow14 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(1) .v { animation: in20 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(2) i { animation: grow20 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(2) .v { animation: in26 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(3) i { animation: grow26 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(3) .v { animation: in32 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(4) i { animation: grow32 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(4) .v { animation: in38 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(5) i { animation: grow38 var(--loop) ease-out infinite both; }
  .art.reports .bar:nth-child(5) .v { animation: in44 var(--loop) ease-out infinite both; }
  .art.reports .total { animation: in50 var(--loop) ease-out infinite both; }
  .art.reports .chip:nth-child(1) { animation: in58 var(--loop) ease-out infinite both; }
  .art.reports .chip:nth-child(2) { animation: in62 var(--loop) ease-out infinite both; }
  .art.reports .chip:nth-child(3) { animation: in66 var(--loop) ease-out infinite both; }
  .art.env .meter i { animation: grow30 var(--loop) ease-out infinite both; }
  .art.env .ends { animation: in44 var(--loop) ease-out infinite both; }
  .art.priv .slip > :nth-child(2) { animation: in10 var(--loop) ease-out infinite both; }
  .art.priv .slip > :nth-child(3) { animation: in18 var(--loop) ease-out infinite both; }
  .art.priv .slip > :nth-child(4) { animation: in26 var(--loop) ease-out infinite both; }
  .art.priv .slip > :nth-child(5) { animation: in34 var(--loop) ease-out infinite both; }
  @keyframes in34 { 0%, 34% { opacity: 0; translate: 0 10px; } 38%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in40 { 0%, 40% { opacity: 0; translate: 0 10px; } 44%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in46 { 0%, 46% { opacity: 0; translate: 0 10px; } 50%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in52 { 0%, 52% { opacity: 0; translate: 0 10px; } 56%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes thump60 { 0%, 60% { opacity: 0; scale: 2.4; } 63% { opacity: 1; scale: 0.9; } 65%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: 1; } }
  @keyframes in28 { 0%, 28% { opacity: 0; translate: 0 10px; } 32%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes day12 { 0%, 12% { background: #F5A524; border-color: #9A4A06; } 13%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day16 { 0%, 16% { background: #F5A524; border-color: #9A4A06; } 17%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day20 { 0%, 20% { background: #F5A524; border-color: #9A4A06; } 21%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day24 { 0%, 24% { background: #F5A524; border-color: #9A4A06; } 25%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day28 { 0%, 28% { background: #F5A524; border-color: #9A4A06; } 29%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day32 { 0%, 32% { background: #F5A524; border-color: #9A4A06; } 33%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day36 { 0%, 36% { background: #F5A524; border-color: #9A4A06; } 37%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day40 { 0%, 40% { background: #F5A524; border-color: #9A4A06; } 41%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes day44 { 0%, 44% { background: #F5A524; border-color: #9A4A06; } 45%, 94% { background: var(--paper-shade); border-color: var(--ink-rule); } 98%, 100% { background: #F5A524; border-color: #9A4A06; } }
  @keyframes thump50 { 0%, 50% { opacity: 0; scale: 2.4; } 53% { opacity: 1; scale: 0.9; } 55%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: 1; } }
  @keyframes in58 { 0%, 58% { opacity: 0; translate: 0 10px; } 62%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow10 { 0%, 10% { scale: 0 1; } 20%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in22 { 0%, 22% { opacity: 0; translate: 0 10px; } 26%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes thump28 { 0%, 28% { opacity: 0; scale: 2.4; } 31% { opacity: 1; scale: 0.9; } 33%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: 1; } }
  @keyframes grow14 { 0%, 14% { scale: 0 1; } 24%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in20 { 0%, 20% { opacity: 0; translate: 0 10px; } 24%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow20 { 0%, 20% { scale: 0 1; } 30%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in26 { 0%, 26% { opacity: 0; translate: 0 10px; } 30%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow26 { 0%, 26% { scale: 0 1; } 36%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in32 { 0%, 32% { opacity: 0; translate: 0 10px; } 36%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow32 { 0%, 32% { scale: 0 1; } 42%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in38 { 0%, 38% { opacity: 0; translate: 0 10px; } 42%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow38 { 0%, 38% { scale: 0 1; } 48%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in44 { 0%, 44% { opacity: 0; translate: 0 10px; } 48%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in50 { 0%, 50% { opacity: 0; translate: 0 10px; } 54%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in62 { 0%, 62% { opacity: 0; translate: 0 10px; } 66%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in66 { 0%, 66% { opacity: 0; translate: 0 10px; } 70%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes grow30 { 0%, 30% { scale: 0 1; } 40%, 94% { scale: 1 1; } 98%, 100% { scale: 0 1; } }
  @keyframes in10 { 0%, 10% { opacity: 0; translate: 0 10px; } 14%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes in18 { 0%, 18% { opacity: 0; translate: 0 10px; } 22%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }

  /* 01: the beam sweeps the receipt, then rests; the arrow beats. */
  .beam { animation: beam var(--loop) ease-in-out infinite both; }
  @keyframes beam { 0% { top: 2%; opacity: 0; } 4% { top: 2%; opacity: 1; } 28% { top: 96%; opacity: 1; } 32%, 100% { top: 96%; opacity: 0; } }
  .shutter { animation: snap var(--loop) ease-out infinite both; }
  @keyframes snap { 0%, 28% { scale: 1; } 30% { scale: 0.82; } 33%, 100% { scale: 1; } }
  .arrow { animation: beat 1.4s ease-in-out infinite; }
  @keyframes beat { 0%, 100% { scale: 1; opacity: 0.7; } 50% { scale: 1.22; opacity: 1; } }

  /* 02: the search is typed, the receipts fan out, the line is highlighted. */
  .search .q { animation: type var(--loop) steps(8, end) infinite both; }
  @keyframes type { 0%, 6% { width: 0; } 22%, 94% { width: 8ch; } 98%, 100% { width: 0; } }
  .search u { animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .pile .back.a { animation: fana var(--loop) ease-out infinite both; }
  .pile .back.b { animation: fanb var(--loop) ease-out infinite both; }
  @keyframes fana { 0%, 30% { transform: none; opacity: 0; } 38%, 94% { transform: rotate(-7deg) translateX(-34px); opacity: 0.75; } 98%, 100% { transform: none; opacity: 0; } }
  @keyframes fanb { 0%, 30% { transform: none; opacity: 0; } 38%, 94% { transform: rotate(6deg) translateX(34px); opacity: 0.75; } 98%, 100% { transform: none; opacity: 0; } }
  mark { animation: hilite var(--loop) ease-out infinite both; }
  @keyframes hilite { 0%, 42% { background-size: 0% 100%; } 50%, 100% { background-size: 100% 100%; } }

  /* 04: the coupon swings on its own time. */
  .coupon { animation: in36 var(--loop) ease-out infinite both, swing 3.6s ease-in-out infinite alternate; }
  @keyframes in36 { 0%, 36% { opacity: 0; translate: 0 10px; } 40%, 94% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; translate: 0 0; } }
  @keyframes swing { from { rotate: -3deg; } to { rotate: 2deg; } }

  /* 06: the receipts rise out of the envelope. */
  .envelope .peek.a { animation: peek var(--loop) ease-out infinite both; }
  .envelope .peek.b { animation: peek2 var(--loop) ease-out infinite both; }
  @keyframes peek { 0%, 6% { translate: 0 84px; } 18%, 92% { translate: 0 0; } 98%, 100% { translate: 0 84px; } }
  @keyframes peek2 { 0%, 14% { translate: 0 76px; } 26%, 92% { translate: 0 0; } 98%, 100% { translate: 0 76px; } }

  /* 07: the padlock breathes. */
  .lock { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 8px var(--glow); } 50% { box-shadow: 0 0 0 20px transparent; } }

  /* As you scroll, each feature rises into place. Only where the browser can tie motion to scrolling;
     elsewhere the page is simply there. */
  @supports (animation-timeline: view()) {
    .feat .words, .feat .art, .fend > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    .feat .art { animation-name: riseart; }
    @keyframes rise { from { opacity: 0; translate: 0 44px; } to { opacity: 1; translate: 0 0; } }
    @keyframes riseart { from { opacity: 0; translate: 0 70px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
  }
}
