@font-face { font-family: "Onest"; src: url("/fonts/onest.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F6F7F5; --surface: #FFFFFF; --ink: #10131F; --muted: #5B6270; --line: #E3E6E2;
  --accent: #2142C8; --accent-ink: #FFFFFF; --chip: #EEF1FB; --chip-ink: #2142C8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F1A; --surface: #161A2B; --ink: #F2F3F7; --muted: #9AA1B2; --line: #262B40;
    --accent: #8FA8FF; --accent-ink: #0D0F1A; --chip: #1F2647; --chip-ink: #B9C8FF;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F1A; --surface: #161A2B; --ink: #F2F3F7; --muted: #9AA1B2; --line: #262B40;
  --accent: #8FA8FF; --accent-ink: #0D0F1A; --chip: #1F2647; --chip-ink: #B9C8FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
nav a:hover, nav a[aria-current] { color: var(--ink); background: var(--surface); text-decoration: none; }
nav .lang { border: 1px solid var(--line); }

.hero { padding-top: 88px; padding-bottom: 40px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 20px; max-width: 14em; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 8px; }
h3 { font-size: 19px; letter-spacing: -0.01em; margin: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0; }
.muted { color: var(--muted); margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card-head { display: flex; align-items: center; gap: 16px; }
.icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px rgba(16, 19, 31, .14); }
.chip { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); }
.card-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.link { font-weight: 600; font-size: 15px; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 72px; }
.how p { color: var(--muted); margin: 6px 0 0; }

.prose { padding-top: 56px; padding-bottom: 72px; max-width: 760px; }
.prose p, .prose li { max-width: 40em; }
.meta { color: var(--muted); font-size: 15px; margin: -8px 0 24px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 16px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.dl { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); font-size: 14px; font-weight: 500; text-align: center; }
.dl img { border-radius: 14px; }
.dl:hover { text-decoration: none; border-color: var(--accent); }
.nf { text-align: left; }
.nf img { border-radius: 18px; margin-bottom: 24px; }

.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 15px; }
.foot-row a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  nav a { padding: 6px 8px; font-size: 14px; }
  .hero { padding-top: 48px; }
  .lead { font-size: 18px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
