@font-face {
  font-family: "Inter Local Variable";
  src: local("Inter Variable"), local("InterVariable"), local("Inter");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #edf0f7;
  --muted: #aeb6cd;
  --canvas: #0b0f1c;
  --surface: #141a2b;
  --raised: #1e2538;
  --line: #394361;
  --line-soft: #28304a;
  --blue: #4c77ff;
  --blue-strong: #3668ff;
  --blue-deep: #224099;
  --warm: #d99162;
  --danger: #ff9b91;
  --success: #78d5bd;
  --shadow: 0 22px 70px rgb(0 0 0 / 32%);
  --page: min(100% - 40px, 1120px);
  --measure: 70ch;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% -10%, rgb(54 104 255 / 15%), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Inter Local Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #9eb5ff;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #c9d5ff;
}

button,
input,
textarea {
  font: inherit;
}

button,
input[type="checkbox"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #b9c7ff;
  outline-offset: 3px;
}

[data-role="reading-progress"] {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--raised);
}

[data-role="reading-progress"] > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-strong), #77a2ff);
  box-shadow: 0 0 16px rgb(54 104 255 / 70%);
  transition: width 80ms linear;
}

[data-role="site-header"] {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(154 163 189 / 20%);
  background: rgb(11 15 28 / 88%);
  backdrop-filter: blur(18px);
}

.split-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  gap: 20px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-group:last-child {
  justify-content: flex-end;
}

.nav-link,
.wordmark,
.footer-link,
.breadcrumb a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--raised);
  color: #fff;
}

.wordmark {
  position: relative;
  padding-inline: 18px;
  background: linear-gradient(135deg, var(--blue-deep), #172962);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark::before {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 2px;
  background: #8eabff;
  content: "";
  transform: rotate(45deg);
}

main {
  min-height: 70vh;
}

.page-shell,
.breadcrumb,
.chapter-footer {
  width: var(--page);
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb a {
  justify-content: flex-start;
  padding-inline: 0 10px;
}

.breadcrumb span:last-child {
  padding: 10px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(34 64 153 / 12%), var(--canvas) 82%),
    var(--canvas);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--canvas) 76%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  width: var(--page);
  min-height: 640px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding-block: 64px 96px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #b8c7ff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.083em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p,
li,
label,
summary,
textarea,
input {
  font-size: 16px;
}

p {
  max-width: var(--measure);
  margin-block: 12px 0;
}

.lede {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(237 240 247 / 16%);
  border-radius: 12px;
  box-shadow: var(--shadow), 0 0 70px rgb(54 104 255 / 18%);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgb(11 15 28 / 68%));
  content: "";
  pointer-events: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.round-cta {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.round-cta__orb {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-strong);
  box-shadow: 0 0 0 8px rgb(54 104 255 / 10%), 0 0 36px rgb(54 104 255 / 55%);
  color: #fff;
  font-size: 28px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.round-cta:hover .round-cta__orb {
  transform: scale(1.06);
  box-shadow: 0 0 0 10px rgb(54 104 255 / 12%), 0 0 48px rgb(54 104 255 / 70%);
}

.outline-action,
.solid-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.solid-action {
  border-color: #2750cc;
  background: #2750cc;
  color: #fff;
}

.solid-action:hover {
  color: #fff;
}

.outline-action:hover {
  border-color: #8ea4e8;
  background: var(--raised);
}

.content-section {
  padding-block: clamp(64px, 8vw, 104px);
}

.content-section + .content-section {
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
}

.scenario {
  display: grid;
  max-width: 860px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #405077;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgb(54 104 255 / 18%), transparent 20rem),
    var(--surface);
  box-shadow: var(--shadow);
  gap: 14px;
}

.scenario .eyebrow {
  margin: 0;
}

.scenario p {
  color: #d3d9e8;
  font-size: 1.0625rem;
}

.claim-stack {
  display: grid;
  max-width: 900px;
  gap: 16px;
}

.claim-pair {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
}

.claim-pair [data-part="claim"] {
  padding: 24px;
}

.claim-pair [data-part="source"] {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 10px 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--raised);
  color: var(--muted);
  font-size: 16px;
}

.claim-pair [data-part="source"] a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.note-list,
.chapter-list,
.checklist,
.prompt-grid,
.path-list {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-row {
  position: relative;
  display: grid;
  min-height: 98px;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background 320ms ease, transform 320ms ease, border-color 320ms ease;
}

.chapter-row:hover,
.chapter-row[aria-current="page"] {
  border-color: #41517a;
  background: var(--raised);
  transform: scale(1.008);
}

.chapter-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.chapter-row strong,
.check-copy strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.chapter-row small,
.check-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.equalizer {
  display: flex;
  width: 32px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.equalizer i {
  width: 3px;
  height: 8px;
  border-radius: 4px;
  background: var(--blue);
  animation: equalize 960ms ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) {
  height: 18px;
  animation-delay: -320ms;
}

.equalizer i:nth-child(3) {
  height: 12px;
  animation-delay: -640ms;
}

@keyframes equalize {
  to { transform: scaleY(1.55); }
}

.worksheet {
  display: grid;
  max-width: 900px;
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.privacy-note {
  margin: 0;
  color: var(--muted);
}

.check-item {
  display: grid;
  min-height: 64px;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--raised);
}

.check-item input {
  width: 40px;
  height: 40px;
  margin: 0;
  accent-color: var(--blue-strong);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field > span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #596686;
  border-radius: 8px;
  outline: none;
  background: #0f1423;
  color: var(--ink);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: #9eb5ff;
  box-shadow: 0 0 0 3px rgb(54 104 255 / 22%);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9da8c2;
  opacity: 1;
}

.prompt-card,
.path-step {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}

.prompt-card p,
.path-step p {
  color: var(--muted);
}

.prompt-card blockquote {
  margin: 14px 0 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

.sheet-grid {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sheet-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
}

.sheet-card p {
  color: var(--muted);
}

.rule {
  height: 1px;
  margin-block: 20px;
  border: 0;
  background: var(--line-soft);
}

.chapter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 32px 72px;
  border-top: 1px solid var(--line-soft);
}

.chapter-footer p {
  margin: 0;
  color: var(--muted);
}

[data-role="site-footer"] {
  border-top: 1px solid var(--line-soft);
  background: #080b14;
}

.footer-inner {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding-block: 40px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.footer-link {
  color: var(--ink);
}

.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .split-nav {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding-block: 12px;
  }

  .wordmark {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .nav-group {
    grid-row: 2;
  }

  .nav-group:last-child {
    justify-content: flex-end;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 48px 80px;
  }

  .hero-image {
    grid-row: 1;
    max-height: 420px;
  }

  .hero-image img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  :root {
    --page: min(100% - 32px, 1120px);
  }

  .split-nav {
    width: min(100% - 16px, 1120px);
    grid-template-columns: 1fr;
  }

  .wordmark,
  .nav-group,
  .nav-group:last-child {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
  }

  .nav-group {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 0;
    padding-inline: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 30px;
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .hero-actions,
  .chapter-footer,
  .claim-pair [data-part="source"],
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    display: grid;
  }

  .outline-action,
  .solid-action {
    width: 100%;
  }

  .chapter-row {
    min-height: 104px;
    grid-template-columns: 64px minmax(0, 1fr) 24px;
    gap: 12px;
  }

  .chapter-row img {
    width: 64px;
    height: 64px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .chapter-footer {
    display: grid;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .footer-link {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
