:root {
  --bg: #fff8ef;
  --bg-2: #e9fbff;
  --ink: #1c2430;
  --muted: #4a5563;
  --teal: #00b3a6;
  --teal-deep: #0b8f86;
  --yellow: #ffd23f;
  --coral: #ff6b4a;
  --purple: #7b5cff;
  --white: #ffffff;
  --card: #ffffff;
  --line: #f0d9c6;
  --display: "Baloo 2", "Fredoka", "Nunito", sans-serif;
  --sans: "Nunito", "Poppins", "Segoe UI", sans-serif;
  --max: 68rem;
  --measure: 44rem;
  --radius: 1.25rem;
  --radius-sm: 0.9rem;
  --shadow: 0 10px 28px rgba(28, 36, 48, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 179, 166, 0.16), transparent 42%),
    radial-gradient(circle at 100% 8%, rgba(255, 210, 63, 0.28), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(123, 92, 255, 0.12), transparent 32%),
    var(--bg);
}

a { color: var(--teal-deep); }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 30;
  border: 2px solid var(--purple);
  border-radius: 999px;
}

.belt {
  height: 14px;
  display: flex;
  width: 100%;
}
.belt span { flex: 1; }
.belt .w { background: #fff; }
.belt .b { background: #2f6fed; }
.belt .p { background: #6c3cbc; }
.belt .br { background: #8a5a2b; }
.belt .k { background: #161616; }

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(28, 36, 48, 0.06);
}
.header-inner, .footer-inner, .wrap, .hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}
.wordmark:hover { color: var(--teal-deep); }
.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, #fff 0 20%, #2f6fed 20% 40%, #6c3cbc 40% 60%, #8a5a2b 60% 80%, #161616 80% 100%);
  box-shadow: 0 0 0 3px var(--yellow);
  flex-shrink: 0;
}
nav { display: flex; flex-wrap: wrap; gap: 0.55rem 0.85rem; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
nav a:hover,
nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 2.8rem;
}
.hero-inner { position: relative; z-index: 1; }
.kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a4f4a;
  background: #b7f3ee;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin: 0 0 0.85rem;
}
.hero h1, .page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  letter-spacing: -0.02em;
}
.hero h1 em, .highlight {
  font-style: normal;
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
}
.lede {
  font-size: 1.22rem;
  max-width: 40rem;
  color: #2d3744;
  margin: 0 0 1.3rem;
}
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  background: var(--coral);
  color: #fff;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 6px 0 #d14a30;
}
.btn:hover { background: #ff815f; color: #fff; }
.btn-teal {
  background: var(--teal);
  box-shadow: 0 6px 0 var(--teal-deep);
}
.btn-teal:hover { background: #15c4b7; color: #fff; }

.wrap { padding: 0.5rem 0 4rem; flex: 1; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 2.4rem 0 0.8rem;
  letter-spacing: -0.02em;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.6rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.card h2, .card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0.35rem 0 0.45rem;
  line-height: 1.15;
}
.card p:last-child { margin-bottom: 0; }
.card.teal { background: #dcfffb; border-color: #9df0ea; }
.card.yellow { background: #fff4c4; border-color: #ffe587; }
.card.coral { background: #ffe4dc; border-color: #ffc2b3; }
.card.purple { background: #eee7ff; border-color: #d5c8ff; }
.icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.icon.teal { background: var(--teal); }
.icon.yellow { background: #e6b800; color: #1c2430; }
.icon.coral { background: var(--coral); }
.icon.purple { background: var(--purple); }

.callout {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.2rem 0 1.6rem;
  box-shadow: var(--shadow);
  border-left: 8px solid var(--coral);
  max-width: var(--measure);
}
.callout h2, .callout h3 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}
.callout p:last-child { margin-bottom: 0; }

.download-band {
  background: linear-gradient(135deg, #15c4b7 0%, #7b5cff 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 1.6rem 1.5rem 1.7rem;
  margin: 2.2rem 0;
  box-shadow: 0 16px 32px rgba(123, 92, 255, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 1.5rem;
  align-items: center;
}
.download-band h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.download-band p { margin: 0 0 0.8rem; color: #f4f1ff; }
.download-band .btn { background: var(--yellow); color: #1c2430; box-shadow: 0 6px 0 #e0b000; }
.download-band .btn:hover { background: #ffe36a; color: #1c2430; }
.cover-thumb {
  width: 8.2rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: #fff;
}
@media (max-width: 700px) {
  .download-band { grid-template-columns: 1fr; }
  .cover-thumb { width: 7rem; }
}

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.6rem;
}
.glossary dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}
.glossary dd { margin: 0; color: var(--muted); }
.glossary div {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: auto;
  background: #12343f;
  color: #e8f4f3;
  padding: 1.7rem 0 2rem;
  position: relative;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  padding-top: 0.4rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.footer-links a, .site-footer a {
  color: #b7f3ee;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
}
.footer-links a:hover, .site-footer a:hover { color: var(--yellow); }

.site-footer .affiliate-note {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.home-link {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .hero { padding: 1.8rem 0 2rem; }
}
