:root {
  --bg: #fbf6ee;
  --paper: #fffaf3;
  --sand: #f1e4d2;
  --ink: #231a14;
  --muted: #6f6257;
  --line: rgba(35, 26, 20, 0.13);
  --accent: #d2502a;
  --accent-deep: #a83a1b;
  --green: #2f5d50;
  --radius: 22px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 78px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(251, 246, 238, 0.78); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--ink); text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; background: var(--accent-deep); color: #fff; border: 0; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; box-shadow: 0 8px 22px -10px rgba(210, 80, 42, 0.7); }
.button:hover { text-decoration: none; background: #8f2f14; transform: translateY(-2px); }
.button.small { height: 38px; padding: 0 18px; font-size: 14px; }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.button.quiet:hover { background: var(--sand); }
.button[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; }

/* Hero */
.hero { position: relative; padding: 76px 0 30px; text-align: center; overflow-x: clip; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.blob.a { width: 460px; height: 460px; background: #f6c9a8; top: -120px; left: -120px; }
.blob.b { width: 380px; height: 380px; background: #f3dcae; top: 40px; right: -110px; animation-duration: 23s; animation-delay: -6s; }
.blob.c { width: 320px; height: 320px; background: #cfe0cf; top: 420px; left: 38%; animation-duration: 27s; animation-delay: -11s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.18); } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); background: rgba(47, 93, 80, 0.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63, 174, 106, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(63, 174, 106, 0); } }
h1 { font: 600 clamp(40px, 6.4vw, 74px)/1.03 var(--serif); letter-spacing: -0.03em; margin: 0 auto 20px; max-width: 14ch; }
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 38em; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Hero drawing: a window is dragged from the laptop onto the tablet */
.stage { display: block; width: 100%; max-width: 1080px; height: auto; margin: 54px auto 0; overflow: visible; }
.stage .laptop, .stage .tablet { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease; }
.js .stage:not(.in) .laptop { transform: translateX(-60px); opacity: 0; }
.js .stage:not(.in) .tablet { transform: translateX(60px); opacity: 0; }
.stage .wake { animation: wake 1.4s 1s ease both; }
@keyframes wake { from { opacity: 1; } to { opacity: 0; } }
.stage .live { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.stage .wire { stroke-dasharray: 260; stroke-dashoffset: 0; }
.stage .flow { stroke-dasharray: 0.08 0.92; animation: flow 1.6s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* The same window is drawn twice, once inside each screen, and both copies move together:
   the tablet's copy sits one bezel-and-gap to the right, so the window appears to cross. */
.stage .carry { transform: translate(350px, 96px); animation: carry 7s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
@keyframes carry {
  0%, 16% { transform: translate(350px, 96px); opacity: 1; }
  52%, 88% { transform: translate(644px, 168px); opacity: 1; }
  94% { transform: translate(644px, 168px); opacity: 0; }
  95% { transform: translate(350px, 96px); opacity: 0; }
  100% { transform: translate(350px, 96px); opacity: 1; }
}
.stage .arrow { transform: translate(452px, 100px); animation: arrow 7s cubic-bezier(0.6, 0, 0.3, 1) infinite; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
@keyframes arrow {
  0% { transform: translate(300px, 250px); opacity: 0; }
  8% { opacity: 1; }
  16% { transform: translate(452px, 100px); opacity: 1; }
  52% { transform: translate(872px, 172px); opacity: 1; }
  70% { transform: translate(960px, 300px); opacity: 1; }
  88%, 100% { transform: translate(960px, 300px); opacity: 0; }
}

/* Marquee */
.marquee { margin-top: 46px; border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--paper); }
.marquee div { display: flex; gap: 46px; width: max-content; animation: slide 30s linear infinite; font: italic 500 22px/1 var(--serif); color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "✳"; margin-left: 46px; color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 92px 0; }
h2 { font: 600 clamp(30px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -0.025em; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 42em; margin: 0 0 42px; font-size: 18px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Glyphs: every stroke draws itself in */
.glyph { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: rgba(210, 80, 42, 0.1); color: var(--accent); margin-bottom: 16px; }
.glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .glyph svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.js .in .glyph svg * { stroke-dashoffset: 0; }
.glyph.green { background: rgba(47, 93, 80, 0.11); color: var(--green); }

.steps, .grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.8s ease; }
.card.reveal.in:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -28px rgba(35, 26, 20, 0.45); }
.card h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--serif); letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps .card { position: relative; }
.steps .n { position: absolute; top: 24px; right: 26px; font: italic 600 44px/1 var(--serif); color: rgba(35, 26, 20, 0.1); }
.bounce svg { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(3px); } }

.more { margin: 26px 0 0; color: var(--muted); }

/* How the picture travels */
.travel { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 44px 36px 30px; }
.travel .sub { margin-bottom: 18px; }
@keyframes beads { from { stroke-dashoffset: 0.08; } to { stroke-dashoffset: 0; } }

/* Scroll scene: the tablet turns upright */

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }
.stat { text-align: center; padding: 30px 12px; border-radius: var(--radius); background: var(--sand); }
.stat b { display: block; font: 600 clamp(44px, 6vw, 68px)/1 var(--serif); letter-spacing: -0.03em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }

/* Scenes: small drawings that loop */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene svg { display: block; width: 100%; height: auto; background: var(--sand); }
.scene figcaption { padding: 16px 20px 20px; color: var(--muted); font-size: 15px; }
.scene figcaption b { display: block; font: 600 19px/1.25 var(--serif); color: var(--ink); margin-bottom: 2px; }
.scene .link { stroke-dasharray: 0.12 0.88; animation: flow 1.8s linear infinite; }
/* Lines that are typed one after another, then start again */
.scene .type { transform-box: fill-box; transform-origin: left center; animation: typed 7s steps(1, end) infinite; animation-delay: calc(var(--n) * 0.55s); }
@keyframes typed { 0% { transform: scaleX(0); } 2% { transform: scaleX(0.35); } 4% { transform: scaleX(0.7); } 6%, 100% { transform: scaleX(1); } }
.scene.s1 .type, .scene.s3 .type { animation-name: typedloop; animation-timing-function: linear; }
@keyframes typedloop { 0% { transform: scaleX(0); } 7%, 78% { transform: scaleX(1); opacity: 1; } 86%, 100% { transform: scaleX(1); opacity: 0; } }
.scene .caret { animation: blink 1s steps(2, start) infinite; }
/* Design: the ring steps along the swatches and the poster's sun takes each colour */
.scene .pick { animation: pick 8s steps(1, end) infinite; }
@keyframes pick { 0% { transform: translate(0, 0); } 12.5% { transform: translate(26px, 0); } 25% { transform: translate(52px, 0); } 37.5% { transform: translate(78px, 0); } 50% { transform: translate(0, 22px); } 62.5% { transform: translate(26px, 22px); } 75% { transform: translate(52px, 22px); } 87.5% { transform: translate(78px, 22px); } }
.scene .swap { animation: swap 8s steps(1, end) infinite; }
@keyframes swap { 0% { fill: #d2502a; } 12.5% { fill: #e9a03b; } 25% { fill: #f3dcae; } 37.5% { fill: #9bc2a8; } 50% { fill: #2f5d50; } 62.5% { fill: #3f7f8c; } 75% { fill: #8f3a22; } 87.5% { fill: #231a14; } }
/* Study: the lecturer writes and the video plays on */
.scene .chalk { stroke-dasharray: 1; animation: draw 7s ease-in-out infinite; }
.scene .chart { stroke-dasharray: 1; animation: draw 5s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 60%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.scene .played { transform-box: fill-box; transform-origin: left center; animation: played 7s linear infinite; }
@keyframes played { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Upright: bars rise, messages pop in */
.scene .bar { transform-box: fill-box; transform-origin: center bottom; animation: rise 6s ease-in-out infinite; animation-delay: calc(var(--n) * 0.15s); }
@keyframes rise { 0% { transform: scaleY(0.2); } 20%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0.2); } }
.scene .pop { transform-box: fill-box; transform-origin: left bottom; animation: pop 7s ease infinite; animation-delay: calc(var(--n) * 0.9s); opacity: 0; }
.scene .pop:nth-of-type(even) { transform-origin: right bottom; }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 5%, 70% { transform: scale(1); opacity: 1; } 78%, 100% { transform: scale(1); opacity: 0; } }
.scene .steam { animation: steam 3.4s ease-in-out infinite; }
@keyframes steam { 0% { transform: translateY(3px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-7px); opacity: 0; } }

/* Needs, price, questions */
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.plain li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--muted); }
.plain .glyph { margin: 0; flex: none; width: 40px; height: 40px; padding: 9px; }
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.price .big { font: 600 66px/1 var(--serif); letter-spacing: -0.04em; margin: 6px 0 4px; }
.price .card.main { background: var(--ink); color: #f6efe6; border-color: transparent; }
.price .card.main h3, .price .card.main .big { color: #fff; }
.price .card.main li, .price .card.main .approx { color: #cfc4b6; }
.approx { color: var(--muted); }
.price .small { font-size: 13.5px; margin: 14px 0 0; color: var(--muted); }
.price .card.main .small { color: #b9ad9e; }
.price ul { margin: 18px 0 26px; padding: 0; list-style: none; color: var(--muted); }
.price li { padding: 7px 0 7px 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(0.8); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font: 600 20px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 400 26px/1 var(--sans); transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }
.price .card.main a:not(.button) { color: #f3b58f; }

.final { text-align: center; background: var(--sand); border-radius: 36px; padding: 70px 24px; }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 62em; }

@media (max-width: 860px) {
  nav > a:not(.button) { display: none; }
  nav { gap: 12px; }
  .steps, .grid, .price, .stats, .plain { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: 1fr; }
  .travel { padding: 30px 18px 18px; border-radius: 24px; }
  .stage { margin-top: 36px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stage:not(.in) .laptop, .js .stage:not(.in) .tablet { opacity: 1; transform: none; }
  .js .glyph svg * { stroke-dashoffset: 0; }
  /* Drawings rest in their finished state: the window has arrived on the tablet. */
  .stage .carry { transform: translate(644px, 168px); }
  .stage .arrow, .stage .wake { display: none; }
  .scene .pop { opacity: 1; }
}

/* Without scripts the rotation scene is a plain section rather than a pinned one. */

/* Keep the coloured words of the headline together (in Chinese they would split anywhere). */
h1 em { white-space: nowrap; }

/* The language picker in the bar at the top. It stays when the other links hide on a phone. */
nav .langs { display: flex; gap: 2px; font-size: 14px; white-space: nowrap; }
.langs a { color: var(--muted); padding: 3px 7px; border-radius: 7px; }
.langs a:hover { color: var(--ink, var(--text)); text-decoration: none; }
html[lang="en"] .langs a[hreflang="en"], html[lang="zh-Hans"] .langs a[hreflang="zh-Hans"], html[lang="zh-Hant"] .langs a[hreflang="zh-Hant"] { color: var(--ink, var(--text)); font-weight: 600; background: rgba(35, 26, 20, 0.07); }
/* On a narrow phone the bar keeps the logo, the language picker and Download; the name goes. */
@media (max-width: 430px) {
  .brand { font-size: 0; gap: 0; }
  nav .langs { font-size: 13px; }
}

/* The three reasons to buy, under the hero's buttons. */
.pitch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 800px; margin: 28px auto 0; text-align: left; }
.pitch div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pitch b { display: block; font: 600 19px/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }
.pitch span { font-size: 14px; line-height: 1.45; color: var(--muted); display: block; }
@media (max-width: 720px) { .pitch { grid-template-columns: 1fr; max-width: 420px; } }

/* The hero on a wide screen: the words on the left and the drawing beside them, so the drawing
   is seen at first glance rather than after scrolling. On a narrow screen they stack. */
.hero .stage { margin-top: 34px; }
@media (min-width: 1000px) {
  .hero { padding-top: 54px; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 40px; align-items: center; max-width: 1320px; }
  .hero .copy { text-align: left; }
  .hero h1 { font-size: clamp(40px, 4.3vw, 62px); margin: 0 0 18px; }
  .hero .lede { margin: 0 0 26px; font-size: clamp(17px, 1.5vw, 20px); }
  .hero .cta { justify-content: flex-start; }
  .hero .stage { margin: 0; }
  .hero .pitch { grid-column: 1 / -1; max-width: none; margin-top: 40px; }
}

/* The hero's drawing is there from the first moment: it does not wait to be scrolled to. */
.js .hero .stage:not(.in) .laptop, .js .hero .stage:not(.in) .tablet { transform: none; opacity: 1; }

/* Small line icons inside buttons, the hero strip and the language picker. */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.small .ico { width: 15px; height: 15px; }
nav .langs { align-items: center; }
nav .langs .ico { width: 16px; height: 16px; color: var(--muted); margin-right: 3px; stroke-width: 1.7; }

/* The hero strip: one bar, three reasons, each with its icon. */
.pitch { gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pitch div { display: flex; gap: 14px; align-items: flex-start; background: none; border: 0; border-radius: 0; padding: 18px 22px; }
.pitch div + div { border-left: 1px solid var(--line); }
.pitch .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(210, 80, 42, 0.1); color: var(--accent); stroke-width: 1.9; }
.pitch div:nth-child(2) .ico { background: rgba(47, 93, 80, 0.11); color: var(--green); }
.pitch p { margin: 0; }
@media (max-width: 720px) { .pitch div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* The three numbers each get an icon. */
.stat .glyph { margin: 0 auto 14px; background: rgba(255, 255, 255, 0.6); }

/* Questions: the heading stays beside the list on a wide screen. */
.qhead .more { margin-top: -18px; }
@media (min-width: 960px) {
  #questions .wrap { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); column-gap: 56px; align-items: start; }
  .qhead { position: sticky; top: 96px; }
}

/* Sound from both: words beside a drawing of the two devices playing together. */
.duo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.duo .sub { margin-bottom: 26px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.points .glyph { margin: 0; flex: none; width: 40px; height: 40px; padding: 9px; }
.points b { display: block; color: var(--ink); font: 600 18px/1.3 var(--serif); margin-bottom: 2px; }
.sound { display: block; width: 100%; height: auto; overflow: visible; }
.sound .wave { opacity: 0; animation: wave 2.4s ease-out infinite; animation-delay: calc(var(--n) * 0.28s); }
@keyframes wave { 0% { opacity: 0; } 18% { opacity: 0.9; } 70%, 100% { opacity: 0; } }
.sound .eq { transform-box: fill-box; transform-origin: bottom; animation: eq 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -0.23s); }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.sound .sync circle { animation: blink 2.4s ease-in-out infinite; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 30px; } }
@media (prefers-reduced-motion: reduce) { .sound .wave { animation: none; opacity: 0.6; } .sound .eq { animation: none; } }

/* The counted number sits in a span inside the big figure: it must not take the caption's size. */
.stat b span { font-size: inherit; color: inherit; }

/* The three steps: a small looping picture in each card. Each loop is six seconds; the second
   and third start a little later so the eye is led from one card to the next. */
.steps .art { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.steps .card { padding: 18px 18px 26px; }
.steps .card h3, .steps .card p { padding: 0 8px; }
.steps .n { top: 26px; right: 30px; font-size: 34px; color: rgba(35, 26, 20, 0.22); z-index: 1; }
.art .knob, .art .tap, .art .ok { transform-box: fill-box; transform-origin: center; }
.a1 .drop { animation: a1drop 6s ease-in-out infinite; }
@keyframes a1drop { 0% { transform: translateY(-90px); } 16% { transform: translateY(0); } 21% { transform: translateY(-7px); } 26%, 94% { transform: translateY(0); opacity: 1; } 98% { transform: translateY(0); opacity: 0; } 100% { transform: translateY(-90px); opacity: 0; } }
.a1 .knob { transform: translateX(11px); }
.a1 .track { fill: #3fae6a; }
.a1 .knob.one { animation: a1knob1 6s ease-in-out infinite; }
.a1 .track.one { animation: a1track1 6s ease-in-out infinite; }
.a1 .knob.two { animation: a1knob2 6s ease-in-out infinite; }
.a1 .track.two { animation: a1track2 6s ease-in-out infinite; }
@keyframes a1knob1 { 0%, 36% { transform: translateX(0); } 43%, 95% { transform: translateX(11px); } 100% { transform: translateX(0); } }
@keyframes a1track1 { 0%, 36% { fill: #b9ada0; } 43%, 95% { fill: #3fae6a; } 100% { fill: #b9ada0; } }
@keyframes a1knob2 { 0%, 54% { transform: translateX(0); } 61%, 95% { transform: translateX(11px); } 100% { transform: translateX(0); } }
@keyframes a1track2 { 0%, 54% { fill: #b9ada0; } 61%, 95% { fill: #3fae6a; } 100% { fill: #b9ada0; } }
.a2 .ask, .a2 .tap { opacity: 0; }
.a2 .plug { animation: a2plug 6s ease-in-out -5s infinite; }
.a2 .ask { animation: a2ask 6s ease-in-out -5s infinite; }
.a2 .tap { animation: a2tap 6s ease-out -5s infinite; }
.a2 .ok { animation: a2ok 6s ease-in-out -5s infinite; }
@keyframes a2plug { 0% { transform: translateX(-70px); } 20%, 100% { transform: translateX(0); } }
@keyframes a2ask { 0%, 26% { opacity: 0; transform: translateY(8px); } 34%, 62% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: none; } }
@keyframes a2tap { 0%, 46% { opacity: 0; transform: scale(0.4); } 52% { opacity: 0.9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes a2ok { 0%, 66% { opacity: 0; transform: scale(0.6); } 74%, 93% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.a3 .wake { opacity: 0; animation: a3wake 6s ease -4s infinite; }
.a3 .win { transform: translate(131px, 12px); animation: a3win 6s cubic-bezier(0.6, 0, 0.3, 1) -4s infinite; }
@keyframes a3wake { 0%, 8% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes a3win { 0%, 32% { transform: translate(0, 0); opacity: 1; } 62%, 92% { transform: translate(131px, 12px); opacity: 1; } 96% { transform: translate(131px, 12px); opacity: 0; } 97% { transform: translate(0, 0); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .art * { animation: none !important; } }

/* The step's number: a small badge on the corner of its picture. */
.steps .n { top: 8px; left: 8px; right: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans, -apple-system, BlinkMacSystemFont, sans-serif); border: 3px solid var(--paper); }

/* How the picture gets there: five stops joined by a line that beads of colour travel along. */
.flowline { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; position: relative; }
.flowline::before { content: ""; position: absolute; left: 8%; right: 8%; top: calc(50% - 2px); height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 14px, transparent 14px) 0 0 / 90px 100% repeat-x #e3d7c6; animation: beadsx 1.8s linear infinite; }
@keyframes beadsx { to { background-position: 90px 0; } }
.flowline li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 20px 10px 18px; text-align: center; }
.flowline .glyph { margin: 0 auto 10px; }
.flowline p { margin: 0; }
.flowline b { display: block; font: 600 18px/1.25 var(--serif); color: var(--ink); }
.flowline span { font-size: 14px; color: var(--muted); }
.scene .head { animation: head 7s linear infinite; }
@keyframes head { from { transform: translateX(0); } to { transform: translateX(170px); } }
.final .fineprint { margin: 18px 0 0; }
/* The sound waves read clearly against the page. */
.sound .wave { stroke-width: 5; }

/* On a phone: the stops become a column, and the feature cards and numbers become compact rows. */
@media (max-width: 860px) {
  .flowline { grid-template-columns: 1fr; gap: 12px; }
  .flowline::before { left: 37px; right: auto; top: 6%; bottom: 6%; width: 4px; height: auto; background: linear-gradient(180deg, var(--accent) 0 12px, transparent 12px) 0 0 / 100% 64px repeat-y #e3d7c6; animation-name: beadsy; }
  .flowline li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; }
  .flowline .glyph { margin: 0; flex: none; width: 42px; height: 42px; }
  .grid { gap: 12px; }
  .grid .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .grid .card .glyph { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .grid .card h3 { font-size: 18px; margin-bottom: 4px; }
  .stats { gap: 10px; margin-bottom: 28px; }
  .stat { display: grid; grid-template-columns: 44px 104px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; }
  .stat .glyph { margin: 0; width: 44px; height: 44px; }
  .stat b { font-size: 40px; }
  .scenes { grid-template-columns: 1fr; }
}
@keyframes beadsy { to { background-position: 0 64px; } }
@media (min-width: 861px) and (max-width: 1040px) { .flowline { gap: 14px; } .flowline b { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .flowline::before, .scene .head { animation: none; } }

/* What sets it apart: four short claims, each with a heading. */
.why b { display: block; color: var(--ink); font: 600 18px/1.3 var(--serif); margin-bottom: 2px; }
#why { padding-bottom: 40px; }
