:root {
  --paper: #f5efe3;
  --paper-deep: #e9e0d2;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #18232d;
  --ink-soft: #3b4852;
  --muted: #68747d;
  --line: #dcd7ce;
  --line-strong: #c9c3b9;
  --action: #c73545;
  --action-dark: #9d2230;
  --correct: #268c58;
  --gold: #d5961b;
  --a0: #388cf2;
  --a0-soft: #e6f0fe;
  --a1: #3f9f8b;
  --a1-soft: #e2f3ef;
  --a2: #4f9d4b;
  --a2-soft: #e6f2e4;
  --b1: #c67a25;
  --b1-soft: #f8ead8;
  --b2: #c9435b;
  --b2-soft: #f9e5e9;
  --navy: #17232e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-sm: 0 8px 30px rgb(24 35 45 / 7%);
  --shadow-lg: 0 28px 80px rgb(24 35 45 / 15%);
  --shell: 1180px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 2%, rgb(56 140 242 / 6%), transparent 24rem),
    radial-gradient(circle at 96% 8%, rgb(201 67 91 / 6%), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--ink);
  background: #f4cf86;
}

:focus-visible {
  outline: 3px solid var(--a0);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

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

.section-kicker,
.eyebrow {
  margin: 0 0 16px;
  color: var(--action-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-kicker--light {
  color: #f1b3bb;
}

.section-heading h2,
.plain-intro h2,
.mastery h2,
.stats-copy h2,
.local-section h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.section-heading > p:last-child,
.stats-copy > p,
.local-shell > div > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgb(245 239 227 / 76%);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgb(201 195 185 / 70%);
  background: rgb(245 239 227 / 92%);
  box-shadow: 0 6px 24px rgb(24 35 45 / 5%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 76px;
  margin-inline: auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  text-decoration: none;
}

.brand-wordmark {
  width: auto;
  height: 34px;
}

.site-menu,
.nav-links {
  display: flex;
  align-items: center;
}

.site-menu {
  flex: 1;
  justify-content: flex-end;
  gap: 28px;
}

.nav-links {
  gap: 28px;
}

.nav-links a,
.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--action-dark);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
}

.menu-button > span:not(.visually-hidden) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] > span:nth-last-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button--large {
  min-height: 58px;
  padding: 16px 24px;
  font-size: 0.95rem;
}

.button--compact {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.8rem;
}

.button--primary {
  color: white;
  background: var(--action);
  box-shadow: 0 8px 22px rgb(199 53 69 / 20%);
}

.button--primary[href]:hover {
  background: var(--action-dark);
  box-shadow: 0 11px 28px rgb(157 34 48 / 25%);
  transform: translateY(-2px);
}

.button--light {
  color: var(--action-dark);
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(90 14 25 / 18%);
}

.button--light[href]:hover {
  color: var(--ink);
  background: white;
  transform: translateY(-2px);
}

.button[aria-disabled="true"] {
  cursor: default;
  box-shadow: none;
  opacity: 0.78;
}

.button--primary[aria-disabled="true"] {
  color: #fff7f8;
  background: #ad5b65;
}

.button--light[aria-disabled="true"] {
  color: #7e323c;
  background: #f7e7e9;
}

.store-icon,
.store-icon svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.store-icon svg {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  min-height: 760px;
  align-items: center;
  gap: clamp(36px, 5vw, 86px);
  padding-block: 64px 84px;
}

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

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

