:root {
  --ink: #19151e;
  --muted: #716a79;
  --line: #e6dfea;
  --page: #f7f4f8;
  --surface: #ffffff;
  --soft: #f0e6f5;
  --accent: #754293;
  --accent-strong: #573069;
  --sidebar: #211b26;
  --mint: #8ac9ad;
  --mint-strong: #2c8661;
  --coral: #f28778;
  --gold: #e4b85f;
  --shadow: 0 24px 64px rgba(55, 38, 67, 0.12), 0 6px 20px rgba(55, 38, 67, 0.07);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(230, 223, 234, 0.8);
  background: rgba(247, 244, 248, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(117, 66, 147, 0.2);
}

nav {
  display: flex;
  gap: 26px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.language-toggle span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft);
  font-weight: 800;
}

.language-toggle:hover,
.language-toggle:focus-visible,
.language-toggle[aria-pressed="true"] {
  border-color: rgba(117, 66, 147, 0.45);
  background: white;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  background: var(--accent);
  color: white;
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 11px 24px rgba(117, 66, 147, 0.2);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(87, 48, 105, 0.25);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  justify-self: end;
  padding-inline: 18px;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
  background:
    radial-gradient(circle at 4% 4%, rgba(216, 180, 232, 0.34), transparent 30rem),
    radial-gradient(circle at 96% 92%, rgba(138, 201, 173, 0.24), transparent 27rem),
    var(--page);
}

.hero::after {
  position: absolute;
  top: 7%;
  right: -7rem;
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(117, 66, 147, 0.11);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 66px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero .eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint-strong);
  box-shadow: 0 0 0 5px rgba(44, 134, 97, 0.12);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 630px;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 6vw, 6.1rem);
  font-weight: 750;
  letter-spacing: -0.068em;
  line-height: 0.92;
}

h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-lede {
  max-width: 590px;
  margin: 0;
  color: #514a57;
  font-size: 1.16rem;
  line-height: 1.62;
}

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

.text-link {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 5px;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 160ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(3px);
}

.hero-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(117, 66, 147, 0.25);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 45px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #fbf9fc;
}

.window-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dacfdc;
}

.window-bar > span:first-child {
  background: #e9a29a;
}

.window-bar > span:nth-child(2) {
  background: #e4c878;
}

.window-bar > span:nth-child(3) {
  background: #83c2a6;
}

.window-bar p {
  margin: 0 auto;
  padding-right: 41px;
  color: #948d98;
  font-size: 0.72rem;
}

.journey-preview {
  padding: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(216, 180, 232, 0.26), transparent 15rem),
    #fcfbfd;
}

.preview-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.preview-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.preview-topline h2 {
  max-width: 320px;
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
}

.check-in-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #cde7db;
  border-radius: 13px;
  background: #eef8f3;
  color: var(--mint-strong);
}

.check-in-badge > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-strong);
  color: white;
  font-weight: 800;
}

.check-in-badge strong,
.check-in-badge small {
  display: block;
  white-space: nowrap;
}

.check-in-badge strong { font-size: 0.76rem; }
.check-in-badge small { color: #668374; font-size: 0.61rem; }

.level-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 23px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.level-strip span {
  padding: 7px 4px;
  border-radius: 9px;
  color: #8b8490;
  font-size: 0.69rem;
  font-weight: 800;
  text-align: center;
}

.level-strip .active {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 15px rgba(117, 66, 147, 0.22);
}

.journey-progress { margin: 18px 0 20px; }
.journey-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 0.7rem; }
.journey-progress strong { color: var(--ink); }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e8e2eb; }
.progress-track i { display: block; width: 28%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint-strong)); }

.chapter-route {
  display: grid;
  gap: 10px;
}

