/* ==========================================================================
   ewando — landing page styles
   1. Tokens
   2. Base & resets
   3. Utilities (language, typography, mono labels)
   4. Layout primitives (site, section, grid)
   5. Components (nav, hero, cards, timeline, pricing, faq, footer)
   6. Overlay: cookie banner, modal, form
   7. Responsive: <=1100px tablet, <=900px small tablet, <=560px phone
   ========================================================================== */

/* 1. Tokens ============================================================== */
:root {
  --ink: #0A0A0A;
  --ink-soft: #333333;
  --ink-muted: #444444;
  --ink-quiet: #6E6E6E;
  --ink-faint: #8A8A8A;
  --ink-ghost: #9A9A9A;

  --paper: #FFFFFF;
  --paper-alt: #FAFAFA;
  --paper-tint: #F6F6F6;
  --rule: #0A0A0A;
  --rule-soft: #ECECEC;
  --rule-faint: #E4E4E4;

  --accent: #C8F24E;
  --accent-ink: #3E4A16;
  --accent-check: #5A6B22;
  --on-dark: #E4E4E4;
  --danger: #B42318;

  --font-sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: 80px;
  --gutter-lg: 88px;
  --page: 1440px;
  --speed: .15s;
}

/* 2. Base & resets ======================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

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

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

img, svg, video, iframe { max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }

[id] { scroll-margin-top: 96px; }

/* 3. Utilities =========================================================== */
.de-b, .en-b { display: block; }
.de-i, .en-i { display: inline; }
html[data-lang='en'] .de-b,
html[data-lang='en'] .de-i { display: none; }
html[data-lang='de'] .en-b,
html[data-lang='de'] .en-i { display: none; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-quiet);
}
.mono--tight { letter-spacing: .1em; }
.mono--sm { font-size: 10px; letter-spacing: .16em; }

.body { font-size: 15px; line-height: 1.7; color: var(--ink-muted); }
.body--lg { font-size: 16px; line-height: 1.65; }
.body--intro { max-width: 70ch; margin-top: 12px; }
.body--spaced { margin-bottom: 32px; }
.body--wide { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }

.h2 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.h4 { font-size: 21px; font-weight: 700; }

.mark {
  background: var(--accent);
  padding: 0 8px;
  display: inline-block;
  line-height: 1;
}

/* 4. Layout primitives =================================================== */
.site {
  max-width: var(--page);
  margin: 0 auto;
  border-left: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  background: var(--paper);
}

.section { border-bottom: 1px solid var(--rule); }
.section--pad { padding: var(--gutter-lg) var(--gutter); }
.section--alt { background: var(--paper-alt); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  padding: 30px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section__head--plain { padding: 0 0 44px; border-bottom: 0; }
.section__head--tight { padding-bottom: 30px; }
.section__head .mono { white-space: nowrap; }

.grid { display: grid; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; }
.grid--aside { grid-template-columns: 280px 1fr; }
.grid--portrait { grid-template-columns: 360px 1fr; }
.grid--bias { grid-template-columns: 1.05fr .95fr; }

.rule-r { border-right: 1px solid var(--rule); }
.rule-r-soft { border-right: 1px solid var(--rule-soft); }
.rule-l-soft { border-left: 1px solid var(--rule-soft); }
.rule-b-soft { border-bottom: 1px solid var(--rule-soft); }

.cell { padding: 52px 44px; }
.cell--first { padding-left: var(--gutter); }
.cell--tall { padding-top: 72px; padding-bottom: 72px; }
.cell--mid { padding-top: 60px; padding-bottom: 60px; }
.cell--short { padding-top: 56px; padding-bottom: 56px; }
.cell--last { padding-right: var(--gutter); }

/* 5. Components ========================================================== */

/* -- Buttons -- */
.btnrow {
  display: flex;
  border: 1px solid var(--rule);
  width: fit-content;
  font-size: 15px;
  font-weight: 600;
}
.btnrow--stack { flex-direction: column; }
.btnrow--stack .btn + .btn { border-top: 1px solid var(--rule); }
.btnrow--onaccent { background: var(--paper); font-size: 14px; }

.btn {
  padding: 19px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
  text-align: center;
}
.btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); text-decoration: none; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 14px 24px; font-size: 14px; }
.btn--md { padding: 15px 26px; font-size: 14px; }
.btn--divide { border-left: 1px solid var(--rule); }
.btn--block { display: block; width: 100%; padding: 17px; margin-top: 32px; }
.btn--outline-accent { border: 1px solid var(--accent); color: var(--accent); padding: 16px; }
.btn--invert { background: var(--accent); color: var(--ink); }
.btn--invert:hover { background: var(--ink); color: var(--accent); }