.french-flag {
  width: 24px;
  height: 16px;
  flex: none;
  overflow: hidden;
  background: linear-gradient(90deg, #0055a4 0 33.333%, white 33.333% 66.666%, #ef4135 66.666%);
  border: 1px solid rgb(24 35 45 / 12%);
  border-radius: 2px;
  box-shadow: 0 3px 8px rgb(24 35 45 / 12%);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.7vw, 7.25rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.84;
}

.hero-lede {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.text-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.text-link:hover span {
  transform: translateY(3px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  list-style: none;
}

.hero-facts li:not(:first-child)::before {
  margin-right: 20px;
  color: var(--line-strong);
  content: "·";
}

/* Product composition */

.product-composition {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 650px;
  justify-self: end;
  isolation: isolate;
}

.composition-orbit {
  position: absolute;
  z-index: -3;
  border: 1px solid rgb(104 116 125 / 15%);
  border-radius: 50%;
}

.composition-orbit--one {
  top: 8%;
  right: 0;
  width: 520px;
  height: 520px;
}

.composition-orbit--two {
  top: 17%;
  right: 9%;
  width: 410px;
  height: 410px;
  border-style: dashed;
}

.product-composition::before {
  position: absolute;
  top: 17%;
  left: 16%;
  z-index: -2;
  width: 72%;
  height: 58%;
  content: "";
  background: radial-gradient(circle, rgb(63 159 139 / 18%), rgb(56 140 242 / 10%) 44%, transparent 70%);
  filter: blur(12px);
}

.phone {
  position: absolute;
  top: 3%;
  left: 47%;
  width: 296px;
  transform: translateX(-50%) rotate(1.2deg);
}

.phone-frame {
  padding: 9px;
  background: #202a32;
  border: 1px solid #4c565d;
  border-radius: 47px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #11181e;
}

.phone-sensor {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 3;
  width: 82px;
  height: 23px;
  background: #12191e;
  border-radius: 30px;
  transform: translateX(-50%);
}

.phone-screen {
  min-height: 590px;
  padding: 10px 16px 23px;
  overflow: hidden;
  background: #f8f8f6;
  border-radius: 39px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding-inline: 5px;
  color: #202932;
  font-size: 8px;
  font-weight: 700;
}

.status-icons {
  letter-spacing: 2px;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 12px;
}

.app-toolbar strong {
  font-size: 23px;
  letter-spacing: -0.04em;
}

.app-toolbar span {
  color: #66717a;
  font-size: 11px;
  letter-spacing: 1px;
}

.standing-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 14px;
  color: white;
  background: linear-gradient(135deg, #65b45f, #438f45);
  border-radius: 19px;
  box-shadow: 0 10px 25px rgb(79 157 75 / 23%);
}

.progress-ring {
  display: grid;
  width: 66px;
  height: 66px;
  flex: none;
  place-items: center;
  background: conic-gradient(white 0 60%, rgb(255 255 255 / 25%) 60% 100%);
  border-radius: 50%;
}

.progress-ring::before {
  position: absolute;
  width: 52px;
  height: 52px;
  content: "";
  background: #529f4f;
  border-radius: 50%;
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
}

.standing-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.standing-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.standing-card span,
.standing-card small {
  margin-top: 3px;
  color: rgb(255 255 255 / 88%);
  font-size: 8.5px;
  line-height: 1.4;
}

.standing-card small {
  color: rgb(255 255 255 / 72%);
}

.layout-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  margin-top: 13px;
  color: #65717a;
  background: #e8e9e8;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
}

.layout-picker span {
  padding: 5px 2px;
  border-radius: 6px;
}

.layout-picker .is-selected {
  color: #263039;
  background: white;
  box-shadow: 0 1px 4px rgb(24 35 45 / 12%);
}

.app-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 1px 9px;
  color: #303a42;
  font-size: 10px;
}

.app-section-title b {
  margin-right: 5px;
  color: white;
  background: var(--a2);
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 7px;
}

.app-section-title small {
  color: #7b858c;
  font-size: 8px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 3px 1fr 22px;
  min-height: 69px;
  align-items: stretch;
  gap: 10px;
  padding: 11px 10px 11px 8px;
  margin-bottom: 9px;
  background: white;
  border: 1px solid #e1e3df;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgb(24 35 45 / 5%);
}

.lesson-card > i {
  width: 3px;
  height: 100%;
  background: var(--a2);
  border-radius: 99px;
}

.lesson-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.lesson-card small {
  color: #7a858c;
  font-size: 7px;
}

.lesson-card strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-state {
  display: grid;
  width: 22px;
  height: 22px;
  align-self: center;
  place-items: center;
  color: var(--correct);
  background: #e3f3ea;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.lesson-card.is-active {
  border-color: rgb(79 157 75 / 36%);
  box-shadow: 0 6px 17px rgb(79 157 75 / 10%);
}

.lesson-card.is-active .lesson-state {
  color: white;
  background: var(--a2);
}

.lesson-card.is-locked {
  opacity: 0.48;
}

.lesson-card.is-locked .lesson-state {
  color: #717c83;
  background: #e7e9e8;
}

.level-rail {
  position: absolute;
  top: 15%;
  left: 0;
  z-index: 3;
  display: flex;
  padding: 11px 9px;
  margin: 0;
  flex-direction: column;
  gap: 10px;
  background: rgb(255 253 249 / 85%);
  border: 1px solid rgb(201 195 185 / 65%);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  list-style: none;
  backdrop-filter: blur(12px);
}

.level-rail::before {
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 25px;
  z-index: -1;
  width: 1px;
  content: "";
  background: var(--line);
}

.level-rail li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.level-rail span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #667079;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.level-rail .is-complete span {
  color: white;
  background: var(--level-color);
  border-color: var(--level-color);
}

