/* Manrope (SIL OFL, assets/fonts/manrope/OFL.txt), hosted on this site so visitors' browsers never call Google Fonts */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope/manrope-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --card: #1A1A1A;
  --bg: #F7F7F3;
  --bg-rgb: 247, 247, 243;
  --bg-overlay: rgba(var(--bg-rgb), 0.86);
  --header-bg: rgba(var(--bg-rgb), 0.92);
  --surface: #F7F7F3;
  --ink: #1A1A1A;
  --ink-soft: #55555a;
  --accent: #6687ff;
  --accent-hover: #5575f0;
  --accent-soft: #dce4ff;
  --accent-pink: #FFC4A7;
  --sage: #a2c0ad;
  --sage-d: #86ad9c;
  --chip-blue: #b5d1f1;
  --chip-cream: #ffe6b5;
  --line: rgba(43, 43, 43, 0.1);
  --r-sm: 20px;
  --r-md: 32px;
  --r-lg: 48px;
  --r-xl: 64px;
  --maxw: 1240px;
  --gutter: clamp(20px, 3.2vw, 45px);
  --space-outer: 96px;
  --space-inner: 32px;
  --space-title-gap: 0.4em;
  --space-inset: 12px;
  --space-eyebrow: 16px;
  --space-stack: 32px;
  --section-space: calc(var(--space-outer) / 2);
  --section-space-tight: calc(var(--space-outer) / 2);
  --grid-gap: 25px;
  --grid-gap-sm: 18px;
  --hero-gap: clamp(56px, 9vw, 120px);
  --header-height: 60px;
  --font: 'Manrope', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}

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

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

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container,
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section--tight {
  padding: var(--section-space-tight) 0;
}

.section-title,
h2.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.section-subtitle,
.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
  max-width: 840px;
  text-align: left;
}

.section-title,
h2.section-title,
.section-subtitle,
.lead,
.section-head,
.page-header__title,
.page-header__subtitle,
.gd__title,
.gd__subtitle,
.teachers-section__title,
.teachers-section__lead,
.testimonials-section__title,
.home-faq .section-title,
.home-faq .section-subtitle,
.waitlist-header .section-title,
.waitlist-header .section-subtitle,
.cta-block__title,
.cta-band h2,
.cta-block__text {
  text-align: left;
}

.section-subtitle,
.lead,
.whn-section__lead,
.gd__subtitle,
.page-header__subtitle,
.plans-section__footnote {
  margin-left: 0;
  margin-right: 0;
}

.text-center .section-title,
.text-center .section-subtitle,
.text-center .lead,
.text-center .page-header__title,
.text-center .page-header__subtitle,
.text-center .gd__title,
.text-center .gd__subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle,
.text-center .lead {
  margin-left: 0;
  margin-right: 0;
}

.em {
  color: var(--accent);
}

/* Buttons — Qoroom pill style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 18px 34px;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary,
.btn-magenta {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover,
.btn-magenta:hover {
  background: var(--accent-hover);
}

.btn--secondary,
.btn-dark {
  background: var(--card);
  color: #fff;
}

.btn--ghost,
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(43, 43, 43, 0.18);
}

.btn--lg {
  padding: 18px 34px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn-arrow::after,
.btn .arr {
  content: '→';
  font-size: 20px;
  line-height: 0;
}

/* Nav */
.header,
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner,
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.header__logo,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.header__logo {
  line-height: 1;
}

.header__powered-by {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: 4px;           /* optically centred next to the Fokuso wordmark */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header__logo-text {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 22.6px;
  max-width: 160px;
}

.footer__logo .brand-logo {
  height: 96px;
  max-width: none;
}

/* Fokuso wordmark (see renderBrandLogo in config.js) */
.flogo { display: inline-flex; align-items: center; text-decoration: none; }
.flogo__word { display: block; height: 20px; width: auto; }
.flogo--footer { flex-direction: column; align-items: flex-start; gap: 14px; }
.flogo--footer .flogo__word { height: 30px; }

.header__nav,
.menu {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.header__link,
.menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}

.header__link--button {
  border: none;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}

.header__mobile-link--button {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 12px 0;
}

.header__link:hover,
.menu a:hover,
.header__link.is-active,
.header__link--button:hover {
  background: rgba(43, 43, 43, 0.06);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locale-dropdown {
  position: relative;
  margin-right: 4px;
}

.locale-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.locale-dropdown__trigger:hover,
.locale-dropdown__trigger[aria-expanded="true"] {
  border-color: rgba(102, 135, 255, 0.35);
  box-shadow: 0 2px 12px rgba(43, 43, 43, 0.06);
}

.locale-dropdown__icon {
  display: flex;
  color: var(--ink-soft);
}

.locale-dropdown__chevron {
  display: flex;
  color: var(--ink-soft);
  transition: transform 0.15s ease;
}

.locale-dropdown__trigger[aria-expanded="true"] .locale-dropdown__chevron {
  transform: rotate(180deg);
}

.locale-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(43, 43, 43, 0.12);
  z-index: 200;
}

.locale-dropdown__field + .locale-dropdown__field {
  margin-top: 14px;
}

.locale-dropdown__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.locale-dropdown__select-wrap {
  position: relative;
}

.locale-dropdown__select {
  appearance: none;
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1px solid rgba(43, 43, 43, 0.14);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.locale-dropdown__select:focus {
  outline: none;
  border-color: rgba(102, 135, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(102, 135, 255, 0.12);
}

.locale-dropdown__select-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  color: var(--ink-soft);
  pointer-events: none;
  transform: translateY(-50%);
}

.locale-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(43, 43, 43, 0.12);
  z-index: 200;
}

.locale-dropdown__item {
  margin: 0;
}

.locale-dropdown__option {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.locale-dropdown__option:hover {
  background: rgba(43, 43, 43, 0.05);
  color: var(--ink);
}

.locale-dropdown__option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.locale-dropdown--mobile {
  display: none;
}

.header__login {
  font-size: 15px;
  padding: 9px 14px;
  box-shadow: none;
}

.header__actions .btn--primary {
  font-size: 15px;
  padding: 12px 22px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.header__mobile {
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.header__mobile-nav .btn {
  margin-top: 16px;
}

/* Hero */
.hero {
  padding-top: clamp(42px, 9vw, 66px);
  padding-bottom: 0;
  overflow: visible;
}

.hero .container {
  overflow: visible;
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hero-gap);
  align-items: start;
  overflow: visible;
  position: relative;
}

.hero__head {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.hero__title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-line--accent {
  color: var(--accent);
}

.hero__title-line > .hero__title-line--accent {
  display: inline;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 940px;
}

.hero__lead-line {
  display: block;
  white-space: normal;
}

.hero__subtitle {
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 680px;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px 4px;
  padding-left: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Announcement above the home H1: a small pill for what is coming (the desktop app); it opens the early-access window. */
.hero__news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero__news:hover,
.hero__news:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 18px -10px rgba(26, 26, 26, 0.25);
}

.hero__news-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__news-arrow {
  flex: none;
  color: var(--accent);
  transition: transform 0.15s ease;
}

.hero__news:hover .hero__news-arrow {
  transform: translateX(3px);
}

.hero__kicker-line {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink-soft);
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-d);
  flex-shrink: 0;
}

.hero__proof-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.hero__proof-label {
  font-weight: 600;
}

.hero__video-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.hero__video-link:hover {
  color: var(--accent);
}

.hero__video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  line-height: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero__visual {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  overflow: visible;
  width: 100%;
  aspect-ratio: 1892 / 1079;
  align-self: start;
}

.hero__visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 20px;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
  transform: none;
}

.hero__visual-frame::before {
  display: none;
}

.hero__visual-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  border-radius: inherit;
}

/* Click-to-zoom affordance */
.hero__visual-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.14);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero__visual-zoom:hover {
  border-color: rgba(102, 135, 255, 0.35);
  box-shadow: 0 10px 28px rgba(102, 135, 255, 0.18);
}

.hero__visual-zoom__icon {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

/* Fullscreen zoom modal */
.hero-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-zoom-overlay[hidden] {
  display: none;
}

.hero-zoom-frame {
  position: relative;
  border-radius: 19.144px;
  overflow: hidden;
}

.hero-zoom-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #D1DFFF 0%, #9BC2B2 100%);
  padding: 19.144px;
  box-sizing: border-box;
  pointer-events: none;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-zoom-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 1024px; /* Prevent upscaling beyond native asset size */
  width: auto;
  height: auto;
  max-height: calc(100vh - 96px);
  border-radius: inherit;
  object-fit: contain;
}

.hero-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.14);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* Company inquiry modal */
body.company-modal-open {
  overflow: hidden;
}

.company-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}

.company-modal[hidden] {
  display: none;
}

.company-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.company-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px rgba(43, 43, 43, 0.14);
  padding: clamp(28px, 4vw, 40px);
}

.company-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.company-modal__head {
  padding-right: 48px;
  margin-bottom: 24px;
}

.company-modal__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.company-modal__subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
}

.company-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.company-modal__consents {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.company-modal__check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
}

.company-modal__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.company-modal__check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-modal__actions {
  margin-top: 24px;
}

.company-modal__submit {
  width: 100%;
  justify-content: center;
}

.company-modal__error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
}

.company-modal__success {
  text-align: left;
}

.company-modal__success-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
}

.company-modal__success-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}

/* Early-access window: the company window's look, narrower, one column */
.ea-modal__panel {
  width: min(100%, 520px);
}

/* After sending: a small centred confirmation instead of the form */
.ea-modal.is-done .ea-modal__panel {
  width: min(100%, 400px);
  padding: 40px 32px 32px;
}

.ea-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ea-done[hidden] {
  display: none;
}

.ea-done__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ea-done__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ea-done__text {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.ea-done__btn {
  min-width: 140px;
  justify-content: center;
}

.ea-modal__consent {
  margin-top: 4px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

.chip,
.format-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  border: 1px solid rgba(43, 43, 43, 0.14);
}

.chip.c1,
.format-pill:nth-child(1) {
  background: var(--sage);
}

.chip.c2,
.format-pill:nth-child(2) {
  background: var(--chip-blue);
}

.chip.c3,
.format-pill:nth-child(3) {
  background: var(--accent-pink);
}

.chip.c4 {
  background: var(--chip-cream);
}

.format-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.35;
}

/* Format tabs — dark block after hero */
.format-tabs-wrap {
  position: relative;
  margin-top: var(--space-outer);
  --format-inset-x: clamp(32px, 4.2vw, 41px);
  --format-space-title: var(--space-eyebrow);
  --format-space-desc: 24px;
  --format-space-labels: var(--space-inset);
  --format-space-panel: var(--space-inner);
  --format-space-body: var(--space-inner);
  --format-space-aside: var(--space-eyebrow);
  --format-bookmark-fill: #5d88ff;
  --format-bookmark-slant: 54px;
}

.format-tabs__bookmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 63px;
  margin: 0;
  padding: 15px calc(20px + var(--format-bookmark-slant)) 15px var(--format-inset-x);
  background: transparent;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-sizing: border-box;
}