/* -- Software walkthrough (modal) -- */
.walk { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.walk__step { padding: 26px 0; border-bottom: 1px solid var(--rule-soft); }
.walk__step:last-child { border-bottom: 0; }
.walk__shot { max-width: 100%; }
.walk__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-faint); }
.walk__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 6px; }
.walk__text { font-size: 14px; line-height: 1.65; color: var(--ink-muted); }
.walk__shot { margin: 14px 0 0; border: 1px solid var(--rule); background: var(--paper-alt); }
.walk__shot img { display: block; max-width: 100%; height: auto; }
.walk__summary {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 26px;
  background: var(--accent);
  border: 1px solid var(--rule);
}
.walk__summary .walk__no { color: var(--accent-ink); flex: 0 0 auto; }
.walk__summary .walk__text { color: var(--ink); font-size: 15px; }

/* -- Nav -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .2em; }
.nav__mark { width: 16px; height: 16px; background: var(--accent); border: 1px solid var(--rule); }
.nav__menu { display: flex; align-items: center; gap: 24px; color: #5A5A5A; }
.nav__link:hover { color: var(--ink); }
.nav__login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  transition: background var(--speed), color var(--speed);
}
.nav__login:hover { background: var(--ink); color: var(--paper); }

.langswitch { display: flex; border: 1px solid var(--rule); flex: 0 0 auto; }
.langtab {
  padding: 4px 9px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
}
.langtab.is-on { background: var(--ink); color: var(--accent); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--speed), opacity var(--speed);
}
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Hero -- */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; border-bottom: 1px solid var(--rule); }
.hero__body {
  padding: 96px 72px 88px var(--gutter);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-quiet);
}
.dot {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  background: var(--accent);
  border: 1px solid var(--rule);
  animation: pulsedot 2.4s ease-in-out infinite;
}
.hero__title {
  font-size: 68px;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.038em;
  margin-top: 32px;
}
.hero__lead { margin-top: 34px; }
.hero__credential {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__credential::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 1px solid var(--ink);
  flex: 0 0 auto;
}
.hero__actions { margin-top: 42px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-quiet);
  line-height: 1.6;
}
.stat__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  background: linear-gradient(#FCFCFC, var(--paper));
}
.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 32px 36px 8px;
}
.hero__notes--below { padding: 8px 36px 20px; }
.note {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px 18px;
  animation: floaty 8s ease-in-out infinite;
}
.note--accent { background: var(--accent); animation-duration: 10s; }
.note--accent .note__label { color: var(--accent-ink); }
.note__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-quiet); }
.note__value { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.note__value--sm { font-size: 15px; margin-top: 4px; }
.note__sub { font-size: 12px; font-weight: 500; color: var(--ink-quiet); }

.hero__diagram { flex: 1; display: block; width: 100%; min-height: 0; }
.hero__diagram .dash { stroke-dasharray: 4 5; animation: dash 7s linear infinite; }
.hero__diagram .dash-1 { animation-duration: 6s; }
.hero__diagram .dash-2 { animation-duration: 7s; }
.hero__diagram .dash-3 { animation-duration: 8s; }
.hero__diagram .dash-4 { animation-duration: 9s; }
.hero__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-ghost);
  padding: 0 36px 32px;
}

/* -- Numbered service cells -- */
.num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 500;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--ink);
}
.cell .h3 { margin: 22px 0 12px; }