.level-rail .is-current span {
  color: white;
  background: var(--a2);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--a2), 0 5px 14px rgb(79 157 75 / 30%);
}

.level-a0 { --level-color: var(--a0); --level-soft: var(--a0-soft); }
.level-a1 { --level-color: var(--a1); --level-soft: var(--a1-soft); }
.level-a2 { --level-color: var(--a2); --level-soft: var(--a2-soft); }
.level-b1 { --level-color: var(--b1); --level-soft: var(--b1-soft); }
.level-b2 { --level-color: var(--b2); --level-soft: var(--b2-soft); }

.floating-card {
  position: absolute;
  right: 0;
  bottom: 9%;
  z-index: 4;
  width: 230px;
  padding: 14px;
  background: rgb(255 253 249 / 92%);
  border: 1px solid rgb(201 195 185 / 80%);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgb(24 35 45 / 16%);
  backdrop-filter: blur(16px);
  transform: rotate(-1.5deg);
}

.floating-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
}

.floating-card__head b {
  color: var(--a2);
}

.mini-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 9px;
  padding-top: 10px;
}

.mini-check > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #707a82;
  background: #eceeec;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.mini-check.is-done > span {
  color: white;
  background: var(--correct);
}

.mini-check p {
  display: flex;
  margin: 0;
  flex-direction: column;
  line-height: 1.25;
}

.mini-check b {
  font-size: 8px;
}

