/* HakaSafe's home page. One idea a screen, big type, each feature acted out by a small animation of the app's own
   interface, drawn here in HTML and CSS. Black, the icon's lime, system type (SF Pro and PingFang TC on Apple devices).
   Nothing loads from another host. Every animated thing rests in its finished, readable state without JavaScript and
   under reduced motion: the .js class on <html> is what allows a hidden start. */
:root {
  --bg: #000; --card: #111210; --card-2: #191a17; --line: rgb(255 255 255 / .08);
  --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
  --lime: #d1f068; --lime-deep: #b6dc3f;
  --grad: linear-gradient(96deg, #f0ffb0 0%, #d1f068 38%, #7fe6a0 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav: 52px; --wrap: min(1120px, 100vw - 44px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; } ul, ol { list-style: none; }
a { color: inherit; } img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); background: rgb(0 0 0 / .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav__in { width: var(--wrap); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.nav__logo img { border-radius: 7px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--ink-2); }
.nav__links a { text-decoration: none; padding: 6px 0; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 15px; border-radius: 15px; background: var(--lime); color: #0b0c0a; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { background: #e2ff7d; transform: scale(1.04); } .pill:active { transform: scale(.97); }
@media (max-width: 759px) { .nav__links { display: none; } .pill { margin-left: auto; } }

/* Apple's official badge, never redrawn */
.store { display: inline-flex; position: relative; border: 1px solid #a6a6a6; border-radius: 9px; background: #000; line-height: 0; transition: transform .25s var(--ease); }
.store img { height: 48px; width: 131px; margin: -1px; } .store:hover { transform: translateY(-2px) scale(1.03); } .store:active { transform: scale(.98); }

/* ---------------------------------------------------------------- hero */
.hero { --s: 0; position: relative; padding: calc(var(--nav) + clamp(28px, 4.2vw, 52px)) 0 clamp(56px, 8vw, 110px); text-align: center; overflow: clip; }
.hero__copy { width: var(--wrap); margin: 0 auto; display: grid; justify-items: center; gap: 14px;
  opacity: calc(1 - var(--s) * 1.3); transform: translateY(calc(var(--s) * -36px)); }
.hero h1 { display: grid; gap: 2px; font-weight: 700; font-size: clamp(40px, 7vw, 88px); line-height: 1.08; letter-spacing: -.015em; }
.hero__brand { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--lime); letter-spacing: 0; margin-bottom: clamp(4px, .8vw, 10px); }
.lead { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.4; color: var(--ink-2); font-weight: 500; }
.stage { position: relative; width: var(--wrap); margin: clamp(28px, 3.6vw, 44px) auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: clamp(20px, 4vw, 56px); }
.glow { position: absolute; left: 50%; top: 46%; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(209 240 104 / calc(.24 + var(--s) * .16)), rgb(95 227 161 / .08) 45%, transparent 70%); filter: blur(20px); }
.said, .got { position: relative; display: grid; gap: 14px; align-content: start; margin-top: clamp(170px, 15vw, 230px); }
.said { justify-items: end; text-align: right; } .got { justify-items: start; text-align: left; }
.said__label { font-size: 13px; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.said__text { font-size: clamp(28px, 4vw, 54px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; min-height: 1.15em; word-break: keep-all; }
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 6px; border-radius: 2px; background: var(--lime); vertical-align: -.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.got__list { display: grid; gap: 12px; }
.chip { display: grid; gap: 2px; padding: 12px 18px; min-width: 164px; border-radius: 18px; background: rgb(255 255 255 / .06); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chip__k { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.chip__v { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.chip--cat { --c: #3987E5; } .chip--cat .chip__v { color: color-mix(in oklab, var(--c) 70%, #fff); }
.chip__ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 26%, #111); color: var(--c); }
.chip__ic svg { width: 16px; height: 16px; }
.chip.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.9); background: rgb(209 240 104 / .22); } 100% { transform: none; } }
@media (max-width: 999px) { .stage { grid-template-columns: 1fr; justify-items: center; } .said, .got { display: none; } }

/* the phone */
.iphone { --w: min(372px, 88vw); position: relative; width: var(--w); padding: 11px; border-radius: 58px; container: phone / inline-size;
  background: linear-gradient(150deg, #45463f, #171815 50%, #2a2b27);
  box-shadow: 0 0 0 1px #55564e inset, 0 2px 0 rgb(255 255 255 / .12) inset, 0 50px 120px -30px rgb(209 240 104 / .28), 0 40px 80px rgb(0 0 0 / .7);
  transform: translateY(calc(var(--s) * 26px)) scale(calc(1 - var(--s) * .06)); transform-origin: 50% 30%; }
.iphone__screen { position: relative; border-radius: 47px; overflow: hidden; background: #000; }
.iphone__island { position: absolute; left: 50%; top: 11px; width: 104px; height: 30px; translate: -50% 0; border-radius: 16px; background: #000; z-index: 3; box-shadow: 0 0 0 1px rgb(255 255 255 / .04); }
.iphone__status { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 6px 30px 0 34px; font-size: 15px; font-weight: 600; }
.iphone__sys { display: flex; align-items: center; gap: 6px; }
.iphone__sys svg { height: 12px; width: auto; }

/* ---- the 記一筆 inside it: a picture that plays, nothing to tap or type ---- */
.demo { --d-sheet: #181915; --d-fill: #2a2b26; --d-fill2: #21221e; --d-ink: #f4f5ef; --d-muted: #a3a49d; --d-line: rgb(244 245 239 / .1); --d-lime: #cbf24a; --d-warn: #fab219;
  position: relative; color: var(--d-ink); font-size: 15px; line-height: 1.35; text-align: left; -webkit-user-select: none; user-select: none; }
.demo__page { margin: 0 12px; padding: 10px 12px 10px; background: #0c0d0b; border-radius: 20px 20px 0 0; border: 1px solid var(--d-line); border-bottom: 0; }
.demo__day { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--d-muted); padding: 0 2px 8px; }
.demo__day b { color: var(--d-ink); font-weight: 600; }
.demo__rows { height: 232px; overflow: hidden; border-radius: 14px; }
.demo__rows, #demo-total { transition: opacity .3s; }
.demo.is-restarting .demo__rows, .demo.is-restarting #demo-total { opacity: 0; }
.demo__list { list-style: none; margin: 0; padding: 0; }
.demo__list.is-sliding { transition: transform 420ms var(--ease); }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 58px; padding: 0 4px; background: var(--d-fill2); }
.row + .row { border-top: 1px solid var(--d-line); }
.row__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 22%, #181915); }
.row__ic svg { width: 18px; height: 18px; }
.row__t { min-width: 0; }
.row__name { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--d-muted); margin-top: 1px; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: var(--d-fill); color: var(--d-ink); font-size: 12px; }
.tag svg { width: 11px; height: 11px; }
.tag--warn { background: none; padding: 0; gap: 4px; }
.tag--warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--d-warn); }
.row__amt { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; padding-right: 6px; }
.demo__sheet { position: relative; margin-top: -10px; background: var(--d-sheet); border-radius: 26px 26px 0 0; padding: 8px 16px 22px; box-shadow: 0 -1px 0 rgb(255 255 255 / .06); }
.demo__grab { width: 36px; height: 5px; border-radius: 3px; background: #4a4b45; margin: 0 auto 8px; }
.demo__head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; margin-bottom: 6px; }
.demo__x { width: 32px; height: 32px; border-radius: 50%; background: var(--d-fill2); border: 1px solid var(--d-line); display: grid; place-items: center; color: var(--d-lime); }
.demo__x svg { width: 13px; height: 13px; }
.demo__title { text-align: center; font-size: 16px; font-weight: 600; }
.demo__amt { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 10px; height: 60px; }
.demo__cur { font-weight: 600; font-size: 22px; color: #a3a49d; display: inline-flex; align-items: center; gap: 4px; }
.demo__cur svg { width: 10px; height: 14px; }
.demo__num { font-weight: 700; font-size: 54px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.demo__caret { width: 2px; height: 44px; background: var(--d-lime); align-self: center; border-radius: 1px; animation: blink 1.1s steps(1) infinite; }
.demo__field { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--d-fill2); }
.demo__in { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; }
.demo__in:empty::before { content: attr(data-placeholder); color: #8d8e87; }
.demo__mic { width: 16px; height: 18px; color: #a3a49d; flex: none; }
.demo__read { min-height: 20px; margin: 6px 2px 8px; font-size: 13px; color: var(--d-muted); }
.demo__cats { display: flex; gap: 8px; height: 30px; margin-bottom: 8px; }
.cat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--d-fill2); font-size: 14px; white-space: nowrap; border: 1.5px solid transparent; }
.cat svg { width: 15px; height: 15px; }
.cat.is-on { border-color: var(--c); background: color-mix(in oklab, var(--c) 14%, #181915); animation: pop .45s var(--ease); }
.cat.is-on svg { color: var(--c); }
.demo__hint { display: flex; align-items: center; gap: 6px; min-height: 20px; margin: 0 2px 10px; font-size: 13px; color: var(--d-muted); }
.demo__hint svg { width: 12px; height: 14px; flex: none; }
.demo__hint[data-kind="draft"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--d-warn); }
.demo__save { display: grid; place-items: center; height: 48px; border-radius: 24px; background: var(--d-lime); color: #0f100d !important; font-size: 16px; font-weight: 600; transition: filter .15s, transform .15s var(--ease); }
.demo__save.is-pressed { transform: scale(.97); filter: brightness(.86); }
@container phone (max-width: 345px) { .demo__rows { height: 174px; } .demo__sheet { padding-inline: 12px; } .demo__num { font-size: 46px; } .demo__amt { height: 52px; } }

/* the hero comes in once */
.js .hero__copy > *, .js .iphone, .js .said, .js .got .chip { animation: enter .9s var(--ease) both; }
.js .hero h1 { animation-delay: .05s; } .js .hero .lead { animation-delay: .15s; } .js .hero .store { animation-delay: .25s; }
.js .iphone { animation: phone-in 1.2s var(--ease) .2s both; }
.js .said { animation-delay: .7s; } .js .got .chip:nth-child(1) { animation-delay: .85s; } .js .got .chip:nth-child(2) { animation-delay: .95s; } .js .got .chip:nth-child(3) { animation-delay: 1.05s; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(70px) scale(.94); } }

/* ---------------------------------------------------------------- shared section pieces */
.sec { width: var(--wrap); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 0; }
.head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; color: var(--lime); }
h2 { font-weight: 700; font-size: clamp(36px, 6.4vw, 80px); line-height: 1.1; letter-spacing: -.015em; word-break: keep-all; }
.sub { max-width: 34em; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(24px, 3vw, 36px); font-size: 17px; }
.more a { color: var(--lime); text-decoration: none; } .more a::after { content: " ›"; } .more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plus { display: inline-block; vertical-align: .22em; margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: var(--lime); color: #0b0c0a; font-size: 11px; font-weight: 800; letter-spacing: .04em; }

/* things rise in once */
.js [data-rise] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .bento > [data-rise]:nth-child(2), .js .grid6 > [data-rise]:nth-child(2) { transition-delay: .08s; }
.js .bento > [data-rise]:nth-child(3), .js .grid6 > [data-rise]:nth-child(3) { transition-delay: .16s; }
.js .bento > [data-rise]:nth-child(4), .js .grid6 > [data-rise]:nth-child(4) { transition-delay: .24s; }
.js .grid6 > [data-rise]:nth-child(5) { transition-delay: .32s; } .js .grid6 > [data-rise]:nth-child(6) { transition-delay: .4s; }

/* ---------------------------------------------------------------- AI: the sorter */
.pin { position: relative; height: 320vh; }
.pin__stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav) + 3vh) 0 3vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.5vh, 44px); overflow: clip; }
.pin .head { margin-bottom: 0; }
.sorter { --fx: min(24vw, 290px); --fy: 0px; position: relative; width: min(1040px, 100vw - 44px); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 5vw, 72px); }
.sorter ol { display: grid; gap: 10px; }
.sorter__raw { justify-items: end; }
.sorter__raw li { --q: 1; --t: clamp(0, calc((var(--q) - .08) / .46), 1); position: relative;
  padding: 9px 18px; border-radius: 16px 16px 4px 16px; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; white-space: nowrap;
  color: rgb(245 245 247 / calc(.2 + (1 - var(--t)) * .8)); background: rgb(28 29 25 / calc(.35 + (1 - var(--t)) * .65)); border: 1px solid var(--line);
  rotate: calc((var(--i) - 2.5) * 1.3deg); translate: calc((var(--i) - 2.5) * -9px) 0; }
.sorter__raw li::after { content: attr(data-t); position: absolute; inset: -1px; display: grid; place-items: center; border-radius: inherit; background: #23241f; border: 1px solid rgb(209 240 104 / .5); color: var(--ink);
  transform: translate(calc(var(--t) * var(--fx)), calc(var(--t) * var(--fy) + var(--t) * (2.5 - var(--i)) * 46px)) scale(calc(1 - var(--t) * .55));
  opacity: calc(min(1, var(--t) * 12) * (1 - var(--t) * var(--t))); filter: blur(calc(var(--t) * 3px)); pointer-events: none; }
.sorter__out li { --q: 1; --u: clamp(0, calc((var(--q) - .56) / .44), 1);
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 16px; background: #141512; border: 1px solid var(--line);
  box-shadow: 0 0 0 0 transparent, inset 3px 0 0 var(--c);
  opacity: var(--u); transform: translate(calc((1 - var(--u)) * var(--fx) * -.7), calc((1 - var(--u)) * (var(--fy) * -.7 + (2.5 - var(--i)) * 40px))) scale(calc(.5 + var(--u) * .5)); }
.ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 24%, #151613); }
.ic svg { width: 20px; height: 20px; }
.t { min-width: 0; display: grid; } .t b { font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t small { font-size: 13px; color: var(--ink-2); } .t small em { font-style: normal; padding: 1px 7px; border-radius: 6px; background: rgb(255 255 255 / .08); color: var(--ink); font-size: 12px; }
.t small em.ai { background: rgb(209 240 104 / .16); color: var(--lime); }
.a { font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(15px, 1.4vw, 17px); }
.orb { --pulse: 0; position: relative; width: clamp(104px, 13vw, 168px); aspect-ratio: 1; display: grid; place-items: center; }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 20%, #d1f068 38%, #7fe6a0 52%, transparent 70%); animation: spin 5s linear infinite;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.orb__ring--2 { inset: 13%; animation-duration: 3.4s; animation-direction: reverse; opacity: .6; }
.orb__core { width: 56%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 1px; color: #0b0c0a; font-weight: 800; font-size: clamp(13px, 1.3vw, 17px); letter-spacing: .04em;
  background: radial-gradient(circle at 35% 30%, #f3ffbf, #d1f068 45%, #8ed45a); scale: calc(1 + var(--pulse) * .1);
  box-shadow: 0 0 calc(34px + var(--pulse) * 70px) rgb(209 240 104 / calc(.35 + var(--pulse) * .45)), 0 0 0 calc(var(--pulse) * 14px) rgb(209 240 104 / .08); }
.orb__core svg { width: 38%; }
@keyframes spin { to { rotate: 1turn; } }
.points { width: min(1040px, 100vw - 44px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; text-align: center; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; font-weight: 500; }
.points li { --on: 1; color: color-mix(in oklab, var(--ink) calc(35% + var(--on) * 65%), #000); transition: color .5s; }
/* a narrow window: no pinning; the lines fall through the AI as the section passes */
@media (max-width: 759px) {
  .pin { height: auto; } .pin__stick { position: static; height: auto; padding: clamp(72px, 16vw, 110px) 0; gap: 28px; }
  .sorter { --fx: 0px; --fy: 150px; grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .sorter__raw { grid-template-columns: 1fr 1fr; justify-items: center; gap: 8px; } .sorter__raw li { translate: 0 0; rotate: 0deg; font-size: 14px; padding: 7px 12px; } .sorter__raw li::after { transform: translate(0, calc(var(--t) * var(--fy))) scale(calc(1 - var(--t) * .55)); }
  .sorter__out { width: 100%; } .orb { width: 96px; }
  .points { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------------------------------------------------------------- bento tiles */
.bento { display: grid; gap: 20px; }
.bento--auto { grid-template-columns: repeat(2, 1fr); } .bento--ins { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 759px) { .bento--auto, .bento--ins { grid-template-columns: 1fr; } }
.tile { position: relative; overflow: hidden; padding: clamp(20px, 2.4vw, 32px); border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg, #161714, #0c0d0b); transition: transform .5s var(--ease), border-color .3s; }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: rgb(209 240 104 / .32); } .js .tile.in:hover { transform: translateY(-4px); } }
.tile h3 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; line-height: 1.25; }
.tile p { margin-top: 6px; color: var(--ink-2); font-size: 17px; font-weight: 500; line-height: 1.45; }
.tile__art { position: relative; height: clamp(190px, 21vw, 250px); margin-bottom: 22px; border-radius: 20px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 110% at 50% 0%, rgb(209 240 104 / .12), transparent 62%), #0a0b09; }
.tile[data-loop]:not(.is-live) *, .tile[data-loop]:not(.is-live) *::after { animation-play-state: paused !important; }

/* Apple Pay: the tap, then the banner */
.tap { position: relative; width: 74px; height: 74px; display: grid; place-items: center; color: var(--lime); }
.tap svg { width: 40px; height: 40px; }
.tap i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(209 240 104 / .7); animation: ring 4.4s var(--ease) infinite; opacity: 0; }
.tap i:nth-child(2) { animation-delay: .25s; } .tap i:nth-child(3) { animation-delay: .5s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 8% { opacity: .9; } 34%, 100% { transform: scale(2.5); opacity: 0; } }
.banner { position: absolute; left: 50%; top: 16px; width: min(86%, 330px); translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 20px;
  background: rgb(38 39 35 / .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgb(0 0 0 / .5); animation: banner 4.4s var(--ease) infinite; }
.banner img { border-radius: 9px; } .banner span { display: grid; text-align: left; line-height: 1.3; } .banner b { font-size: 15px; } .banner small { font-size: 13px; color: var(--ink-2); }
@keyframes banner { 0%, 26% { transform: translateY(-150%); opacity: 0; } 38%, 86% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(-150%); opacity: 0; } }

/* a screenshot read by a pass of light */
.receipt { position: relative; width: 150px; padding: 16px 14px 18px; border-radius: 16px; background: #f4f5ef; color: #111; display: grid; justify-items: center; gap: 2px; overflow: hidden; translate: -64px 0; rotate: -4deg; box-shadow: 0 20px 40px rgb(0 0 0 / .5); }
.receipt small { font-size: 12px; color: #5c5d57; } .receipt b { font-size: 26px; font-weight: 800; } .receipt span { font-size: 13px; color: #33342f; }
.scan { position: absolute; inset: -30% 0 auto 0; height: 46%; background: linear-gradient(to bottom, transparent, rgb(209 240 104 / .0) 20%, rgb(190 235 60 / .75)); border-bottom: 2px solid #b6dc3f; animation: scan 4.6s var(--ease) infinite; }
@keyframes scan { 0%, 6% { transform: translateY(-60%); opacity: 0; } 12% { opacity: 1; } 44% { transform: translateY(290%); opacity: 1; } 50%, 100% { transform: translateY(290%); opacity: 0; } }
.pops { position: absolute; left: calc(50% + 28px); top: 50%; translate: 0 -50%; display: grid; gap: 8px; justify-items: start; }
.pops span { padding: 6px 13px; border-radius: 13px; background: #1e1f1b; border: 1px solid var(--line); font-size: 15px; font-weight: 600; animation: pops 4.6s var(--ease) infinite; }
.pops span:first-child { background: color-mix(in oklab, var(--c) 26%, #151613); color: color-mix(in oklab, var(--c) 60%, #fff); border-color: transparent; }
.pops span:nth-child(2) { animation-delay: .14s; } .pops span:nth-child(3) { animation-delay: .28s; }
@keyframes pops { 0%, 42% { transform: translateX(-26px) scale(.7); opacity: 0; } 52%, 90% { transform: none; opacity: 1; } 98%, 100% { opacity: 0; } }

/* a bank's notification becomes an entry */
.notice, .entry { width: min(84%, 320px); display: grid; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; text-align: left; }
.notice { grid-template-columns: 34px 1fr; background: rgb(38 39 35 / .92); animation: notice 5s var(--ease) infinite; }
.notice__app { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg, #5d6bff, #2b3bd8); }
.notice span:last-child, .entry .t { display: grid; line-height: 1.3; } .notice b { font-size: 15px; } .notice small { font-size: 13px; color: var(--ink-2); }
.tile--note .tile__art { align-content: center; gap: 8px; }
.arrow { width: 18px; height: 26px; color: var(--lime); animation: arrow 5s var(--ease) infinite; }
.entry { grid-template-columns: 38px minmax(0, 1fr) auto; background: #141512; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--c); animation: entry 5s var(--ease) infinite; }
@keyframes notice { 0% { transform: translateY(-40px); opacity: 0; } 12%, 90% { transform: none; opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes arrow { 0%, 22% { opacity: 0; transform: translateY(-8px); } 34%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes entry { 0%, 34% { opacity: 0; transform: translateY(20px) scale(.94); } 48%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* Siri hears a sentence */
.tile--siri .tile__art { align-content: center; gap: 18px; }
.wave { display: flex; align-items: center; gap: 6px; height: 70px; }
.wave i { width: 7px; height: 100%; border-radius: 4px; background: var(--grad); transform-origin: 50% 50%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(1), .wave i:nth-child(9) { animation-delay: -.9s; height: 30%; } .wave i:nth-child(2), .wave i:nth-child(8) { animation-delay: -.7s; height: 55%; }
.wave i:nth-child(3), .wave i:nth-child(7) { animation-delay: -.5s; height: 80%; } .wave i:nth-child(4), .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(5) { animation-delay: -.1s; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.heard { margin: 0 !important; font-size: 24px !important; font-weight: 700 !important; color: var(--ink) !important; }

/* ---------------------------------------------------------------- together: the settle-up */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
@media (max-width: 859px) { .split { grid-template-columns: 1fr; } }
.settle { --k: 1; padding: clamp(18px, 2.4vw, 30px); border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg, #161714, #0c0d0b); display: grid; gap: 16px; }
.settle__cur { display: flex; flex-wrap: wrap; gap: 8px; } .settle__cur span { padding: 5px 13px; border-radius: 14px; background: #1e1f1b; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.settle__cur .on { background: var(--lime); color: #0b0c0a; }
.settle__people { display: grid; gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); }
.settle__people li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; background: #141512; font-size: 18px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #23241f; font-size: 22px; }
.settle output { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.settle__people li:first-child output { color: #4cd964; }
.settle__moves { display: grid; gap: 10px; }
.settle__moves li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: #141512; border: 1px solid var(--line); font-size: 16px;
  opacity: calc(1 - var(--k) * .55); }
.settle__moves b { font-variant-numeric: tabular-nums; } .settle__moves i { font-style: normal; padding: 6px 12px; border-radius: 12px; background: rgb(209 240 104 / .16); color: var(--lime); font-size: 14px; font-weight: 600; }
.settle__moves li:nth-child(1) { text-decoration: line-through rgb(255 255 255 / calc(var(--k) * .5)); }
.settle__moves li:nth-child(2) { text-decoration: line-through rgb(255 255 255 / calc(var(--k) * .5)); }
.settle__done { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 26px; background: var(--lime); color: #0b0c0a; font-weight: 700; font-size: 17px;
  opacity: calc(.35 + var(--k) * .65); scale: calc(.97 + var(--k) * .03); box-shadow: 0 0 calc(var(--k) * 50px) rgb(209 240 104 / calc(var(--k) * .4)); }
.settle__done svg { width: 20px; height: 20px; opacity: var(--k); }
.lines { display: grid; } .lines li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.4; } .lines li:first-child { border-top: 1px solid var(--line); }
.split__copy .more { justify-content: flex-start; }

/* ---------------------------------------------------------------- insights */
.tile--donut { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "d l" "h h" "p p"; column-gap: clamp(18px, 3vw, 40px); align-items: center; }
.tile--donut h3 { grid-area: h; margin-top: 22px; } .tile--donut > p { grid-area: p; }
.donut { grid-area: d; position: relative; width: clamp(168px, 18vw, 210px); aspect-ratio: 1; display: grid; place-items: center; }
.donut svg { position: absolute; inset: 0; rotate: -90deg; }
.donut circle { fill: none; stroke: var(--c); stroke-width: 13; stroke-dasharray: var(--len) 100; stroke-dashoffset: calc(-1 * var(--off)); }
.donut p { margin: 0; display: grid; justify-items: center; line-height: 1.2; } .donut b { font-size: clamp(15px, 1.7vw, 22px); letter-spacing: -.01em; color: var(--ink); font-weight: 700; } .donut small { font-size: 13px; color: var(--ink-2); }
.legend { grid-area: l; display: grid; gap: 7px; font-size: 16px; font-weight: 500; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; } .legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); } .legend b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.js .donut circle { stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s var(--ease); }
.js .in .donut circle { stroke-dasharray: var(--len) 100; }
.js .in .donut circle:nth-child(2) { transition-delay: .12s; } .js .in .donut circle:nth-child(3) { transition-delay: .24s; } .js .in .donut circle:nth-child(4) { transition-delay: .36s; }
.js .in .donut circle:nth-child(5) { transition-delay: .48s; } .js .in .donut circle:nth-child(6) { transition-delay: .6s; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.cal span { position: relative; height: 40px; display: grid; place-items: start center; padding-top: 4px; }
.cal .today { color: #0b0c0a; } .cal .today::before { content: ""; position: absolute; top: 1px; left: 50%; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%; background: var(--lime); z-index: -1; } .cal { isolation: isolate; }
.cal .due::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 11px; height: 11px; translate: -50% 0; border-radius: 4px; background: var(--c); }
.js .cal .due::after { scale: 0; transition: scale .5s var(--ease) calc(.3s + var(--d) * .12s); } .js .in .cal .due::after { scale: 1; }
.ring { position: relative; width: 120px; aspect-ratio: 1; margin-bottom: 20px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; rotate: -90deg; } .ring circle { fill: none; stroke: #23241f; stroke-width: 12; stroke-linecap: round; } .ring .go { stroke: var(--lime); stroke-dasharray: 68 100; }
.ring b { font-size: 24px; font-weight: 700; }
.js .ring .go { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease) .2s; } .js .in .ring .go { stroke-dasharray: 68 100; }
.widget { width: 168px; aspect-ratio: 1; margin-bottom: 20px; padding: 16px; border-radius: 34px; background: #1c1d19; border: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.widget small { font-size: 13px; color: var(--ink-2); font-weight: 600; } .widget b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: end; gap: 6px; height: 62px; margin-top: 10px; } .bars i { flex: 1; height: var(--h); border-radius: 4px; background: var(--grad); transform-origin: 50% 100%; }
.js .bars i { transform: scaleY(0); transition: transform .8s var(--ease); } .js .in .bars i { transform: none; }
.js .in .bars i:nth-child(2) { transition-delay: .06s; } .js .in .bars i:nth-child(3) { transition-delay: .12s; } .js .in .bars i:nth-child(4) { transition-delay: .18s; } .js .in .bars i:nth-child(5) { transition-delay: .24s; } .js .in .bars i:nth-child(6) { transition-delay: .3s; } .js .in .bars i:nth-child(7) { transition-delay: .36s; }
.bento--ins .tile--donut { grid-row: span 1; } .bento--ins { grid-auto-rows: auto; }
@media (min-width: 760px) { .bento--ins { grid-template-columns: 1.3fr 1fr 1fr; } .tile--donut { grid-column: 1 / 3; } .tile--cal { grid-column: 3; } .tile--goal { grid-column: 1; } .tile--widget { grid-column: 2 / 4; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; } .tile--widget .widget { grid-row: 1 / 3; margin-bottom: 0; } .tile--widget h3 { align-self: end; } .tile--widget p { align-self: start; } }

/* ---------------------------------------------------------------- privacy */
.sec--privacy { text-align: center; }
.mega { font-size: clamp(64px, 16vw, 220px); line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 clamp(28px, 4vw, 56px); white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); font-weight: 500; }
.facts b { display: block; color: var(--ink); font-size: clamp(19px, 2vw, 24px); margin-bottom: 2px; }
@media (max-width: 639px) { .facts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Plus, FAQ, the end */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid6 li { padding: 24px 24px 26px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #161714, #0c0d0b); color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.45; }
.grid6 svg { width: 30px; height: 30px; color: var(--lime); margin-bottom: 16px; }
.grid6 b { display: block; color: var(--ink); font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; margin-bottom: 4px; }
@media (max-width: 859px) { .grid6 { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 519px) { .grid6 { grid-template-columns: 1fr; } .grid6 li { min-height: 0; } }
.sec--faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); } .faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq p { padding: 0 0 24px; color: var(--ink-2); font-size: 17px; max-width: 40em; }
.end { border-top: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 0%, rgb(209 240 104 / .13), transparent 70%); }
.end__cta { width: var(--wrap); margin: 0 auto; padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 8vw, 100px); display: grid; justify-items: center; gap: 16px; text-align: center; }
.end__icon { border-radius: 26px; box-shadow: 0 30px 70px rgb(209 240 104 / .22); margin-bottom: 10px; }
.end__links { width: var(--wrap); margin: 0 auto; padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 14px; }
.end__links h3 { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; } .end__links a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; } .end__links a:hover { color: var(--ink); }
.end__legal { width: var(--wrap); margin: 0 auto; padding: 18px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 519px) { .end__links { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- the English page: longer words, the same layout */
:lang(en) .store img { width: 144px; } /* Apple's English badge is wider than the Chinese one */
:lang(en) .t small em { white-space: nowrap; }
:lang(en) .row__t { overflow: hidden; } :lang(en) .row__meta { gap: 4px; }
:lang(en) .row__meta .tag { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; padding: 1px 5px; }
:lang(en) .row__meta .tag svg { display: inline-block; vertical-align: -1px; margin-right: 3px; } :lang(en) .row__meta .tag--warn { padding: 0; }
:lang(en) .row__meta .tag--warn::before { display: inline-block; margin-right: 4px; vertical-align: 1px; }
@container phone (max-width: 345px) { :lang(en) .row__meta { font-size: 11.5px; gap: 3px; } :lang(en) .row__meta .tag { font-size: 11px; padding: 1px 5px; } :lang(en) .row__meta .tag svg { display: none; } }
:lang(en) .settle__moves span { white-space: nowrap; } :lang(en) .settle__moves i { padding: 6px 10px; font-size: 13px; }
@media (max-width: 519px) {
  :lang(en) .settle__moves li { grid-template-columns: 1fr auto; row-gap: 8px; } :lang(en) .settle__moves i { grid-column: 1 / -1; justify-self: start; }
  :lang(en) .tile--donut { grid-template-columns: 1fr; grid-template-areas: "d" "l" "h" "p"; } :lang(en) .donut { justify-self: center; margin-bottom: 22px; }
}

/* ---------------------------------------------------------------- less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .donut circle { stroke-dasharray: var(--len) 100; } .js .ring .go { stroke-dasharray: 68 100; } .js .bars i { transform: none; } .js .cal .due::after { scale: 1; }
  .pin { height: auto; } .pin__stick { position: static; height: auto; padding: clamp(72px, 12vw, 120px) 0; }
  .banner, .pops span, .notice, .arrow, .entry { opacity: 1; transform: none; }
}