/* -- Curriculum timeline -- */
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--rule); }
.tl { padding: 34px 40px 40px; }
.tl:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
.tl--first { padding-left: 0; }
.tl--last { padding-right: 0; }
.tl__marker { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.tl__dot { width: 18px; height: 18px; background: var(--ink); flex: 0 0 auto; }
.tl__dot--accent { background: var(--accent); border: 2px solid var(--ink); }
.tl__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  background: var(--paper);
  padding-right: 8px;
}
.tl__title { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.tl__spark { width: 100%; max-width: 220px; margin-top: 24px; }

.module-builder {
  display: block;
}
.module-unit-note {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-left: 8px solid var(--accent);
  background: var(--paper-alt);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.module-builder__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.module-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 5px 4px 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}
.module-cart-trigger:hover { background: var(--accent); color: var(--ink); }
.module-cart-trigger svg { width: 18px; height: 18px; }
.module-cart-trigger__count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 264px;
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
  transition: background var(--speed), color var(--speed), box-shadow var(--speed);
}
.module-card:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.module-card:has(.module-card__input:checked),
.module-card.is-selected { background: var(--ink); color: var(--paper); }
.module-card__input {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 2;
}
.module-card__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.module-card__toggle { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.module-card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  max-width: calc(100% - 38px);
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.module-card__title {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}
.module-card__copy {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.module-card__outcome {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--accent-ink);
}
.module-card:has(.module-card__input:checked) .module-card__meta,
.module-card:has(.module-card__input:checked) .module-card__outcome,
.module-card.is-selected .module-card__meta,
.module-card.is-selected .module-card__outcome { color: var(--accent); }
.module-card:has(.module-card__input:checked) .module-card__copy,
.module-card.is-selected .module-card__copy { color: var(--on-dark); }
.module-card__price {
  width: fit-content;
  margin-top: 18px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.module-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  border-left: 1px solid var(--rule);
  background: var(--paper);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms;
}
.module-cart.is-open { transform: translateX(0); visibility: visible; }
.module-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 10, .56);
}
.module-cart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--rule);
}
.module-cart__title { margin-top: 8px; font-size: 25px; line-height: 1.15; }
.module-cart__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}
.module-cart__close:hover { background: var(--accent); }
.module-cart__close svg { width: 22px; height: 22px; }
.module-cart__body { flex: 1 1 auto; overflow-y: auto; padding: 0 28px; }
.module-cart__empty { padding: 28px 0; color: var(--ink-muted); }
.module-cart__items { list-style: none; }
.module-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.module-cart__item-meta { display: block; margin-bottom: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-quiet); }
.module-cart__item-title { font-size: 14px; line-height: 1.35; font-weight: 600; }
.module-cart__remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}
.module-cart__remove:hover { background: var(--accent); }
.module-cart__remove svg { width: 17px; height: 17px; }
.module-cart__footer { padding: 22px 28px 26px; border-top: 1px solid var(--rule); background: var(--paper-alt); }
.module-cart__summary p { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.module-cart__summary small { display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-quiet); }
.module-cart__price {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}
.module-cart__cta { margin-top: 24px; }
.module-cart__status { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.module-cart__secure { margin-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-quiet); }
.module-cart__secure > span[aria-hidden] { color: var(--accent-check); }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn:disabled:hover { background: var(--ink); color: var(--paper); }

.responsibility { display: grid; grid-template-columns: .72fr 1.28fr; }
.responsibility__head { padding: 64px var(--gutter); border-right: 1px solid var(--rule); background: var(--accent); }
.responsibility__head .h2 { margin-top: 20px; }
.responsibility__body { padding: 64px var(--gutter); }
.responsibility__body .body + .body { margin-top: 20px; }
.responsibility__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.responsibility__links a { text-decoration: underline; text-underline-offset: 4px; }
.responsibility__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--ink-quiet); }

.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.check { display: flex; gap: 10px; }
.check::before { content: '✓'; color: var(--accent-check); flex: 0 0 auto; }
.check--dark::before { color: var(--accent); }

/* -- Operations list -- */
.ops__lead { margin: 18px 0 14px; }
.ops { border-top: 1px solid var(--rule-soft); margin-top: 26px; }
.ops__item { padding: 24px 0; border-bottom: 1px solid var(--rule-soft); }
.ops__item:last-child { border-bottom: 0; }
.ops__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.figure { padding: 72px var(--gutter) 72px 56px; background: var(--paper-alt); }
.figure > svg { display: block; width: 100%; }
.figure__caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-ghost); margin-top: 20px; }

/* -- Support grid -- */
.support { display: flex; gap: 26px; padding: 52px 48px; }
.support .h4 { margin-bottom: 10px; }
.icon { width: 56px; flex: 0 0 auto; }

/* -- Audience / tutor -- */
.tile { padding: 48px 40px; }
.tile .h4 { margin: 14px 0 10px; }
.aside__title { margin-top: 16px; }
.portrait { margin: 0; position: relative; min-height: 420px; background: var(--paper-tint); border-right: 1px solid var(--rule); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; display: block; }
.tutor { padding: 72px var(--gutter); }
.tutor__name { font-size: 42px; font-weight: 700; letter-spacing: -.035em; margin: 18px 0 10px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  background: var(--accent);
  display: inline-block;
  padding: 5px 11px;
}
.tutor__bio { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 58ch; margin: 28px 0 20px; }
.tutor__facts { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 30px; }