.mini-check small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.example-note {
  position: absolute;
  right: 22px;
  bottom: 1%;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Intro */

.plain-intro {
  padding-block: 130px 150px;
  text-align: center;
}

.plain-intro h2 {
  max-width: 980px;
  margin-inline: auto;
}

.plain-intro > p:last-child {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

/* Method */

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(45px, 8vw, 110px);
  padding-block: 70px 160px;
}

.method-heading {
  position: sticky;
  top: 120px;
}

.method-heading > p:last-child {
  max-width: 420px;
}

.method-list {
  display: flex;
  padding: 0;
  margin: 0;
  flex-direction: column;
  gap: 26px;
  counter-reset: method;
  list-style: none;
}

.method-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 18px;
  padding: clamp(22px, 3vw, 34px);
  background: rgb(255 253 249 / 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.method-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--action-dark);
  background: #f7e4e7;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.method-copy h3 {
  margin: 2px 0 6px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.method-demo {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  padding: 20px;
  margin: 20px 0 0 auto;
  color: #26313a;
  background: #f8f8f6;
  border: 1px solid #dedfdc;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgb(24 35 45 / 6%);
}

.demo-label,
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-label span,
.quiz-top span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-label b {
  padding: 3px 8px;
  color: white;
  background: var(--a0);
  border-radius: 99px;
  font-size: 0.65rem;
}

.rule-demo h4 {
  margin: 13px 0 6px;
  font-family: var(--display);
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

/* The lesson title's second tier ("Être" over "Present tense"). The two halves used
   to be one string joined by an em dash; the app draws the hierarchy instead, and
   this mockup mirrors it: sans, smaller, in the level's tint. */
.rule-demo h4 span {
  display: block;
  margin-top: 3px;
  color: var(--a0);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.rule-demo > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.conjugation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #dcdfdc;
  font-size: 0.78rem;
}

.conjugation-grid b {
  color: #1f70cf;
}

.quiz-top small {
  color: var(--muted);
  font-size: 0.68rem;
}

.quiz-progress {
  height: 5px;
  margin: 10px 0 22px;
  overflow: hidden;
  background: #e4e6e3;
  border-radius: 99px;
}

.quiz-progress i {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--a1);
  border-radius: inherit;
}

.type-demo .quiz-progress i {
  width: 80%;
  background: var(--a2);
}

.quiz-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.quiz-demo h4,
.type-demo h4 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.quiz-demo h4 em,
.type-demo h4 em {
  color: var(--action);
  font-style: normal;
}

.type-demo h4 small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.translation {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 0.68rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.answer-grid span {
  padding: 8px;
  background: white;
  border: 1px solid #dbdedb;
  border-radius: 9px;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
}

.answer-grid .is-answer {
  color: #236c47;
  background: #e7f5ed;
  border-color: #78b794;
}

.typed-answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 13px;
  margin-top: 17px;
  background: white;
  border: 1.5px solid var(--a2);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.typed-answer span {
  width: 1px;
  height: 18px;
  background: var(--a2);
  animation: caret 1.1s steps(2, jump-none) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.character-strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.character-strip span {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  background: #eceeec;
  border-radius: 7px;
  font-size: 0.7rem;
}

/* Mastery */

.mastery {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--navy);
}

.mastery::before {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 680px;
  height: 680px;
  content: "";
  background: radial-gradient(circle, rgb(79 157 75 / 22%), transparent 65%);
}

.mastery::after {
  position: absolute;
  bottom: -250px;
  left: -220px;
  width: 600px;
  height: 600px;
  content: "";
  background: radial-gradient(circle, rgb(56 140 242 / 13%), transparent 65%);
}

.mastery-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(500px, 1.25fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  padding-block: 150px;
}

.mastery-copy h2 {
  max-width: 480px;
}

.mastery-copy > p:not(.section-kicker) {
  max-width: 500px;
  margin: 26px 0 0;
  color: #c3cbd1;
  font-size: 1.08rem;
}

.mastery-copy .mastery-aside {
  padding-left: 18px;
  border-left: 2px solid #6ab267;
  color: #929fa8;
  font-size: 0.87rem;
}

.mastery-panel {
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: #fffefb;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgb(0 0 0 / 30%);
}

.mastery-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.mastery-panel__top > div > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mastery-panel__top h3 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.mastered-seal {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 7px 11px;
  color: #624409;
  background: #f7e6b8;
  border: 1px solid #e3c268;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
}

.mastered-seal i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: white;
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.56rem;
  font-style: normal;
}

.mastery-rows {
  display: flex;
  flex-direction: column;
}

.mastery-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e1d9;
}

.check-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--correct);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.mastery-row > div {
  display: flex;
  flex-direction: column;
}

.mastery-row strong {
  font-size: 0.88rem;
}

.mastery-row small {
  color: var(--muted);
  font-size: 0.7rem;
}

.mastery-row > b {
  color: var(--correct);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.mastery-row > b span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.panel-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

/* Levels */

.levels {
  padding-block: 160px 120px;
}

.levels-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.levels-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.levels-heading > p:last-child {
  margin: 0 0 4px;
}

.level-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 85px 0 0;
  list-style: none;
}

.level-path::before {
  position: absolute;
  top: 27px;
  right: 9%;
  left: 9%;
  z-index: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--a0), var(--a1), var(--a2), var(--b1), var(--b2));
}

.level-card {
  position: relative;
  z-index: 1;
}

.level-node {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: center;
}

.level-node span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: white;
  background: var(--level-color);
  border: 6px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--level-color), 0 9px 20px color-mix(in srgb, var(--level-color) 24%, transparent);
  font-size: 0.74rem;
  font-weight: 800;
}

.level-card__copy {
  min-height: 314px;
  padding: 27px 19px 20px;
  margin-top: 24px;
  background: color-mix(in srgb, var(--level-soft) 70%, white);
  border: 1px solid color-mix(in srgb, var(--level-color) 22%, var(--line));
  border-radius: 20px;
}

.level-card__copy small {
  color: color-mix(in srgb, var(--level-color) 82%, black);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.level-card__copy h3 {
  margin: 8px 0 11px;
  font-family: var(--display);
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.level-card__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.55;
}

.example-lesson {
  display: block;
  padding-top: 16px;
  margin-top: 18px;
  color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--level-color) 18%, var(--line));
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
}

.scope-note {
  max-width: 920px;
  padding: 18px 22px;
  margin: 34px auto 0;
  color: var(--ink-soft);
  background: rgb(255 253 249 / 65%);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.82rem;
  text-align: center;
}

