:root {
  color-scheme: dark;
  --bg: #000;
  --card: #111113;
  --field: #1c1c1e;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f5f5f7;
  --soft: #c7c7cc;
  --body: #a1a1a6;
  --muted: #86868b;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/21px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wl-page {
  width: min(100%, 752px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.wl-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.wl-wordmark { color: #fff; font-size: 21px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.wl-nav { display: flex; align-items: center; gap: 4px; }
.wl-nav a, .wl-nav button {
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
}
.wl-nav a:hover, .wl-nav button:hover { color: #fff; }

.wl-hero { margin-top: 92px; text-align: center; }
.wl-hero h1 {
  max-width: 12em;
  margin: 0 auto;
  color: var(--text);
  font-size: 56px;
  line-height: 58px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.wl-lead { max-width: 30em; margin: 18px auto 0; color: var(--body); font-size: 19px; line-height: 28px; text-wrap: pretty; }
.wl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.wl-fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }

.wl-section { margin-top: 96px; scroll-margin-top: 24px; }
.wl-section h2 { margin: 0 0 20px; color: var(--text); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.03em; }
.wl-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--line);
  border-radius: 20px;
}
.wl-features li { padding: 22px; background: var(--bg); }
.wl-features strong { display: block; color: #fff; font-size: 17px; line-height: 20px; font-weight: 600; }
.wl-features span { display: block; margin-top: 6px; color: var(--body); font-size: 15px; line-height: 22px; }
.wl-more {
  display: inline-block;
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}
.wl-footer { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 72px; padding-top: 12px; border-top: 1px solid var(--line); }
.wl-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; line-height: 18px; text-decoration: none; }

.wl-dialog {
  width: min(calc(100% - 32px), 400px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: auto;
}
.wl-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.wl-card {
  display: grid;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.wl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-card-head h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.wl-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.wl-form { display: grid; gap: 10px; }
.wl-label { color: var(--soft); font-size: 14px; line-height: 18px; font-weight: 500; }
.wl-hint { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
.wl-hint b { color: var(--text); font-weight: 600; }
.wl-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font: inherit;
  font-size: 16px;
}
.wl-input:focus { border-color: var(--text); }
.wl-input-code { text-align: center; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: .24em; }
.wl-primary, .wl-secondary {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease;
}
.wl-primary { color: #000; background: var(--text); border-radius: 999px; }
.wl-secondary { color: var(--text); background: transparent; border-color: var(--line-strong); border-radius: 14px; }
.wl-primary:active:not(:disabled), .wl-secondary:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .45; cursor: default; }
.wl-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wl-link {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.wl-bot { border-top: 1px solid var(--line); padding-top: 8px; }
.wl-bot summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--soft);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}
.wl-bot .wl-form { padding-top: 6px; }
.wl-error { margin: 0; color: var(--danger); font-size: 14px; line-height: 18px; }
.wl-error:empty { display: none; }
.wl-consent { margin: 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.wl-consent a { color: var(--soft); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 640px) {
  .wl-hero { margin-top: 8vh; }
  .wl-hero h1 { font-size: 40px; line-height: 42px; }
  .wl-lead { font-size: 17px; line-height: 25px; }
  .wl-section { margin-top: 64px; }
  .wl-section h2 { font-size: 24px; line-height: 30px; }
  .wl-features { grid-template-columns: 1fr; background: none; border-radius: 0; }
  .wl-features li { padding: 16px 0; }
  .wl-features li + li { border-top: 1px solid var(--line); }
  .wl-actions .pl-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