.format-tabs__bookmark-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.format-tabs__bookmark-shape path {
  fill: var(--format-bookmark-fill);
}

.format-tabs {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: var(--card);
  color: #fff;
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  overflow: hidden;
}

.format-tabs__nav {
  display: flex;
  gap: 4px;
  padding: 8px var(--format-inset-x) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.format-tabs__tab {
  flex: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 18px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.format-tabs__tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.format-tabs__tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--accent);
}

.format-tabs__panel {
  padding: var(--format-space-panel) var(--format-inset-x);
}

.format-tabs__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: var(--format-space-body) 40px;
  align-items: stretch;
}

.format-tabs__main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.format-tabs__labels {
  flex: none;
}

.format-tabs__tail {
  flex: 1 1 auto;
  min-height: 0;
}

.format-tabs__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--format-space-title);
}

.format-tabs__title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--format-space-title);
}

.format-tabs__em--blue {
  color: var(--accent);
}

.format-tabs__em--green {
  color: var(--sage);
}

.format-tabs__desc {
  margin: 0 0 var(--format-space-desc);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  max-width: 640px;
}

.format-tabs__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--format-space-labels);
  margin: 0;
}

.format-tabs__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.format-tabs__pill--blue {
  background: var(--accent);
  color: #fff;
}

.format-tabs__pill--green {
  background: var(--sage);
  color: var(--ink);
}

.format-tabs__pill--yellow {
  background: var(--chip-cream);
  color: var(--ink);
}

.format-tabs__pill--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.format-tabs__formula {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.format-tabs__formula-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}
.format-tabs__formula-copy strong { white-space: nowrap; }

.format-tabs__formula-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  flex: none;
}

.format-tabs__formula-num--active {
  background: var(--accent);
  color: #fff;
}

.format-tabs__formula-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.format-tabs__formula-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}

.format-tabs__formula-copy span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.48);
  text-align: left;
}

.format-tabs__formula-line {
  flex: 1 1 12px;
  min-width: 6px;
  height: 1px;
  margin: 0 8px;
  background: rgba(255, 255, 255, 0.12);
}

.format-tabs__aside {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-sm);
  padding: 20px;
}

.format-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--format-space-aside);
}

.format-tabs__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.format-tabs__item strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2px;
}

.format-tabs__item span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}

.format-tabs__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 8px;
  border: 2px solid transparent;
  position: relative;
}

.format-tabs__icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.35;
}

.format-tabs__icon--blue {
  color: var(--accent);
  border-color: rgba(102, 135, 255, 0.55);
  background: rgba(102, 135, 255, 0.12);
}

.format-tabs__icon--green {
  color: var(--sage);
  border-color: rgba(158, 194, 178, 0.65);
  background: rgba(158, 194, 178, 0.14);
}

.format-tabs__icon--pink {
  color: var(--accent-pink);
  border-color: rgba(244, 192, 209, 0.7);
  background: rgba(244, 192, 209, 0.12);
}

.format-tabs__icon--yellow {
  color: var(--chip-cream);
  border-color: rgba(255, 230, 190, 0.75);
  background: rgba(255, 230, 190, 0.1);
}

/* Legacy format-band aliases (other pages) */
.format-band {
  margin-top: 32px;
  background: var(--card);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px clamp(32px, 4vw, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px 32px;
  flex-wrap: wrap;
}

.format-band__label,
.fb-label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.65;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.format-band__title,
.fb-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.format-band__pills,
.fb-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.format-band__pill,
.fb-pill {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 16px;
}

.format-band__pill--accent,
.fb-pill.accent {
  background: var(--accent);
}

/* Big section heading (home showcase and early access) */
.gd__header {
  max-width: 720px;
  margin-bottom: var(--space-inner);
}

.gd__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-title-gap);
}

.gd__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Eyebrow + section intro */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: var(--space-eyebrow);
}

.eyebrow .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

/* Teachers section */
.teachers-section__intro {
  max-width: 720px;
}

/* Recognize yourself — pain points */
.recognize-section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.recognize-section__title {
  margin-bottom: 0;
}

.recognize-section__lead {
  margin: 0;
}

.recognize-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}

.recognize-section__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  border-radius: var(--r-sm);
  padding: 24px 24px 26px;
}

.recognize-section__card--green { background: var(--sage); }
.recognize-section__card--cream { background: var(--chip-cream); }
.recognize-section__card--pink { background: var(--accent-pink); }
.recognize-section__card--blue { background: var(--chip-blue); }

.recognize-section__quote {
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.recognize-section__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .recognize-section__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Honest manifesto — white editorial card */
.section--honest {
  padding-top: var(--section-space);
}

.honest-section__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(40px, 5vw, 64px);
}

.honest-section__rating {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 28px);
  margin-bottom: clamp(32px, 4vw, 44px);
  flex-wrap: wrap;
}

.honest-section__rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  background: var(--card);
  color: #fff;
  flex-shrink: 0;
}

.honest-section__rating-value {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.honest-section__rating-max {
  margin-right: 12px;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
}

.honest-section__rating-bar {
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  flex-shrink: 0;
}

.honest-section__rating-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.honest-section__rating-caption {
  margin: 0;
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.honest-section__title {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  max-width: 920px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.honest-section__title-line {
  display: block;
}

.honest-section__title-accent {
  color: var(--accent);
}

.honest-section__body {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.honest-section__closing {
  margin: 0 0 clamp(28px, 3.5vw, 36px);
  max-width: 760px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.honest-section__cta {
  margin-top: 4px;
}

.honest-section__cta .btn--primary {
  padding-inline: 28px;
}

@media (max-width: 640px) {
  .honest-section__panel {
    padding: 32px 24px 36px;
    border-radius: var(--r-sm);
  }

  .honest-section__rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .honest-section__title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.12;
  }
}

.teachers-section__title {
  margin-bottom: 0;
}

.teachers-section__lead {
  margin: 0;
}

.teachers-section__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-stack);
}

.teachers-section__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.teachers-section__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap, 24px);
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 24, 31, 0.08);
}

.teacher-card__photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--chip-cream);
}

.teacher-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.teacher-card__body {
  padding: 20px 20px 24px;
}

.teacher-card__focus {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.teacher-card__name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.teacher-card__credentials {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

.teacher-card__bio {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.teachers-section__note {
  margin: var(--space-stack) 0 0;
  font-size: 13px;
  color: var(--ink-muted, var(--ink-soft));
  text-align: left;
}

@media (max-width: 1100px) {
  .teachers-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .teachers-section__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

.section--system {
  padding-top: var(--section-space);
}

.big {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.06;
  font-weight: 800;
  max-width: 1040px;
}

/* Learning system — unified Qoroom-style panel */
.system-flow__panel {
  background: var(--card);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 5vw, 64px);
}

.system-flow__header {
  margin-bottom: var(--space-inner);
  padding-bottom: var(--space-inner);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.system-flow__title {
  width: 100%;
  max-width: none;
  margin: 0 0 var(--space-title-gap);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.system-flow__panel .em {
  color: #8fa8ff;
}

.system-flow__lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.system-flow__tagline {
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.system-flow__aside-text {
  margin: 0 0 14px;
  max-width: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.system-flow__aside-text:last-child {
  margin-bottom: 0;
}

.system-flow__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

.system-flow__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 26px 30px;
  border: none;
  border-radius: var(--r-md);
  min-height: 100%;
  transition: transform 0.15s ease;
}

.system-flow__card:hover {
  transform: translateY(-2px);
}

.system-flow__card--green { background: var(--sage); }
.system-flow__card--cream { background: var(--chip-cream); }
.system-flow__card--pink { background: var(--accent-pink); }
.system-flow__card--blue { background: var(--chip-blue); }

.system-flow__card-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.system-flow__card-body {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink);
}

.system-flow__card-body strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.system-flow__footnote {
  margin: var(--space-inner) 0 0;
  padding: var(--space-inner) 0 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.system-flow__footnote p {
  margin: 0;
  max-width: none;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1024px) {
  .system-flow__lede {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 640px) {
  .system-flow__track {
    grid-template-columns: 1fr;
  }
}

/* Q-cards — colored topic cards */
.qcards,
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

.qcard,
.card {
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.15s ease;
}

.qcard:hover,
.card:hover {
  transform: translateY(-2px);
}

.qcard .qtag,
.badge {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 13px;
  align-self: flex-start;
  color: var(--accent);
  border: 1px solid var(--line);
}

.qcard.green { background: var(--sage); border: none; }
.qcard.cream { background: var(--chip-cream); border: none; }
.qcard.pink { background: var(--accent-pink); border: none; }
.qcard.blue { background: var(--chip-blue); border: none; }

.qcard--plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.qcard--plan .qcard__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.qcard__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qcard--plan.highlight {
  background: var(--ink);
  border: none;
  color: #fff;
}

.qcard--plan.highlight .qcard__title,
.qcard--plan.highlight p {
  color: #fff;
}

.qcard--plan.highlight .qcard__badge {
  background: var(--accent-pink);
  color: var(--ink);
}

.plans-section__footnote {
  max-width: 640px;
  margin: var(--space-stack) 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: left;
}

.plans-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

/* Testimonials */
.testimonials-section__title {
  margin-bottom: 0;
}

.testimonials-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap, 24px);
}

.testimonial-card {
  background: var(--sage);
  border-radius: var(--r-md);
  padding: 28px 24px 32px;
  min-height: 100%;
}

.testimonial-card__ava {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: var(--card);
  margin-bottom: 18px;
}

.testimonial-card__quote {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  font-style: normal;
  color: var(--ink);
}

.testimonial-card__who {
  display: block;
  margin-top: 18px;
  font-weight: 800;
  font-size: 16px;
  font-style: normal;
}

.testimonial-card__role {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 900px) {
  .testimonials-section__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.feature-card__title,
.qcard h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.qcard p,
.feature-card__text {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.38;
  color: var(--ink);
}

.qcard--plan p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* White / dark cards */
.card-white {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  border: 1px solid var(--line);
}

.card-dark {
  background: var(--card);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
}

.card--highlight {
  box-shadow: 0 0 0 3px var(--accent);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.step-card,
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
}

.step-card__num,
.step .n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.step-card__duration,
.step .pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.step-card__title,
.step h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card__text,
.step p {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Benefits list */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  margin-top: 40px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 26px;
}

.benefit .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.benefit p {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
}

/* Quote — sage bubble */
.quote-block,
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  background: var(--sage);
  border: none;
  border-radius: var(--r-lg);
  padding: 44px;
  max-width: 840px;
  margin: 0 auto;
}

.quote-block .ava,
.quote .ava {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  background: var(--card);
}

.quote-block blockquote,
.quote blockquote {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  font-style: normal;
  color: var(--ink);
}

.quote-block cite,
.quote .who {
  display: block;
  margin-top: 18px;
  font-weight: 800;
  font-size: 18px;
  font-style: normal;
}

.quote-block cite span,
.quote .role {
  display: block;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  margin-top: 4px;
}

/* Pricing */
.pricing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-card__name {
  font-size: 20px;
  font-weight: 800;
}

.pricing-card__price,
.price .amount {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  margin: 12px 0 4px;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pricing-card__billing,
.price .sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.pricing-card__features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  top: 2px;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 9px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* FAQ */
.faq-list,
.faq {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}

.faq-item,
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  padding: 6px 36px;
}

.faq-item summary,
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 52px 26px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-align: left;
  position: relative;
}

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

.faq-item summary::before,
.faq-item summary::after,
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 3px;
  margin-top: -1.5px;
  background: #FFC4A7;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item summary::before,
.faq summary::before {
  transform: rotate(90deg);
}

.faq-item summary::after,
.faq summary::after {
  transform: rotate(0deg);
}

.faq-item[open] summary::before,
.faq details[open] summary::before {
  transform: rotate(45deg);
}

.faq-item[open] summary::after,
.faq details[open] summary::after {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::before,
  .faq-item summary::after,
  .faq summary::before,
  .faq summary::after {
    transition: none;
  }
}

.home-faq__cta {
  margin-top: var(--space-stack);
  text-align: left;
}

.faq-item__answer,
.faq p {
  padding: 0 0 28px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

@media (max-width: 640px) {
  .faq-item,
  .faq details {
    padding: 4px 20px;
    margin-bottom: 12px;
  }

  .faq-item summary,
  .faq summary {
    padding: 20px 44px 20px 0;
    font-size: 17px;
    gap: 16px;
  }

  .faq-item__answer,
  .faq p {
    padding: 0 0 22px;
    font-size: 16px;
  }
}

/* CTA band */
.cta-block,
.cta-band {
  padding: 48px;
  background: var(--card);
  color: #fff;
  border-radius: var(--r-lg);
  text-align: left;
}

.cta-block__title,
.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.cta-block__text {
  margin: 14px 0 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 18px;
}

.cta-block .btn--primary {
  background: var(--accent);
  color: #fff;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.trial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Waitlist — full-width funnel form */
.waitlist-section {
  padding-top: var(--section-space);
}

.waitlist-header {
  max-width: none;
  margin: 0 0 var(--space-inner);
}

.waitlist-header__subtitle {
  margin-top: 0;
}

.waitlist-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 32px);
  max-width: none;
  margin: 0;
}

.waitlist-form {
  display: grid;
  gap: 18px;
}

.waitlist-form .form-group {
  margin-bottom: 0;
}

.wl-program-row {
  margin-top: 0;
}

.wl-filter-row {
  margin-top: 0;
}

.waitlist-form .wl-chips-scroll {
  margin: 0;
  padding: 0 0 4px;
}

.wl-program-custom {
  margin-top: 12px;
}

.wl-program-custom[hidden] {
  display: none !important;
}

.waitlist-form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px 20px;
  margin-top: 4px;
}

.waitlist-form__note {
  margin-top: 0;
  margin-right: auto;
  flex: 1 1 280px;
  max-width: 560px;
}

.waitlist-form__button {
  flex: 0 0 auto;
  margin-left: auto;
}

.wl-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.waitlist-shell > [hidden] {
  display: none !important;
}

.waitlist-success {
  padding: 12px 0 4px;
}

.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;
}

.waitlist-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.waitlist-intro__note {
  margin-top: 28px;
}

/* What happens next — waitlist funnel */
.whn-section__head {
  max-width: none;
  text-align: left;
}

.whn-section__lead {
  margin: 0;
}

.whn-section__eyebrow {
  justify-content: flex-start;
}

.whn-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap, 24px);
  margin-bottom: var(--space-stack);
}

