:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --brand: #1d1d1f;
  --accent: #6b6259;
  --tint: 9%;
  --notice-bg: #fff4e0;
  --radius: 22px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 28px rgb(0 0 0 / 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c30;
    --brand: #f5f5f7;
    --tint: 16%;
    --notice-bg: #3a2e1d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 28px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #2c2c30;
  --brand: #f5f5f7;
  --tint: 16%;
  --notice-bg: #3a2e1d;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 28px rgb(0 0 0 / 0.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.015em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; font-size: 19px; color: var(--brand); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav > a { color: var(--text); padding: 6px 12px; border-radius: 999px; }
.nav > a:hover { background: var(--surface-2); text-decoration: none; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.lang summary:hover { background: var(--surface-2); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; font-size: 11px; }
.lang ul {
  position: absolute; right: 0; top: 40px; margin: 0; padding: 6px; list-style: none; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang li a { display: block; padding: 7px 12px; color: var(--text); border-radius: 8px; }
.lang li a:hover { background: var(--surface-2); text-decoration: none; }
.lang li a[aria-current] { font-weight: 600; }

/* Home */
.home-hero {
  padding: 88px 0 56px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 25% 0%, color-mix(in srgb, #0e8f9c 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 80% 10%, color-mix(in srgb, #e8890c 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 55% 30%, color-mix(in srgb, #0a7cff 10%, transparent), transparent 70%);
}
.home-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 16ch; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin: 0 auto; max-width: 40ch; line-height: 1.5; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; }

.app-grid { list-style: none; padding: 0; margin: 8px 0 96px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.app-card a {
  display: flex; gap: 22px; align-items: flex-start; padding: 26px; height: 100%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
}
.app-card a:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.app-card h2 { margin: 2px 0 6px; font-size: 22px; }
.card-line { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tag.quiet { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.icon { width: 88px; height: 88px; border-radius: 22.5%; flex: none; box-shadow: 0 2px 10px rgb(0 0 0 / 0.12); }
.icon.large { width: 144px; height: 144px; box-shadow: 0 10px 40px rgb(0 0 0 / 0.18); }

/* App page */
.app-hero {
  text-align: center;
  padding: 64px 0 40px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) var(--tint), var(--bg)) 0%, var(--bg) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.app-hero h1 { font-size: clamp(38px, 6vw, 60px); margin: 22px 0 0; letter-spacing: -0.035em; line-height: 1.05; }
.hero-sub { font-size: clamp(18px, 2.4vw, 24px); color: var(--accent); font-weight: 600; margin: 8px 0 0; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40em; margin: 14px auto 26px; line-height: 1.5; }
.get { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.qr { display: none; margin: 0; padding: 10px 10px 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.qr-code { width: 96px; height: 96px; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr figcaption { font-size: 11px; color: #6e6e73; margin-top: 6px; white-space: nowrap; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .qr { display: block; } }
.badge { display: inline-block; transition: transform 0.15s ease; }
.badge:hover { transform: scale(1.03); }
.badge img { display: block; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.notice { background: var(--notice-bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: 52ch; margin: 18px auto 0; }

.gallery { padding: 8px 0 24px; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - var(--wrap)) / 2 + 16px)) 20px;
  scrollbar-width: thin;
}
.shots img {
  height: min(560px, 70vh); width: auto; flex: none; scroll-snap-align: center;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
}

.showcase { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 96px); padding-top: 40px; padding-bottom: 24px; }
.set-title { font-size: clamp(14px, 1.4vw, 16px); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 24px 0 -32px; text-align: center; }
.show { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.show.flip .show-text { order: 2; }
.show-text h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; }
.show-text .em { color: var(--accent); }
.show-text p { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; margin: 0; max-width: 30em; }
.show-media {
  margin: 0; padding: clamp(18px, 3vw, 36px); border-radius: 28px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent) 6%, var(--surface)));
}
.show-media img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.16); }
@media (max-width: 760px) {
  .show { grid-template-columns: 1fr; }
  .show.flip .show-text { order: 0; }
}
.section-title { font-size: clamp(26px, 3.5vw, 36px); margin: 56px 0 24px; text-align: center; }
.intro { text-align: center; color: var(--muted); }
.feature-grid { columns: 3 300px; column-gap: 18px; }
.feature { break-inside: avoid; margin-bottom: 18px; display: inline-block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.feature h3.caps { font-size: 14px; letter-spacing: 0.06em; }
.feature p, .feature li { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.feature p { margin: 0 0 8px; }
.feature ul { margin: 0; padding-left: 1.15em; }
.feature li { margin: 5px 0; }
.feature li::marker { color: var(--accent); }

.whats-new { margin-top: 48px; }
.panel { background: var(--surface-2); border-radius: var(--radius); padding: 28px 32px; max-width: 760px; margin: 0 auto; }
.panel h2 { margin: 0 0 4px; font-size: 24px; }
.panel .meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.panel ul { padding-left: 1.2em; }

.cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; margin-bottom: 80px; padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.cta h2 { margin: 0; font-size: 22px; }
.cta > div { flex: 1; min-width: 200px; }
.cta .icon { width: 72px; height: 72px; }
.links { display: flex; gap: 20px; flex-wrap: wrap; margin: 4px 0 0; font-size: 15px; }

.full-desc summary { cursor: pointer; font-weight: 600; margin: 24px 0 8px; }

/* Text pages */
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.page { padding-top: 48px; padding-bottom: 72px; }
.page h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 8px 0 16px; }
.page .lead { margin: 0; text-align: left; max-width: none; }
.legal h2 { font-size: 20px; margin: 32px 0 6px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .contact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.crumb { margin: 0; font-size: 15px; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.crumb img { border-radius: 22.5%; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin: 10px 0; }
.plain-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.plain-list img { border-radius: 22.5%; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { padding-top: 28px; padding-bottom: 36px; }
.footer-row p { margin: 4px 0; }

@media (max-width: 640px) {
  .home-hero { padding: 56px 0 40px; }
  .app-card a { padding: 20px; gap: 16px; }
  .icon { width: 72px; height: 72px; }
  .icon.large { width: 112px; height: 112px; }
  .app-hero { padding-top: 40px; }
  .shots img { height: 460px; }
  .panel { padding: 22px 20px; }
  .nav > a, .lang summary { padding: 6px 8px; }
}

.faq { margin-top: 56px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style-position: outside; }
.faq details p { margin: 10px 0 2px; color: var(--muted); line-height: 1.65; }
