:root {
  --ground: #0c1020;
  --surface: #161b2e;
  --raised: #1e243c;
  --text: #e8ecf5;
  --muted: #8892a8;
  --moonglow: #7fa8e6;
  --nightlight: #f2b45c;
  --slumber: #60b296;
  --hairline: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--moonglow); }
a:hover { color: var(--text); }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 16, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); }

main { padding-block: 24px 64px; }

.hero { padding-block: 56px 40px; text-align: center; }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 40px rgba(127, 168, 230, 0.15); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 24px 0 16px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.hero .points li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--ground);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 22px;
}
.button:hover { background: #ffffff; color: var(--ground); }
.button.secondary { background: var(--raised); color: var(--text); border: 1px solid var(--hairline); }
.button.secondary:hover { background: var(--surface); color: var(--text); }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.small { font-size: 0.9rem; color: var(--muted); }

section { padding-block: 40px; }
section > h2, .page h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; margin: 0 0 12px; }
section > p.sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nightlight); margin-bottom: 6px; }
.tag.free { color: var(--slumber); }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.mode { background: var(--raised); border-radius: 12px; padding: 12px 14px; }
.mode strong { display: block; }
.mode span { color: var(--muted); font-size: 0.92rem; }

.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.brands .card { text-align: center; padding: 18px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plans .card ul { list-style: none; padding: 0; color: var(--text); }
.plans .card li { padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.plans .card li:last-child { border-bottom: 0; }
.plans .card.premium { border-color: rgba(242, 180, 92, 0.35); }

.notice { background: var(--surface); border: 1px solid rgba(242, 180, 92, 0.3); border-radius: 16px; padding: 20px 22px; color: var(--muted); }
.notice strong { color: var(--text); }

.page { padding-block: 40px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.page h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.page p, .page li { color: #cdd3e1; }
.page .meta { color: var(--muted); margin-top: 0; }

details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

.code-wrap { overflow-x: auto; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--raised); border-radius: 6px; padding: 2px 6px; word-break: break-all; }

table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 20px 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }

footer.site { border-top: 1px solid var(--hairline); padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-block: 32px 24px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: 8px; }
}
