@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --paper-soft: #f4f1eb;
  --ink: #101010;
  --muted: #6f6b63;
  --line: #ded9cf;
  --line-strong: #b9b1a3;
  --accent: #b89a5d;
  --accent-deep: #7d683b;
  --black: #050505;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(22, 20, 17, 0.09);
  --shadow-card: 0 12px 32px rgba(20, 18, 15, 0.08);
  --level-motion-ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --radius: 8px;
  --header-h: 72px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

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

:focus-visible {
  outline: 3px solid rgba(184, 154, 93, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
  font-weight: 700;
}

.brand-symbol {
  width: 68px;
  height: 40px;
  display: grid;
  place-items: center;
}

.brand-symbol img {
  width: 68px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.top-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--paper-soft);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: #202020;
}

.test-page .site-header {
  grid-template-columns: 1fr auto;
}

.test-page .level-test-home-cta {
  justify-self: end;
}

main {
  overflow: clip;
}

.pathway,
.system-block,
.levels,
.level-test,
.quiz,
.library,
.feedback-block,
.reviews,
.motivation,
.formats,
.faq,
.contact-panel {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.pathway,
.system-block,
.levels,
.level-test,
.quiz,
.library,
.feedback-block,
.reviews,
.motivation,
.formats,
.faq {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #030307;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0.06) 70%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 74% 50%;
}

.hero-poster-copy {
  display: none;
}

.hero-copy {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 58px;
}

.eyebrow,
.panel-kicker,
.plan-label {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  font-size: 82px;
  line-height: 0.92;
}

.hero h1,
.hero .eyebrow {
  color: var(--white);
}

h2 {
  font-size: 46px;
  line-height: 1.04;
}

h3 {
  font-size: 28px;
  line-height: 1.15;
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 22px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.94);
}

.hero-support {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--black);
  color: var(--white);
}

.button-primary:hover {
  background: #242424;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--paper);
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.hero-frame {
  position: relative;
  width: min(420px, 100%);
  height: 610px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(244,241,235,0.52)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 6px;
}

.hero-frame img {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: auto;
  height: 104%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.15));
}

.floating-note {
  position: absolute;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 16, 16, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #25221d;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.note-one {
  top: 120px;
  left: 2px;
}

.note-two {
  right: 0;
  bottom: 118px;
}

.action-strip {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
}

