/* Relink 助手 download page (server/cloud/web). iOS system colours as in the App (ui/theme/Palette.kt): white and
   grey, a near-black accent; blue is never a UI colour here (it only means the 稀有 grade in the App).
   Type scale: 12 fine print, 13 caption, 15 subhead, 17 body, 20 card title, 17-21 lead, 30-48 section, 44-80 hero.
   Contrast: --label-2 (all secondary text) at least 4.5:1 on every grey it sits on, both modes; --label-3 only for
   non-text marks (3:1); the focus ring is the accent (white on the dark cards). */

:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #F7F7FA;
  --raised: #1C1C1E;
  --fill: rgba(118, 118, 128, .12);
  --label: #000000;
  --label-2: rgba(60, 60, 67, .78);
  --label-3: rgba(60, 60, 67, .6);
  --sep: rgba(60, 60, 67, .14);
  --accent: #1F1F1F;
  --on-accent: #FFFFFF;
  --green: #34C759;
  --green-text: #248A3D;
  --yellow: #FFCC00;
  --yellow-text: #946C00;
  --orange: #FF9500;
  --orange-text: #C93400;
  --red: #FF3B30;
  --red-text: #D70015;
  --brown: #A2845E;
  --indigo: #5856D6;
  --nav: rgba(242, 242, 247, .8);
  --glass: rgba(255, 255, 255, .94);
  --glass-line: rgba(0, 0, 0, .05);
  --spot: rgba(255, 255, 255, .95);
  --ring: rgba(60, 60, 67, .12);
  --shadow: 0 1px 2px rgba(28, 36, 51, .04), 0 10px 30px rgba(28, 36, 51, .06);
  --shadow-md: 0 2px 6px rgba(28, 36, 51, .06), 0 18px 40px rgba(28, 36, 51, .13);
  --shadow-lg: 0 2px 8px rgba(28, 36, 51, .06), 0 30px 70px rgba(28, 36, 51, .16);
  --shadow-toast: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 44px rgba(28, 36, 51, .2);
  --end-bg: #1C1C1E;
  --radius: 24px;
  --fs-fine: 12px;
  --fs-cap: 13px;
  --fs-sub: 15px;
  --fs-body: 17px;
  --fs-h3: 20px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --card-2: #2C2C2E;
    --raised: #2C2C2E;
    --fill: rgba(118, 118, 128, .24);
    --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, .64);
    --label-3: rgba(235, 235, 245, .5);
    --sep: rgba(84, 84, 88, .5);
    --accent: #FFFFFF;
    --on-accent: #000000;
    --green: #30D158;
    --green-text: #30D158;
    --yellow: #FFD60A;
    --yellow-text: #FFD60A;
    --orange: #FF9F0A;
    --orange-text: #FF9F0A;
    --red: #FF453A;
    --red-text: #FF6961;
    --brown: #AC8E68;
    --indigo: #5E5CE6;
    --nav: rgba(0, 0, 0, .72);
    --glass: rgba(44, 44, 46, .94);
    --glass-line: rgba(255, 255, 255, .08);
    --spot: rgba(255, 255, 255, .075);
    --ring: rgba(235, 235, 245, .09);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .6);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .7);
    --shadow-toast: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 44px rgba(0, 0, 0, .6);
    --end-bg: #1C1C1E;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  /* Only families with real bold weights: a single-weight install (MiSans Regular, say) would be fake-bolded. Phones
     get their own system font through system-ui. */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
