/* swap reskin · part d · the end: FINALE (#finale), FAQ (#faq), footer (.foot). Owner brief swap/RESKIN.md + the app's
   team page (newui-v1/shots/02-team-main-day.png): white page, ink hairline grid, giant heavy black CJK sitting on a
   hairline, mono numerals, acid keys with an ink border and a hard ink shadow. Structure, content and layout positions
   are the original's; only the look changes. Every rule is scoped under #finale / #faq / .foot. Night = the app's D1. */

#finale, #faq, .foot {
  --d-ink: #141414; --d-ink2: #4b4b4b; --d-mute: #8a8a8a; --d-line: #141414; --d-ground: #fff;
  --d-acid: #eeff2d; --d-pink: #ff4f9a; --d-cobalt: #1f2bff; --d-keysh: #141414;
  --d-lw: 1.5px;
  --d-cjk: "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --d-grot: "Helvetica Neue", "Arial Nova", Arial, "PingFang TC", "Noto Sans TC", sans-serif;
  --d-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --d-out: cubic-bezier(.2, .9, .2, 1);
}
@media (min-resolution: 2.5dppx) { #finale, #faq, .foot { --d-lw: 1.334px; } }   /* every hairline lands on 4 device px */
:root[data-theme="dark"] :is(#finale, #faq, .foot) {
  --d-ink: #f2f2f5; --d-ink2: #c9c9d4; --d-mute: #8b8b99; --d-line: #f2f2f5; --d-ground: #0b0b10; --d-keysh: #ff4f9a;
}

/* ───────────── FINALE ───────────── */
/* no aura, no sparkles: the line, the key, the badges on white */
#finale .blobs, #finale .sparkle { display: none !important; }
/* the crown sticker stays, upright (no tilt), bobbing without a turn */
#finale .fin__crown { --r: 0deg; }
#finale .fin__crown > :first-child { animation-name: d-bob; }
@keyframes d-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }

/* the line: the app's .big, sitting on one full-bleed ink hairline like 團隊 on the team page */
#finale .fin__line .sticker {
  color: var(--d-ink); font-family: var(--d-cjk); font-weight: 900; line-height: 1.02; letter-spacing: -.04em;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill; padding: .06em .02em .08em;
}
#finale .fin__line .sticker::before { content: none; }
#finale .fin__line:lang(en) .sticker { font-family: var(--d-grot); letter-spacing: -.035em; -webkit-text-stroke: 0; font-weight: 800; }
#finale .fin__line .sticker::after {
  content: ""; position: absolute; left: calc(50% - 50vw); bottom: 0; width: 100vw; height: var(--d-lw);
  background: var(--d-line); pointer-events: none;
}

/* the big download: the app key from swap-reskin-a (acid face, 2.5 px ink edge, hard shadow), sized for the closing
   line: it fills the old capsule's whole outer box (the frame's thickness becomes key height, so nothing below moves),
   with a deeper 6 px slab; at night the slab turns pink so the key keeps its depth on ink. The store badges are a's
   keys as they are (acid App Store, ink Google Play with its pink slab). */
#finale { --rk-key-sh: var(--d-keysh); }
#finale .dl-in { min-height: calc(var(--h) + 2 * var(--g) - 6px); margin: 3px 0; padding-inline: 26px 22px; box-shadow: 6px 6px 0 var(--sh); }
@media (hover: hover) and (pointer: fine) { :root[data-theme] #finale .dl:hover .dl-in { box-shadow: 7px 7px 0 var(--sh); } }
:root[data-theme] #finale .dl:is(:active, .is-pressed, .is-busy) .dl-in { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--sh); }
#finale .android-note { color: var(--d-ink2); text-shadow: none; font-family: var(--d-grot); }
#finale .badges { margin-top: 10px; }

/* the QR (desktop): a white card on an ink hairline, square corners, mono caption */
#finale .qr {
  border-radius: 0; background: var(--d-ground); box-shadow: none; border: var(--d-lw) solid var(--d-line); color: var(--d-ink);
}
#finale .qr img { border-radius: 0; background: #fff; }
#finale .qr figcaption { font: 600 13px/1.45 var(--d-grot); color: var(--d-ink2); }

