:root {
  --ink: #111827;
  --muted: #475467;
  --navy: #0b1f3a;
  --blue: #155eef;
  --blue-hover: #004eeb;
  --blue-soft: #eaf1ff;
  --orange: #c2410c;
  --orange-hover: #9a3412;
  --white: #ffffff;
  --neutral: #f4f6f8;
  --line: #d0d5dd;
  --line-dark: rgba(255, 255, 255, 0.2);
  --font: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: min(1200px, calc(100% - 48px));
  --header-height: 82px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--white); font: 18px/1.65 var(--font); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 18px; transform: translateY(-150%); background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; border-radius: 6px; }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #f97316; outline-offset: 4px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height); background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid transparent; transition: height 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.site-header.scrolled { height: 78px; border-color: var(--line); box-shadow: 0 6px 18px rgba(11, 31, 58, 0.06); }
.header-inner { width: min(1360px, calc(100% - 40px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; flex: 0 0 auto; }
.brand picture { display: block; width: 100%; }
.site-header .brand > img, .site-header .brand > picture { width: 180px; height: 72px; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { min-width: 0; display: flex; align-items: center; gap: 22px; }
.nav-links, .nav-actions { display: flex; align-items: center; }
.nav-links { gap: 22px; }
.nav-actions { gap: 14px; }
.site-nav a { font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-links a, .login-link { position: relative; }
.nav-links a::after, .login-link::after { content: ''; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.nav-links a:hover::after, .login-link:hover::after { transform: scaleX(1); transform-origin: left; }
.login-link { color: var(--navy); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle.active span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-of-type(3) { opacity: 0; }
.menu-toggle.active span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; border: 2px solid var(--blue); border-radius: 7px; background: var(--blue); color: var(--white); font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: translateY(-2px); }
.button span { transition: transform 160ms ease; }
.button:hover span { transform: translateX(3px); }
.button-small { min-height: 46px; padding: 10px 17px; font-size: 16px; }
.button-orange { background: var(--orange); border-color: var(--orange); }
.button-orange:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.button-dark { background: var(--navy); border-color: var(--navy); }
.button-dark:hover { background: #132f53; border-color: #132f53; }
.text-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-size: 16px; font-weight: 800; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-action span { transition: transform 160ms ease; }
.text-action:hover span { transform: translate(2px, 1px); }
.text-action-light { color: var(--white); }
.section-label { margin: 0 0 20px; color: var(--blue); font-size: 14px; font-weight: 800; line-height: 1.3; letter-spacing: 0.13em; text-transform: uppercase; }
.light-label { color: #eef4ff; }

.hero { padding: 166px 0 94px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr); align-items: center; gap: clamp(56px, 7vw, 108px); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 780px; margin: 0; color: var(--navy); font-size: clamp(54px, 5.2vw, 72px); font-weight: 800; line-height: 1.03; letter-spacing: -0.055em; }
.hero-lede { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.hero-membership { max-width: 680px; margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--blue); color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.hero-note { margin: 28px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-note span { color: var(--blue); margin-right: 7px; }
.hero-enter { animation: enter-up 620ms both; }
.hero-copy .hero-enter:nth-child(2) { animation-delay: 90ms; }
.hero-copy .hero-enter:nth-child(3) { animation-delay: 180ms; }
.hero-copy .hero-enter:nth-child(4) { animation-delay: 270ms; }
.language-board.hero-enter { animation-delay: 150ms; }

.language-board { min-width: 0; padding: 30px; overflow: hidden; background: var(--neutral); border: 1px solid var(--line); border-radius: 12px; box-shadow: 18px 18px 0 var(--blue-soft); }
.phrase-stages { margin: 0; padding: 0; list-style: none; }
.board-header { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.phrase-stage { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.phrase-stage .level { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 800; }
.phrase-stage small, .phrase-stage strong { display: block; }
.phrase-stage small { margin-bottom: 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.phrase-stage strong { color: var(--navy); font-size: clamp(18px, 2vw, 24px); line-height: 1.35; overflow-wrap: anywhere; }
.phrase-stage.is-active { position: relative; margin-inline: -30px; padding-inline: 30px; background: var(--blue); border-color: var(--blue); }
.phrase-stage.is-active .level { border-color: var(--white); color: var(--blue); }
.phrase-stage.is-active small { color: #eef4ff; }
.phrase-stage.is-active strong { color: var(--white); }
.phrase-stage { --stage-delay: 0s; animation: stage-surface 12s var(--stage-delay) 3; }
.phrase-stage:nth-of-type(2) { --stage-delay: 4s; }
.phrase-stage:nth-of-type(3) { --stage-delay: 8s; }
.phrase-stage .level { animation: stage-level 12s var(--stage-delay) 3; }
.phrase-stage small { animation: stage-small 12s var(--stage-delay) 3; }
.phrase-stage strong { animation: stage-strong 12s var(--stage-delay) 3; }
.phrase-stage strong::after { content: ''; display: block; width: 100%; height: 3px; margin-top: 7px; background: #ffb38f; transform: scaleX(0); transform-origin: left; animation: stage-line 12s var(--stage-delay) 3; }
.board-footer { display: flex; align-items: center; gap: 12px; padding-top: 22px; color: var(--navy); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.board-footer i { min-width: 18px; height: 1px; flex: 1; background: var(--line); }

.credibility { overflow: hidden; border-top: 2px solid rgba(93, 143, 242, 0.78); background: linear-gradient(110deg, #081a33 0%, #102a4b 50%, #0b1f3a 100%); }
.feature-strip { width: 100%; overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.feature-track { display: flex; width: max-content; animation: feature-scroll 48s linear infinite; will-change: transform; }
.feature-strip:hover .feature-track, .feature-strip:focus-within .feature-track, .feature-strip.is-paused .feature-track { animation-play-state: paused; }
.feature-sequence { display: flex; flex: 0 0 auto; align-items: center; margin: 0; padding: 0; list-style: none; }
.feature-sequence li { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; padding-left: 30px; color: #f8fafc; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0.005em; white-space: nowrap; }
.feature-sequence li::before { content: ''; width: 8px; height: 8px; flex: 0 0 auto; border: 4px solid rgba(157, 189, 255, 0.2); border-radius: 50%; background: #5d8ff2; }
.feature-sequence li:nth-child(4n)::before { border-color: rgba(255, 179, 143, 0.2); background: #f08a5d; }
.feature-sequence li::after { content: ''; width: 5px; height: 5px; flex: 0 0 auto; margin-left: 30px; background: rgba(219, 231, 255, 0.28); transform: rotate(45deg); }

.section { padding: 124px 0; }
.section h2, .final-cta h2, .contact h2 { margin: 0; color: var(--navy); font-size: clamp(40px, 4.2vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.045em; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(70px, 10vw, 150px); align-items: start; }
.section-heading { position: sticky; top: 120px; }
.materials-intro { max-width: 560px; margin: 28px 0 0; color: var(--muted); }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.principle-number { color: var(--blue); font-size: 14px; font-weight: 800; }
.principle h3 { margin: -5px 0 8px; color: var(--navy); font-size: 25px; line-height: 1.3; }
.principle p { max-width: 650px; margin: 0; color: var(--muted); }

.course-intro { background: var(--navy); color: var(--white); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr); gap: clamp(70px, 9vw, 140px); align-items: center; }
.course-copy h2 { color: var(--white); }
.course-copy > p:not(.section-label) { max-width: 680px; margin: 26px 0 0; color: #cbd5e1; }
.course-copy .platform-access { padding-left: 20px; border-left: 3px solid #9dbdff; color: #e7eefb; }
.course-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.course-outline { padding: 34px; border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.course-outline > p { margin: 0 0 18px; color: #dbe7f8; font-weight: 700; }
.course-outline ul { margin: 0; padding: 0; list-style: none; }
.course-outline li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; padding: 17px 0; border-top: 1px solid var(--line-dark); font-weight: 700; }
.course-outline li span { color: #9dbdff; font-size: 14px; }

.books { overflow: hidden; background: var(--white); }
.books-layout { display: grid; grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(64px, 8vw, 120px); }
.books-copy { grid-column: 2; max-width: 590px; }
.books-copy h2 { max-width: 590px; }
.books-copy > p:not(.section-label) { max-width: 570px; margin: 28px 0; color: var(--muted); }
.books-carousel { grid-column: 1; grid-row: 1; min-width: 0; }
.book-stage { --book-width: clamp(250px, 23vw, 300px); position: relative; height: calc(var(--book-width) * 1.5 + 36px); outline: 0; }
.book-stage:focus-visible { outline: 3px solid #f97316; outline-offset: 7px; border-radius: 10px; }
.book-slide { width: var(--book-width); margin: 0 auto; }
.book-slide:not(:first-child) { display: none; }
.book-slide picture { display: block; }
.book-slide img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--neutral); box-shadow: 0 18px 38px rgba(11, 31, 58, 0.15); }
.books-carousel.is-enhanced .book-slide { position: absolute; z-index: 0; top: 50%; left: 50%; display: block; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -50%) scale(0.76); transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease, visibility 0s linear 620ms; }
.books-carousel.is-enhanced .book-slide.is-current { z-index: 3; opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
.books-carousel.is-enhanced .book-slide.is-previous { z-index: 1; opacity: 0.66; visibility: visible; transform: translate(-80%, -50%) scale(0.84) rotate(-3deg); transition-delay: 0s; }
.books-carousel.is-enhanced .book-slide.is-next { z-index: 2; opacity: 0.74; visibility: visible; transform: translate(-20%, -50%) scale(0.87) rotate(3deg); transition-delay: 0s; }
.books-carousel.is-enhanced .book-slide.is-current img { border-color: var(--blue); box-shadow: 0 24px 48px rgba(11, 31, 58, 0.22); }
.book-controls { display: grid; grid-template-columns: 48px minmax(58px, auto) 48px; align-items: center; justify-content: center; gap: 16px; margin: 18px auto 0; }
.carousel-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--navy); border-radius: 7px; background: var(--white); color: var(--navy); cursor: pointer; font-size: 22px; font-weight: 800; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.carousel-button:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.book-position { min-width: 0; margin: 0; text-align: center; }
.book-position span { color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; }

.about { position: relative; overflow: hidden; background: var(--neutral); }
.about-layout { position: relative; display: grid; grid-template-columns: minmax(370px, 0.92fr) minmax(0, 1.08fr); gap: 28px clamp(72px, 7vw, 104px); align-items: center; }
.about-copy { grid-column: 2; padding-left: 34px; border-left: 4px solid var(--blue); }
.about-copy .lead { max-width: 650px; margin: 28px 0 0; color: var(--navy); font-size: 21px; font-weight: 600; }
.about-details { grid-column: 2; max-width: 650px; }
.about-details p { color: var(--muted); }
.about-details p:first-child { margin-top: 0; }
.about-details .text-action { margin-top: 8px; }
.instructor-photo { position: relative; grid-column: 1; grid-row: 1 / span 3; width: min(100%, 430px); justify-self: center; padding: 0 18px 18px 0; }
.instructor-photo::before { content: ''; position: absolute; z-index: 0; inset: 34px 0 0 34px; border-radius: 10px; background: var(--navy); }
.instructor-photo picture { position: relative; z-index: 1; display: block; }
.instructor-photo img { width: 100%; height: auto; aspect-ratio: 592 / 1024; object-fit: cover; object-position: center top; border: 1px solid var(--line); border-radius: 10px; background: #d8c4b7; }
.credentials { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 0; border-top: 1px solid var(--line); }
.credentials > div { min-width: 0; padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line); }
.credentials > div:nth-child(odd) { border-right: 1px solid var(--line); }
.credentials > div:nth-child(even) { padding-left: 22px; }
.credentials dt { color: var(--navy); font-size: 17px; font-weight: 800; }
.credentials dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.how-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); align-items: end; gap: 70px; margin-bottom: 68px; }
.how-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.steps li { min-width: 0; min-height: 300px; padding: 28px 26px 20px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 26px; }
.steps li:last-child { border-right: 0; }
.steps li > span { display: block; margin-bottom: 42px; color: var(--blue); font-size: 14px; font-weight: 800; }
.steps h3 { margin: 0 0 9px; color: var(--navy); font-size: 26px; }
.steps p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.steps a { color: var(--blue); font-size: 15px; font-weight: 800; text-underline-offset: 5px; }

.faq { background: var(--neutral); }
.faq-layout { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr); gap: clamp(70px, 9vw, 140px); align-items: start; }
.faq-heading { position: sticky; top: 120px; }
.faq-heading > p:not(.section-label) { margin: 26px 0 3px; color: var(--muted); }
.accordion { border-top: 2px solid var(--navy); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 25px 52px 25px 0; color: var(--navy); cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; line-height: 1.45; }
summary::-webkit-details-marker { display: none; }
summary span::before, summary span::after { content: ''; position: absolute; right: 8px; top: 38px; width: 16px; height: 2px; background: var(--blue); transition: transform 160ms ease; }
summary span::after { transform: rotate(90deg); }
details[open] summary span::after { transform: rotate(0); }
details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms ease; }
details[open] > div { grid-template-rows: 1fr; }
details > div > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 52px 24px 0; color: var(--muted); }
details p a { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }

.final-cta { position: relative; isolation: isolate; overflow: hidden; padding: 132px 0; background: linear-gradient(125deg, #0b3fa8 0%, var(--blue) 52%, #0d47bd 100%); color: var(--white); }
.final-cta::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; top: -330px; right: 8%; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; box-shadow: 0 0 0 62px rgba(157, 189, 255, 0.08), 0 0 0 124px rgba(255, 179, 143, 0.045); animation: cta-drift 8s ease-in-out 3 alternate; }
.final-cta::after { content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%); transform: translateX(-55%); animation: cta-line 8s linear 3; }
.cta-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: end; gap: clamp(70px, 10vw, 150px); }
.final-cta h2 { max-width: 720px; color: var(--white); }
.cta-layout > div:last-child p { margin: 0 0 28px; color: #eef4ff; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.contact { padding: 96px 0; background: var(--white); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: end; gap: clamp(70px, 10vw, 150px); }
.contact-layout > div:last-child p { max-width: 560px; margin: 0 0 26px; color: var(--muted); }

.business-details { min-width: 0; font-style: normal; color: var(--muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.business-details strong { color: var(--navy); }
.business-details a { color: #064fc9; font-weight: 700; text-underline-offset: 4px; }

.site-footer { padding: 76px 0 28px; border-top: 1px solid rgba(11, 31, 58, 0.14); background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 50%, #e2eaf5 100%); color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(140px, 0.75fr)); gap: clamp(34px, 5vw, 70px); }
.footer-grid.footer-grid-compact { grid-template-columns: minmax(280px, 1.7fr) minmax(220px, 0.8fr); }
.footer-grid > div:first-child { min-width: 0; }
.footer-brand { width: min(100%, 260px); padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--navy); }
.brand.footer-brand img { width: 100%; height: auto; background: transparent; }
.footer-grid > div:first-child > p { max-width: 430px; margin: 32px 0 0; color: var(--muted); font-size: 15px; }
.footer-grid > div:first-child > .footer-company { margin-top: 14px; color: var(--navy); font-size: 14px; line-height: 1.65; }
.footer-grid h2 { margin: 0 0 18px; color: #1459e0; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a, .footer-link-button { display: block; width: fit-content; margin: 9px 0; padding: 0; border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 15px; line-height: 1.65; text-align: left; text-decoration: none; }
.site-footer a:hover { color: #1459e0; text-decoration: underline; text-underline-offset: 5px; }
.footer-link-button:hover { color: #1459e0; text-decoration: underline; text-underline-offset: 5px; }
.site-footer a:focus-visible { outline-color: #1459e0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 62px; padding-top: 24px; border-top: 1px solid rgba(11, 31, 58, 0.16); color: var(--muted); font-size: 14px; }
.footer-bottom a { color: var(--navy); }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 80px 0; background: var(--navy); color: var(--white); }
.error-content { max-width: 760px; }
.error-page h1 { margin: 0 0 22px; color: var(--white); font-size: clamp(46px, 7vw, 76px); line-height: 1.05; letter-spacing: -0.05em; }
.error-page p:not(.section-label) { margin-bottom: 28px; color: #cbd5e1; }

.legal-main { padding-top: var(--header-height); }
.legal-hero { padding: 86px 0 74px; border-bottom: 1px solid var(--line); background: var(--neutral); }
.legal-hero-inner { max-width: 980px; }
.legal-hero h1 { max-width: 920px; margin: 0; color: var(--navy); font-size: clamp(48px, 6vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -0.05em; }
.legal-hero-inner > p:not(.section-label) { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 20px; }
.legal-dates { display: flex; flex-wrap: wrap; gap: 18px 42px; margin: 34px 0 0; }
.legal-dates div { display: flex; gap: 8px; }
.legal-dates dt { color: var(--navy); font-weight: 800; }
.legal-dates dd { margin: 0; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 780px); justify-content: space-between; gap: clamp(60px, 9vw, 130px); padding-block: 86px 126px; }
.legal-toc { position: sticky; top: 116px; align-self: start; padding-top: 5px; }
.legal-toc > p { margin: 0 0 15px; color: var(--navy); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal-toc li { border-bottom: 1px solid var(--line); }
.legal-toc a { display: block; padding: 11px 0; color: var(--muted); font-size: 14px; line-height: 1.45; text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: calc(var(--header-height) + 22px); }
.legal-content section + section { margin-top: 64px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(29px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.03em; }
.legal-content h3 { margin: 34px 0 10px; color: var(--navy); font-size: 22px; line-height: 1.35; }
.legal-content p, .legal-content li, .legal-content address { color: var(--muted); font-size: 17px; line-height: 1.75; }
.legal-content p { margin: 0 0 19px; }
.legal-content ul, .legal-content ol { margin: 0 0 22px; padding-left: 24px; }
.legal-content li + li { margin-top: 7px; }
.legal-content a { color: #064fc9; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 4px; }
.legal-content address { padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--neutral); font-style: normal; }
.legal-table-wrap { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.legal-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; color: var(--muted); font-size: 15px; line-height: 1.55; }
.legal-table-wrap th, .legal-table-wrap td { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table-wrap th:last-child, .legal-table-wrap td:last-child { border-right: 0; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }
.legal-table-wrap th { background: var(--navy); color: var(--white); font-weight: 800; }
.launch-note, .launch-box { padding: 18px 20px; border: 1px solid #f4b391; border-radius: 8px; background: #fff7ed; }
.launch-box { margin: 26px 0; }
.launch-box p, .launch-box ul { margin-bottom: 10px; }
.launch-placeholder, .legal-content code { color: #8a2f0b; font-family: var(--font); font-weight: 800; overflow-wrap: anywhere; }
.inline-settings { padding: 0; border: 0; background: transparent; color: #064fc9; cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.consent-banner { position: fixed; z-index: 300; right: 0; bottom: 0; left: 0; max-height: min(80vh, 560px); overflow-y: auto; border-top: 2px solid var(--blue); background: var(--white); box-shadow: 0 -18px 50px rgba(11, 31, 58, 0.18); }
.consent-banner-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; padding: 25px 0; }
.consent-banner h2 { margin: 0 0 7px; color: var(--navy); font-size: 21px; }
.consent-banner p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.consent-banner a { color: #064fc9; font-weight: 800; text-underline-offset: 3px; }
.consent-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.consent-choice, .consent-manage, .consent-secondary { min-height: 48px; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 800; }
.consent-choice { padding: 10px 16px; border: 2px solid var(--navy); background: var(--navy); color: var(--white); }
.consent-choice:hover { border-color: #17385e; background: #17385e; }
.consent-manage { grid-column: 1 / -1; padding: 9px 14px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); }
.consent-manage:hover, .consent-secondary:hover { background: var(--neutral); }
.consent-dialog { width: min(700px, calc(100% - 32px)); max-height: min(86vh, 780px); padding: 0; overflow-y: auto; border: 0; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 28px 80px rgba(11, 31, 58, 0.32); }
.consent-dialog::backdrop { background: rgba(5, 18, 36, 0.72); }
.consent-dialog form { padding: 30px; }
.consent-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.consent-dialog-header .section-label { margin-bottom: 10px; }
.consent-dialog h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.035em; }
.consent-close { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--navy); cursor: pointer; font-size: 30px; line-height: 1; }
.consent-dialog-intro { margin: 22px 0; color: var(--muted); font-size: 16px; }
.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.consent-category h3 { margin: 0 0 5px; color: var(--navy); font-size: 19px; }
.consent-category p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.consent-category > strong { color: var(--blue); font-size: 14px; }
.consent-category-toggle { cursor: pointer; }
.consent-switch { position: relative; width: 54px; height: 32px; }
.consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-switch span { position: absolute; inset: 0; border: 2px solid #667085; border-radius: 999px; background: #e4e7ec; transition: background 160ms ease, border-color 160ms ease; }
.consent-switch span::after { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(11, 31, 58, 0.3); transition: transform 160ms ease; }
.consent-switch input:checked + span { border-color: var(--blue); background: var(--blue); }
.consent-switch input:checked + span::after { transform: translateX(22px); }
.consent-switch input:focus-visible + span { outline: 3px solid #f97316; outline-offset: 4px; }
.consent-dialog-actions { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.consent-secondary { padding: 10px 18px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 560ms ease, transform 560ms ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@keyframes enter-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes underline-once { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes feature-scroll { to { transform: translateX(-50%); } }
@keyframes stage-surface { 0%, 29% { margin-inline: -30px; padding-inline: 30px; background: var(--blue); border-color: var(--blue); } 33%, 96% { margin-inline: 0; padding-inline: 0; background: transparent; border-color: var(--line); } 100% { margin-inline: -30px; padding-inline: 30px; background: var(--blue); border-color: var(--blue); } }
@keyframes stage-level { 0%, 29% { border-color: var(--white); color: var(--blue); } 33%, 96% { border-color: var(--line); color: var(--navy); } 100% { border-color: var(--white); color: var(--blue); } }
@keyframes stage-small { 0%, 29% { color: #eef4ff; } 33%, 96% { color: var(--muted); } 100% { color: #eef4ff; } }
@keyframes stage-strong { 0%, 29% { color: var(--white); } 33%, 96% { color: var(--navy); } 100% { color: var(--white); } }
@keyframes stage-line { 0% { transform: scaleX(0); } 7%, 29% { transform: scaleX(1); } 33%, 100% { transform: scaleX(0); } }
@keyframes cta-drift { from { opacity: 0.72; transform: translate(14px, -8px); } to { opacity: 1; transform: translate(-44px, 34px); box-shadow: 0 0 0 72px rgba(157, 189, 255, 0.12), 0 0 0 144px rgba(255, 179, 143, 0.065); } }
@keyframes cta-line { to { transform: translateX(55%); } }

@media (max-width: 1160px) {
  .header-inner { gap: 18px; }
  .site-header .brand > img, .site-header .brand > picture { width: 164px; height: 66px; }
  .site-nav, .nav-links { gap: 15px; }
  .site-nav a { font-size: 16px; }
  .nav-actions { gap: 10px; }
  .button-small { padding-inline: 14px; }
  .footer-grid { grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(125px, 0.7fr)); gap: 30px; }
}

@media (max-width: 980px) {
  :root { --header-height: 72px; }
  .header-inner { width: calc(100% - 32px); }
  .site-header .brand > img, .site-header .brand > picture { width: 152px; height: 61px; }
  .menu-toggle { position: relative; z-index: 120; display: block; flex: 0 0 auto; }
  .site-nav { position: fixed; z-index: 110; inset: 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 104px 28px 30px; background: var(--white); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform 240ms ease, opacity 180ms ease, visibility 0s linear 240ms; }
  .site-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: clamp(22px, 5vw, 30px); line-height: 1.2; }
  .nav-links a::after, .login-link::after { display: none; }
  .nav-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: auto; }
  .nav-actions a { min-width: 0; }
  .login-link { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--navy); border-radius: 7px; font-size: 15px !important; }
  .site-nav .button-small { font-size: 15px; }
  body.menu-open main, body.menu-open .site-footer { pointer-events: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 44px; }
  .hero h1 { font-size: clamp(48px, 7vw, 62px); }
  .hero-lede { font-size: 18px; }
  .course-layout { gap: 54px; }
  .books-layout { grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr); gap: 54px; }
  .book-stage { --book-width: clamp(235px, 27vw, 270px); }
  .about-layout { grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr); gap: 54px; }
  .about-copy { padding-left: 26px; }
  .instructor-photo { width: min(100%, 370px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { min-height: 260px; border-bottom: 0; }

  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px 18px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav { position: static; width: 100%; padding: 0; background: transparent; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  html:not(.js) .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html:not(.js) .nav-links a { min-height: 44px; font-size: 14px; }
  html:not(.js) .nav-actions { margin-top: 12px; }
  html:not(.js) .hero { padding-top: 72px; }
}

@media (max-width: 820px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 17px; line-height: 1.62; }
  .site-header .brand > img, .site-header .brand > picture { width: 142px; height: 57px; }
  .section { padding: 84px 0; }
  .feature-strip { padding: 17px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .feature-track { animation-duration: 42s; }
  .feature-sequence li { min-height: 42px; gap: 11px; padding-left: 24px; font-size: 16px; }
  .feature-sequence li::after { margin-left: 24px; }
  .section h2, .final-cta h2, .contact h2 { font-size: clamp(32px, 9vw, 40px); }
  .hero { padding: 122px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero h1 { font-size: clamp(40px, 11.2vw, 50px); }
  .hero-lede { margin-top: 22px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 28px; }
  .hero-note { font-size: 14px; }
  .language-board { padding: 22px; box-shadow: 10px 10px 0 var(--blue-soft); }
  .phrase-stage { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 20px 0; }
  .phrase-stage .level { width: 42px; height: 42px; }
  .phrase-stage.is-active { margin-inline: -22px; padding-inline: 22px; }
  .phrase-stage { animation-name: stage-surface-mobile; }
  .phrase-stage strong { font-size: 18px; }
  .board-footer { gap: 7px; font-size: 12px; }
  .editorial-grid, .course-layout, .books-layout, .about-layout, .how-heading, .faq-layout, .cta-layout, .contact-layout { grid-template-columns: 1fr; }
  .editorial-grid, .course-layout, .books-layout, .about-layout, .faq-layout, .cta-layout, .contact-layout { gap: 48px; }
  .section-heading, .faq-heading { position: static; }
  .principle { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 28px 0; }
  .principle h3 { font-size: 22px; }
  .course-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .course-outline { padding: 25px 22px; }
  .books-copy { grid-column: 1; grid-row: 1; max-width: 650px; }
  .books-carousel { grid-column: 1; grid-row: 2; }
  .book-stage { --book-width: min(68vw, 270px); height: calc(var(--book-width) * 1.5 + 28px); }
  .about-copy { grid-column: 1; grid-row: 1; padding: 22px 0 0; border-top: 4px solid var(--blue); border-left: 0; }
  .instructor-photo { grid-column: 1; grid-row: 2; width: min(100%, 340px); }
  .about-details { grid-column: 1; grid-row: 3; max-width: 650px; }
  .credentials { grid-column: 1; grid-row: 4; }
  .how-heading { align-items: start; gap: 22px; margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr; border-top: 2px solid var(--navy); }
  .steps li, .steps li + li { min-height: 0; padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(3) { border-bottom: 1px solid var(--line); }
  .steps li > span { margin-bottom: 18px; }
  .faq-heading > p:not(.section-label) { margin-top: 18px; }
  summary { padding-block: 21px; font-size: 17px; }
  summary span::before, summary span::after { top: 34px; }
  .final-cta { padding: 92px 0; }
  .cta-layout { align-items: start; }
  .contact { padding: 76px 0; }
  .contact-layout { align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 30px; }
  .footer-grid.footer-grid-compact { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-brand { width: min(100%, 220px); }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 48px; }
  .legal-hero { padding: 62px 0 56px; }
  .legal-hero h1 { font-size: clamp(40px, 10vw, 54px); }
  .legal-hero-inner > p:not(.section-label) { font-size: 18px; }
  .legal-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 90px; }
  .legal-toc { position: static; }
  .legal-toc ol { columns: 2; column-gap: 30px; }
  .legal-toc li { break-inside: avoid; }
  .consent-banner-inner { grid-template-columns: 1fr; gap: 17px; padding: 20px 0; }
  .consent-banner-actions { width: 100%; }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 24px); }
  .site-header .brand > img, .site-header .brand > picture { width: 130px; height: 52px; }
  .menu-toggle { width: 44px; height: 44px; }
  .site-nav { padding-inline: 20px; }
  .nav-actions { grid-template-columns: 1fr; }
  .hero h1 { font-size: 39px; }
  .hero-actions .button { width: 100%; }
  .board-header { font-size: 12px; }
  .phrase-stage small { font-size: 12px; }
  .phrase-stage strong { font-size: 16px; }
  .book-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .carousel-button { width: 44px; height: 44px; }
  .book-stage { --book-width: min(72vw, 250px); }
  .instructor-photo { width: min(100%, 310px); }
  .credentials { grid-template-columns: 1fr; }
  .credentials > div, .credentials > div:nth-child(even) { padding: 15px 0; border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid.footer-grid-compact { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .site-footer { padding: 60px 0 24px; }
  .footer-grid { gap: 32px; }
  .footer-brand { width: min(100%, 190px); }
  .footer-bottom { margin-top: 36px; }
  html:not(.js) .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-hero { padding-block: 48px; }
  .legal-dates { display: grid; gap: 8px; }
  .legal-dates div { display: grid; gap: 0; }
  .legal-toc ol { columns: 1; }
  .legal-content section + section { margin-top: 48px; }
  .legal-content h2 { font-size: 29px; }
  .legal-content p, .legal-content li, .legal-content address { font-size: 16px; }
  .consent-banner-inner { width: calc(100% - 28px); }
  .consent-banner-actions { grid-template-columns: 1fr; }
  .consent-manage { grid-column: auto; }
  .consent-dialog { width: calc(100% - 20px); }
  .consent-dialog form { padding: 22px 18px; }
  .consent-category { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .consent-dialog-actions { align-items: stretch; flex-direction: column; }
  .consent-dialog-actions .button, .consent-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-enter { opacity: 1; transform: none; }
  .books-carousel.is-enhanced .book-slide { transition: none; }
  .feature-strip { padding: 24px 12px; -webkit-mask-image: none; mask-image: none; }
  .feature-track { width: 100%; animation: none; will-change: auto; }
  .feature-sequence { width: 100%; flex-wrap: wrap; justify-content: center; gap: 16px 0; }
  .feature-sequence[aria-hidden="true"] { display: none; }
  .feature-sequence li { min-height: 36px; padding-left: 14px; }
  .feature-sequence li::after { margin-left: 14px; }
  .feature-sequence li:last-child::after { display: none; }
  .phrase-stage, .phrase-stage .level, .phrase-stage small, .phrase-stage strong, .phrase-stage strong::after { animation: none; }
  .phrase-stage:not(.is-active) { margin-inline: 0; padding-inline: 0; background: transparent; border-color: var(--line); }
  .phrase-stage:not(.is-active) .level { border-color: var(--line); color: var(--navy); }
  .phrase-stage:not(.is-active) small { color: var(--muted); }
  .phrase-stage:not(.is-active) strong { color: var(--navy); }
  .phrase-stage:not(.is-active) strong::after { display: none; }
  .final-cta::before, .final-cta::after { animation: none; }
}

@keyframes stage-surface-mobile { 0%, 29% { margin-inline: -22px; padding-inline: 22px; background: var(--blue); border-color: var(--blue); } 33%, 96% { margin-inline: 0; padding-inline: 0; background: transparent; border-color: var(--line); } 100% { margin-inline: -22px; padding-inline: 22px; background: var(--blue); border-color: var(--blue); } }

/* Dedicated contact page */
.contact-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 110px); padding-block: 80px 100px; }
.contact-page-layout h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.03em; }
.contact-message p { color: var(--muted); }
.contact-message a:not(.button) { color: #064fc9; overflow-wrap: anywhere; text-underline-offset: 4px; }
.contact-help { font-size: 15px; line-height: 1.7; }
@media (max-width: 760px) {
  .contact-page-layout { grid-template-columns: 1fr; padding-block: 56px 76px; }
}

#contact-form { display: grid; gap: 10px; }
#contact-form label { margin-top: 10px; color: var(--navy); font-size: 16px; font-weight: 700; }
#contact-form input, #contact-form textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
#contact-form textarea { resize: vertical; }
#contact-form .button { justify-self: start; margin-top: 12px; }
#contact-form .button:disabled { opacity: 0.6; cursor: not-allowed; }
#contact-form .contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#contact-status { margin: 8px 0 0; }
#contact-status[data-error="true"] { color: #9a3412; }