/* -- Pricing -- */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--rule); background: var(--paper); }
.price { padding: 44px; }
.price:nth-child(n+3) { border-top: 1px solid var(--rule); }
.price--divide { border-right: 1px solid var(--rule); }
.price--dark { background: var(--ink); color: var(--paper); }
.price--dark .price__meta, .price--dark .price__unit { color: var(--ink-faint); }
.price--dark .checks { color: var(--on-dark); }
.price__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.price__title { font-size: 23px; font-weight: 700; }
.badge { font-family: var(--font-mono); font-size: 11px; background: var(--accent); color: var(--ink); padding: 4px 10px; white-space: nowrap; }
.price__figure { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 4px; }
.price__value { font-size: 46px; font-weight: 700; letter-spacing: -.04em; }
.price__value--accent { color: var(--accent); }
.price__unit { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.price__meta { font-size: 14px; color: var(--ink-quiet); margin-bottom: 26px; }
.price .checks { font-size: 15px; gap: 12px; }

.prices--compare {
  display: flex;
  flex-direction: column;
  border-left: 0;
  border-right: 0;
}
.prices--compare .price {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(130px, .55fr) minmax(260px, 1.35fr) minmax(130px, auto);
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-right: 0;
  border-top: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink);
}
.prices--compare .price:first-child { border-top: 0; }
.prices--compare .price--dark .price__meta,
.prices--compare .price--dark .price__unit,
.prices--compare .price--dark .checks { color: var(--ink-muted); }
.prices--compare .price__figure { margin: 0; }
.prices--compare .price__value { font-size: 34px; }
.prices--compare .price__value--accent { color: var(--ink); }
.prices--compare .price__meta { margin-bottom: 0; }
.prices--compare .checks { gap: 7px; }
.prices--compare .price .btn--block { margin-top: 0; width: 100%; white-space: nowrap; }
.prices--compare .price--dark .btn--invert { background: var(--ink); color: var(--paper); }
.prices--compare .price--dark .btn--invert:hover { background: var(--accent); color: var(--ink); }

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px 40px;
  background: var(--accent);
  border: 1px solid var(--rule);
  border-top: 0;
}
.cta-bar__copy { max-width: 760px; }
.cta-bar__title { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.cta-bar__text { font-size: 16px; line-height: 1.65; font-weight: 500; color: var(--accent-ink); max-width: 72ch; }

/* -- FAQ -- */
.faq__item { border-top: 1px solid var(--rule-soft); padding: 24px 0; }
.faq__item:first-of-type { border-top: 1px solid var(--rule); }
.faq__item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 19px;
  font-weight: 600;
}
.faq__sign { font-family: var(--font-mono); color: var(--ink-faint); }
.faq__item[open] .faq__sign::after { content: '[−]'; }
.faq__item:not([open]) .faq__sign::after { content: '[+]'; }
.faq__a { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin-top: 14px; max-width: 78ch; }

/* -- Footer -- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 44px var(--gutter) 52px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer__brand { letter-spacing: .2em; }
.footer__links { display: flex; gap: 24px; color: var(--ink-quiet); margin-left: auto; }

/* 6. Overlay ============================================================= */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--accent);
}
.cookie__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cookie__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.cookie__text { font-size: 15px; line-height: 1.6; color: var(--on-dark); margin-top: 10px; max-width: 62ch; }
.cookie__text a { color: var(--accent); }
.cookie__actions { display: flex; border: 1px solid var(--paper); font-size: 14px; font-weight: 600; flex: 0 0 auto; }
.cookie__actions .btn { color: var(--paper); }
.cookie__actions .btn:hover { color: var(--ink); }
.cookie__actions .btn--invert { color: var(--ink); }
.cookie__actions .btn--invert:hover { color: var(--accent); }
.cookie__actions .btn--divide { border-left-color: var(--paper); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.modal {
  background: var(--paper);
  border: 1px solid var(--rule);
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  overflow: auto;
  box-shadow: 0 40px 90px -40px rgba(10, 10, 10, .6);
}
.modal__head {
  position: sticky;
  top: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
}
.modal__close {
  border: 1px solid var(--rule);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  transition: background var(--speed), color var(--speed);
}
.modal__close:hover { background: var(--accent); }
.modal__body { padding: 40px; }
.modal__title { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 10px; }
.modal__title--doc { margin-bottom: 28px; }
.modal__text--last { margin-bottom: 0; }
.modal__actions { margin-top: 28px; }
.modal__intro { font-size: 15px; line-height: 1.65; color: var(--ink-quiet); margin-bottom: 30px; max-width: 60ch; }
.modal__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-quiet); }
.modal__def { font-size: 16px; line-height: 1.8; margin: 10px 0 28px; }
.modal__text { font-size: 15px; line-height: 1.75; color: var(--ink-muted); margin: 10px 0 28px; max-width: 70ch; }