/* ───────────── FAQ: a clean hairline accordion ───────────── */
#faq::after { content: none; }
#faq .faq__title {
  color: var(--d-ink); text-shadow: none; font-family: var(--d-cjk); font-weight: 900; letter-spacing: -.04em;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill;
}
#faq .faq__list {
  counter-reset: d-q; border-radius: 0; overflow: visible; background: none; box-shadow: none;
  border-top: var(--d-lw) solid var(--d-line); border-bottom: var(--d-lw) solid var(--d-line);
}
#faq .faq__qa { counter-increment: d-q; }
#faq .faq__qa + .faq__qa { border-top: var(--d-lw) solid var(--d-line); }
#faq .faq__qa > summary {
  min-height: 56px; padding: 12px 44px 12px 34px; border-radius: 0;
  font: 700 17px/1.3 var(--d-grot); letter-spacing: 0; color: var(--d-ink);
}
/* the numeral: the team page's mono 01…05 */
#faq .faq__qa > summary::before {
  content: counter(d-q, decimal-leading-zero); position: absolute; left: 0; top: calc(50% - .5em);
  font: 700 12px/1 var(--d-mono); letter-spacing: .06em; color: var(--d-mute);
}
#faq .faq__qa[open] > summary::before { color: var(--d-ink); }
/* + that turns ×: two ink strokes, no disc */
#faq .faq__qa > summary::after {
  right: 2px; top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 0;
  background: linear-gradient(var(--d-ink), var(--d-ink)) center / 16px 2px no-repeat, linear-gradient(var(--d-ink), var(--d-ink)) center / 2px 16px no-repeat;
  transition: rotate .28s var(--d-out);
}
#faq .faq__qa > summary:active { background: none; opacity: .62; }
#faq .faq__qa > summary:focus-visible { outline: 2.5px solid var(--d-cobalt); outline-offset: -2.5px; }
#faq .faq__qa > p { margin: -4px 0 0; padding: 0 44px 18px 34px; font: 400 16px/1.6 var(--d-grot); color: var(--d-ink2); }
#faq .faq__qa > p b { font-weight: 800; color: var(--d-ink); }
@media (hover: hover) and (pointer: fine) { #faq .faq__qa > summary:hover { background: none; text-decoration: underline; text-decoration-thickness: var(--d-lw); text-underline-offset: 5px; } }
@media (min-width: 1024px) {
  #faq .faq__title { font-size: 44px; line-height: 1.05; margin-top: 10px; }
  #faq .faq__list { border-radius: 0; }
  #faq .faq__qa > summary { min-height: 64px; padding: 14px 56px 14px 52px; font-size: 19px; }
  #faq .faq__qa > summary::before { font-size: 13px; }
  #faq .faq__qa > summary::after { right: 4px; top: calc(50% - 10px); width: 20px; height: 20px; background-size: 18px 2px, 2px 18px; }
  #faq .faq__qa > p { padding: 0 56px 22px 52px; font-size: 17px; }
}

/* ───────────── footer: quiet, on a hairline ───────────── */
.foot { color: var(--d-ink); background: none; }
.foot::before { content: none !important; }
.foot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--d-lw);   /* full bleed: the page's base line, like the team page's account bar */
  background: var(--d-line); pointer-events: none;
}
.foot { padding-top: 24px; margin-top: 40px; }
.foot .mark__glow { display: none !important; }
.foot .mark { color: var(--d-ink); }
.foot .mark__star { fill: #1f2bff !important; }
.foot .mark__dot { fill: #ff4f9a !important; }
.foot__brand b { font-family: var(--d-grot); font-weight: 800; letter-spacing: -.01em; color: var(--d-ink); }
.foot__links a { font: 600 14px/1 var(--d-grot); letter-spacing: .01em; color: var(--d-ink); }
.foot__legal { font: 500 11px/1.65 var(--d-grot); color: var(--d-ink2) !important; letter-spacing: 0; }
/* the agentic beta: one key at the foot of the page, in the app's lime-key language (acid face, ink edge, hard shadow) */
.foot__beta { margin: 16px 0 6px; }
.foot__beta a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 15px;
  font: 700 15px/1 var(--d-grot); letter-spacing: .01em; color: #141414; text-decoration: none;
  background: var(--d-acid); border: var(--d-lw) solid var(--d-line); border-radius: 12px; box-shadow: 4px 4px 0 var(--d-keysh);
  transition: transform .14s var(--d-out), box-shadow .14s var(--d-out); -webkit-tap-highlight-color: transparent;
}
.foot__beta-dot { width: 8px; height: 8px; background: #141414; flex: none; }
.foot__beta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; flex: none; }
.foot__beta a:is(:active, .is-pressed) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--d-keysh); transition-duration: .06s; }
.foot__beta a:focus-visible { outline: 2px solid var(--d-cobalt); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot__beta a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--d-keysh); } }
@media (min-width: 1024px) {
  /* desktop: logo left and the beta key right on one line, then the links on their own full-width row (eleven of them
     outgrow the space beside the logo), then the legal line */
  .foot__brand { grid-row: 1; }
  .foot__beta { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .foot__links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; row-gap: 12px; margin: 22px 0 0 -13px; }
  .foot__links a { flex: none; white-space: nowrap; }
  .foot__links { clip-path: inset(-8px -8px -8px 0); }   /* a wrapped row's leading tick sits just left of the box: clipped */
  .foot__legal { grid-row: 3; }
  .foot { padding-top: 30px; margin-top: 44px; }
  /* separators: short ink hairline ticks instead of dots */
  .foot__links a + a::before { left: calc(var(--d-lw) * -1); top: calc(50% - 6px); width: var(--d-lw); height: 12px; border-radius: 0; background: var(--d-ink); opacity: .3; }
  .foot__links a:hover { text-decoration-thickness: var(--d-lw); }
}
