/* Universal Flow — shared stylesheet for generated app sites.
   Per-app accent comes from --accent on <html>. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #0f1219;
  --muted: #5b6372;
  --line: rgba(15, 18, 25, .1);
  --shadow: 0 1px 2px rgba(15, 18, 25, .06), 0 12px 32px -12px rgba(15, 18, 25, .18);
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --radius: 18px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang TC", "PingFang SC", "Hiragino Sans", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-alt: #11141b;
    --surface: #161a22;
    --text: #eef0f4;
    --muted: #9aa3b2;
    --line: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -16px rgba(0, 0, 0, .7);
    --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
svg { width: 1.2em; height: 1.2em; flex: none; }

/* Buttons & pills */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; font-weight: 650; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 650; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: .45em 1em; font-size: .92rem; }
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 600; margin-bottom: 1.2rem; }
.pill b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: .05em .55em; font-size: .78rem; }
.pill svg { width: 1em; height: 1em; }
.pill-sm { margin: 0; font-size: .75rem; padding: .15em .6em; }
a.pill:hover { text-decoration: none; filter: brightness(1.1); }

/* App icon */
.app-icon { border-radius: 22.5%; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.app-icon-gen { display: inline-grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000)); }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-menu { position: relative; }
/* <summary> stays display:block (Safari ignores flex on it); layout lives in an inner element */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.lang-menu summary { display: block; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: .38em .85em; font-size: .85rem; line-height: 1.4; color: var(--text); user-select: none; white-space: nowrap; }
.lang-menu .lm-inner { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.lang-menu .lm-inner svg { width: 1.05em; height: 1.05em; flex: none; color: var(--muted); display: block; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 180px; max-height: min(70vh, 420px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); font-size: .92rem; }
.lang-menu li a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-menu li a[aria-current] { color: var(--accent); font-weight: 650; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px; cursor: pointer; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1024px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { order: 10; width: 100%; flex-direction: column; gap: 0; display: none; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); }
  .page-portal .nav-toggle, .page-404 .nav-toggle { display: none; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 10px 16px; gap: 8px; }
  .brand span { max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-menu .lm-label { display: none; }
  .lang-menu summary { padding: .5em .55em; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: .45em .8em; }
  .container { padding: 0 16px; }
}

/* Hero */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 70% 40%, var(--accent-soft), transparent 70%), radial-gradient(40% 40% at 15% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.hero-app { font-weight: 700; color: var(--accent); margin: 0 0 .4rem; letter-spacing: .01em; }
.hero-copy .lead { max-width: 34em; margin-bottom: 1.8rem; }
.hero-note { font-size: .88rem; margin-top: 1rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-portal { text-align: center; }
.hero-portal .lead { margin: 0 auto; max-width: 36em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
}

/* Store badges */
.store-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.store-row.center { justify-content: center; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; height: 54px; padding: 0 18px 0 14px; border-radius: 13px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18); line-height: 1.1; transition: transform .15s; }
.store-badge:hover { text-decoration: none; transform: translateY(-1px); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; text-align: left; }
.store-badge small { font-size: .68rem; opacity: .85; letter-spacing: .02em; }
.store-badge strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge.is-soon { opacity: .55; cursor: default; }
.store-badge-img img { height: 54px; width: auto; }
.qr { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; max-width: 210px; text-align: left; }
.qr-code { width: 86px; height: 86px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr:not(.ready) { display: none; }
@media (max-width: 860px), (pointer: coarse) { .qr { display: none !important; } }

/* Device mockups */
.device { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2a2d35, #0d0f13); box-shadow: var(--shadow), inset 0 0 0 2px #3a3e48; }
.device::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 26px; background: #000; border-radius: 20px; z-index: 2; }
.device-screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg-alt); }
.device-screen > img, .device-screen > video { width: 100%; height: 100%; object-fit: cover; }
.device-tablet { width: min(480px, 88vw); aspect-ratio: 4 / 3; border-radius: 32px; padding: 14px; }
.device-tablet::before, .device-desktop::before { display: none; }
.device-tablet .device-screen { border-radius: 20px; }
.device-desktop { width: min(560px, 90vw); aspect-ratio: 16 / 10; border-radius: 16px; padding: 10px; }
.device-desktop .device-screen { border-radius: 8px; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 560px; }
.screen-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center;
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--bg-alt); }
.screen-placeholder strong { font-size: 1.2rem; }
.screen-placeholder span { color: var(--muted); font-size: .85rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 6vw, 64px); }

