:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5f5f66;
  --line: #d2d2d7;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-ink: #ffffff;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --radius: 28px;
  --wide: 1080px;
  --text: 680px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --line: #38383a;
    --accent: #a5b4fc;
    --accent-2: #c4b5fd;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--text); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { color: var(--ink-2); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 64px 0 24px; }
.hero .icon { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 26px; box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3); }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(40px, 8vw, 80px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .grad { background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; }
}
.hero .lede { font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-2); max-width: 640px; margin: 18px auto 30px; line-height: 1.35; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient); color: #ffffff;
  font-size: 16px; font-weight: 600; padding: 13px 24px; border-radius: 999px;
}
.badge:hover { text-decoration: none; filter: brightness(1.08); }
.meta { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }

/* Section headings */
.section { padding: 72px 0; }
.section h2, .band h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.section .sub, .band .sub { text-align: center; color: var(--ink-2); font-size: 19px; margin: 14px auto 0; max-width: 600px; }

/* Tiles */
.band { background: var(--surface); padding: 80px 0; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.tile { background: var(--bg); border-radius: var(--radius); padding: 26px; }
.section .tile { background: var(--surface); }
.tile h3 { font-size: 22px; font-weight: 700; }
.tile .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.tile p { color: var(--ink-2); margin: 8px 0 0; }
.tile ul { margin: 16px 0 0; padding-left: 20px; }
.tile li { margin: 6px 0; }
.tile.pro { background: var(--gradient); color: #ffffff; }
.tile.pro p, .tile.pro .tag { color: rgba(255, 255, 255, 0.85); }
.tile.pro a { color: #ffffff; text-decoration: underline; }
.price { font-size: 15px; font-weight: 600; margin: 6px 0 0; }

.closing { text-align: center; padding: 96px 0 80px; }
.closing h2 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; letter-spacing: -0.035em; }
.closing p { color: var(--ink-2); font-size: 19px; margin: 16px 0 28px; }

/* Text pages */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.page .updated { color: var(--ink-2); margin: 12px 0 36px; }
.page h2 { font-size: 26px; font-weight: 700; margin: 44px 0 10px; }
.page h3 { font-size: 19px; font-weight: 700; margin: 28px 0 6px; }
.page p.lead { font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.page li { margin: 6px 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.card h2 { margin-top: 0; }
.card ol { padding-left: 22px; }
.mail { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.path { font-weight: 600; }
.note { color: var(--ink-2); font-size: 15px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-2); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p, details li { color: var(--ink-2); }
details p { margin: 12px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
footer a { color: var(--ink-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink-2) 40%, transparent); }
footer .credit { flex-basis: 100%; margin: 0; line-height: 1.6; }

@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tile { padding: 32px; }
  .card { padding: 30px 32px; }
  .hero { padding-top: 80px; }
}
@media (min-width: 960px) {
  .tiles.three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .nav ul { gap: 16px; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}