.whn-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px 32px;
  min-height: 100%;
}

.whn-step__label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.whn-step__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.2;
}

.whn-step__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
}

.whn-section__cta {
  margin-top: 0;
  text-align: left;
}

@media (max-width: 900px) {
  .whn-section__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.waitlist-panel > [hidden] {
  display: none !important;
}

.waitlist-success__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.waitlist-success__text {
  color: var(--color-text-secondary);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.form-hint {
  margin: -2px 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.wl-goals-field {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}

.wl-goals-field legend {
  padding: 0;
}

.wl-goals {
  display: flex;             /* compact pills sized to their text, wrapping on narrow screens */
  flex-wrap: wrap;
  gap: 8px;
}

.wl-goals--error {
  outline: 2px solid #e5484d;
  outline-offset: 4px;
  border-radius: 12px;
}

.wl-goal {
  display: block;
  cursor: pointer;
}

.wl-goal input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wl-goal__card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wl-goal__emoji {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.wl-goal__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.wl-goal input:checked + .wl-goal__card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.wl-goal input:focus-visible + .wl-goal__card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wl-goal-custom,
.wl-timeline-date {
  margin-top: 10px;
}

.wl-programs-interest {
  margin-top: 16px;
  margin-bottom: 0;
}

.wl-programs-empty {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.wl-programs-empty[hidden] {
  display: none !important;
}

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

.wl-programs--error {
  outline: 2px solid #e5484d;
  outline-offset: 4px;
  border-radius: 12px;
}

.wl-program {
  display: block;
  cursor: pointer;
  min-width: 0;
}

.wl-program[hidden] {
  display: none !important;
}

.wl-program input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wl-program__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.wl-program__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.wl-program__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.wl-program input:checked + .wl-program__card {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

.wl-program input:focus-visible + .wl-program__card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wl-program--unsure .wl-program__card {
  background: #fff;
}

.wl-program-other {
  margin-top: 16px;
  margin-bottom: 0;
}

.wl-context-field {
  margin-top: 16px;
  margin-bottom: 0;
}

.notice {
  padding: 18px 22px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
}

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

/* Page header */
.page-header {
  padding: var(--section-space) 0;
}

.page-header__title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-title-gap);
}

.page-header__subtitle {
  margin-top: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.meta-box {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.meta-box__value {
  font-size: 32px;
  font-weight: 800;
}

.meta-box__label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}

.login-card--demo {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 50%);
}

/* Footer — dark graphite */
.footer,
footer {
  background: var(--card);
  color: #fff;
  padding: 56px 0 40px;
  margin-top: 8px;
}

.footer__grid,
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 46px;
  margin-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.footer__tagline,
.foot-tag {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  font-size: 15px;
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.5;
}

.footer__heading,
.foot-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__links a,
.foot-col a {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer__links a:hover,
.foot-col a:hover {
  opacity: 1;
  color: var(--accent-soft);
}

.footer__bottom,
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
}

.badge--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

/* Rating pill (stats) */
.rating,
.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__stats {
  display: flex;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.hero__stats > div {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  color: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-right: 14px;
}

.hero__stats > div:last-child {
  margin-right: 0;
}

.hero__stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hero__stat-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

.section-head {
  max-width: 840px;
  margin-bottom: var(--space-inner);
  text-align: left;
}

.section-head :is(.section-title, .gd__title) {
  margin-bottom: var(--space-title-gap);
}

.section-head :is(.section-title, .gd__title):last-child {
  margin-bottom: 0;
}

.section-head .section-title + .lead,
.section-head .section-title + .section-subtitle,
.section-head .section-title + .whn-section__lead,
.section-head .section-title + p.lead,
.section-head .gd__title + .gd__subtitle {
  margin-top: 0;
}

.waitlist-header .section-title {
  margin-bottom: var(--space-title-gap);
}

.section-stack {
  margin-top: var(--space-stack);
}

.section-actions {
  margin-top: var(--space-stack);
}

.mt-s {
  margin-top: var(--space-stack);
}

/* Responsive — shared breakpoints (810 / 1024 / 1240) */
@media (max-width: 1024px) {
  .wl-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 810px) {
  .header__nav,
  .header__actions {
    display: none;
  }

  .header__powered-by {
    display: none;
  }

  .locale-dropdown--mobile {
    display: block;
    margin-left: auto;
    margin-right: 8px;
  }

  .locale-dropdown--mobile .locale-dropdown__trigger {
    padding: 8px 10px;
    font-size: 13px;
  }

  .locale-dropdown--mobile .locale-dropdown__panel {
    right: 0;
    left: auto;
    min-width: min(220px, calc(100vw - 32px));
  }

  .header__burger {
    display: flex;
  }

  .hero__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__head {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__title-line,
  .hero__lead-line {
    white-space: normal;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    aspect-ratio: 1892 / 1079;
    min-height: 0;
    margin-top: 0;
    height: auto;
  }

  .hero__visual-frame {
    position: relative;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .qcards,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

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

  .benefits,
  .grid-2,
  .wl-goals {
    grid-template-columns: 1fr;
  }

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

  .waitlist-form__submit {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form__note {
    margin-right: 0;
    max-width: none;
    flex: 0 0 auto;   /* in the column layout a 280px basis became 280px of empty height */
  }

  .waitlist-form__button {
    align-self: flex-end;
  }

  .waitlist-shell {
    padding: 24px 20px;
  }

  .waitlist-panel {
    grid-column: 1;
  }

  .trial-grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .format-tabs-wrap {
    --format-inset-x: 20px;
    --format-space-desc: 20px;
    --format-space-panel: 28px;
    --format-space-body: 24px;
  }

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

  .format-tabs__bookmark {
    --format-bookmark-slant: 54px;
    min-height: 63px;
    white-space: normal;
    padding: 12px calc(16px + var(--format-bookmark-slant)) 12px var(--format-inset-x);
    font-size: 22px;
  }

  .format-tabs__panel {
    padding: var(--format-space-panel) var(--format-inset-x);
  }

  .format-band,
  .card-white,
  .cta-block {
    padding: 32px;
  }

  .quote-block,
  .quote {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 560px) {
  :root {
    --space-outer: 64px;
    --space-inner: 24px;
    --space-inset: 10px;
    --space-eyebrow: 12px;
    --space-stack: 24px;
    --grid-gap: 18px;
    --hero-gap: 40px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: var(--section-space) 0;
  }

  .qcards,
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__title {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.14;
    margin-bottom: 0.5em;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__lead {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.5;
    margin-bottom: 0.7em;
  }

  .hero__lead-line {
    white-space: normal;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 44px;
  }

  .company-modal__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: 10px;
  }

  .hero__stats > div {
    margin-right: 0;
  }

  .btn {
    font-size: 15px;
    padding: 14px 24px;
    min-height: 44px;
  }

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

/* Program landing page layout */
.prog-hero {
  padding-top: 32px;
  padding-bottom: 16px;
}

.prog-hero__lead {
  margin-top: 16px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 720px;
  line-height: 1.55;
}

.prog-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.prog-hero__ready-note {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

.prog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.prog-stat {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  background: var(--card);
  color: #fff;
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.prog-stat__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.prog-stat__label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.3;
}

.prog-stat--level .prog-stat__value,
.meta-box--level .meta-box__value {
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.02em;
}

.prog-contrast {
  margin-top: 0;
  display: grid;
  gap: var(--space-stack);
}

.prog-contrast__title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
}

.prog-points {
  display: grid;
  gap: 18px;
}

.prog-point {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.prog-point__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.prog-point__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.prog-point__text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.prog-audience .qcard > p:only-child {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.prog-audience .qcard .prog-audience__title {
  margin: 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}

.prog-audience .qcard .prog-audience__text {
  margin: 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.prog-result {
  max-width: 900px;
  border: none;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 55%);
}

.prog-result .section-head {
  margin-bottom: 0;
}

.prog-result__title {
  font-size: clamp(26px, 3vw, 36px);
}

.prog-inside {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.prog-inside__item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.prog-inside__num {
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.prog-inside__text {
  color: var(--ink-soft);
  line-height: 1.55;
}

.prog-teacher__list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.prog-teacher__card {
  align-self: start;
}

.prog-teacher__card .format-tabs__pills {
  margin-bottom: var(--space-stack);
}

.prog-curriculum__stats {
  margin: 0 0 var(--space-stack);
}

.prog-module {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.prog-module__title {
  padding: 20px 24px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.prog-module__title::-webkit-details-marker {
  display: none;
}

.prog-module__title::after {
  content: '+';
  float: right;
  font-weight: 800;
  color: var(--accent);
}

.prog-module[open] .prog-module__title::after {
  content: '−';
}

.prog-module__body {
  padding: 0 24px 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.prog-module__body ul {
  margin: 0;
  padding-left: 20px;
}

.prog-module__extra {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--accent);
}

/* Program landing — pricing tiers */
.prog-pricing {
  background: var(--surface);
}

.prog-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}

.prog-pricing .btn--primary {
  background: var(--accent);
  color: #fff;
}

.prog-pricing .btn--primary:hover {
  background: var(--accent-hover);
}

.prog-pricing__access-note {
  margin: var(--space-stack) 0 0;
  max-width: 720px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

body[data-page="program-landing"] #faq .faq,
body[data-page="program-landing"] #faq .prog-faq {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 900px) {
  .prog-contrast {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .prog-stats {
    flex-direction: column;
  }

  .prog-stat {
    max-width: none;
  }

  .prog-point {
    grid-template-columns: 1fr;
  }

  .prog-point__num {
    width: 36px;
    height: 36px;
  }

  .prog-pricing__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive system — mobile-first refinements for home + chrome
   Breakpoints: ≤375 · 376–480 · 481–768 · 769–1024 · 1025–1440 · >1440
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

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

video,
iframe {
  height: auto;
}

.container,
.section,
.hero,
.footer,
.header {
  min-width: 0;
}

.btn,
.header__login,
.header__actions .btn--primary,
.format-tabs__tab,
.locale-dropdown__trigger {
  min-height: 44px;
}

.header__mobile .btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

/* ≤1440: keep content from stretching awkwardly on mid-wide screens */
@media (max-width: 1440px) {
  :root {
    --gutter: clamp(20px, 2.8vw, 40px);
  }
}

/* ≤1024: tablet / small laptop */
@media (max-width: 1024px) {
  .hero__title-line,
  .hero__lead-line {
    white-space: normal;
  }

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

  .format-tabs__formula {
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .format-tabs__formula-line {
    display: none;
  }

  .company-modal {
    padding: 16px var(--gutter);
    align-items: end;
  }

  .company-modal__panel {
    width: min(100%, 640px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--r-sm);
  }
}

/* ≤768: large phones / tablets portrait */
@media (max-width: 768px) {
  :root {
    --space-outer: 72px;
    --gutter: clamp(16px, 4.5vw, 28px);
    --maxw: 100%;
  }

  .section-title,
  h2.section-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .lead,
  .section-subtitle {
    font-size: clamp(16px, 3.6vw, 20px);
  }

  .qcards,
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }

  .format-tabs__nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .format-tabs__tab {
    padding: 12px 14px;
  }

  .format-tabs__formula {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__actions .btn,
  .hero__actions .btn--ghost {
    flex: 1 1 auto;
    justify-content: center;
  }

  .company-modal__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
}

/* ≤480: phones */
@media (max-width: 480px) {
  :root {
    --space-outer: 56px;
    --r-md: 24px;
    --r-lg: 28px;
    --header-height: 56px;
  }

  body {
    font-size: 16px;
    padding-top: var(--header-height);
  }

  .header__inner,
  .nav-inner {
    min-height: var(--header-height);
  }

  .container {
    padding-inline: var(--gutter);
  }

  .hero__title {
    font-size: clamp(24px, 7.5vw, 30px);
  }

  .hero__lead {
    font-size: clamp(15px, 4.2vw, 16px);
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .format-tabs-wrap {
    --format-inset-x: 16px;
  }

  .format-tabs {
    border-radius: 0 var(--r-sm) var(--r-sm) var(--r-sm);
  }

  .format-tabs__bookmark {
    font-size: clamp(16px, 4.5vw, 20px);
    min-height: 52px;
    padding: 10px calc(12px + var(--format-bookmark-slant)) 10px var(--format-inset-x);
  }

  .card-white,
  .format-band,
  .cta-block,
  .waitlist-shell {
    padding: 22px 18px;
  }

  .company-modal {
    padding: 0;
    place-items: stretch end;
  }

  .company-modal__panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
  }
}

/* ≤375: small phones */
@media (max-width: 375px) {
  :root {
    --gutter: 14px;
    --space-outer: 48px;
    --grid-gap: 14px;
  }

  body {
    font-size: 15.5px;
  }

  .hero__title {
    font-size: clamp(22px, 7.8vw, 26px);
  }

  .btn,
  .hero__actions .btn {
    padding-inline: 16px;
    font-size: 14.5px;
  }

  .locale-dropdown--mobile .locale-dropdown__trigger {
    padding: 8px;
    font-size: 12px;
    min-height: 44px;
  }
}

/* ≥1025: desktop comfort */
@media (min-width: 1025px) {
  .hero__title-line {
    white-space: nowrap;
  }
}

/* ≥1441: wide monitors — keep readable measure */
@media (min-width: 1441px) {
  :root {
    --maxw: 1240px;
    --gutter: 45px;
  }

  .container {
    max-width: var(--maxw);
  }
}

/* Landscape phones: avoid oversized hero padding / modal overflow */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    padding-top: 16px;
  }

  .company-modal__panel {
    max-height: 96dvh;
  }

  .header__mobile {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Safe areas */
@supports (padding: max(0px)) {
  .header__inner,
  .nav-inner {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }

  .header__mobile {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--section-space), env(safe-area-inset-bottom));
  }
}

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

  .qcard:hover,
  .card:hover,
  .teacher-card:hover {
    transform: none;
  }
}

/* ---------- Home speaking drill ---------- */
.drill__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drill__cta { max-width: 860px; margin: 32px auto 0; padding: 24px; border-radius: var(--r-sm); background: var(--accent-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.drill__cta p { margin: 0; max-width: 560px; font-weight: 600; line-height: 1.45; }
@keyframes drill-spin { to { transform: rotate(360deg); } }
@keyframes drill-pulse { 50% { opacity: 0.3; } }

/* ---------- Drill review (report v2) ---------- */
.drill__report {
  position: relative;
  --dr-error: var(--accent-pink);
  --dr-filler: var(--chip-cream);
  --dr-hedge: var(--chip-blue);
  --dr-alt: #ddd3fa;
  --dr-strength: var(--sage);
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  font-size: 15px;
  line-height: 1.55;
}
.dr-demo { margin: 0; padding: 10px 16px; border-radius: var(--r-sm); background: var(--chip-cream); font-size: 14px; font-weight: 600; }
.dr-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.dr-kicker i { display: block; width: 3px; height: 14px; border-radius: 999px; background: var(--ink-soft); flex: none; }
.dr-kicker--sm { color: var(--ink-soft); margin-bottom: 14px; }
.dr-head { padding: 4px 0 8px; }
.dr-headline { margin: 14px 0 16px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.dr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-lang { margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.dr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.dr-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0.35; flex: none; }
.dr-chip b { font-weight: 800; }
.dr-chip--topic-yes i { background: var(--sage-d); opacity: 1; }
.dr-chip--topic-partly i { background: #e7b04a; opacity: 1; }
.dr-chip--topic-no i, .dr-chip--error i { background: #f2936a; opacity: 1; }
.dr-chip--filler i { background: #f0c25c; opacity: 1; }
.dr-chip--hedge i { background: var(--accent); opacity: 1; }
.dr-question { padding: 18px 22px; border-radius: var(--r-sm); background: var(--bg); }
.dr-question .dr-kicker { margin-bottom: 8px; }
.dr-question__text { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.dr-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 2.6vw, 26px); }
.dr-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dr-card__top .dr-kicker { margin: 0; }
.dr-pill { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; background: var(--bg); color: var(--ink); }
.dr-pill--error { background: var(--dr-error); }
.dr-pill--filler { background: var(--dr-filler); }
.dr-pill--hedge { background: var(--dr-hedge); }
.dr-audio { width: 100%; height: 44px; margin: 0 0 14px; display: block; border-radius: 999px; }
.dr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.dr-key { display: inline-flex; align-items: center; gap: 6px; }
.dr-key::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--bg); }
.dr-key--filler::before { background: var(--dr-filler); }
.dr-key--hedge::before { background: var(--dr-hedge); }
.dr-key--error::before { background: var(--dr-error); }
.dr-key--strength::before { background: var(--dr-strength); }
.dr-transcript { margin: 0; font-size: 16px; line-height: 2; }
.dr-w { cursor: pointer; border-radius: 6px; transition: background 0.12s ease; }
.dr-w:hover { background: rgba(26, 26, 26, 0.07); }
.dr-w.is-now { box-shadow: 0 0 0 2px var(--accent); background: #fff; }
/* inside a highlighted phrase the single word is never singled out: the whole phrase lights up instead */
.dr-mark .dr-w, .dr-mark .dr-w:hover, .dr-mark .dr-w.is-now { background: transparent; box-shadow: none; cursor: inherit; }
mark.dr-mark.is-now { box-shadow: 0 0 0 2px var(--accent); }
.dr-mark { padding: 3px 7px; border-radius: 9px; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dr-w--filler { background: var(--dr-filler); }
.dr-w--hedge { background: var(--dr-hedge); }
.dr-w--alt { background: var(--dr-alt); }
.dr-w--error { background: var(--dr-error); font-weight: 700; }
.dr-w--strength { background: var(--dr-strength); }
.dr-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.dr-para { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.dr-rewrite { padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); }
.dr-rewrite + .dr-rewrite { margin-top: 18px; }
.dr-rewrite__was { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.dr-rewrite__better { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.dr-rewrite__why { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.dr-gr + .dr-gr { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dr-gr.is-active { box-shadow: -14px 0 0 -11px var(--accent); }
.dr-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--dr-error); font-size: 12px; font-weight: 800; }
.dr-gr__rule { margin: 10px 0; font-size: 15px; line-height: 1.5; font-weight: 600; }
.dr-box { display: flex; gap: 12px; align-items: baseline; border-radius: 14px; padding: 10px 14px; }
.dr-box + .dr-box { margin-top: 6px; }
.dr-box small { flex: none; width: 76px; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.dr-box p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.dr-box--was { background: var(--bg); }
.dr-box--was del { text-decoration-color: #e0764a; text-decoration-thickness: 2px; color: var(--ink); }
.dr-box--better { background: rgba(162, 192, 173, 0.35); }
.dr-box--better strong { color: var(--ink); font-weight: 800; }
.dr-pace { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dr-pace > div { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg); }
.dr-big { font-size: 36px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.dr-pace span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.dr-pace em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; }
.dr-quote { margin: 0 0 6px; padding: 10px 14px; border-radius: 14px; background: rgba(162, 192, 173, 0.35); font-size: 15px; font-weight: 700; line-height: 1.4; }
.dr-quote + .dr-note { margin: 0 0 14px; }
.dr-card--next { background: var(--ink); border-color: var(--ink); color: #fff; }
.dr-card--next .dr-kicker { color: var(--accent-pink); }
.dr-card--next .dr-kicker i { background: var(--accent-pink); }
.dr-next { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }

.dr-note--lead { margin: -4px 0 14px; }
.dr-model { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dr-model li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: baseline; }
/* role labels differ in length per language (ru "Доказательство", pl "Przeformułowanie"), so the column follows the longest one */
@supports (grid-template-columns: subgrid) {
  .dr-model { grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; }
  .dr-model li { grid-template-columns: subgrid; grid-column: 1 / -1; column-gap: 14px; }
}
.dr-model p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
.dr-role { justify-self: start; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--chip-blue); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.dr-expert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -2px 0 14px; }
.dr-expert__who { font-size: 14px; font-weight: 800; }
.dr-card--expert { background: linear-gradient(180deg, rgba(181, 209, 241, 0.28), #fff 140px); }
.dr-model__why { margin: 3px 0 0 !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.4 !important; color: var(--ink-soft); }
.dr-why { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg); }
.dr-why b { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.dr-why ul { margin: 0; padding-left: 18px; list-style: disc; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.dr-pause { display: inline-block; margin: 0 4px; padding: 1px 8px; border: 0; border-radius: 999px; background: rgba(26, 26, 26, 0.07); color: var(--ink-soft); font: inherit; font-size: 12px; font-weight: 700; vertical-align: 1px; cursor: pointer; }
.dr-pause:hover { background: var(--accent-soft); color: var(--ink); }
.dr-key--pause::before { width: 18px; height: 12px; border-radius: 999px; background: rgba(26, 26, 26, 0.12); }
.dr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(26, 26, 26, 0.2); }
.dr-step.is-on { border: 1px solid transparent; background: rgba(162, 192, 173, 0.3); }
.dr-step__mark { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(26, 26, 26, 0.2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.dr-step.is-on .dr-step__mark { border-color: var(--sage-d); background: var(--sage-d); }
.dr-step b { font-size: 14px; }
.dr-step p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); font-style: italic; }
.dr-step .dr-step__none { font-style: normal; }
.dr-sign { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dr-sign__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dr-chip--ok { background: rgba(162, 192, 173, 0.35); border-color: transparent; }
.dr-chip--miss { background: transparent; border: 1px dashed rgba(26, 26, 26, 0.25); color: var(--ink-soft); }
.dr-chip--pause { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.dr-chips--tight { margin-top: 10px; }
.dr-chips--below { margin: 2px 0 4px 4px; }
.dr-more { margin-top: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dr-more:hover { border-color: var(--accent); color: var(--accent); }
.dr-gr[hidden] { display: none; }
.dr-delivery { display: grid; gap: 0; }
.dr-sub { padding: 16px 0; }
.dr-sub:first-child { padding-top: 0; }
.dr-sub:last-child { padding-bottom: 0; }
.dr-sub + .dr-sub { border-top: 1px solid var(--line); }
.dr-sub__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dr-sub__top b { font-size: 15px; font-weight: 800; }
.dr-conn { padding: 1px 4px; border-radius: 6px; background: var(--chip-blue); }
.dr-conn sup { margin-left: 3px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.dr-conn--example { background: var(--chip-cream); }
.dr-conn--conclude { background: rgba(162, 192, 173, 0.5); }
.dr-conn--contrast, .dr-conn--soften { background: var(--accent-pink); }
.dr-conn--open { background: var(--accent-soft); }
.dr-listen { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dr-listen:hover, .dr-listen.is-playing { border-color: var(--accent); color: var(--accent); }
.dr-listen.is-loading { border-color: var(--accent); color: var(--ink-soft); cursor: progress; }
.dr-bank { display: grid; gap: 12px; }
.dr-bank__group { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; }
/* the label column follows the longest label of the current language (uk "пом’якшення", pl "złagodzenie" are wider than any fixed value) */
@supports (grid-template-columns: subgrid) {
  .dr-bank { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; }
  .dr-bank__group { grid-template-columns: subgrid; grid-column: 1 / -1; column-gap: 12px; }
}
.dr-fn { justify-self: start; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.dr-bank__phrases { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-phrase { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.dr-phrase.is-used { background: rgba(162, 192, 173, 0.35); border-color: transparent; }

/* Trial dialogue (English only) */
/* Folder tabs above the card: Monologue / Dialogue */
.dfolder { position: relative; }
.dfolder__tabs { position: relative; display: flex; align-items: flex-end; padding: 0 36px; margin-bottom: -2px; }
.dtab {
  --tab: var(--ink);
  position: relative; z-index: 1; margin-left: -4px; padding: 15px 30px 13px; border: 0; border-radius: 20px 20px 0 0;
  background: var(--tab); color: #fff; font: inherit; font-size: 16px; font-weight: 800; line-height: 1.1; cursor: pointer; transition: background 0.15s ease;
}
.dtab:first-child { margin-left: 0; }
.dtab::before, .dtab::after { content: ""; position: absolute; bottom: 0; width: 20px; height: 20px; pointer-events: none; }
.dtab::before { left: -20px; background: radial-gradient(circle at 0 0, transparent 19.5px, var(--tab) 20px); }
.dtab::after { right: -20px; background: radial-gradient(circle at 100% 0, transparent 19.5px, var(--tab) 20px); }
.dtab:not(.is-active) { padding-top: 21px; }   /* the tab behind stands a little higher, like a real folder */
/* each tab keeps its own colour: Monologue is always blue, Dialogue is always dark; the active one is simply in front */
.dtab[data-mode="monologue"] { --tab: #6687ff; }
.dtab[data-mode="dialogue"] { --tab: var(--ink); }
.dtab.is-active { z-index: 3; cursor: default; }   /* above the card edge, so the active tab and the card are one piece */
.dtab:not(.is-active):hover { filter: brightness(1.12); }
.dtab[disabled]:not(.is-active) { cursor: not-allowed; opacity: 0.85; }
.dtab[disabled]:not(.is-active):hover { filter: none; }
.dfolder .dcard { position: relative; z-index: 2; border: 2px solid var(--accent); }
/* The dialogue card is dark (the report that follows stays light); buttons stay blue. Only variables inside the card are
   changed, so the folder tabs keep their own colours. */
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard {
  --ink: #fff; --ink-soft: #b9b9c0; --bg: #2a2a2d; --surface: #2a2a2d; --line: rgba(255, 255, 255, 0.16);
  background: #1a1a1a; border-color: #1a1a1a; color: #fff; box-shadow: none;
}
/* Inside the dark card: situation chips, buttons, scenario block */
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__chip { background: #2a2a2d; border-color: rgba(255, 255, 255, 0.16); color: #cfcfd4; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__chip.is-active { background: #f6c7ac; border-color: #f6c7ac; color: #1a1a1a; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__btn { background: var(--accent); color: #fff; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__btn[disabled] { background: #3a3a3e; color: #8b8b92; opacity: 1; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dmic { background: #ff5f3e; color: #1a1a1a; box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 10px rgba(255,95,62,.45); }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) button.dmic:hover:not([disabled]) { background: #f0502f; box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 12px rgba(255,95,62,.45); }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__cap { color: #fff; font-weight: 700; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dlg-scenario { background: #ff5f3e; color: #1a1a1a; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dlg-scenario .dlg-step { color: #1a1a1a; font-weight: 800; letter-spacing: 0.08em; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__consent a { color: #d6d6db; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__dots i { background: #4a4a4f; }
.dfolder[data-mode="dialogue"]:not(.dfolder--wide) .dcard__dots i.is-on { background: var(--accent); }
/* The white contour of the selected dialogue is an SVG path drawn by drill.js round the dark tab and the card. */
.dlg-outline { position: absolute; left: 0; top: 0; z-index: 4; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 10px rgba(26, 26, 26, 0.32)); }
.dfolder--wide .dcard { border-width: 1px; border-color: var(--line); }
/* Monologue and dialogue start screens share one height; the free space sits above the microphone / start button. */
.dcard[data-state="ready"] { min-height: 720px; }
.dcard[data-state="ready"] .dcard__stage { margin-top: auto; padding-top: 18px; }
.dfolder[data-mode="dialogue"] .dcard[data-state="ready"] .dcard__stage { margin-block: auto; padding: 18px 0; }
/* For companies the monologue card has fewer topics and a short task: it keeps its own height instead of the shared one (no empty band above the microphone). */
[data-drill="business"] .dfolder:not([data-mode="dialogue"]) .dcard[data-state="ready"] { min-height: 0; }
[data-drill="business"] .dfolder:not([data-mode="dialogue"]) .dcard[data-state="ready"] .dcard__stage { margin-top: 28px; }
.dlg-how { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.dlg-how li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); }
.dlg-how b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); }
/* Dialogue start for a visitor without a pass: what the dialogue is, a sample review, then the work email that opens it */
.dlg-gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: left; }
.dlg-gate__about { display: grid; gap: 12px; align-content: start; }
.dcard .dlg-gate__title { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
@media (min-width: 900px) {
  .dlg-gate { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 40px; }
  .dlg-gate__title, .dlg-gate__chips { grid-column: 1 / -1; }      /* the chips run under the title, so "How it goes" and the form start level */
  .dlg-gate__form { align-self: start; margin-top: 0; }
}
.dlg-gate__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-gate__chips li { padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(246, 199, 172, 0.55); color: #f6c7ac; font-size: 14px; font-weight: 700; }
/* how the trial goes: three steps with an icon each, divided by thin lines */
.dlg-gate__how { padding: 18px 20px 6px; border-radius: 20px; background: var(--bg); }
.dlg-gate__how-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.dlg-gate__how ol { list-style: none; margin: 0; padding: 0; }
.dlg-gate__how li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; font-size: 15px; line-height: 1.45; }
.dlg-gate__how li + li { border-top: 1px solid var(--line); }
.dlg-gate__how svg { flex: none; margin-top: 1px; color: #f6c7ac; }
.dlg-gate__after { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.dlg-gate__sample { justify-self: start; margin-top: 4px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dlg-gate__sample:hover { border-color: var(--ink-soft); }
.dlg-gate__form { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: var(--bg); }
.dlg-gate__lead { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.35; }
.dlg-gate__row { display: flex; gap: 8px; }
.dlg-gate__email { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #1a1a1a; color: var(--ink); font: inherit; font-size: 15px; }
.dlg-gate__email::placeholder { color: #8b8b92; }
.dlg-gate__email:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dlg-gate__row .dcard__btn { flex: none; white-space: nowrap; }
.dlg-gate__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.dlg-gate__consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.dlg-gate__consent a { color: inherit; text-decoration: underline; }
.dlg-gate__trap, .form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dlg-gate__error { margin: 0; font-size: 13px; font-weight: 700; color: #ff8a70; }
.dlg-gate__used { margin: 0; font-size: 14.5px; line-height: 1.5; }
.dlg-gate__cta { justify-self: start; text-decoration: none; }
@media (max-width: 520px) {
  .dlg-gate__row { flex-direction: column; }
  .dlg-gate__row .dcard__btn { width: 100%; }
}
.dlg-step { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
/* the learner hears the partner instead of reading the question */
.dlg-scenario { display: grid; gap: 6px; padding: 14px 18px; border-radius: 18px; background: var(--bg); text-align: left; }
.dlg-scenario__text { margin: 0; font-size: clamp(18px, 1.9vw, 21px); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
/* Call screen: header like a phone call, live captions, speaking-time meter */
.dlg-call { display: grid; gap: 14px; }
.dlg-call__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: var(--bg); }
.dlg-avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.dlg-avatar.is-speaking::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: dlg-ring 1.4s ease-out infinite; }
@keyframes dlg-ring { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }
.dlg-call__who { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; }
.dlg-call__who b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.dlg-call__who span { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dlg-hangup { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e5484d; color: #fff; display: grid; place-items: center; cursor: pointer; }
.dlg-hangup:hover { background: #cf3a3f; }
.dlg-captions { min-height: 150px; max-height: 250px; overflow-y: auto; display: grid; gap: 12px; align-content: start; padding: 14px 18px; border-radius: 18px; background: var(--bg); text-align: left; }
.dlg-cap { margin: 0; display: grid; gap: 2px; font-size: 17px; line-height: 1.45; }
.dlg-cap__who { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dlg-cap--partner { font-weight: 700; }
.dlg-cap--you { font-weight: 500; color: var(--ink-soft); }
.dlg-cap--past { opacity: 0.6; font-size: 15px; }
.dlg-cap--typing span:last-child::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--accent); animation: dlg-caret 0.9s steps(1) infinite; }
@keyframes dlg-caret { 50% { opacity: 0; } }
.dlg-dots { display: inline-flex; gap: 5px; height: 26px; align-items: center; }
.dlg-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); opacity: 0.35; animation: dlg-dot 1.1s ease-in-out infinite; }
.dlg-dots i:nth-child(2) { animation-delay: 0.15s; }
.dlg-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dlg-dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.dlg-turnbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.dlg-turnbar__label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.dlg-countdown { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.dlg-spin { width: 24px; height: 24px; border-width: 3px; }
.dlg-meter { display: grid; gap: 6px; }
.dlg-meter__top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dlg-meter__bar { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.dlg-meter__bar i { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .dlg-avatar.is-speaking::after, .dlg-dots i, .dlg-cap--typing span:last-child::after { animation: none; } }
.dlg-voice { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; }
.dlg-voice i { display: block; width: 5px; height: 8px; border-radius: 3px; background: var(--accent); opacity: 0.45; }
.dlg-voice.is-speaking i { opacity: 1; animation: dlg-wave 0.9s ease-in-out infinite; }
.dlg-voice.is-speaking i:nth-child(2) { animation-delay: 0.12s; }
.dlg-voice.is-speaking i:nth-child(3) { animation-delay: 0.24s; }
.dlg-voice.is-speaking i:nth-child(4) { animation-delay: 0.36s; }
.dlg-voice.is-speaking i:nth-child(5) { animation-delay: 0.48s; }
@keyframes dlg-wave { 0%, 100% { height: 8px; } 50% { height: 28px; } }
@media (prefers-reduced-motion: reduce) { .dlg-voice.is-speaking i { animation: none; height: 20px; } }
.dlg-turn { display: grid; gap: 12px; }
.dlg-line { display: grid; gap: 4px; }
.dlg-line p { margin: 0; line-height: 1.5; }
.dlg-line--partner p { font-weight: 700; }
.dlg-line__who { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dlg-block { display: grid; gap: 8px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.dlg-row__label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dlg-block > p { margin: 0; font-size: 16px; line-height: 1.5; }
.dlg-transcript { display: grid; gap: 4px; }
.dlg-transcript__line:first-child { margin-top: 0; }
.dlg-transcript__line { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
.dlg-transcript__who { font-weight: 700; }
.dlg-turn .dlg-rule { display: grid; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--bg); width: 100%; }
.dlg-rule__when { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.dlg-rule[hidden] { display: none; }
.dlg-rule__row { display: grid; grid-template-columns: 112px 1fr; gap: 4px 14px; align-items: baseline; }
.dlg-rule__label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dlg-rule__row p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.dlg-rule__formula { justify-self: start; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #3f55c4; }
.dlg-rule__examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dlg-rule__examples li { position: relative; padding-left: 22px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.dlg-rule__examples li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #2e7d57; font-weight: 800; }
.dlg-expert { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #eef1ff; }
.dlg-expert__title { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dlg-expert__text { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.dlg-expert__why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.dlg-expert__why b { color: var(--ink); }
/* review tabs and the "Practise mistakes" cards */
.dlg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.dlg-tab { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.dlg-tab:hover { border-color: var(--ink); }
.dlg-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dlg-panel { display: grid; gap: 24px; }
.dlg-panel[hidden] { display: none; }
.dcard.dcard--gray, .dfolder .dcard.dcard--gray { background: #f2f2f2; border-color: #fff; border-width: 10px; }
.dcard--gray .dr-card, .dlg-panel[data-panel="practise"] .dlg-topic-card { background: #fff; border-color: transparent; }
.dcard--gray .dr-card { padding: clamp(24px, 4vw, 40px); }
.dcard--gray .dlg-topic-card { padding: clamp(20px, 3vw, 28px); }
.dlg-panel[data-panel="practise"] .dlg-topics { display: grid; gap: 24px; padding: 0; }
.dlg-panel[data-panel="practise"] .dlg-topic-card + .dlg-topic-card { margin-top: 0; }
.dlg-panel[data-panel="practise"] .dlg-rule { background: #f2f2f2; }
.dlg-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dlg-card-head h4 { margin: 0; }
.dlg-topics { padding: 6px 0 0; }
.dlg-topic-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 4px; justify-items: start; }
.dlg-topic-card + .dlg-topic-card { margin-top: 12px; }
.dlg-topic-card__name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.dlg-topic-card__meta { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.dlg-topic-card__meta s { color: #b04a2f; text-decoration-thickness: 1.5px; }
.dlg-topic-card__meta b { color: var(--ink); font-weight: 800; }
.dlg-topic-card__count { margin: 0; font-size: 13px; color: var(--ink-soft); }
.dlg-topic-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.dlg-topic-card .dlg-rule { margin-top: 10px; }
.dlg-btn { display: inline-flex; align-items: center; padding: 10px 22px; border: 0; border-radius: 999px; background: #f2f2f2; color: #1a1a1a; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; }
.dlg-btn:hover { background: #e6e6e6; }
.dlg-link { padding: 0; border: 0; background: none; color: #3f55c4; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.dlg-link:hover { text-decoration: underline; }
.dlg-phrase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dlg-phrase-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.dlg-phrase-list b { flex: none; padding: 5px 12px; border-radius: 999px; background: #eef1ff; color: #3f55c4; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.dlg-next { margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) {
  .dlg-rule__row { grid-template-columns: 1fr; }
}

@media (max-width: 810px) {
  .dr-steps { grid-template-columns: 1fr; }
  .dr-bank__group { grid-template-columns: 1fr; gap: 6px; }
  .dr-model li { grid-template-columns: 1fr; gap: 6px; }
  .dr-pace { grid-template-columns: 1fr; }
  .dr-box { flex-direction: column; gap: 4px; }
}

/* ---------- Hero layout with the drill card ---------- */
@media (min-width: 811px) {
  .hero__top {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
  }
  .hero__top .hero__head { grid-column: 1; grid-row: 1; }
  .hero__top .hero__drill { grid-column: 2; grid-row: 1; z-index: 2; }
  .hero__top .hero__visual { grid-column: 1 / -1; grid-row: 2; margin-top: 0 !important; }
  .hero__top .hero__title-line { white-space: normal; }
}
@media (max-width: 810px) {
  .hero__top .hero__drill { grid-column: 1; grid-row: 2; }
  .hero__top .hero__visual { grid-row: 3; }
}

/* Heading + subheading above the dashboard image */
.hero__showcase { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.hero__showcase-head { max-width: 960px; margin-bottom: var(--space-inner); }
.hero__showcase-head .gd__subtitle { max-width: 27em; }
@media (max-width: 810px) {
  .hero__showcase { grid-column: 1; grid-row: 3; }
}

/* ---------- Drill card ---------- */
.dcard {
  --dr-grammar: #e5484d;
  --dr-vocab: #7c5cff;
  --dr-conf: #d98a00;
  --dr-filler: #ffd84d;
  --dr-strength: #2f9e6e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dcard__label { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.dcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.dcard__note { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); white-space: nowrap; }
.dcard__label--biz { font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.dcard__select { position: relative; display: inline-flex; }
.dcard__select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 10px 40px 10px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%236687ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.dcard__select select:hover { border-color: var(--accent); }
.dcard__select select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 135, 255, 0.22); }
/* keep focus rings of the drill controls round on pages that set their own focus style (company page) */
.dcard .dcard__select select:focus-visible,
.dcard .dcard__chip:focus-visible,
.dcard .dcard__lang:focus-visible,
.dcard .dcard__btn:focus-visible,
.dcard .dmic:focus-visible { border-radius: 999px; outline-offset: 2px; }
.dcard__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dcard__ctx { display: flex; flex-wrap: wrap; gap: 5px; }
.dcard__chip { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.dcard__chip:hover { color: var(--ink); border-color: rgba(26, 26, 26, 0.25); }
.dcard__chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dcard__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.dcard__lang {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.dcard__lang.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dcard__topic { margin: 0; font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.dcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dcard__link { font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.dcard__link:hover { text-decoration: underline; }
.dcard__link--menu { display: inline-flex; align-items: center; gap: 6px; }
.dcard__link--menu svg { transition: transform 0.18s ease; }
.dcard__link--menu[aria-expanded="true"] svg { transform: rotate(180deg); }
.dcard__linkswrap { position: relative; }
.dcard__pop {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 10px);
  margin: 0; padding: 6px; list-style: none;
  max-height: min(268px, 44vh); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.16), 0 2px 8px rgba(26, 26, 26, 0.06);
  animation: dcard-pop 0.16s ease-out;
}
.dcard__pick {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer;
}
.dcard__stage, .dcard__dots, .dcard__bar, .dcard__foot, .dcard__consent { transition: opacity 0.18s ease; }
.dcard.has-menu .dcard__stage, .dcard.has-menu .dcard__dots, .dcard.has-menu .dcard__bar, .dcard.has-menu .dcard__foot, .dcard.has-menu .dcard__consent { opacity: 0.18; pointer-events: none; }
.dcard__pick:hover { background: var(--bg); }
.dcard__pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dcard__pick.is-active { background: var(--accent-soft); }
.dcard__pick.is-active::after { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes dcard-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.dcard__stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0 2px; }
.dmic {
  width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--accent-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button.dmic:hover:not([disabled]) { transform: scale(1.04); box-shadow: 0 0 0 8px #fff, 0 0 0 12px var(--accent-soft); }
button.dmic[disabled] { opacity: 0.4; cursor: not-allowed; }
.dmic--clock, .dmic--rec, .dmic--busy, .dmic--done { cursor: default; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dmic--clock { background: var(--ink); }
.dmic--rec { background: var(--dr-grammar); box-shadow: 0 0 0 8px #fff, 0 0 0 10px rgba(229, 72, 77, 0.25); animation: dcard-ring 1.4s ease-in-out infinite; }
.dmic--busy { background: var(--accent-soft); }
.dmic--done { background: var(--sage-d); }
.dcard__spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #fff; border-top-color: var(--accent); animation: drill-spin 0.9s linear infinite; }
.dcard__cap { margin: 10px 0 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; justify-content: center; }
.dcard__timing { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.dcard__rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dr-grammar); animation: drill-pulse 1.2s ease-in-out infinite; }
.dcard__steps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 6px; text-align: left; }
.dcard__steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.dcard__steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9c9ce; flex: none; }
.dcard__steps li.is-active { color: var(--ink); }
.dcard__steps li.is-active i { border-color: var(--accent); border-top-color: transparent; animation: drill-spin 0.9s linear infinite; }
.dcard__steps li.is-done { color: var(--ink); }
.dcard__steps li.is-done i { border-color: var(--sage-d); background: var(--sage-d); }
.dcard__dots { display: flex; justify-content: center; gap: 4px; padding: 4px 0; }
.dcard__dots i { width: 5px; height: 5px; border-radius: 50%; background: #c9c9ce; transition: background 0.1s linear, transform 0.1s linear; }
.dcard__dots i.is-on { background: var(--accent); transform: scale(1.5); }
.dcard__bar { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.dcard__bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.dcard__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.dcard__btn { font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; }
.dcard__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.dcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--ink-soft); }
.dcard__consent { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.dcard__consent a { color: inherit; text-decoration: underline; }
@keyframes dcard-ring { 50% { box-shadow: 0 0 0 8px #fff, 0 0 0 16px rgba(229, 72, 77, 0.12); } }
@media (prefers-reduced-motion: reduce) {
  .dcard__spinner, .dcard__rec-dot, .dmic--rec, .dcard__steps li.is-active i, .dcard__pop { animation: none; }
}

/* ---------- Drill card: expanded report ---------- */
.hero__top { scroll-margin-top: calc(var(--header-height) + 16px); }
.dcard--wide { gap: 16px; }
.dcard__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; }
.dcard__head .dcard__btn { flex: none; }
.dcard__head { align-items: center; gap: 18px; }
.dcard__head--end { justify-content: flex-end; }
.dcard__topic--sm { font-size: clamp(20px, 2vw, 26px); margin-top: 4px; }
.dcard__scroll { margin-right: -12px; padding-right: 12px; }
@media (min-width: 811px) {
  .hero__top.is-drill-report { grid-template-columns: minmax(0, 1fr); }
  .hero__top.is-drill-report .hero__head { display: none; }
  .hero__top.is-drill-report .hero__drill { grid-column: 1; }
  .dcard--wide .dcard__scroll { max-height: calc(100vh - var(--header-height) - 190px); min-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- Home: programme pricing (modules) ---------- */
.hp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hp-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(28px, 3.2vw, 40px); display: flex; flex-direction: column; }
.hp-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hp-card__badge { position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.hp-card__tag { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hp-card__title { margin: 0 0 22px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }

.hp-card__text { margin: 10px 0 0; color: #b9b9be; }
.hp-card__price { margin: 0 0 22px; font-size: clamp(40px, 4.4vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hp-card__price small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.hp-card__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; color: var(--ink-soft); font-weight: 500; }
.hp-card__list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
.hp-card__list li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 2px; background: var(--ink); }
.hp-card__list b { color: var(--ink); font-weight: 800; }
.hp-card .btn { margin-top: auto; align-self: flex-start; }
.hp-wide { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--card, #2b2b2e); color: #fff; }
.hp-wide__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-wide__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hp-wide .hp-card__tag { margin: 0; }
.hp-wide .hp-card__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.hp-wide .hp-card__price { margin: 0; }
.hp-wide .hp-card__price small { color: #b9b9be; }
.hp-wide .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.hp-wide .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
@media (max-width: 900px) { .hp-grid { grid-template-columns: 1fr; } }

/* clickable highlights and their explanation bubble */
mark.dr-mark .dr-w:hover { background: transparent; }   /* no grey patch on single words inside a highlight */
mark.dr-mark[data-kind] { cursor: pointer; transition: background-color 0.14s ease, box-shadow 0.14s ease; }
/* hover: the highlight simply gets a shade deeper in its own colour (no grey overlay) */
mark.dr-w--error[data-kind]:hover, mark.dr-w--error[data-kind].is-open { background-color: #ffad86; }
mark.dr-w--filler[data-kind]:hover, mark.dr-w--filler[data-kind].is-open { background-color: #ffd98c; }
mark.dr-w--hedge[data-kind]:hover, mark.dr-w--hedge[data-kind].is-open { background-color: #9cc2ee; }
mark.dr-w--alt[data-kind]:hover, mark.dr-w--alt[data-kind].is-open { background-color: #c6b8f5; }
mark.dr-w--strength[data-kind]:hover, mark.dr-w--strength[data-kind].is-open { background-color: #8db79e; }
mark.dr-mark[data-kind].is-open { box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.85); }
mark.dr-mark[data-kind]:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.dr-pop { position: absolute; z-index: 30; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 36px rgba(26, 26, 26, 0.18); display: grid; gap: 8px; justify-items: start; text-align: left; }
.dr-pop[hidden] { display: none; }
.dr-pop__tag { padding: 3px 10px; border-radius: 999px; background: #eef1ff; color: #3f55c4; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.dr-pop__tag--good { background: #e3f1e9; color: #2e6b4a; }
.dr-pop__tag--alt { background: #efeafe; color: #5b45b0; }
.dr-pop__fix { margin: 0; font-size: 16px; line-height: 1.4; }
.dr-pop__fix s { color: #b04a2f; text-decoration-thickness: 1.5px; }
.dr-pop__fix b { font-weight: 800; }
.dr-lw { cursor: pointer; border-radius: 4px; transition: background-color 0.12s ease; }
.dr-lw:hover, .dr-lw.is-open { background-color: rgba(102, 135, 255, 0.18); }
.dr-conn[tabindex] { cursor: help; transition: background-color 0.14s ease; }
.dr-conn--open:hover, .dr-conn--open.is-open { background: #f4cdb9; }
.dr-conn--example:hover, .dr-conn--example.is-open { background: #ffd98c; }
.dr-conn--conclude:hover, .dr-conn--conclude.is-open { background: rgba(141, 183, 158, 0.75); }
.dr-conn--contrast:hover, .dr-conn--soften:hover, .dr-conn--contrast.is-open, .dr-conn--soften.is-open { background: #ffad86; }
.dr-conn--argue:hover, .dr-conn--argue.is-open { background: #9cc2ee; }
.dr-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.dr-pop__word { font-size: 18px; font-weight: 800; }
.dr-pop__book { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.dr-pop__book:hover { background: #f2f2f2; }
.dr-pop__tr { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.dr-pop__link { font-size: 14px; font-weight: 800; color: #3f55c4; text-decoration: none; }
.dr-pop__link:hover { text-decoration: underline; }
.dr-pop__why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

/* "this can be clicked" cues: a small (i) after every highlight, and a one-line hint above */
mark.dr-mark[data-kind] { text-decoration: underline dotted rgba(26, 26, 26, 0.38); text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* the (i) appears only when you point at a highlight, so the text stays calm */
mark.dr-mark[data-kind]::after { content: "i"; display: inline-grid; place-items: center; width: 0; height: 15px; margin-left: 0; overflow: hidden; opacity: 0; border-radius: 50%; background: #1a1a1a; color: #fff; font: italic 700 10px/1 Georgia, "Times New Roman", serif; vertical-align: 1px; transition: width 0.14s ease, margin-left 0.14s ease, opacity 0.14s ease; }
mark.dr-mark[data-kind]:hover::after, mark.dr-mark[data-kind]:focus-visible::after, mark.dr-mark[data-kind].is-open::after { width: 15px; margin-left: 6px; opacity: 1; }
.dr-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.dr-hint--panel { margin: 0 4px; }
.dr-i { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(26, 26, 26, 0.78); color: #fff; font: italic 700 10px/1 Georgia, "Times New Roman", serif; }

/* ---- "Practise mistakes": one card per rule, the learner's own sentences to correct ---- */
.pm-cards { display: grid; gap: 24px; }
.pm-card { display: grid; gap: 14px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: #fff; }
.pm-card[hidden] { display: none; }
.pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pm-name { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.pm-count { flex: none; padding: 4px 12px; border-radius: 999px; background: #fdebe3; color: #b04a2f; font-size: 13px; font-weight: 800; }
/* the rule: a closed bar with the gist, opening into numbered steps */
.pm-rulebox { border-radius: 18px; background: #eef1ff; overflow: hidden; }
.pm-ruletoggle { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pm-ruleicon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #3f55c4; }
.pm-ruletext { display: grid; gap: 2px; min-width: 0; }
.pm-ruletext b { font-size: 16px; font-weight: 800; }
.pm-ruletext span { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.pm-ruletoggle[aria-expanded="true"] .pm-ruletext span { display: none; }
.pm-chev { width: 10px; height: 10px; border-right: 2px solid #3f55c4; border-bottom: 2px solid #3f55c4; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.18s ease; }
.pm-ruletoggle[aria-expanded="true"] .pm-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.pm-ruletoggle:hover .pm-ruleicon { background: #dfe5ff; }
.pm-rule { display: grid; gap: 4px; padding: 4px 18px 20px; }
.pm-rule[hidden] { display: none; }
.pm-step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(63, 85, 196, 0.14); }
.pm-step:first-child { border-top: 0; }
.pm-stepn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3f55c4; color: #fff; font-size: 13px; font-weight: 800; }
.pm-stepb { display: grid; gap: 8px; min-width: 0; }
.pm-steph { margin: 4px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #3f55c4; }
.pm-when { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
.pm-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-block { padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(63, 85, 196, 0.18); color: #1a1a1a; font-size: 16px; font-weight: 800; }
.pm-plus { color: #3f55c4; font-size: 20px; font-weight: 800; }
.pm-fnote { margin: 0; font-size: 14px; color: var(--ink-soft); }
.pm-signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pm-signals span { padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; }
.pm-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-examples li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.pm-examples li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #2e7d57; font-weight: 800; }
.pm-yours { margin: 0; font-size: 16px; line-height: 1.6; }
.pm-tip { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff7e0; }
.pm-tip p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.pm-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-bad, .pm-good { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.45; }
.pm-bad { background: #fdebe3; color: #8a3a22; }
.pm-bad s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(176, 74, 47, 0.6); }
.pm-good { background: #e3f1e9; color: #1f5c40; font-weight: 700; }
.pm-bad i, .pm-good i { flex: none; font-style: normal; font-weight: 800; }
.pm-tipex { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-tipex span { padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
@media (max-width: 600px) { .pm-pairs li { grid-template-columns: 1fr; } }
.pm-key { padding: 1px 4px; border-radius: 6px; background: #e3f1e9; color: #1f5c40; font-weight: 700; }
.pm-q { display: inline-block; padding: 0 8px; border-radius: 8px; background: #fff; font-weight: 700; line-height: 1.6; }
.pm-fex { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.5; }
.pm-fex span { color: #3f55c4; font-weight: 800; }
.pm-build { display: grid; gap: 10px; margin-top: 16px; padding: 18px; border: 1.5px solid #dfe5ff; border-radius: 18px; background: #fafbff; }
.pm-build .pm-hint { margin: -4px 0 0; }
.pm-line { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border-radius: 14px; background: #fff; border: 1.5px dashed #c9d2f5; }
.pm-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-bank:empty { display: none; }
.pm-chip { padding: 8px 14px; border: 1.5px solid #dfe5ff; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 0.1s ease, border-color 0.15s ease; }
.pm-chip:hover { border-color: #3f55c4; }
.pm-chip:active { transform: scale(0.96); }
.pm-line .pm-chip { background: #eef1ff; border-color: transparent; }
.pm-build.is-right .pm-line { border-style: solid; border-color: #2e7d57; background: #edf6f0; }
.pm-build.is-right .pm-line .pm-chip, .pm-build.is-shown .pm-line .pm-chip { background: #e3f1e9; color: #1f5c40; cursor: default; }
.pm-build.is-wrong .pm-line { border-color: #e5484d; background: #fff5f3; }
.pm-build .pm-verdict { margin: 0; font-size: 15px; font-weight: 700; }
.pm-build.is-right .pm-verdict { color: #2e7d57; }
.pm-build.is-wrong .pm-verdict { color: #b04a2f; }
.pm-build .pm-verdict:empty { display: none; }
.pm-buildbtns { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pm-buildbtns .pm-again { display: none; }
.pm-build.is-wrong .pm-buildbtns .pm-again, .pm-build.is-shown .pm-buildbtns .pm-again { display: inline-block; }
.pm-build.is-right .pm-buildbtns, .pm-build.is-shown .pm-buildbtns .pm-show { display: none; }
.pm-train { justify-self: start; margin-top: 10px; padding: 12px 24px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pm-train:hover { background: #333; }
.pm-fixhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; }
.pm-label, .pm-all { white-space: nowrap; }
.pm-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.pm-all { padding: 0; border: 0; background: none; color: #3f55c4; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pm-all:hover { text-decoration: underline; }
.pm-hint { margin: -8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pm-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pm-item.is-right { border-color: #b9d7c4; background: #f6fbf8; }
.pm-item.is-wrong { border-color: #f1c7b4; }
.pm-row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.pm-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f2f2f2; font-size: 13px; font-weight: 800; }
.pm-said { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }
.pm-wrong { background: none; color: inherit; text-decoration: underline wavy #e0663c; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.pm-row.pm-try { grid-template-columns: 28px 1fr auto; align-items: center; margin: 0; }
.pm-said { line-height: 2; }
.pm-gap { display: inline-block; max-width: 100%; margin: 0 2px; padding: 3px 10px; border: 1.5px solid #c9d0e6; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; vertical-align: baseline; }
.pm-gap::placeholder { color: #a7a7ad; font-style: italic; }
.pm-gap:focus { outline: 0; border-color: #6687ff; box-shadow: 0 0 0 3px rgba(102, 135, 255, 0.18); }
.pm-gap.is-ok { border-color: #8fc3a2; color: #2e6b4a; font-weight: 700; }
.pm-gap.is-bad { border-color: #e9a48a; color: #b04a2f; }
.pm-item.is-soft .pm-gap.is-bad { border-color: #c9d0e6; color: var(--ink); }
.pm-item.is-soft .pm-verdict { color: #3f55c4; }
.pm-item.is-soft { border-color: #c9d0e6; }
.pm-gap:disabled { background: #fff; opacity: 1; -webkit-text-fill-color: currentColor; }
.pm-input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.pm-input:focus { outline: 0; border-color: #6687ff; box-shadow: 0 0 0 3px rgba(102, 135, 255, 0.18); }
.pm-input:disabled { background: transparent; border-color: #b9d7c4; color: #2e6b4a; font-weight: 700; }
.pm-check { flex: none; padding: 10px 18px; border: 0; border-radius: 12px; background: #1a1a1a; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pm-check:hover { background: #333; }
.pm-item.is-right .pm-check { display: none; }
.pm-a { display: grid; gap: 4px; margin-left: 40px; }
.pm-a[hidden] { display: none; }
.pm-verdict { margin: 0; font-size: 14px; font-weight: 800; }
.pm-verdict:empty { display: none; }
.pm-item.is-right .pm-verdict { color: #2e7d57; }
.pm-item.is-wrong .pm-verdict { color: #b04a2f; }
.pm-fixed { margin: 0; font-size: 16px; line-height: 1.5; }
.pm-right { color: #2e6b4a; font-weight: 800; }
.pm-why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.pm-show, .pm-again { justify-self: start; margin-left: 40px; padding: 0; border: 0; background: none; color: #3f55c4; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pm-again { margin: 4px 0 0; }
.pm-buildbtns .pm-show, .pm-buildbtns .pm-again { margin: 0; }
.pm-show:hover, .pm-again:hover { text-decoration: underline; }
.pm-show[hidden], .pm-again[hidden] { display: none; }
.pm-actions { display: flex; margin-top: 4px; }
.pm-actions:empty { display: none; }
.pm-practise { display: inline-flex; align-items: center; padding: 11px 22px; border: 0; border-radius: 999px; background: #f2f2f2; color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pm-practise:hover { background: #e6e6e6; }
.pm-more { justify-self: start; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) {
  .pm-row { grid-template-columns: 24px 1fr; gap: 10px; }
  .pm-n { width: 24px; height: 24px; }
  .pm-row.pm-try { grid-template-columns: 24px 1fr; }
  .pm-row.pm-try .pm-check { grid-column: 2; justify-self: start; }
  .pm-a, .pm-show { margin-left: 34px; }
}

/* ---------- Header on mid widths: three menu items plus the locale and CTA do not fit below ~1000px ---------- */
.header__link { white-space: nowrap; }
@media (max-width: 1240px) {
  .header__powered-by { display: none; }
}
@media (max-width: 1000px) {
  .header__nav,
  .header__actions { display: none; }
  .locale-dropdown--mobile { display: block; margin-left: auto; margin-right: 8px; }
  .locale-dropdown--mobile .locale-dropdown__trigger { padding: 8px 10px; font-size: 13px; }
  .locale-dropdown--mobile .locale-dropdown__panel { right: 0; left: auto; min-width: min(220px, calc(100vw - 32px)); }
  .header__burger { display: flex; }
}

/* Programme pages during early access: the pricing block is a note that this is a sample programme (no prices yet) */
.prog-sample__box { max-width: 760px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: #fff; }
.prog-sample__tag { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.prog-sample__box .section-title { margin: 0 0 12px; }
.prog-sample__text { margin: 0 0 24px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--ink-soft); }

/* Privacy policy: the data table and lists inside the policy cards */
.privacy-table-wrap { margin: 4px 0 16px; overflow-x: auto; }
.privacy-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.privacy-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.privacy-table td { padding: 12px; vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--line); }
.privacy-table tr:last-child td { border-bottom: 0; }
.privacy-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); line-height: 1.7; }
.privacy-list li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .privacy-table thead { display: none; }
  .privacy-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .privacy-table td { display: block; padding: 2px 0; border: 0; }
  .privacy-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-soft); }
}

/* Early-access window on phones: the form is a bottom sheet as tall as its content, the thank-you a centred card */
@media (max-width: 480px) {
  .ea-modal {
    place-items: end center;
  }

  .ea-modal.is-done {
    padding: 16px;
    place-items: center;
  }

  .ea-modal.is-done .ea-modal__panel {
    border-radius: var(--r-sm);
    padding: 36px 20px 24px;
  }
}

/* Phones get a narrow version of the dashboard (index.html <picture>): its own height, readable text. */
@media (max-width: 760px) {
  .hero__top .hero__visual,
  .hero__visual { aspect-ratio: auto; }
  .hero__visual-image { height: auto; max-width: 420px; margin: 0 auto; }
}

/* Phones: the four format tabs sit in a 2 x 2 grid, so none is cut off at the edge of a sideways-scrolling row. */
@media (max-width: 600px) {
  .format-tabs__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: visible; }
  .format-tabs__tab { padding: 12px 8px; text-align: center; }
}

/* Cookie consent (consent.js): a slim bar at the bottom centre; the settings card opens from the footer. */
.cc { position: fixed; left: 50%; bottom: 16px; z-index: 1000; transform: translateX(-50%); border: 1px solid rgba(26, 26, 26, 0.1); background: #fff; color: var(--ink); box-shadow: 0 10px 32px -10px rgba(26, 26, 26, 0.22); font-size: 14px; line-height: 1.5; }
.cc[hidden] { display: none; }
.cc--bar { display: flex; align-items: center; gap: 20px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; border-radius: 4px; }
.cc--bar .cc__text { max-width: 410px; }
html[data-locale="en"] .cc--bar .cc__text { max-width: 360px; }
.cc--card { width: min(380px, calc(100vw - 32px)); padding: 20px; border-radius: 20px; }
.cc__title { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.cc__text { margin: 0; flex: 1; color: var(--ink-soft); font-size: 13.5px; }
.cc--card .cc__text { margin: 0 0 14px; }
.cc__text a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.cc__actions { display: flex; gap: 8px; flex: none; }
.cc--card .cc__actions { display: grid; grid-template-columns: 1fr 1fr; }
.cc__btn { padding: 8px 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cc--card .cc__btn { padding: 11px 12px; border-radius: 999px; }
.cc__btn:hover { background: #333; }
.cc__btn--ghost, .cc__btn--ghost:hover { border-color: rgba(26, 26, 26, 0.18); background: #fff; color: var(--ink); }
.cc__btn--ghost:hover { border-color: var(--ink); }
.cc__more { padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cc__list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.cc__switch { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.cc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc__track { position: relative; width: 40px; height: 22px; margin-top: 2px; border-radius: 999px; background: #d9d9d4; transition: background 0.15s; }
.cc__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.cc__switch input:checked + .cc__track { background: var(--accent); }
.cc__switch input:checked + .cc__track::after { transform: translateX(18px); }
.cc__switch input:disabled + .cc__track { opacity: 0.6; }
.cc__switch input:focus-visible + .cc__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc__label b { font-weight: 700; }
.cc__label small { color: var(--ink-soft); font-size: 12px; }
.cc__label span { display: block; color: var(--ink-soft); font-size: 13px; }
.cc__footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cc__footer-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .cc--bar { left: 16px; right: 16px; transform: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; width: auto; max-width: none; }
  .cc--bar .cc__text { max-width: none; }
  .cc--bar .cc__actions .cc__btn { flex: 1; }
}
