/* Bluprint — bluprintgame.com
   Tokens mirror src/styles/tokens.css so the site reads as the game. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/outfit-latin.woff2") format("woff2");
}

:root {
  /* Hub palette */
  --bg: #65daff;
  --surface: #eafbff;
  --accent: #2d449c;
  --ink: #1b2a63;
  --on-accent: #eafbff;

  --ink-80: color-mix(in srgb, var(--ink) 80%, transparent);
  --ink-60: color-mix(in srgb, var(--ink) 60%, transparent);
  --ink-40: color-mix(in srgb, var(--ink) 40%, transparent);
  --ink-25: color-mix(in srgb, var(--ink) 25%, transparent);
  --ink-14: color-mix(in srgb, var(--ink) 14%, transparent);
  --ink-8: color-mix(in srgb, var(--ink) 8%, transparent);
  --surface-80: color-mix(in srgb, var(--surface) 80%, transparent);
  --surface-55: color-mix(in srgb, var(--surface) 55%, transparent);
  --surface-30: color-mix(in srgb, var(--surface) 30%, transparent);

  /* Cubes (Footing) */
  --cube-1: #2d449c;
  --cube-2: #bfe6f4;
  --cube-3: #f4eeb1;
  --cube-4: #f7afce;

  --font: "Outfit", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-fast: 180ms;
  --t-med: 300ms;
  --t-slow: 520ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --measure: 60ch;
  --page-max: 1040px;
  --page-pad: 40px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-med: 0ms;
    --t-slow: 0ms;
  }
  * {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Single source of side inset — bands cannot cancel this. */
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  padding-left: calc(var(--page-pad) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--page-pad) + env(safe-area-inset-right, 0px));
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
svg {
  display: block;
}
img {
  display: block;
  max-width: 100%;
}
.prose a,
.lede a,
.answer a {
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}
.prose a:hover,
.lede a:hover,
.answer a:hover {
  text-decoration-color: var(--ink);
}

/* ------------------------------------------------------------ Layout */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
main {
  flex: 1;
}
.fade-up {
  animation: fade-up var(--t-slow) var(--ease-out) both;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.topbar .mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.topbar .mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.topbar nav {
  display: flex;
  gap: 6px;
}
.topbar nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease-out);
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  background: var(--surface-55);
}

/* ------------------------------------------------------------ Buttons / pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 26px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: var(--on-accent);
  transition:
    transform var(--t-fast) var(--ease-out),
    opacity var(--t-fast);
}
.btn:active {
  transform: scale(0.97);
}
.btn.secondary {
  background: var(--surface-55);
  color: var(--ink);
}
.btn .icon {
  width: 20px;
  height: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-full);
  background: var(--surface-55);
  font-size: 15px;
  font-weight: 500;
}
.pill .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.icon svg {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------ Hero */
.hero {
  padding: 56px 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .wordmark {
  width: min(100%, 420px);
  height: auto;
}
.hero .eyebrow {
  margin-top: 18px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.72;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede {
  margin-top: 16px;
  font-size: clamp(17px, 2.2vw, 20px);
  opacity: 0.78;
  max-width: 42ch;
  text-wrap: pretty;
}
.hero .cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero .phone {
  margin: 56px auto 0;
  width: min(100%, 320px);
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent),
    0 28px 60px -24px color-mix(in srgb, var(--ink) 45%, transparent);
}
.hero .preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
  background: var(--ink);
}
.hero .figure {
  margin: 64px auto 0;
  width: min(100%, 560px);
}
.hero .figure img {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------ Sections */
.section {
  padding: 64px 0;
}
.section h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.section .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
  margin-bottom: 10px;
}
.section .sub {
  margin-top: 12px;
  opacity: 0.75;
  max-width: 54ch;
  text-wrap: pretty;
}
.section h2 + .promises {
  margin-top: 28px;
}

/* Steps */
.steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step {
  position: relative;
  padding: 26px 24px 26px;
  border-radius: var(--r-xl);
  background: var(--surface-80);
}
.step .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  font-weight: 500;
}
.step h3 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 16px;
  text-wrap: pretty;
}
.step .art {
  height: 120px;
  margin: 8px 0 14px;
  display: grid;
  place-items: center;
}
.step .art svg {
  width: 136px;
  height: 136px;
}

/* Stars */
.stars-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.star-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-55);
  font-size: 16px;
}
.star-card .stars {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
}
.star-card .stars svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.star-card .stars .off {
  opacity: 0.22;
}
.star-card b {
  font-weight: 500;
  display: block;
}
.star-card span {
  opacity: 0.7;
  font-size: 15px;
}

