:root {
  --bg: #F7FAF9;
  --surface: #FFFFFF;
  --text: #13201E;
  --muted: #56655F;
  --line: #DCE5E2;
  --brand: #0F766E;
  --accent: var(--brand);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1312;
    --surface: #121C1B;
    --text: #E6EFED;
    --muted: #9DB0AB;
    --line: #22302E;
    --brand: #2DD4BF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }

main { padding: 40px 16px 64px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin: 48px 0 16px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); font-size: 14px; }

.hero { padding: 24px 0 8px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.card a:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { border-radius: 14px; }
.card h3 { margin: 14px 0 6px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; flex: 1; }
.card .more { color: var(--accent); font-weight: 600; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .card a { transition: none; } .card a:hover { transform: none; } }

.principles ul { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.principles li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principles h3 { margin-top: 0; }
.principles p { margin: 0; color: var(--muted); }

.app-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.app-head img { border-radius: 22px; flex: none; }
.app-head > div { flex: 1; min-width: 260px; }
.features { padding-left: 20px; }
.features li { margin: 6px 0; }
.features li::marker { color: var(--accent); }
.facts p { margin: 8px 0; }

.button {
  display: inline-block; margin: 8px 8px 0 0; padding: 12px 20px; min-height: 48px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); background: var(--surface); text-decoration: none; font-weight: 600;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.disabled { color: var(--muted); cursor: default; }

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; }
.summary { padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.legal { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }

.wheel-view { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; margin: 24px 0; }
.wheel-view svg { width: min(320px, 100%); height: auto; flex: none; }
.wheel-view svg text { font: 7px system-ui, sans-serif; fill: #fff; }
.error { color: #B3261E; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding: 24px 16px 40px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 480px) {
  .legal { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
}