.pane { display: none; }
.pane.is-on { display: block; }
span.pane.is-on { display: inline; }
.login-prep__title { margin-top: 10px; }
.login-prep__status { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--rule); background: var(--paper-alt); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; }
.login-prep__close { margin-top: 24px; }

/* -- Mid-market example (modal) -- */
.example {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border: 1px solid var(--rule);
  margin-top: 8px;
}
.example__summary {
  padding: 28px;
  border-right: 1px solid var(--rule);
  background: var(--paper-alt);
}
.example__price { margin: 18px 0 24px; }
.example__price-value {
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.example__price-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-quiet);
}
.example__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.example__metrics div { padding: 16px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.example__metrics div:nth-child(2n) { border-right: 0; }
.example__metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.example__metrics strong { display: block; font-size: 24px; line-height: 1; }
.example__metrics span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-quiet); }
.example__note { margin-top: 22px; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.example__map { padding: 28px; }
.example__node {
  border: 1px solid var(--rule);
  padding: 18px 20px;
  margin-bottom: 20px;
  background: var(--accent);
}
.example__node-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.example__node strong { display: block; font-size: 24px; line-height: 1.1; }
.example__tracks { display: grid; gap: 12px; }
.example__track {
  border: 1px solid var(--rule-soft);
  padding: 18px;
  background: var(--paper);
}
.example__track-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.example__track-head > span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  font-family: var(--font-mono);
  font-weight: 600;
}
.example__track--social .example__track-head > span { background: var(--accent); }
.example__track--image .example__track-head > span { background: var(--ink); color: var(--accent); }
.example__track--custom .example__track-head > span { background: var(--paper); }
.example__track h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.example__track p { margin: 8px 0 14px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.example__bar {
  height: 12px;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
}
.example__bar span { display: block; height: 100%; background: var(--accent); border-right: 1px solid var(--rule); }
.example__track--image .example__bar span { background: var(--ink); }
.example__track--custom .example__bar span { background: var(--rule-faint); }
.example__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-top: 0;
}
.example__flow article { padding: 22px; border-right: 1px solid var(--rule-soft); }
.example__flow article:last-child { border-right: 0; }
.example__flow h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.example__flow p:not(.walk__no) { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* -- Video -- */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--rule); overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--ink); }
.player__start {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
}
.player__ring {
  width: 74px; height: 74px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 22px;
  transition: background var(--speed), color var(--speed);
}
.player__start:hover .player__ring { background: var(--accent); color: var(--ink); }
.player__hint { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--accent); line-height: 1.7; }

/* -- Form -- */
.field { display: block; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-quiet);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 242, 78, .5); }
textarea.input { resize: vertical; line-height: 1.6; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__row--end { align-items: end; margin-top: 20px; }
.form__block { margin-top: 20px; }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha__q {
  font-family: var(--font-mono);
  font-size: 15px;
  background: var(--accent);
  border: 1px solid var(--rule);
  padding: 13px 14px;
  white-space: nowrap;
}
.captcha .input { width: 96px; }
.form__error { color: var(--danger); font-size: 14px; margin-top: 14px; }
.form__legal { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--ink-faint); margin-top: 22px; }
.sent { border: 1px solid var(--rule); background: var(--accent); padding: 28px 32px; }
.sent__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.sent__text { font-size: 15px; line-height: 1.6; color: var(--accent-ink); }