/* Chapters */
.chapters {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.chapter {
  --c-bg: var(--bg);
  --c-ink: var(--ink);
  --c-accent: var(--accent);
  --icon-tile: color-mix(in srgb, var(--c-ink) 24%, var(--c-bg));
  position: relative;
  min-height: 200px;
  padding: 22px 24px 22px;
  border-radius: var(--r-xl);
  background: var(--c-bg);
  color: var(--c-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chapter .copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 68%;
}
.chapter .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}
.chapter .name {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.chapter .quote {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.35;
  opacity: 0.78;
  text-wrap: pretty;
}
.chapter .credit {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.62;
  text-wrap: pretty;
}
.chapter .credit em {
  font-style: italic;
}
.chapter .swatches {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 6px;
}
.chapter .swatches i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: block;
}
.chapter .chapter-icon {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 148px;
  height: 148px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--c-ink) 50%, var(--c-bg));
  pointer-events: none;
}
.chapter .chapter-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chapter.footing { --c-bg: #3ec8f4; --c-ink: #1b2a63; --c-accent: #2d449c; }
.chapter.course { --c-bg: #9bc7bc; --c-ink: #434e05; --c-accent: #434e05; }
.chapter.keystone { --c-bg: #f2e7da; --c-ink: #3d1135; --c-accent: #3d1135; }
.chapter.span { --c-bg: #c4bde8; --c-ink: #562d60; --c-accent: #562d60; }
.chapter.spire { --c-bg: #1b2a64; --c-ink: #e9fff2; --c-accent: #3ec8f4; }
.chapter.castle { --c-bg: #411b2e; --c-ink: #f2e7da; --c-accent: #c4bde8; }

/* Promises strip */
.promises {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.promises .pill {
  height: 44px;
  font-size: 16px;
}

/* How-it-plays band — stays inside body inset; pad content from the cream edges. */
.how-band {
  background: #eafbff;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding-left: 24px;
  padding-right: 24px;
}
.how-band .step {
  background: color-mix(in srgb, #65daff 28%, #ffffff);
  border-radius: 0;
}
.how-band .star-card {
  background: color-mix(in srgb, #65daff 22%, #ffffff);
  border-radius: 0;
}

/* ------------------------------------------------------------ Article pages */
.article {
  padding: 24px 0 72px;
}
.article header {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--ink-14);
  margin-bottom: 36px;
}
.article h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.article .meta {
  margin-top: 12px;
  opacity: 0.65;
  font-size: 15px;
}
.article .lede {
  margin-top: 18px;
  font-size: 20px;
  opacity: 0.85;
  max-width: var(--measure);
  text-wrap: pretty;
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  opacity: 0.86;
  text-wrap: pretty;
}
.prose p + p,
.prose ul,
.prose ol,
.prose ul + p,
.prose ol + p {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 6px;
}
.prose .callout {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--surface-80);
  opacity: 1;
}
.prose .callout p {
  opacity: 0.92;
}
.prose .callout p + p {
  margin-top: 8px;
}
.prose .summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.prose .summary div {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-55);
  font-size: 16px;
}
.prose .summary b {
  font-weight: 500;
  display: block;
}
.prose .summary span {
  opacity: 0.7;
  font-size: 15px;
}
.prose kbd {
  font-family: inherit;
  font-size: 0.9em;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-80);
  border: 1px solid var(--ink-14);
}

/* Flat Q&A (support) */
.qa {
  max-width: var(--measure);
}
.qa-item {
  padding: 22px 0;
  border-top: 1px solid var(--ink-14);
}
.qa-item:first-child {
  border-top: none;
  padding-top: 0;
}
.qa-item:last-of-type {
  border-bottom: 1px solid var(--ink-14);
}
.qa-item h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.qa-item p {
  margin-top: 8px;
  opacity: 0.86;
  text-wrap: pretty;
}

/* FAQ (legacy accordion — unused on support) */
.faq {
  max-width: var(--measure);
}
.faq details {
  border-top: 1px solid var(--ink-14);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--ink-14);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-weight: 500;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform var(--t-fast) var(--ease-out);
  margin-right: 6px;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq .answer {
  padding: 0 2px 20px;
  opacity: 0.86;
  text-wrap: pretty;
}
.faq .answer p + p {
  margin-top: 10px;
}

.contact {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--surface-80);
  max-width: var(--measure);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.contact h2 {
  font-size: 22px;
  font-weight: 500;
}
.contact p {
  margin-top: 6px;
  opacity: 0.75;
}

/* ------------------------------------------------------------ Footer */
footer {
  padding: 40px 0 44px;
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}
footer .brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
footer nav {
  display: flex;
  gap: 22px;
  opacity: 0.8;
}
footer nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 860px) {
  .steps,
  .chapters {
    grid-template-columns: repeat(2, 1fr);
  }
  .stars-row {
    grid-template-columns: 1fr;
  }
  .topbar nav a {
    padding: 0 10px;
    height: 36px;
    font-size: 14px;
  }
}
@media (max-width: 560px) {
  html {
    font-size: 16px;
  }
  :root {
    --page-pad: 40px;
  }
  .how-band {
    padding-left: 20px;
    padding-right: 20px;
  }
  .topbar {
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .topbar nav {
    justify-content: center;
  }
  .topbar nav a {
    padding: 0 12px;
    height: 36px;
    font-size: 14px;
  }
  .hero {
    padding-top: 28px;
  }
  .hero .phone {
    margin-top: 40px;
    width: min(100%, 280px);
    border-radius: 30px;
  }
  .hero .figure {
    margin-top: 44px;
  }
  .section {
    padding: 48px 0;
  }
  .steps,
  .chapters {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 22px 20px;
  }
  .chapter .copy {
    max-width: 72%;
  }
  .chapter .chapter-icon {
    width: 120px;
    height: 120px;
  }
  .step .art {
    height: 100px;
  }
  .prose .summary {
    grid-template-columns: 1fr;
  }
}
