/* swap · FINALE (#finale, markup swap/sections/finale.html). Owner 2026-11-22: no black separation line. One closing
   statement, two light cobalt halftone hands reaching in from the screen edges until their fingertips almost touch in the
   breath between the line and the key, then one tidy download group: the acid App Store key leads, the ink Google Play
   key follows, the QR (desktop) sits as the flat square beside them. Own class names (.fx__*), so the older .fin__ .dl
   .qr reskins never reach in; #finale.fx out-ranks every #finale rule that does. */

#finale.fx {
  --fx-ink: #141414; --fx-ink2: #4b4b4b; --fx-mute: #6e6e6e; --fx-acid: #eeff2d; --fx-pink: #ff4f9a; --fx-cobalt: #1f2bff;
  --fx-face: #fff; --fx-slab: #141414;
  --fx-cjk: "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --fx-grot: "Helvetica Neue", "Arial Nova", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --fx-out: cubic-bezier(.2, .9, .2, 1);
  /* phone geometry: the fingertip line = top pad + the two-line title + 40% of the breath below it (the hanging fingers
     need the longer half, so they end clear of the key) */
  --pt: 92px; --pb: 76px; --gut: 20px;
  --ts: min(calc((100vw - 2 * var(--gut)) / 4.12), 92px);
  --lines: 2; --lh: 1.08;
  --breath: 196px; --tipk: .4;
  --hw: 122vw; --tipgap: 12px;
  --tip-y: calc(var(--pt) + var(--lines) * var(--ts) * var(--lh) + var(--breath) * var(--tipk));
  position: relative; isolation: isolate; display: flex !important; flex-direction: column; align-items: center;
  min-height: 0 !important; height: auto !important; margin: 0 !important;
  padding: var(--pt) var(--gut) var(--pb) !important; overflow: clip; background: none; text-align: center;
  color: var(--fx-ink);
}
:root[data-theme="dark"] #finale.fx { --fx-ink: #f2f2f5; --fx-ink2: #c9c9d4; --fx-mute: #9a9aa8; --fx-face: #0b0b10; --fx-slab: #f2f2f5; }   /* night: light slab under acid (as the nav key), pink under ink */
#finale.fx::before, #finale.fx::after { content: none !important; }

/* ── the hands: each cropped by its own screen edge, fingertips (at 45% of the art's height) on the tip line ── */
#finale.fx .fx__hands { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#finale.fx .fx__hand {
  position: absolute; top: calc(var(--tip-y) - var(--hw) * 559 / 1400 * .45); width: var(--hw); height: auto; max-width: none;
  user-select: none; -webkit-user-drag: none;
}
#finale.fx .fx__hand--l { left: calc(50% - var(--tipgap) / 2 - var(--hw)); }
#finale.fx .fx__hand--r { left: calc(50% + var(--tipgap) / 2); }

/* ── the line: the hero H1's heavy black CJK ── */
#finale.fx .fx__t {
  margin: 0; padding: 0; font-family: var(--fx-cjk); font-weight: 900; font-size: var(--ts); line-height: var(--lh);
  letter-spacing: -.04em; color: var(--fx-ink); white-space: nowrap; text-wrap: nowrap;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill; text-shadow: none; background: none; border: 0;
}
#finale.fx .fx__t::before, #finale.fx .fx__t::after { content: none !important; }
#finale.fx .fx__l { display: block; margin-right: -.04em; }   /* the tracking's trailing gap would push the line off-centre */

/* ── the download group ── */
#finale.fx .fx__get { display: grid; justify-items: center; width: min(100%, 360px); margin-top: var(--breath); }
#finale.fx .fx__keys { display: grid; gap: 16px; width: 100%; }
#finale.fx .fx__key {
  --sh: var(--fx-slab); --kh: 64px;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--kh); padding: 0 52px; box-sizing: border-box;
  border: 2.5px solid var(--fx-ink); border-radius: 14px; background: var(--fx-acid); color: #141414;
  box-shadow: 6px 6px 0 var(--sh); text-decoration: none; -webkit-tap-highlight-color: transparent;
  font: 800 22px/1 var(--fx-grot); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s var(--fx-out), box-shadow .18s var(--fx-out);
}
:root[data-theme="dark"] #finale.fx .fx__key--ios { border-color: #141414; }
#finale.fx .fx__key--play { --sh: var(--fx-pink); --kh: 54px; background: #141414; color: #fff; border-color: #141414; font-size: 18px; font-weight: 700; }
:root[data-theme="dark"] #finale.fx .fx__key--play { border-color: #f2f2f5; }
#finale.fx .fx__g { flex: none; width: 1.05em; height: 1.05em; fill: currentColor; }
#finale.fx .fx__key--ios .fx__g { width: .92em; height: 1.12em; margin-top: -.12em; }
#finale.fx .fx__k [data-copy][aria-hidden="true"] { display: none; }
#finale.fx .fx__c { position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
@media (hover: hover) and (pointer: fine) {
  #finale.fx .fx__key:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--sh); }
}
#finale.fx .fx__key:is(:active, .is-pressed, .is-busy) { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--sh); transition-duration: .06s; }
#finale.fx .fx__key:focus-visible { outline: 3px solid var(--fx-cobalt); outline-offset: 5px; }