.action-strip a {
  min-height: 62px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.action-strip a:hover,
.action-strip a:focus-visible {
  background: var(--black);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: 86px 0 32px;
  border-top: 1px solid rgba(16, 16, 16, 0.1);
}

.section-heading h2 {
  max-width: 640px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.path-card,
.level-card,
.feedback-card,
.bonus-step {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(20, 18, 15, 0.05);
}

.path-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.path-number,
.level-label {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.path-card h3,
.level-card h3,
.feedback-card h3,
.bonus-step h3 {
  font-size: 26px;
}

.path-card p:not(.path-number),
.system-copy p,
.flow-item p,
.levels-intro p,
.level-card p,
.level-note p,
.feedback-card p,
.motivation-panel p,
.bonus-step p,
.quiz-copy p,
.class-card p,
.plan-copy,
.faq p,
.subscription-note {
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.system-copy,
.level-note,
.motivation-panel {
  border: 1px solid var(--black);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  padding: 28px;
}

.system-copy h3,
.level-note h3,
.motivation-panel h3 {
  color: var(--white);
}

.system-copy p,
.level-note p,
.motivation-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-item {
  min-height: 120px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.flow-item span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 900;
}

.flow-item h3 {
  font-size: 24px;
}

.flow-item p {
  margin: 4px 0 0;
}

.levels-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.levels-intro p {
  max-width: 610px;
  margin: 0;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.level-card {
  min-height: 244px;
  padding: 18px;
}

.level-card h3 {
  min-height: 62px;
}

.level-card p {
  margin: 12px 0 0;
  font-size: 15px;
}

.level-note {
  margin-top: 14px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-card {
  min-height: 226px;
  padding: 22px;
}

.feedback-card p {
  margin: 14px 0 0;
}

.motivation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bonus-step {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.bonus-step span {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 0.9;
}

.bonus-step p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.quiz {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 92px;
  padding: 34px;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(255, 255, 255, 0.44);
}

.quiz-copy p:last-child {
  max-width: 390px;
}

.quiz-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quiz-card-full {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.quiz-form {
  display: grid;
  gap: 16px;
}

.quiz-wizard {
  align-content: start;
}

.quiz-progress {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quiz-progress-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #ded7cb;
  overflow: hidden;
}

#quiz-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: var(--black);
  transition: width 220ms ease;
}

.quiz-step {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.quiz-step h3 {
  margin-bottom: 18px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.quiz-option {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.quiz-option.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.quiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.level-test-panel .quiz-nav {
  margin-top: 22px;
}

.quiz-nav .button {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-nav .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.quiz-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 266px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.quiz-result p:not(.panel-kicker) {
  color: var(--muted);
}

.quiz-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

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

.test-page-main {
  padding-bottom: 52px;
}

.level-test {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.94fr);
  gap: 28px;
  align-items: start;
  width: min(980px, calc(100% - 40px));
  padding: 58px 0 72px;
}

.level-test > * {
  min-width: 0;
}

.level-test-copy {
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.level-test-copy h1 {
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 0.96;
}

.level-test-copy p:not(.eyebrow) {
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
}

.level-test-lead {
  margin: 14px 0 0;
}

.level-test-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.level-test-steps span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.level-test-panel,
.level-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.level-test-panel {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.level-test-progress {
  display: grid;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.level-test-progress > span:first-child {
  display: none;
}

#level-test-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: var(--black);
  transition: width 220ms ease;
}

.level-card-stack {
  position: relative;
  min-height: 606px;
  perspective: 1200px;
}

.level-fixed-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 92px;
  left: 0;
  z-index: 12;
  pointer-events: none;
}

.level-fixed-controls .card-answer-control {
  pointer-events: auto;
}

.test-swipe-card,
.test-complete-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 22px 54px rgba(20, 18, 15, 0.14);
}

.test-swipe-card {
  display: flex;
  flex-direction: column;
  touch-action: none;
  cursor: grab;
  transition: transform 260ms var(--level-motion-ease), opacity 220ms ease;
  will-change: transform, opacity;
}

.test-swipe-card[data-depth="0"] {
  z-index: 3;
}

.level-test-panel:not(.has-started) .test-swipe-card.is-active {
  animation: levelSwipeDemo 7.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.test-swipe-card.is-dragging {
  animation: none;
  transition: none;
  cursor: grabbing;
}

.test-swipe-card.is-exiting {
  pointer-events: none;
  transition: transform 460ms var(--level-motion-ease), opacity 380ms ease;
}

.test-swipe-card[data-depth="1"] {
  z-index: 2;
  transform: translateY(12px) scale(0.96);
  opacity: 1;
  pointer-events: none;
}

.test-swipe-card[data-depth="2"] {
  z-index: 1;
  transform: translateY(24px) scale(0.92);
  opacity: 1;
  pointer-events: none;
}

.level-card-stack.is-transitioning .test-swipe-card:not(.is-active) {
  opacity: 0 !important;
  transition: none !important;
}

.test-image-area {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
}

.card-answer-control,
.swipe-cue {
  position: absolute;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.card-answer-control {
  z-index: 7;
  min-width: 82px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 9px 18px rgba(16, 16, 16, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.card-answer-control:hover,
.card-answer-control:focus-visible {
  box-shadow: 0 12px 24px rgba(16, 16, 16, 0.13);
}

.card-answer-control span,
.swipe-cue span {
  font-size: 19px;
  line-height: 1;
}

.card-answer-yes {
  right: 10px;
  top: 50%;
  border-color: #116f43;
  color: #116f43;
  transform: translate(18%, -50%);
}

.card-answer-yes:hover,
.card-answer-yes:focus-visible {
  transform: translate(18%, -50%) scale(1.04);
}

.card-answer-no {
  left: 10px;
  top: 50%;
  border-color: #b3332d;
  color: #b3332d;
  transform: translate(-18%, -50%);
}

.card-answer-no:hover,
.card-answer-no:focus-visible {
  transform: translate(-18%, -50%) scale(1.04);
}

.card-answer-unsure {
  top: 12px;
  left: 50%;
  border-color: #9a907f;
  color: var(--black);
  transform: translateX(-50%);
}

.card-answer-unsure:hover,
.card-answer-unsure:focus-visible {
  transform: translateX(-50%) scale(1.04);
}

.swipe-cue {
  top: 18px;
  z-index: 8;
  border-color: var(--black);
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
}

.swipe-cue-yes {
  right: 18px;
}

.swipe-cue-no {
  left: 18px;
}

.swipe-cue-unsure {
  left: 50%;
  transform: translateX(-50%) scale(0.92);
}

.test-swipe-card.swipe-right .swipe-cue-yes,
.test-swipe-card.swipe-left .swipe-cue-no {
  opacity: 1;
  transform: scale(1);
}

.test-swipe-card.swipe-up .swipe-cue-unsure {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.test-image-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}

.gate-photo-placeholder {
  width: min(72%, 320px);
  height: 290px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,241,235,0.8));
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.test-card-copy {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 20px 18px;
}

.test-card-copy h2,
.test-complete-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.test-card-copy p:not(.level-label),
.test-complete-card p:not(.panel-kicker),
.level-result p:not(.panel-kicker) {
  color: var(--muted);
}

.test-card-copy p:not(.level-label) {
  margin: 12px 0 0;
  font-size: 15px;
}

.test-complete-card {
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.level-test-panel.is-complete .level-card-stack {
  min-height: 0;
}

.level-test-panel.is-complete .test-complete-card {
  position: relative;
  inset: auto;
  min-height: 430px;
  overflow: visible;
}

.test-complete-card p:not(.panel-kicker) {
  max-width: 360px;
}

.test-result-copy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.test-result-copy p {
  margin: 0;
}

.test-result-card {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.test-result-card h2,
.test-result-card .panel-kicker {
  color: var(--white);
}

.test-result-card p:not(.panel-kicker) {
  color: rgba(255, 255, 255, 0.74);
}

.test-result-actions {
  width: 100%;
  margin-top: 24px;
}

.test-result-card .button-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.test-result-card .button-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
}

@media (min-width: 761px) {
  .test-page .level-test {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    gap: 16px;
    width: min(640px, calc(100% - 40px));
    padding: 30px 0 76px;
  }

  .test-page .level-test-copy {
    position: static;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .test-page .level-test-copy h1 {
    max-width: 640px;
    font-size: clamp(44px, 4.1vw, 54px);
  }

  .test-page .level-test-copy p:not(.eyebrow) {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
  }

  .test-page .level-test-lead {
    margin-top: 8px;
  }

  .test-page .level-test-panel {
    width: min(500px, 100%);
    justify-self: center;
  }

  .test-page .level-card-stack {
    min-height: 0;
  }

  .test-page .test-swipe-card.is-active {
    position: relative;
    inset: auto;
  }

  .test-page .test-swipe-card .test-image-area {
    flex-shrink: 0;
  }
}

@keyframes levelSwipeDemo {
  0%, 9%, 24%, 39%, 54%, 100% {
    transform: translate(0, 0) rotate(0);
  }

  14% {
    transform: translateX(16px) rotate(2.2deg);
  }

  29% {
    transform: translateY(-16px) scale(0.99);
  }

  44% {
    transform: translateX(-16px) rotate(-2.2deg);
  }
}

.level-result {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--black);
  color: var(--white);
}

.level-result h2,
.level-result .panel-kicker {
  color: var(--white);
}

.level-result p:not(.panel-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.level-result .button-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.level-result .button-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.level-result .button-primary:hover,
.level-result .button-secondary:hover {
  transform: translateY(-1px);
}

.class-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.class-card {
  min-height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  scroll-snap-align: start;
}

.class-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f0ea 100%);
}

.class-card div {
  padding: 18px;
}

.class-card h3 {
  font-size: 25px;
}

.class-card p {
  margin: 8px 0 0;
}

.reviews {
  padding-bottom: 8px;
}

.review-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
}

.round-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.round-button:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

.review-stage {
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,241,235,0.72)),
    var(--paper);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.review-stage img {
  width: min(360px, 92%);
  border-radius: 4px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.review-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.review-dots button {
  width: 34px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #d1c9ba;
  cursor: pointer;
}

.review-dots button.active {
  background: var(--black);
}

.plan-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
}

.plan-grid {
  display: flex;
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 2px 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.plan-grid-natural-height {
  align-items: flex-start;
}

.plan-card {
  flex: 0 0 min(355px, 92%);
  display: flex;
  flex-direction: column;
  min-height: 760px;
  scroll-snap-align: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(20, 18, 15, 0.05);
}

.plan-card.featured {
  border-color: var(--black);
  box-shadow: var(--shadow-soft);
}

.plan-card h3 {
  min-height: 68px;
}

.plan-copy {
  min-height: 182px;
  margin: 18px 0 0;
  font-size: 15px;
}

.feature-title {
  min-height: 58px;
  margin: 18px 0 0;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 11px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  color: #25221d;
  font-size: 15px;
  line-height: 1.45;
}

.plan-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(-45deg);
}

.plan-footer {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.plan-footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  text-align: center;
}

.plan-footer .button {
  width: 100%;
}

.subscription-note {
  text-align: center;
  margin: 22px auto 0;
}

.plan-card.train-or-pay {
  border-color: var(--black);
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.train-or-pay-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.train-or-pay-heading .plan-label {
  margin: 0;
}

.train-or-pay-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.train-or-pay h3,
.train-or-pay .plan-copy,
.train-or-pay .feature-title {
  min-height: 0;
}

.train-or-pay li.train-or-pay-reward {
  margin-top: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.train-or-pay-reward strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  line-height: 1.1;
}

.train-or-pay li.train-or-pay-scope {
  padding-left: 0;
  font-weight: 600;
}

.train-or-pay-reward::before,
.train-or-pay-scope::before {
  display: none;
}

.train-or-pay-billing {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.checkout-dialog[data-plan="train-or-pay"] .train-or-pay-billing {
  margin-bottom: 20px;
}

.train-or-pay-promo-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.train-or-pay-promo-label .eyebrow {
  margin: 0;
}

.train-or-pay-promo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.train-or-pay-promo-lead {
  max-width: 440px;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.train-or-pay-promo-copy {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.train-or-pay-promo-offer {
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.train-or-pay-promo-reward {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.train-or-pay-promo-reward strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.train-or-pay-promo-condition {
  max-width: 450px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.train-or-pay-promo-credit {
  margin: 30px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.train-or-pay-promo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.train-or-pay-promo-scope {
  max-width: 510px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.train-or-pay-promo-actions .button {
  flex-shrink: 0;
  min-height: 52px;
}

@media (max-width: 760px) {
  .train-or-pay-promo-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .train-or-pay-promo-lead {
    font-size: 20px;
  }

  .train-or-pay-promo-offer {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .train-or-pay-promo-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
}

summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: 0 0 auto;
  font-weight: 600;
}

details[open] summary::after {
  content: "-";
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  max-width: 820px;
}

.contact-panel {
  margin-top: 88px;
  margin-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
}

.contact-panel h2,
.contact-panel .eyebrow {
  color: var(--white);
}

.contact-panel .button {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.footer {
  width: min(1160px, calc(100% - 40px));
  min-height: 92px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bottom-bar {
  display: none;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(10, 10, 10, 0.54);
  backdrop-filter: blur(8px);
}

.checkout-card,
.review-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.checkout-card h2 {
  padding-right: 54px;
}

.checkout-price {
  margin: 6px 0 20px;
  font-size: 24px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #28241f;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fffdfa;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.terms-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
  font-weight: 600;
}

.terms-row input {
  min-height: auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--black);
}

.terms-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.review-modal {
  width: min(560px, calc(100vw - 28px));
}

.review-modal h2 {
  margin-bottom: 18px;
  padding-right: 54px;
}

.review-modal img {
  width: 100%;
  border-radius: 4px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 40px;
  }

  .path-grid,
  .feedback-grid,
  .bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-layout,
  .motivation-panel {
    grid-template-columns: 1fr;
  }

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

  .plan-card {
    flex-basis: min(355px, 42%);
    min-width: 315px;
  }

  .plan-card {
    min-height: 650px;
  }

  .plan-copy,
  .feature-title {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  body {
    padding-bottom: 76px;
    overflow-x: hidden;
  }

  body.quiz-page,
  body.test-page {
    padding-bottom: 0;
  }

  body.test-page {
    --header-h: 56px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-mark {
    gap: 8px;
  }

  .brand-symbol {
    width: 60px;
    height: 36px;
  }

  .brand-symbol img {
    width: 60px;
    height: 36px;
  }

  .brand-text {
    display: inline;
    font-size: 17px;
  }

  .header-cta {
    display: none;
  }

  .test-page .header-cta {
    min-height: 40px;
    display: inline-flex;
    padding: 0 14px;
    font-size: 13px;
  }

  .pathway,
  .system-block,
  .levels,
  .level-test,
  .quiz,
  .library,
  .feedback-block,
  .reviews,
  .motivation,
  .formats,
  .faq,
  .contact-panel,
  .footer,
  .action-strip {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero {
    width: 100%;
    min-height: auto;
    display: block;
    background: #050505;
  }

  .hero-photo {
    position: relative;
    height: 500px;
    z-index: 0;
  }

  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.16) 64%, #050505 100%);
  }

  .hero-photo img {
    object-fit: cover;
    object-position: 52% 40%;
  }

  .hero-poster-copy {
    position: absolute;
    top: 38px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--white);
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
  }

  .hero-poster-online {
    margin: 0;
    color: transparent;
    font-size: 32px;
    font-weight: 900;
    line-height: 0.9;
    -webkit-text-stroke: 1.1px rgba(255, 255, 255, 0.92);
  }

  .hero-poster-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.05;
  }

  .hero-poster-title span {
    color: #f4efe6;
  }

  .hero-poster-tagline {
    max-width: 300px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
  }

  .hero-copy {
    width: min(100% - 24px, 560px);
    padding: 24px 0 34px;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  h1 {
    max-width: 340px;
    font-size: 40px;
    line-height: 0.98;
  }

  .hero-lead,
  .hero-support {
    max-width: 336px;
  }

  h2 {
    font-size: 31px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: 26px;
  }

  .hero-lead {
    margin-top: 0;
    font-size: 18px;
  }

  .hero-support {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    display: none;
  }

  .action-strip {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 58px 0 22px;
  }

  .path-grid,
  .system-layout,
  .level-test,
  .levels-grid,
  .feedback-grid,
  .motivation-panel,
  .bonus-grid,
  .quiz,
  .quiz-card {
    grid-template-columns: 1fr;
  }

  .path-card,
  .level-card,
  .feedback-card {
    min-height: auto;
    width: 100%;
  }

  .system-copy,
  .level-note,
  .motivation-panel {
    padding: 22px;
  }

  .levels-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .levels-intro .button {
    width: 100%;
  }

  .level-card h3 {
    min-height: auto;
  }

  .level-test {
    gap: 16px;
    padding: 22px 0 calc(84px + env(safe-area-inset-bottom));
  }

  .test-page .level-test {
    gap: 8px;
    padding-top: 4px;
  }

  .level-test-copy,
  .level-result {
    position: static;
  }

  .level-test-copy h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1;
    overflow-wrap: break-word;
  }

  .level-test-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .test-page .level-test-copy .eyebrow {
    margin-bottom: 6px;
  }

  .test-page .level-test-lead {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
  }

  .test-page .level-test-steps {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .test-page .level-test-steps::-webkit-scrollbar {
    display: none;
  }

  .test-page .level-test-steps span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .level-test-panel {
    padding: 12px;
  }

  .test-page .level-test-panel {
    padding: 8px;
  }

  .test-page .level-test-progress {
    margin-bottom: 6px;
  }

  .test-page .level-test-panel .quiz-nav {
    margin-top: 30px;
  }

  .level-card-stack {
    min-height: clamp(346px, calc(100vw + 26px), 528px);
  }

  .test-page .level-card-stack {
    min-height: clamp(330px, calc(100vw + 8px), 506px);
  }

  .level-fixed-controls {
    bottom: 58px;
  }

  .test-image-area {
    min-height: 0;
  }

  .test-image-area img {
    height: 100%;
  }

  .card-answer-control {
    min-width: 74px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .card-answer-yes {
    right: 8px;
    transform: translate(12%, -50%);
  }

  .card-answer-yes:hover,
  .card-answer-yes:focus-visible {
    transform: translate(12%, -50%) scale(1.04);
  }

  .card-answer-no {
    left: 8px;
    transform: translate(-12%, -50%);
  }

  .card-answer-no:hover,
  .card-answer-no:focus-visible {
    transform: translate(-12%, -50%) scale(1.04);
  }

  .card-answer-unsure {
    top: 10px;
  }

  .gate-photo-placeholder {
    height: 245px;
  }

  .test-card-copy {
    padding: 8px 18px 10px;
  }

  .test-card-copy h2,
  .test-complete-card h2 {
    font-size: 28px;
  }

  .level-test-panel.is-complete .test-complete-card {
    min-height: auto;
    padding: 24px;
  }

  .level-result {
    min-height: auto;
  }

  .flow-item {
    grid-template-columns: 58px 1fr;
  }

  .flow-item span {
    width: 52px;
    height: 52px;
    font-size: 14px;
  }

  .quiz {
    margin-top: 60px;
    padding: 24px 0 110px;
    background: transparent;
  }

  .class-rail {
    grid-auto-columns: 82%;
  }

  .review-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }

  .review-stage {
    min-height: 340px;
  }

  .review-stage img {
    width: min(260px, 94%);
  }

  .plan-carousel {
    display: block;
  }

  .plan-carousel > .round-button {
    display: none;
  }

  .plan-card {
    flex-basis: 92%;
    min-width: 0;
    min-height: auto;
  }

  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-panel .button {
    width: 100%;
  }

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

  .bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(16, 16, 16, 0.12);
    border-radius: 999px;
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 34px rgba(16, 16, 16, 0.14);
  }

  .bottom-bar a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 800;
  }

  .bottom-bar a:first-child {
    background: var(--paper-soft);
  }

  .bottom-bar a:last-child {
    background: var(--black);
    color: var(--white);
  }

  .quiz-page .bottom-bar,
  .test-page .bottom-bar {
    display: none;
  }
}

@media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-h: 60px;
  }

  body {
    padding-bottom: 0;
  }

  .site-header {
    height: var(--header-h);
    padding: 0 18px;
  }

  .brand-text {
    display: inline;
  }

  .header-cta {
    min-height: 42px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    display: grid;
    align-items: center;
  }

  .hero-photo {
    position: absolute;
    height: auto;
  }

  .hero-photo::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.12) 76%, rgba(0, 0, 0, 0.42) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.44) 100%);
  }

  .hero-photo img {
    object-fit: contain;
    object-position: 76% 50%;
  }

  .hero-copy {
    width: min(100% - 36px, 760px);
    padding: 18px 0 22px;
  }

  h1 {
    max-width: 420px;
    font-size: 46px;
    line-height: 0.96;
  }

  .hero-lead {
    max-width: 430px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.35;
  }

  .hero-support {
    max-width: 430px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .action-strip {
    margin-top: 18px;
  }

  .test-page .level-test {
    grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
    gap: 12px;
    width: min(820px, calc(100% - 24px));
    padding: 10px 0 76px;
  }

  .test-page .level-test-copy {
    position: static;
  }

  .test-page .level-test-copy h1 {
    font-size: 36px;
  }

  .test-page .level-test-steps {
    gap: 6px;
    margin-top: 10px;
  }

  .test-page .level-test-steps span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .test-page .level-test-panel {
    padding: 8px;
  }

  .test-page .level-test-progress {
    margin-bottom: 6px;
  }

  .test-page .level-test-panel .quiz-nav {
    position: fixed;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    width: min(330px, calc(42vw - 20px));
    z-index: 80;
    margin-top: 0;
  }
}

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

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

/* Level Test: transparent button finish */
.test-page .header-cta {
  background: transparent;
  color: var(--black);
  border-color: rgba(16, 16, 16, 0.56);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.test-page .header-cta:hover,
.test-page .header-cta:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  border-color: var(--black);
}

.test-page .card-answer-control {
  background: rgba(255, 255, 255, 0.18);
  border-color: currentColor;
  box-shadow: 0 10px 26px rgba(16, 16, 16, 0.08);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.test-page .card-answer-control:hover,
.test-page .card-answer-control:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 13px 30px rgba(16, 16, 16, 0.12);
}

.test-page .quiz-nav .button {
  background: transparent;
  border-color: rgba(16, 16, 16, 0.48);
  box-shadow: none;
}

.test-page .quiz-nav .button:hover,
.test-page .quiz-nav .button:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  border-color: var(--black);
}

.test-page .test-result-card .button-primary,
.test-page .test-result-card .button-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.test-page .test-result-card .button-primary:hover,
.test-page .test-result-card .button-primary:focus-visible,
.test-page .test-result-card .button-secondary:hover,
.test-page .test-result-card .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Level Test brand emphasis. */
@keyframes level-brand-opacity {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes level-brand-symbol {
  0% { transform: translateY(4px) scale(0.95) rotate(0); }
  65% { transform: translateY(0) scale(1.025) rotate(0.8deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes level-brand-text {
  from { transform: translateY(4px) scale(0.95); }
  to { transform: translateY(0) scale(1); }
}

.brand-mark {
  animation: level-brand-opacity 800ms ease-out both;
  transition: transform 240ms ease-out;
}

.brand-mark > .brand-symbol {
  animation: level-brand-symbol 800ms ease-out both;
}

.brand-mark > .brand-text {
  animation: level-brand-text 800ms ease-out both;
}

.brand-mark:focus-visible {
  transform: translateY(-2px) scale(1.025);
}

@media (hover: hover) and (pointer: fine) {
  .brand-mark:hover {
    transform: translateY(-2px) scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-mark > .brand-symbol,
  .brand-mark > .brand-text {
    animation: none;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .brand-mark:hover,
  .brand-mark:focus-visible {
    transform: none;
  }
}