.scope-note span {
  margin-right: 7px;
  color: var(--ink);
  font-weight: 800;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: minmax(440px, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
  padding-block: 120px 170px;
}

.stats-visual {
  position: relative;
  padding: clamp(24px, 5vw, 55px);
  background:
    radial-gradient(circle at 80% 15%, rgb(201 67 91 / 16%), transparent 32%),
    radial-gradient(circle at 8% 80%, rgb(56 140 242 / 14%), transparent 38%),
    #e9e5dc;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.stats-card {
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface-strong);
  border: 1px solid #e5e1da;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.stats-card__head > div {
  display: flex;
  flex-direction: column;
}

.stats-card__head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-card__head h3 {
  margin: 5px 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.stats-card__head .example-pill {
  padding: 4px 8px;
  color: #315c8e;
  background: var(--a0-soft);
  border-radius: 99px;
  font-size: 0.58rem;
}

.format-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 25px 0;
}

.format-stat > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.71rem;
  font-weight: 700;
}

.format-stat > div b {
  color: var(--a0);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.format-stat--typed > div b {
  color: var(--a2);
}

.format-stat > i {
  display: block;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: #e7e9e7;
  border-radius: 99px;
}

.format-stat > i span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--a0);
  border-radius: inherit;
}

.format-stat--typed > i span {
  background: var(--a2);
}

.format-stat > small {
  color: var(--muted);
  font-size: 0.63rem;
}

.weekly-chart {
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
}

.chart-label b {
  font-size: 1rem;
}

.bars {
  display: grid;
  height: 100px;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  padding-top: 15px;
}

.bars i {
  position: relative;
  display: block;
  height: var(--h);
  min-height: 8px;
  background: linear-gradient(to top, var(--a1), #74c6b5);
  border-radius: 5px 5px 2px 2px;
}

.bars i span {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  color: var(--muted);
  font-size: 0.54rem;
  font-style: normal;
  transform: translateX(-50%);
}

.plain-checks {
  display: flex;
  padding: 0;
  margin: 28px 0 0;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.plain-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 600;
}

.plain-checks span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  color: white;
  background: var(--correct);
  border-radius: 50%;
  font-size: 0.62rem;
}

/* Local */

.local-section {
  background: #e7f0ec;
  border-block: 1px solid #cadbd3;
}

.local-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding-block: 86px;
}

.local-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #2e7160;
  background: rgb(255 255 255 / 60%);
  border: 1px solid #bad1c7;
  border-radius: 25px;
}

.local-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.local-shell h2 {
  font-size: clamp(2.25rem, 4.4vw, 4.1rem);
}

.local-shell > div > p:last-child {
  max-width: 680px;
  font-size: 0.96rem;
}

.local-facts {
  display: grid;
  min-width: 210px;
  gap: 13px;
}

.local-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bfd4ca;
}

.local-facts strong {
  color: #245f50;
  font-size: 0.8rem;
}

.local-facts span {
  color: #5e756b;
  font-size: 0.7rem;
}

/* Method poster */

.method-poster {
  padding-block: clamp(100px, 11vw, 155px) 80px;
}

.method-poster__heading {
  display: grid;
  max-width: 980px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: end;
  gap: 18px clamp(45px, 8vw, 110px);
  margin-bottom: clamp(34px, 5vw, 58px);
}

.method-poster__heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.method-poster__heading > p:last-child {
  margin: 0 0 4px;
}

.method-poster__figure {
  margin: 0;
}

