:root {
  --ground: #efe6fb; --card: #fffaf0; --card-2: #ffffff; --rim-shadow: #d8c7e8; --soft-shadow: rgba(60, 40, 90, .22);
  --well: #f3e9ff; --line: #e3d4f3; --title: #6b4fa0; --sub: #8d76b3; --text: #4a3b5c; --muted: #6f5d87;
  --accent: #ffb84d; --accent-ink: #4d3000; --pink: #ff9ec4;
  --go: #5ed49a; --go-shadow: #38a874; --go-ink: #0d3a25; --go-text: #17754c;
  --btn: #e7dcf5; --btn-shadow: #c9b8e0; --btn-ink: #6b4fa0; --focus: #8a6fd0; --off: #c23a4e;
  --font: Nunito, "Nunito Sans", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1226; --card: #2c1f3d; --card-2: #36274a; --rim-shadow: #150d1e; --soft-shadow: rgba(0, 0, 0, .5);
    --well: #3a2a50; --line: #46345f; --title: #dccaff; --sub: #a994c9; --text: #f0e8fa; --muted: #bba9d6;
    --go: #54c791; --go-shadow: #2a7d58; --go-ink: #05281a; --go-text: #6fdcaa;
    --btn: #3f2e58; --btn-shadow: #150d1e; --btn-ink: #dccaff; --off: #ff9aa6;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.6 var(--font); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--title); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { color: var(--title); line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0 0 1em; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.35rem; text-decoration: none; color: var(--title); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a:not(.btn) { padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--muted); }
.top nav a:not(.btn):hover { background: var(--well); color: var(--title); }
.top nav a[aria-current="page"] { background: var(--well); color: var(--title); }
.menu { display: none; margin-left: auto; font: inherit; font-weight: 800; padding: 8px 14px; border: 0; border-radius: 12px;
  background: var(--btn); color: var(--btn-ink); box-shadow: 0 3px 0 var(--btn-shadow); cursor: pointer; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 16px; font-weight: 900; text-decoration: none; text-align: center;
  background: var(--btn); color: var(--btn-ink); box-shadow: 0 4px 0 var(--btn-shadow); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); }
.btn.go { background: var(--go); color: var(--go-ink); box-shadow: 0 4px 0 var(--go-shadow); }
.btn.go:active { box-shadow: 0 1px 0 var(--go-shadow); }
.btn.small { padding: 8px 16px; border-radius: 12px; margin-left: 6px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.gap-top { margin-top: 22px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden;
  background: #7fb6ff url(/img/hero.jpg) center 40% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 18, 38, .82) 0%, rgba(27, 18, 38, .35) 38%, rgba(27, 18, 38, 0) 65%); }
.hero .in { position: relative; z-index: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 40px 20px 48px; color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 3px 14px rgba(27, 18, 38, .6); max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 46ch; text-shadow: 0 2px 8px rgba(27, 18, 38, .7); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  background: rgba(255, 255, 255, .92); color: #4a3b5c; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #b9aecb; }
.on .dot { background: #2fbf7a; box-shadow: 0 0 0 4px rgba(47, 191, 122, .25); }
.off .dot { background: #e05a6d; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 44px 20px; }
.narrow { max-width: 780px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.page-head { padding-bottom: 8px; }
.label { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 900; color: var(--sub); margin: 0 0 6px; }
.card { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: 0 5px 0 var(--rim-shadow), 0 14px 30px var(--soft-shadow); margin: 0 0 22px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid .card { margin: 0; }
.feature .badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--well); margin-bottom: 12px; }
.feature .badge svg { width: 24px; height: 24px; stroke: var(--title); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps, .needs { padding-left: 1.2em; margin: 0; }
.steps li, .needs li { margin-bottom: .7em; }
.num { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.num li { counter-increment: n; background: var(--well); border-radius: 18px; padding: 18px; }
.num li::before { content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; margin-bottom: 10px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; overflow-wrap: anywhere; background: var(--well); padding: 10px 12px; border-radius: 10px; }
.news-item { border-top: 2px solid var(--line); padding-top: 16px; margin-top: 16px; }
.news-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.news-item .when { font-weight: 800; color: var(--sub); font-size: .9rem; }
.news-item ul { margin: .4em 0 0; padding-left: 1.2em; }
.note { background: var(--well); border-left: 5px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.band { background: var(--card-2); border-block: 2px solid var(--line); }
.center { text-align: center; }
.center .row { justify-content: center; }
details { border-top: 2px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { font-weight: 800; color: var(--title); cursor: pointer; }
details p { margin: .6em 0 0; }

.form { display: grid; gap: 14px; max-width: 420px; }
.form label { display: grid; gap: 6px; font-weight: 800; color: var(--title); }
.form input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card-2); color: var(--text); width: 100%; }
.form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form button { font: inherit; font-weight: 900; border: 0; cursor: pointer; justify-self: start; }
.form button:disabled { opacity: .55; cursor: default; }
.msg { min-height: 1.6em; margin: 0; font-weight: 800; }
.msg.good { color: var(--go-text); }
.msg.bad { color: var(--off); }
[hidden] { display: none !important; }

.foot { background: var(--card); border-top: 2px solid var(--line); padding: 36px 20px 28px; }
.foot .cols { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot h3 { font-size: .95rem; margin-bottom: 8px; }
.foot a { display: block; padding: 3px 0; text-decoration: none; color: var(--muted); font-weight: 700; }
.foot a:hover { color: var(--title); text-decoration: underline; }
.foot p { color: var(--muted); font-size: .95rem; margin-bottom: .5em; }
.foot .fine { max-width: 1100px; margin: 24px auto 0; font-size: .82rem; border-top: 2px solid var(--line); padding-top: 16px; }
.foot .fine a { display: inline; }
.status.on { color: var(--go-text); font-weight: 800; }
.status.off { color: var(--off); font-weight: 800; }

@media (max-width: 820px) {
  .menu { display: block; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .top nav.open { display: flex; }
  .top nav a:not(.btn) { padding: 12px; }
  .btn.small { margin: 6px 0 4px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 70vh; background-position: 38% 40%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
