/* Poppins is served from this site: no request leaves for a font host. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }

:root {
  --bg: #0b0b0f;
  --card: #16161d;
  --line: #2a2a35;
  --text: #f4f4f6;
  --muted: #a1a1aa;
  --coral: #ff6b5e;
  --violet: #8b5cf6;
  --grad: linear-gradient(90deg, var(--coral), var(--violet));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

a { color: inherit; }

.ad-label {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.brand, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
}

h1 {
  margin: 28px 0 16px;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

p { margin: 0 0 14px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { color: var(--muted); }

.art {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 24px auto 0;
}

section { margin: 40px 0; }

.card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.card > :last-child { margin-bottom: 0; }

ul { margin: 0 0 14px; padding-left: 20px; }
li + li { margin-top: 8px; }

/* Four terms */
.terms {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.term {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 12px;
  background: var(--card);
}
.term:nth-child(even) { border-left-color: var(--violet); }
.term dt { font-weight: 700; }
.term dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Rules block */
.rules { font-size: 15px; }
.rules-head { margin: 16px 0 6px; font-weight: 600; }
.checked {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Seven modules */
.modules {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: module;
}
.modules li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--line);
  counter-increment: module;
}
.modules li::before {
  content: counter(module);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}
.modules strong { display: block; line-height: 1.35; }
.modules span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* What the course is not */
.nots { padding: 0; list-style: none; }
.nots li {
  position: relative;
  padding-left: 30px;
}
.nots li + li { margin-top: 14px; }
.nots li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 700;
}

/* Offer */
.offer { border-color: var(--violet); scroll-margin-top: 16px; }
.price { margin: 16px 0; }
.price strong { font-size: 40px; font-weight: 800; line-height: 1; }
.price span { display: block; color: var(--muted); font-size: 14px; }

.btn {
  display: block;
  padding: 16px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.small { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 14px 28px 14px 0;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  color: var(--violet);
  font-size: 22px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15px; }

.final { text-align: center; }
.final p { color: var(--muted); }

/* Legal pages */
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal h1 { font-size: clamp(26px, 6vw, 34px); }
.legal h2 { margin-top: 28px; font-size: 19px; }
.legal code { padding: 1px 5px; border-radius: 5px; background: var(--card); font-size: .9em; }
.back { margin: 24px 0 0; font-size: 14px; }
.back a { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.legal-links a { color: var(--text); }

footer {
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 640px) {
  .terms { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