/* -- Animations -- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulsedot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -60; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 7. Responsive ========================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --gutter-lg: 48px; }

  .nav { flex-wrap: wrap; row-gap: 16px; }
  .nav__burger { display: flex; }
  .nav__menu {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    padding-top: 8px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu .nav__link { display: block; width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--rule-soft); }
  .nav__menu .nav__login { width: 100%; justify-content: space-between; margin-top: 8px; padding: 12px; }
  .nav__menu .module-cart-trigger { width: 100%; justify-content: flex-start; margin-top: 8px; padding: 10px 12px; }
  .nav__menu .module-cart-trigger__count { margin-left: auto; }
  .nav__menu .langswitch { margin: 16px 0 8px; }

  .hero, .grid--3, .grid--2, .grid--split, .grid--aside, .responsibility,
  .grid--portrait, .grid--bias, .timeline, .prices, .form__row {
    grid-template-columns: 1fr;
  }
  .module-builder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .responsibility__head { border-right: 0; border-bottom: 1px solid var(--rule); }

  .hero__body { padding: 56px var(--gutter); border-right: 0; }
  .hero__title { font-size: 46px; line-height: 1.03; }
  .hero__stats { margin-top: 44px; }
  .hero__notes { padding: 24px var(--gutter) 4px; }
  .hero__notes--below { padding: 4px var(--gutter) 16px; }
  .hero__diagram { min-height: 380px; }
  .hero__caption { padding: 0 var(--gutter) 24px; }

  .section--pad { padding: var(--gutter-lg) var(--gutter); }
  .section__head { flex-direction: column; gap: 14px; padding: 24px var(--gutter); }
  .section__head--plain { padding: 0 0 32px; }
  .section__head .mono { white-space: normal; }

  .h2 { font-size: 28px; }
  .cell, .tile, .support, .tutor, .figure, .price { padding: 40px var(--gutter); }
  .rule-r, .rule-r-soft, .rule-l-soft { border-right: 0; border-left: 0; }
  .cell, .tile, .support { border-bottom: 1px solid var(--rule-soft); }
  .price--divide { border-right: 0; border-bottom: 1px solid var(--rule); }

  .timeline { border-top: 0; }
  .tl { padding: 0 0 36px; border-top: 2px solid var(--rule); }
  .tl__marker { margin: 0 0 20px; }
  .tl__label { background: var(--paper); padding-right: 10px; }
  .prices--compare .price { grid-template-columns: 1fr; gap: 16px; }
  .portrait { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cookie__inner { padding: 20px var(--gutter); }
  .overlay { padding: 20px; }
  .modal { max-height: 88vh; }
  .modal__body, .modal__head { padding-left: 24px; padding-right: 24px; }
  .example { grid-template-columns: 1fr; }
  .example__summary { border-right: 0; border-bottom: 1px solid var(--rule); }
  .example__flow { grid-template-columns: 1fr; }
  .example__flow article { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .example__flow article:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  .hero__title { font-size: 38px; }
  .lead { font-size: 17px; }
  .h2 { font-size: 25px; }
  .h3, .tl__title { font-size: 21px; }
  .tutor__name { font-size: 32px; }
  .price__value { font-size: 36px; }
  .cta-bar__text, .modal__title { font-size: 20px; }
  .hero__diagram { min-height: 300px; }
  .mono { letter-spacing: .1em; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --gutter-lg: 36px; }

  .hero__title { font-size: 30px; letter-spacing: -.02em; }
  .hero__stats { grid-template-columns: 1fr; gap: 24px; }
  .btnrow:not(.btnrow--keep) { flex-direction: column; width: 100%; }
  .btnrow:not(.btnrow--keep) .btn--divide { border-left: 0; border-top: 1px solid var(--rule); }
  .btn { padding: 16px 20px; }
  .hero__notes--below { padding: 8px 36px 20px; }
.note { flex: 1 1 100%; }
  .module-builder__grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; padding: 22px 20px; }
  .module-card__title { font-size: 19px; }
  .module-cart__head { padding: 22px 20px 18px; }
  .module-cart__body { padding: 0 20px; }
  .module-cart__footer { padding: 20px; }
  .support { flex-direction: column; gap: 18px; }
  .cta-bar { padding: 24px var(--gutter); }
  .cookie__actions { width: 100%; flex-direction: column; }
  .cookie__actions .btn--invert { border-left: 0; border-top: 1px solid var(--paper); }
  .captcha { flex-wrap: wrap; }
  .modal__head { letter-spacing: .12em; }
  .example__summary, .example__map, .example__flow article { padding: 20px; }
  .example__price-value { font-size: 32px; }
  .example__metrics { grid-template-columns: 1fr; }
  .example__metrics div,
  .example__metrics div:nth-child(2n),
  .example__metrics div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .example__metrics div:last-child { border-bottom: 0; }
  .example__track-head { align-items: flex-start; }
}