#finale.fx .fx__note, #finale.fx .fx__cap { margin: 0; font: 500 12.5px/1.6 var(--fx-grot); letter-spacing: .01em; color: var(--fx-mute); text-shadow: none; }
#finale.fx .fx__note { margin-top: 22px; }
#finale.fx :is(.fx__qr, .fx__cap) { display: none; }

/* ── desktop: one line, a wider reach, and the group as a 2 × 2: keys | QR, then note | caption ── */
@media (min-width: 900px) {
  #finale.fx { --pt: 148px; --pb: 132px; --ts: min(8.6vw, 136px); --lines: 1; --breath: 284px; --tipk: .34; --hw: 52vw; --tipgap: 24px; }
  #finale.fx .fx__l { display: inline; margin: 0; }
  #finale.fx .fx__l + .fx__l { margin-right: -.04em; }
  #finale.fx .fx__get { --stack: 144px; width: auto; grid-template-columns: 340px var(--stack); column-gap: 32px; row-gap: 18px; justify-items: start; text-align: left; }
  #finale.fx .fx__keys { gap: 16px; }
  #finale.fx .fx__key { --kh: 74px; font-size: 25px; }
  #finale.fx .fx__key--play { --kh: 54px; font-size: 18px; }
  #finale.fx .fx__qr {
    display: block; width: var(--stack); height: var(--stack); margin: 0; padding: 10px; box-sizing: border-box;
    border: 2.5px solid var(--fx-ink); border-radius: 14px; background: #fff;
  }
  #finale.fx .fx__qr img { display: block; width: 100%; height: 100%; border-radius: 0; }
  #finale.fx .fx__note { margin: 0; padding-left: 2px; }
  #finale.fx .fx__cap { display: block; grid-column: 2; }
}
/* a phone or tablet held in the hand: the QR has no one to scan it */
html:is([data-device-platform="ios"], [data-device-platform="android"]) #finale.fx :is(.fx__qr, .fx__cap) { display: none !important; }
@media (min-width: 900px) {
  html:is([data-device-platform="ios"], [data-device-platform="android"]) #finale.fx .fx__get { grid-template-columns: 340px; justify-items: center; text-align: center; }
}

/* ── entrance (swap-finale.js arms it; nothing hides without JS or with reduced motion) ── */
#finale.fx.is-armed .fx__hand { opacity: 0; transition: opacity 1.4s var(--fx-out), transform 1.8s var(--fx-out); }
#finale.fx.is-armed .fx__hand--l { transform: translate3d(-14%, 0, 0); }
#finale.fx.is-armed .fx__hand--r { transform: translate3d(14%, 0, 0); }
#finale.fx.is-armed :is(.fx__l, .fx__get) { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--fx-out), transform 1s var(--fx-out); }
#finale.fx.is-armed .fx__l { display: inline-block; }
@media (max-width: 899px) { #finale.fx.is-armed .fx__l { display: block; } }
#finale.fx.is-armed .fx__l + .fx__l { transition-delay: .08s; }
#finale.fx.is-armed .fx__get { transition-delay: .32s; }
#finale.fx.is-armed.is-in .fx__hand, #finale.fx.is-armed.is-in :is(.fx__l, .fx__get) { opacity: 1; transform: none; }
#finale.fx.is-armed.is-in .fx__get { transition-property: opacity, transform; }

/* owner 2026-11-22 (desktop only): the hands grow until the download group sits in the space between them, under the
   meeting fingertips; the keys 10% larger */
@media (min-width: 900px) {
  #finale.fx { --hw: 112vw; --tipgap: 28px; --breath: 230px; --tipk: .6; --pb: 220px; }
  #finale.fx .fx__get { --stack: 158px; grid-template-columns: 374px var(--stack); column-gap: 35px; row-gap: 20px; }
  #finale.fx .fx__keys { gap: 18px; }
  #finale.fx .fx__key { --kh: 81px; font-size: 27.5px; }
  #finale.fx .fx__key--play { --kh: 59px; font-size: 19.8px; }
}

/* owner 2026-11-22: the QR code itself 15% larger inside the same box */
#finale.fx .fx__qr { overflow: hidden; }
#finale.fx .fx__qr img { transform: scale(1.15); }

/* owner 2026-11-22 (desktop): the finale title 30% smaller */
@media (min-width: 900px) { #finale.fx { --ts: min(6.02vw, 95px); } }