.method-poster__wide {
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.method-poster__mobile {
  display: none;
}

.method-poster__figure figcaption {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.method-poster__facts {
  display: grid;
  padding: 0;
  margin: 32px 0 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.method-poster__facts > div {
  min-height: 112px;
  padding: 22px;
  background: rgb(255 253 249 / 78%);
}

.method-poster__facts dt {
  margin-bottom: 7px;
  color: var(--action-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-poster__facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: start;
  gap: clamp(45px, 8vw, 120px);
  padding-block: 150px;
}

.faq-heading {
  position: sticky;
  top: 120px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.faq-list summary > span::before,
.faq-list summary > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  content: "";
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.faq-list summary > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary > span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-list details > p {
  max-width: 680px;
  padding: 0 48px 26px 4px;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.faq-list details > p a {
  color: var(--action-dark);
  font-weight: 650;
}

/* Closing + footer */

.closing {
  padding-bottom: 40px;
}

.closing-card {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(35px, 7vw, 82px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 95% -25%, rgb(255 255 255 / 20%), transparent 39%),
    linear-gradient(135deg, #b9283a, #d34756);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgb(157 34 48 / 18%);
}

.closing-card::before {
  position: absolute;
  right: -75px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  content: "";
  border: 1px solid rgb(255 255 255 / 23%);
  border-radius: 50%;
}

.closing-card > div,
.closing-card > a {
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.closing-card > div > p:last-child {
  margin: 18px 0 0;
  color: rgb(255 255 255 / 78%);
}

.closing-card > .button {
  flex: none;
}

.site-footer {
  padding: 42px 0 55px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 45px;
}

.brand--footer .brand-wordmark {
  height: 29px;
}

.footer-shell > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.footer-links a {
  font-size: 0.76rem;
}

.footer-shell .copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: right;
}

/* Responsive */

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  }

  .level-rail {
    left: -10px;
  }

  .floating-card {
    right: -8px;
  }

  .level-card__copy {
    min-height: 340px;
    padding-inline: 15px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
    text-align: center;
  }

  .hero-copy {
    max-width: 720px;
    margin-inline: auto;
  }

  .eyebrow,
  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .hero h1 {
    margin-inline: auto;
    font-size: clamp(4.5rem, 13vw, 7rem);
  }

  .product-composition {
    width: min(100%, 650px);
    justify-self: center;
    margin-top: 20px;
  }

  .method,
  .stats,
  .faq {
    grid-template-columns: 1fr;
  }

  .method-heading,
  .faq-heading {
    position: static;
  }

  .method-heading > p:last-child {
    max-width: 650px;
  }

  .method-list {
    width: min(100%, 720px);
    justify-self: end;
  }

  .mastery-shell {
    grid-template-columns: 1fr;
  }

  .mastery-copy h2,
  .mastery-copy > p:not(.section-kicker) {
    max-width: 700px;
  }

  .levels-heading {
    grid-template-columns: 1fr;
  }

  .levels-heading .section-kicker {
    margin-bottom: -10px;
  }

  .levels-heading > p:last-child {
    margin-top: 0;
  }

  .level-path {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 60px;
  }

  .level-path::before {
    top: 31px;
    bottom: 31px;
    left: 27px;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--a0), var(--a1), var(--a2), var(--b1), var(--b2));
  }

  .level-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 19px;
  }

  .level-node {
    height: auto;
  }

  .level-node span {
    width: 54px;
    height: 54px;
  }

  .level-card__copy {
    min-height: 0;
    padding: 23px;
    margin: 0;
  }

  .stats {
    gap: 65px;
  }

  .stats-copy {
    max-width: 720px;
  }

  .local-shell {
    grid-template-columns: 86px 1fr;
  }

  .local-facts {
    grid-column: 2;
    width: min(100%, 500px);
  }

  .method-poster__heading {
    grid-template-columns: 1fr;
  }

  .method-poster__heading .section-kicker {
    margin-bottom: -10px;
  }

  .method-poster__heading > p:last-child {
    max-width: 650px;
  }

  .method-poster__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    width: min(100%, 780px);
    justify-self: end;
  }
}

@media (max-width: 780px) {
  .site-header {
    background: rgb(245 239 227 / 94%);
  }

  .nav-shell {
    min-height: 68px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 18px 24px 24px;
    background: rgb(245 239 227 / 98%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgb(24 35 45 / 9%);
  }

  .site-menu.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .site-menu .button {
    width: 100%;
  }

  .plain-intro,
  .levels,
  .faq {
    padding-block: 110px;
  }

  .method {
    padding-bottom: 120px;
  }

  .mastery-shell {
    padding-block: 110px;
  }

  .stats {
    padding-block: 100px 120px;
  }

  .closing-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-card > .button {
    align-self: flex-start;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-shell .copyright {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .hero {
    min-height: 0;
    padding-block: 60px 50px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.25rem);
  }

  .hero-lede {
    margin-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    gap: 6px 13px;
    font-size: 0.7rem;
  }

  .hero-facts li:not(:first-child)::before {
    margin-right: 11px;
  }

  .product-composition {
    min-height: 590px;
  }

  .phone {
    top: 2%;
    left: 45%;
    width: 250px;
  }

  .phone-screen {
    min-height: 500px;
    padding-inline: 13px;
  }

  .phone-sensor {
    width: 70px;
  }

  .app-toolbar {
    padding-bottom: 9px;
  }

  .app-toolbar strong {
    font-size: 19px;
  }

  .standing-card {
    min-height: 87px;
    padding: 11px;
  }

  .progress-ring {
    width: 54px;
    height: 54px;
  }

  .progress-ring::before {
    width: 43px;
    height: 43px;
  }

  .progress-ring span {
    font-size: 10px;
  }

  .lesson-card {
    min-height: 55px;
    margin-bottom: 7px;
  }

  .floating-card {
    right: -2px;
    bottom: 3%;
    width: 195px;
    padding: 12px;
  }

  .level-rail {
    top: 16%;
    left: -3px;
    padding: 9px 7px;
  }

  .level-rail span {
    width: 27px;
    height: 27px;
  }

  .level-rail::before {
    left: 20px;
  }

  .plain-intro h2,
  .section-heading h2,
  .mastery h2,
  .stats-copy h2,
  .local-section h2,
  .closing h2 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .method-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 21px;
  }

  .method-demo {
    width: 100%;
    padding: 16px;
    margin-top: 14px;
  }

  .mastery-panel__top {
    flex-direction: column;
  }

  .mastery-row {
    grid-template-columns: 34px 1fr;
  }

  .mastery-row > b {
    grid-column: 2;
    margin-top: -8px;
  }

  .level-card__copy {
    padding: 20px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-visual {
    padding: 18px;
    border-radius: 25px;
  }

  .format-comparison {
    gap: 14px;
  }

  .local-shell {
    grid-template-columns: 1fr;
    padding-block: 70px;
  }

  .local-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .local-icon svg {
    width: 44px;
    height: 44px;
  }

  .local-facts {
    grid-column: 1;
    min-width: 0;
  }

  .method-poster {
    padding-block: 90px 25px;
  }

  .method-poster__heading {
    margin-bottom: 28px;
  }

  .method-poster__figure figcaption {
    margin-top: 16px;
  }

  .method-poster__facts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .method-poster__facts > div {
    min-height: 0;
    padding: 18px 20px;
  }

  .faq-list summary {
    font-size: 1.12rem;
  }

  .closing-card {
    min-height: 390px;
    padding: 34px 26px;
    border-radius: 26px;
  }

  .closing-card > .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .method-poster__wide {
    display: none;
  }

  .method-poster__mobile {
    display: grid;
    gap: 16px;
  }

  .method-poster__crop {
    aspect-ratio: 600 / 630;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
  }

  .method-poster__crop img {
    width: 200%;
    max-width: none;
    height: auto;
  }

  .method-poster__crop--right img {
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  .product-composition {
    min-height: 560px;
  }

  .level-rail {
    display: none;
  }

  .phone {
    left: 42%;
  }

  .floating-card {
    right: -5px;
    bottom: 2%;
    width: 180px;
  }

  .example-note {
    right: 0;
    bottom: -3%;
  }

  .level-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .level-path::before {
    left: 23px;
  }

  .level-node span {
    width: 46px;
    height: 46px;
    border-width: 4px;
  }

  .level-card__copy {
    padding: 18px;
  }

  .format-comparison {
    grid-template-columns: 1fr;
  }
}

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

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

@media (prefers-contrast: more) {
  :root {
    --line: #aaa49b;
    --line-strong: #7d7871;
    --muted: #4f5961;
  }

  .button[aria-disabled="true"] {
    opacity: 1;
  }
}

/* Legal pages (privacy policy and anything else long-form) */

.legal-main {
  padding: 56px 0 40px;
}

.legal-shell {
  width: min(calc(100% - 48px), 760px);
}

.legal-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-summary {
  margin: 34px 0 8px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-summary p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-body h2 {
  margin: 44px 0 12px;
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 9px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--action-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-cta {
  margin: 48px 0 8px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  .legal-main {
    padding-top: 34px;
  }

  .legal-body h2 {
    margin-top: 36px;
  }
}

.legal-back {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-back:hover {
  color: var(--action-dark);
}