p { margin: 0; text-wrap: pretty; }
li { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
a { color: inherit; }
b { font-weight: 600; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* Navigation: clear over the hero, frosted once the page scrolls ------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: var(--nav); border-bottom-color: var(--sep);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-body); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: var(--fs-sub); }
.nav-links a { color: var(--label-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--label); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* Buttons ------------------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.965); transition-duration: .1s; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-invert { background: #FFFFFF; color: #000000; }
/* White buttons sit on the dark end card and the overlay: their focus ring is white too. */
.btn-invert:focus-visible { outline-color: #FFFFFF; }
.btn-quiet { background: var(--fill); color: var(--label-2); }
.btn-sm { height: 34px; padding: 0 16px; font-size: var(--fs-sub); }
.btn-lg { height: 54px; padding: 0 30px; font-size: var(--fs-body); }
.btn.is-disabled { opacity: .45; cursor: default; }
.btn.is-disabled:active { transform: none; }
@media (hover: hover) {
  .btn-primary:hover:not(.is-disabled), .btn-invert:hover:not(.is-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  }
}

/* Hero ---------------------------------------------------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; padding: 20px 0 24px; overflow-x: clip; }
.hero-grid { position: relative; display: grid; gap: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 12px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  font-size: var(--fs-cap); font-weight: 600; color: var(--label-2);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 12.4vw, 80px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.lead { margin-top: 18px; max-width: 30em; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.6; color: var(--label-2); }

.cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.cta-main { display: grid; justify-items: start; gap: 12px; width: 100%; }
.cta .btn-lg { width: 100%; }
.cta-meta { font-size: var(--fs-cap); color: var(--label-2); font-variant-numeric: tabular-nums; }
.platform-note { flex-basis: 100%; font-size: var(--fs-sub); color: var(--orange-text); font-weight: 600; }
@media (min-width: 560px) {
  .cta-main { width: auto; }
  .cta .btn-lg { width: auto; min-width: 220px; }
}

/* The QR code only makes sense on a computer (a phone cannot scan its own screen): beside the button, behind a
   hairline, so it reads as the second way to the same download rather than a second call to action. */
.qr-card { display: none; align-items: center; gap: 16px; padding-left: 32px; border-left: 1px solid var(--sep); }
.qr {
  position: relative; flex: none; width: 128px; height: 128px; padding: 8px; border-radius: 16px; background: #FFFFFF;
  box-shadow: var(--shadow);
}
.qr svg { width: 100%; height: 100%; }
.qr svg path { stroke: #000000; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 7px; box-shadow: 0 0 0 3px #FFFFFF;
}
.qr-title { font-weight: 600; font-size: var(--fs-sub); }
.qr-text p:not(.qr-title) { margin-top: 2px; font-size: var(--fs-cap); line-height: 1.5; color: var(--label-2); }

/* The phone with its notifications, floating over a soft spotlight and slow "arrived" rings that spread from where
   the banners drop in and fade out well before they reach the copy or the navigation. */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0 12px; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 46%; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--spot), transparent);
  pointer-events: none;
}
.rings {
  position: absolute; z-index: -1; left: 50%; top: 70px; width: 720px; height: 720px; margin: -360px 0 0 -360px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.rings span {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ring); opacity: 0;
  animation: ripple 7.5s cubic-bezier(.2, .6, .3, 1) infinite;
}
.rings span:nth-child(2) { animation-delay: 2.5s; }
.rings span:nth-child(3) { animation-delay: 5s; }
@keyframes ripple { 0% { transform: scale(.25); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.stage { position: relative; width: min(290px, 72vw); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* The phone frame (hero and screenshots) ------------------------------------------------------------------------ */

.phone {
  position: relative; width: 100%;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, #3A3A3C, #0E0E10 40%, #1C1C1E);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone::before {
  /* The camera hole. */
  content: ""; position: absolute; z-index: 1; top: 20px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: #0A0A0B; box-shadow: inset 0 0 0 2px #1E1E22;
}
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 20; border-radius: 35px; background: var(--bg); }

/* Banners drop in over the phone's top edge and its empty status area, never over the App's own text. */
.toasts { position: absolute; left: -18px; right: -18px; top: -16px; height: 92px; z-index: 2; }
.toast, .mini-note {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 15px 13px 12px; border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow-toast), inset 0 0 0 1px var(--glass-line);
  font-size: var(--fs-cap); line-height: 1.45;
}
.toast img, .mini-note img { flex: none; border-radius: 9px; }
.toast > div, .mini-note > div { min-width: 0; flex: 1; }
.toast-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.toast-head b { font-weight: 600; font-size: var(--fs-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-head time { flex: none; font-size: var(--fs-fine); color: var(--label-2); }
.toast p:not(.toast-head), .mini-note p:not(.toast-head) { margin-top: 1px; color: var(--label-2); }
.toast p:not(.toast-head) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast {
  position: absolute; inset: 0 0 auto;
  opacity: 0; transform: translateY(-18px) scale(.94);
  transition: opacity .5s var(--ease), transform .7s var(--spring);
}
.toast.is-on { opacity: 1; transform: none; }
.toast.is-off { opacity: 0; transform: translateY(10px) scale(.97); transition-duration: .45s, .5s; }

@media (min-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
  .qr-card { display: flex; }
  .hero-visual { padding-top: 36px; }
  /* Below about 1080 px the code does not fit beside the button: it goes under it, without the hairline. */
  @media (max-width: 1079.98px) { .qr-card { padding-left: 0; border-left: 0; } }
  .stage { width: 310px; }
  .toasts { left: -26px; right: -26px; top: -20px; }
  .rings { top: 80px; width: 900px; height: 900px; margin: -450px 0 0 -450px; }
}

/* Sections ------------------------------------------------------------------------------------------------------ */

.section { padding: 44px 0; }
.section-head { margin-bottom: 28px; }
.eyebrow { font-size: var(--fs-sub); font-weight: 600; color: var(--label-2); }
.section h2 { margin-top: 6px; font-size: clamp(30px, 7.6vw, 48px); line-height: 1.18; letter-spacing: -.015em; }
.section-sub { margin-top: 12px; color: var(--label-2); max-width: 34em; }
.br-m { display: inline; }
@media (min-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .eyebrow { font-size: var(--fs-body); }
  .br-m { display: none; }
}

.card { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 24px; }
.card h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card p { color: var(--label-2); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.glyph { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #FFFFFF; }
.glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-orange { background: var(--orange); }
.g-brown { background: var(--brown); }
.g-green { background: var(--green); }
.g-red { background: var(--red); }
.g-indigo { background: var(--indigo); }
.g-ink { background: #1C1C1E; color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .g-ink { background: #3A3A3C; } }

/* Features (bento) */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.note-stack { position: relative; isolation: isolate; margin-top: 20px; padding-bottom: 14px; }
.note-stack::before, .note-stack::after {
  content: ""; position: absolute; z-index: -1; border-radius: 18px; background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--sep);
}
.note-stack::before { left: 12px; right: 12px; bottom: 7px; height: 40px; opacity: .9; }
.note-stack::after { left: 26px; right: 26px; bottom: 0; height: 40px; opacity: .5; }
.card .mini-note {
  background: var(--card-2); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--sep), 0 6px 18px rgba(28, 36, 51, .06);
}
.mini-notes { display: grid; gap: 10px; margin-top: 18px; }
.mini-notes .mini-note { padding: 11px 14px 12px 11px; }
.mini-notes .mini-note img { border-radius: 8px; }
.mini-notes p:not(.toast-head) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-total {
  margin-top: 18px; padding: 14px 16px 16px; border-radius: 18px; background: var(--raised); color: #FFFFFF;
  box-shadow: var(--shadow);
}
.card .mini-total-head { display: flex; justify-content: space-between; font-size: var(--fs-cap); color: #FFFFFF; }
.mini-total-head time { color: rgba(235, 235, 245, .6); }
.mini-total-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.card .mini-total-nums p { font-size: var(--fs-fine); color: rgba(235, 235, 245, .6); }
.mini-total-nums b {
  display: block; color: #FFFFFF; font-size: 22px; font-weight: 700; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.mini-total .t-green { color: #30D158; }
.mini-total .t-orange { color: #FF9F0A; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--fill); font-size: var(--fs-cap); font-weight: 600; color: var(--label-2); }

.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.mini-stats div { padding: 10px 4px 9px; border-radius: 16px; background: var(--card-2); text-align: center; }
.mini-stats dt { font-size: var(--fs-cap); color: var(--label-2); }
.mini-stats dd { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.t-green { color: var(--green-text); }
.t-orange { color: var(--orange); }

.mini-devices { margin: 14px 0 0; padding: 0; list-style: none; }
.mini-devices li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--sep); font-weight: 600; font-size: var(--fs-sub); }
.mini-devices li:first-child { border-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px 2px 9px; border-radius: 999px; font-style: normal; font-size: var(--fs-cap); font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-green { color: var(--green-text); background: rgba(52, 199, 89, .14); }
.p-yellow { color: var(--yellow-text); background: rgba(255, 204, 0, .2); }
.p-red { color: var(--red-text); background: rgba(255, 59, 48, .12); }

.checks { display: grid; gap: 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; color: var(--label-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: 8.5px; width: 5px; height: 9px;
  border: solid #FFFFFF; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}
.checks b { display: block; color: var(--label); }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-a, .f-f { grid-column: span 2; }
  .f-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; align-items: start; }
  .f-a .card-top, .f-a > p, .f-a .tags { grid-column: 1; }
  .f-a .note-stack { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .card { padding: 28px; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .f-a { grid-column: span 2; }
  .f-f { grid-column: span 3; }
}

/* Screenshots */
.section-screens { overflow: hidden; }
.shots {
  display: flex; gap: 18px; margin: -24px 0 0; padding: 36px 20px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 236px; margin: 0; scroll-snap-align: start; }
.shot .phone { padding: 7px; border-radius: 36px; box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.shot .phone::before { top: 16px; width: 9px; height: 9px; margin-left: -4.5px; }
.shot .phone img { border-radius: 29px; }
.shot figcaption { margin-top: 18px; padding: 0 4px; font-size: var(--fs-sub); line-height: 1.5; color: var(--label-2); text-align: center; }
.shot figcaption b { display: block; margin-bottom: 2px; color: var(--label); font-size: var(--fs-body); }
@media (min-width: 1000px) {
  .shots { justify-content: center; gap: 32px; overflow: visible; padding-bottom: 8px; }
  .shot { width: 248px; }
}

/* Steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--fs-body);
}
.step .step-text { grid-column: 1 / -1; margin-top: 12px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .step { display: block; }
  .step-no { width: 40px; height: 40px; margin-bottom: 18px; }
  .step .step-text { margin-top: 8px; }
}

/* FAQ: one column on a phone, the heading beside the questions on a computer */
.faq { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-top: 1px solid var(--sep); }
.faq details:first-child { border-top: 0; }
.faq summary {
  position: relative; display: block; padding: 19px 56px 19px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-body); -webkit-tap-highlight-color: transparent; transition: background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--label-3); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
  transition: transform .35s var(--spring), margin-top .35s var(--spring);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
@media (hover: hover) { .faq summary:hover { background: var(--fill); } }
.answer { padding: 0 24px 22px; color: var(--label-2); }
.answer p + p, .answer ol + p { margin-top: 10px; }
.answer ol { margin: 8px 0 0; padding-left: 1.3em; }
.answer li + li { margin-top: 4px; }
.answer b { color: var(--label); }
.faq details[open] .answer { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 56px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 104px; margin: 0; }
}

/* Closing call to action */
.section-last { padding-top: 24px; }
.end-card {
  display: grid; justify-items: center; gap: 22px; padding: 52px 24px; border-radius: 32px; text-align: center;
  background: var(--end-bg); color: #FFFFFF; box-shadow: var(--shadow-lg);
  background-image: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%);
}
.end-card h2 { margin: 0; font-size: clamp(28px, 7vw, 44px); letter-spacing: -.015em; line-height: 1.22; }
.end-icon { border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .1); }
.end-meta { font-size: var(--fs-cap); color: rgba(235, 235, 245, .6); }
@media (min-width: 720px) { .end-card { padding: 72px 40px; } }

/* Footer */
.footer { padding: 32px 0 calc(48px + env(safe-area-inset-bottom)); font-size: var(--fs-cap); color: var(--label-2); }
.footer p + p { margin-top: 6px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--label); font-weight: 600; font-size: var(--fs-sub); }
.foot-brand img { border-radius: 6px; }
.sha { margin-top: 14px; max-width: 640px; }
.sha-label { font-weight: 600; color: var(--label); }
.sha-label span { margin-left: 6px; font-weight: 400; color: var(--label-2); }
.sha-box {
  display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow);
}
.sha code {
  flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: var(--fs-fine); line-height: 1.5; word-break: break-all; color: var(--label);
}
.copy {
  flex: none; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--fill); color: var(--label);
  font: inherit; font-size: var(--fs-cap); font-weight: 600; cursor: pointer; transition: background-color .2s, transform .3s var(--spring);
}
.copy:active { transform: scale(.94); }
.fine { margin-top: 14px !important; font-size: var(--fs-fine); color: var(--label-2); }

/* The in-app browser (WeChat, QQ ...) overlay */
.inapp {
  position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start;
  padding: 150px 24px 24px; background: rgba(0, 0, 0, .76);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade .3s var(--ease);
}
.inapp[hidden] { display: none; }
.inapp-arrow {
  position: absolute; top: 12px; right: 22px; width: 104px; height: 104px;
  fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  animation: nudge 1.6s var(--ease) infinite;
}
.inapp-card { max-width: 360px; color: #FFFFFF; text-align: left; }
.inapp-card:focus { outline: none; }
.inapp-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.inapp-card p:not(.inapp-title) { color: rgba(255, 255, 255, .82); font-size: var(--fs-body); line-height: 1.7; }
.inapp-card b { color: #FFFFFF; }
.inapp-steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.inapp-steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: var(--fs-body); }
.inapp-steps li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #FFFFFF; color: #000000; font-weight: 700; font-size: var(--fs-sub);
}
.key { padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, .18); color: #FFFFFF; font-weight: 600; }
/* WeChat's "more" button, drawn: three middle dots collapse into a narrow ellipsis in most CJK fonts. */
.key-more { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; }
.key-more::before {
  content: ""; width: 22px; height: 6px;
  background: radial-gradient(circle, #FFFFFF 2.4px, transparent 2.9px) 0 0 / 8px 6px repeat-x;
}
.dots { letter-spacing: .18em; }
.inapp-card .btn { margin-top: 26px; height: 46px; padding: 0 22px; font-size: var(--fs-body); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5px, -5px); } }

/* Reveal on scroll (only once site.js has marked the page; without scripts everything is simply there) */
.js .reveal { opacity: 0; transform: translateY(30px) scale(.985); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.bento > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .shots > .reveal:nth-child(2) { transition-delay: .08s; }
.bento > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .shots > .reveal:nth-child(3) { transition-delay: .16s; }
.bento > .reveal:nth-child(4), .shots > .reveal:nth-child(4) { transition-delay: .24s; }
.bento > .reveal:nth-child(5) { transition-delay: .08s; }
.bento > .reveal:nth-child(6) { transition-delay: .12s; }
.js .rise { animation: rise .9s var(--ease) both; }
.js .rise:nth-child(2) { animation-delay: .06s; }
.js .rise:nth-child(3) { animation-delay: .12s; }
.js .rise:nth-child(4) { animation-delay: .18s; }
.js .rise:nth-child(5) { animation-delay: .24s; }
.js .hero-visual { animation: rise 1.1s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rings { display: none; }
}

/* notfound.html: an unknown /app address, or no APK published yet */
.lost {
  display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 100vh; min-height: 100dvh;
  padding: 40px 24px; text-align: center;
}
.lost img { border-radius: 18px; box-shadow: var(--shadow-lg); margin-bottom: 8px; }
.lost h1 { font-size: 30px; letter-spacing: -.015em; }
.lost p { max-width: 24em; color: var(--label-2); }
.lost .btn { margin-top: 12px; height: 50px; padding: 0 28px; }