/* Features */
.features { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 112px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .device { width: min(270px, 70vw); }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feature-copy .prose { color: var(--muted); font-size: 1.06rem; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.feature-emoji { width: 180px; height: 180px; display: grid; place-items: center; font-size: 84px; border-radius: 40px; background: var(--accent-soft); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature-copy .prose ul { text-align: left; display: inline-block; }
}

/* Social proof */
.ratings { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.rating { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rating > strong { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rating > span:last-child { color: var(--muted); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars i { display: inline-flex; opacity: .25; }
.stars i.on { opacity: 1; }
.stars svg { width: 18px; height: 18px; }
.reviews { columns: 3 280px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review blockquote { margin: 10px 0 14px; font-size: 1rem; }
.review figcaption { color: var(--muted); font-size: .88rem; }
.review-shot { padding: 0; overflow: hidden; }
.proof-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.proof-badge { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; }
.proof-badge:has(img) { padding: 0; border: 0; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 980px; margin: 0 auto; }
.plans-1 { max-width: 420px; }
.plans-2 { max-width: 760px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--accent-ink); font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; margin-bottom: .3em; }
.price { margin: .2em 0 .6em; }
.price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { color: var(--accent); margin-top: .22em; width: 1.05em; height: 1.05em; }
.pricing-note { max-width: 760px; margin: 28px auto 0; font-size: .88rem; color: var(--muted); text-align: center; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary { display: block; cursor: pointer; padding: 18px 22px; }
.faq-item .faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.04rem; font-weight: 650; margin: 0; letter-spacing: 0; line-height: 1.45; }
.faq-item summary svg { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 22px 18px; color: var(--muted); }

/* CTA */
.cta { text-align: center; background: radial-gradient(60% 80% at 50% 100%, var(--accent-soft), transparent 70%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { margin-bottom: 20px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { margin: 12px 0; max-width: 28em; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text); padding: 4px 0; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.socials { display: inline-flex; gap: 8px; align-items: center; }
.social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); }
.social:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Portal */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: transform .15s, box-shadow .15s; }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card-main { display: flex; gap: 16px; color: var(--text); }
.app-card-main:hover { text-decoration: none; }
.app-card h2 { font-size: 1.15rem; margin-bottom: .25em; }
.app-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.platforms { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.platforms li { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app-card-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Sub pages / documents */
.doc-hero { padding: clamp(36px, 6vw, 72px) 0 12px; }
.doc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.back { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.doc-body { padding: 12px 0 96px; }
.doc-h2 { margin-top: 56px; font-size: 1.6rem; }
.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .6em; padding-top: .4em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose h4 { font-size: 1rem; margin: 1.4em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li > ul, .prose li > ol { margin: .3em 0; }
.prose code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
.prose pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 1em 0; padding: .6em 1em; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; margin: 1em 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--bg-alt); font-weight: 650; }
.doc { font-size: 1.02rem; }

/* Support */
.contact { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.contact h2 { font-size: 1.3rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 16px 0; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); }
.contact-card:hover { text-decoration: none; border-color: var(--accent); }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); }
.contact-card span { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact > p { margin: 0; font-size: .9rem; }

/* Changelog */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.release { position: relative; padding: 0 0 44px 28px; }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.release-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.version { font-weight: 800; font-size: 1.2rem; }
.release-meta time { color: var(--muted); font-size: .9rem; }
.release h3 { font-size: 1.05rem; }
.empty { padding: 40px 0; text-align: center; }

/* Download page */
.download-page { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 0; text-align: center; }

/* Direct download buttons (hero / CTA) */
.dl-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; min-height: 54px; padding: 6px 18px 6px 14px; border-radius: 13px; background: var(--surface); color: var(--text); border: 1px solid var(--line); line-height: 1.15; transition: transform .15s, border-color .15s; }
.dl-btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--accent); }
.dl-btn svg { width: 26px; height: 26px; color: var(--accent); }
.dl-btn span { display: flex; flex-direction: column; text-align: left; }
.dl-btn strong { font-size: .98rem; font-weight: 650; }
.dl-btn small { font-size: .74rem; color: var(--muted); }
.dl-btn.is-match { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dl-btn.is-match svg, .dl-btn.is-match small { color: var(--accent-ink); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.more-link svg { width: 1em; height: 1em; }
.center + .more-link, .cta-inner .more-link { align-self: center; }

/* Download page */
.dl-section { margin-bottom: 48px; }
.dl-section > h2 { font-size: 1.4rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dl-card.is-match { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.dl-card header { display: flex; align-items: flex-start; gap: 12px; }
.dl-card header > svg { width: 34px; height: 34px; color: var(--accent); }
.dl-card header div { flex: 1; min-width: 0; }
.dl-card h3 { font-size: 1.08rem; margin: 0 0 2px; }
.dl-card header p { margin: 0; font-size: .82rem; overflow-wrap: anywhere; }
.signed { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 650; color: #0a8a55; background: color-mix(in srgb, #0a8a55 12%, transparent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.signed svg { width: 1em; height: 1em; }
.dl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.dl-facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dl-facts dd { margin: 0; font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.dl-go { justify-content: center; width: 100%; min-height: 46px; }
.dl-more summary { cursor: pointer; display: block; font-weight: 600; font-size: .92rem; color: var(--muted); }
.dl-more[open] summary { color: var(--text); margin-bottom: 8px; }
.dl-more .prose { font-size: .92rem; }
.checksum { display: flex; gap: 8px; align-items: center; }
.checksum code { flex: 1; min-width: 0; font: .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.checksum .btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.dl-older { margin: 0 0 32px; }
.dl-older summary { cursor: pointer; display: block; font-weight: 650; }
.dl-older table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dl-older th, .dl-older td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.dl-notice { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: .92rem; margin-bottom: 24px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 24px; }
@media (max-width: 480px) {
  .dl-btn, .store-badge { min-width: 0; flex: 1 1 100%; }
  .badges { width: 100%; }
  .dl-facts { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 32px; }
}
@media (min-width: 481px) and (max-width: 860px) { .badges { justify-content: center; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-nav, .site-footer, .lang-menu { display: none; } }
.app-card-links a { white-space: nowrap; }
.dl-more summary::before, .dl-older summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .15s; }
.dl-more[open] summary::before, .dl-older[open] summary::before { transform: rotate(90deg); }
.platforms li:has(> a) { padding: 0; }
.platforms a { display: block; padding: 2px 9px; border-radius: inherit; color: inherit; text-decoration: none; }
.platforms a:hover { background: var(--accent); color: #fff; text-decoration: none; }
.platforms a::after { content: " ↗"; font-size: .85em; opacity: .7; }