.chapter-stop {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.chapter-stop.current {
  border-color: rgba(117, 66, 147, 0.42);
  box-shadow: 0 11px 26px rgba(55, 38, 67, 0.09);
}

.stop-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.complete .stop-mark { background: #e4f3ec; color: var(--mint-strong); }
.locked { opacity: 0.56; }
.locked .stop-mark { background: #eeebef; color: #77717b; }
.chapter-stop small { display: block; margin-bottom: 2px; color: var(--accent); font-size: 0.57rem; font-weight: 850; letter-spacing: 0.08em; }
.chapter-stop strong { display: block; font-size: 0.86rem; }
.chapter-stop p { margin: 2px 0 0; color: var(--muted); font-size: 0.65rem; }
.chapter-stop a { padding: 8px 10px; border-radius: 9px; background: var(--accent); color: white; font-size: 0.68rem; font-weight: 750; text-decoration: none; }

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid div {
  display: grid;
  gap: 4px;
  padding: 30px 36px;
  border-right: 1px solid var(--line);
}

.proof-grid div:first-child {
  padding-left: 0;
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong {
  color: var(--accent);
  font-size: 1.08rem;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 118px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 740;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.product-copy > p,
.beta-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.learning-system {
  background: var(--surface);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.learn-card {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbf9fc;
}

.learn-number {
  color: #a29aa7;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.learn-card h3 {
  margin: 30px 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.learn-card > p {
  margin: 0;
  color: var(--muted);
}

.level-ribbon,
.calendar-icon,
.quest-line {
  margin-top: 42px;
}

.level-ribbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.level-ribbon b {
  padding: 9px 2px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.67rem;
  text-align: center;
}

.level-ribbon b:nth-child(2) { background: var(--accent); color: white; }

.calendar-icon {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 7px;
}

.calendar-icon span,
.calendar-icon i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e4f3ec;
}

.calendar-icon span { grid-row: span 2; height: 63px; background: var(--mint-strong); color: white; font-style: normal; font-weight: 800; }
.calendar-icon i:nth-of-type(n+5) { background: #eeebef; }

.quest-line {
  display: flex;
  align-items: center;
}

.quest-line span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #d9d1dd;
  border-radius: 50%;
  color: #8c8490;
  font-size: 0.68rem;
  font-weight: 850;
}

.quest-line i { width: 42px; height: 2px; background: #ddd5e1; }
.quest-line .done { border-color: var(--mint-strong); background: var(--mint-strong); color: white; }
.quest-line .now { border-color: var(--accent); background: var(--soft); color: var(--accent); }

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 11px 30px rgba(55, 38, 67, 0.05);
}

.loop-card::after {
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--card-tint);
  content: "";
}

.loop-learn { --card-tint: #eee0f5; }
.loop-practice { --card-tint: #e2f2eb; }
.loop-use { --card-tint: #fee8e4; }
.loop-remember { --card-tint: #f8edce; }

.step-number {
  display: block;
  margin-bottom: 38px;
  color: #a39ca6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-tint);
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.loop-card h3,
.feature-stack h3,
.principle-cards h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

.loop-card p,
.feature-stack p,
.principle-cards p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product {
  background: var(--sidebar);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 94px;
}

.product-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.product .eyebrow {
  color: #c598dc;
}

.product-copy > p {
  margin-bottom: 30px;
  color: #cfc7d3;
}

.product .text-link {
  color: white;
}

.feature-stack {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-stack article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-index {
  color: #b58cca;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-style: italic;
}

.feature-stack h3 {
  font-size: 1.45rem;
}

.feature-stack p {
  max-width: 540px;
  color: #bfb6c3;
  font-size: 1rem;
}

.principles {
  background: var(--surface);
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  gap: 94px;
}

.principle-cards {
  display: grid;
  gap: 14px;
}

.principle-cards article {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--principle-accent, var(--accent));
  border-radius: 0 18px 18px 0;
  background: #fbf9fc;
}

.principle-cards article:nth-child(2) {
  --principle-accent: var(--mint-strong);
}

.principle-cards article:nth-child(3) {
  --principle-accent: var(--coral);
}

.beta {
  padding-top: 78px;
}

.beta-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  padding: 64px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 135, 120, 0.22), transparent 19rem),
    radial-gradient(circle at 8% 104%, rgba(138, 201, 173, 0.18), transparent 20rem),
    #34273b;
  color: white;
  box-shadow: var(--shadow);
}

.beta h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.eyebrow-light {
  color: #d5addf;
}

.beta-copy {
  align-self: end;
}

.beta-copy > p {
  margin: 0 0 26px;
  color: #d6cfd9;
  font-size: 1rem;
}

.button-light {
  border-color: white;
  background: white;
  color: var(--sidebar);
  box-shadow: none;
}

.button-light:hover,
.button-light:focus-visible {
  border-color: #eee5f1;
  background: #eee5f1;
  color: var(--sidebar);
}

footer {
  padding: 18px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-grid > div:first-child > p,
.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.copyright {
  grid-column: 2;
  text-align: right;
}

@media (max-width: 980px) {
  .hero-grid,
  .product-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .product-grid,
  .principles-grid {
    gap: 58px;
  }

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

  .product-window {
    max-width: 760px;
    transform: none;
  }

  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .learn-card {
    min-height: 0;
  }

  .product-copy {
    position: static;
    max-width: 700px;
  }

  .principles-heading {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1160px);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  nav {
    display: none;
  }

  .brand {
    font-size: 0.82rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .button-small {
    min-height: 40px;
    padding-inline: 14px;
  }

  .language-toggle strong {
    display: none;
  }

  .language-toggle {
    padding-inline: 8px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero-grid {
    gap: 48px;
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 4.8rem);
  }

  .hero-lede {
    font-size: 1.03rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-window {
    border-radius: 19px;
  }

  .journey-preview { padding: 20px; }
  .preview-topline { align-items: stretch; flex-direction: column; }
  .check-in-badge { align-self: flex-start; }
  .chapter-stop { grid-template-columns: 42px 1fr; }
  .chapter-stop a { grid-column: 2; justify-self: start; }

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

  .proof-grid div,
  .proof-grid div:first-child {
    grid-template-columns: 90px 1fr;
    align-items: center;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section h2 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

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

  .loop-card {
    min-height: 270px;
  }

  .product-grid,
  .principles-grid {
    gap: 46px;
  }

  .feature-stack article {
    grid-template-columns: 52px 1fr;
  }

  .beta {
    padding-top: 46px;
  }

  .beta-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 28px;
    border-radius: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .copyright {
    grid-column: 1;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
