:root {
  --lg-night: #0e0c14;
  --lg-fog: #f6f4fa;
  --lg-paper: #fffcff;
  --lg-ink: #16131f;
  /* ~7:1 on paper — clearer than mid-gray on fog */
  --lg-muted: #5a5468;
  --lg-brand: #7e56d9;
  --lg-brand-deep: #6a45c4;
  --lg-live: #7e56d9;
  --lg-line: #e4dff0;
  --lg-max: 1120px;
  --lg-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lg-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lg-header-h: 4.25rem;
  --lg-ease: 180ms ease;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

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

  .m-hero__copy,
  .m-hero__visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--lg-font);
  color: var(--lg-ink);
  background: var(--lg-paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-tap-highlight-color: rgba(139, 108, 224, 0.2);
}

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

a {
  color: var(--lg-brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  touch-action: manipulation;
  cursor: pointer;
  transition: color var(--lg-ease);
}

a:hover {
  color: var(--lg-brand);
}

a:focus-visible,
.m-nav a:focus-visible,
.m-logo:focus-visible,
.m-cta:focus-visible,
.m-linkrows a:focus-visible,
.m-scenes a:focus-visible,
.m-langline a:focus-visible,
.m-related a:focus-visible,
.m-faq summary:focus-visible,
.m-skip:focus-visible {
  outline: 2px solid var(--lg-brand);
  outline-offset: 3px;
}

#main,
#download,
#get-the-app,
.m-section h2,
.m-page-hero h1,
.m-hero h1 {
  scroll-margin-top: calc(var(--lg-header-h) + 0.75rem);
}

.m-wrap {
  width: min(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right), var(--lg-max));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.m-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lg-brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 700;
  touch-action: manipulation;
}

.m-skip:focus-visible {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
}

/* —— Header (dark chrome) —— */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}

.m-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--lg-header-h);
  padding: 0.65rem 0;
}

.m-logo {
  color: #fff;
  text-decoration: none;
  font-family: var(--lg-font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.m-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  justify-content: flex-end;
}

.m-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  transition: color var(--lg-ease), background-color var(--lg-ease);
}

.m-nav a:hover {
  color: #fff;
}

.m-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.m-nav__cta {
  color: #fff !important;
  background: var(--lg-brand);
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  font-weight: 700;
}

.m-nav__cta:hover {
  background: var(--lg-brand-deep);
  color: #fff !important;
  filter: none;
}

.m-nav__cta[aria-current="page"] {
  background: var(--lg-brand-deep);
}

/* —— Hero —— */
.m-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(126, 86, 217, 0.38), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(126, 86, 217, 0.14), transparent 50%),
    var(--lg-night);
  color: #f4f1fb;
  padding: 2.75rem 0 0;
}

.m-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .m-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    min-height: min(78vh, 720px);
  }
}

.m-hero__copy {
  padding-bottom: 2.5rem;
  animation: m-rise 0.7s ease-out both;
}

.m-hero__visual {
  justify-self: center;
  max-width: 280px;
  animation: m-rise 0.85s 0.12s ease-out both;
}

@media (min-width: 900px) {
  .m-hero__visual {
    max-width: 320px;
    justify-self: end;
  }
}

@keyframes m-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-brand-mark {
  font-family: var(--lg-font);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: #fff;
  text-wrap: balance;
}

.m-hero h1 {
  font-family: var(--lg-font);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 24ch;
  text-wrap: balance;
}

.m-hero .m-lead {
  color: rgba(244, 241, 251, 0.72);
  max-width: 34rem;
}

.m-hero .m-ctas__note {
  color: rgba(244, 241, 251, 0.55);
}

.m-hero__shot {
  width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

/* —— Sections —— */
.m-section {
  padding: 4rem 0;
}

.m-section--fog {
  background: var(--lg-fog);
}

.m-section--close {
  background: var(--lg-night);
  color: #f4f1fb;
}

.m-section--close h2 {
  color: #fff;
}

.m-section--close .m-lead {
  color: rgba(244, 241, 251, 0.7);
}

.m-section--close .m-ctas__note {
  color: rgba(244, 241, 251, 0.55);
}

.m-section h2 {
  font-family: var(--lg-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 22ch;
}

.m-lead {
  font-size: 1.12rem;
  color: var(--lg-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
  text-wrap: pretty;
}

/* Inner SEO pages: one left reading column (never centered) */
.m-article {
  max-width: 40rem;
  width: 100%;
  margin-inline: 0;
  text-align: left;
}

.m-article h1,
.m-article h2,
.m-article .m-lead {
  max-width: none;
}

.m-prose {
  max-width: 40rem;
}

.m-article.m-prose {
  max-width: 40rem;
}

.m-prose p {
  margin: 0 0 1rem;
  color: var(--lg-ink);
}

.m-prose ul,
.m-prose ol:not(.m-steps) {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.m-prose li {
  margin-bottom: 0.4rem;
}

.m-steps--plain {
  max-width: none;
}

.m-steps--plain p {
  margin: 0;
  color: var(--lg-ink);
}

.m-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .m-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

/* —— Dialogue stage —— */
.m-dialogue {
  background: var(--lg-fog);
  border-radius: 1.15rem;
  padding: 1.35rem 1.4rem;
  margin: 1rem 0 1.5rem;
}

.m-dialogue--stage {
  background: var(--lg-night);
  color: rgba(244, 241, 251, 0.88);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-dialogue p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

.m-dialogue p:last-child {
  margin-bottom: 0;
}

.m-dialogue__who {
  display: inline-block;
  min-width: 3.2rem;
  font-family: var(--lg-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.45rem;
}

.m-dialogue__who--you {
  color: #b9a3f0;
}

.m-dialogue strong {
  color: var(--lg-brand);
}

/* —— Steps (real sequence) —— */
.m-steps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}

.m-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.m-steps__n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--lg-brand);
  color: #fff;
  font-family: var(--lg-font);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.m-steps strong {
  display: block;
  font-family: var(--lg-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.m-steps p {
  margin: 0;
  color: var(--lg-muted);
  font-size: 0.98rem;
}

/* —— Partners (rows, not cards) —— */
.m-partners {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--lg-line);
}

.m-partners__row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lg-line);
}

@media (min-width: 700px) {
  .m-partners__row {
    grid-template-columns: 7rem 10rem 1fr;
    align-items: baseline;
  }

  .m-article .m-partners__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.m-partners__name {
  font-family: var(--lg-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.m-partners__role {
  color: var(--lg-brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.m-partners__blurb {
  margin: 0;
  color: var(--lg-muted);
}

/* —— Feature / scene link rows —— */
.m-linkrows {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--lg-line);
}

.m-linkrows li {
  border-bottom: 1px solid var(--lg-line);
}

.m-linkrows a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding: 1.15rem 0.15rem;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
  min-height: 44px;
  transition: color var(--lg-ease);
}

.m-linkrows a:hover .m-linkrows__title {
  color: var(--lg-brand-deep);
}

.m-linkrows__title {
  font-family: var(--lg-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.m-linkrows__meta {
  color: var(--lg-muted);
  font-size: 0.98rem;
}

.m-after {
  margin: 1.5rem 0 0;
}

.m-scenes {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.m-scenes li {
  border-top: 1px solid var(--lg-line);
}

.m-scenes li:last-child {
  border-bottom: 1px solid var(--lg-line);
}

.m-scenes a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 1.35rem 0.1rem;
  text-decoration: none;
  color: inherit;
}

.m-scenes a span:first-child {
  font-family: var(--lg-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m-scenes a:hover span:first-child {
  color: var(--lg-brand-deep);
}

.m-scenes__hint {
  color: var(--lg-muted);
  font-size: 0.98rem;
}

.m-langline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-family: var(--lg-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.m-langline a {
  text-decoration: none;
  color: var(--lg-ink);
  border-bottom: 2px solid var(--lg-brand);
  padding-bottom: 0.1rem;
}

.m-langline a:hover {
  color: var(--lg-brand-deep);
}

/* —— CTAs —— */
.m-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.m-cta {
  display: inline-flex;
  border-radius: 0.65rem;
  line-height: 0;
  touch-action: manipulation;
  cursor: pointer;
  transition: opacity var(--lg-ease), transform var(--lg-ease);
}

.m-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .m-cta:hover {
    transform: none;
  }
}

.m-ctas img {
  height: 48px;
  width: auto;
}

.m-ctas__note {
  width: 100%;
  margin: 0.35rem 0 0;
  color: var(--lg-muted);
  font-size: 0.95rem;
}

/* —— Breadcrumbs / page hero (inner pages) —— */
.m-breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--lg-muted);
  text-align: left;
}

.m-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.m-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--lg-line);
}

.m-page-hero {
  padding: 1.5rem 0 0.5rem;
  text-align: left;
}

.m-page-hero h1 {
  font-family: var(--lg-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-weight: 700;
  text-align: left;
  line-height: 1.15;
}

/* Feature pages: brand-first dark hero (AI conversation, vocabulary, speak, …) */
.m-page-hero--brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(126, 86, 217, 0.4), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 95%, rgba(126, 86, 217, 0.16), transparent 50%),
    var(--lg-night);
  color: #f4f1fb;
  padding: 0 0 2.5rem;
}

.m-page-hero--brand .m-breadcrumbs {
  color: rgba(244, 241, 251, 0.55);
  padding-top: 1.15rem;
  padding-bottom: 0.5rem;
}

.m-page-hero--brand .m-breadcrumbs a {
  color: rgba(244, 241, 251, 0.78);
}

.m-page-hero--brand .m-breadcrumbs a:hover {
  color: #fff;
}

.m-page-hero--brand .m-breadcrumbs li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.28);
}

.m-page-hero--brand .m-breadcrumbs .m-article {
  max-width: none;
}

.m-page-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: end;
  padding-top: 0.5rem;
}

@media (min-width: 900px) {
  .m-page-hero__grid--shot {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    min-height: min(52vh, 520px);
  }
}

.m-page-hero__eyebrow {
  font-family: var(--lg-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-wrap: balance;
}

.m-page-hero--brand h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
  margin-bottom: 1rem;
}

.m-page-hero--brand .m-lead {
  color: rgba(244, 241, 251, 0.72);
  max-width: 36rem;
}

.m-page-hero__visual {
  justify-self: center;
  max-width: 240px;
}

@media (min-width: 900px) {
  .m-page-hero__visual {
    max-width: 280px;
    justify-self: end;
  }
}

.m-page-hero__shot {
  width: 100%;
  border-radius: 1.35rem 1.35rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.m-article .m-ctas,
.m-article .m-related,
.m-article .m-partners {
  justify-content: flex-start;
}

.m-shot-inline {
  margin: 1.5rem 0;
  border-radius: 1rem;
  border: 1px solid var(--lg-line);
  max-width: 280px;
}

/* —— FAQ —— */
.m-faq details {
  border-bottom: 1px solid var(--lg-line);
  padding: 0.95rem 0;
}

.m-faq summary {
  cursor: pointer;
  font-weight: 650;
  touch-action: manipulation;
  border-radius: 0.35rem;
  font-family: var(--lg-display);
}

.m-faq summary:hover {
  color: var(--lg-brand-deep);
}

.m-faq details p {
  margin: 0.65rem 0 0;
  color: var(--lg-muted);
  max-width: none;
}

.m-faq .m-article {
  max-width: 40rem;
}

/* —— Related chips (inner pages) —— */
.m-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.m-related a {
  border: 1px solid var(--lg-line);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--lg-ink);
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  transition: border-color var(--lg-ease), color var(--lg-ease), background-color var(--lg-ease);
}

.m-related a:hover {
  border-color: var(--lg-brand);
  color: var(--lg-brand-deep);
  background: rgba(126, 86, 217, 0.06);
}

/* Legacy card hooks (unused on home; keep for safety) */
.m-card {
  background: var(--lg-paper);
  border: 1px solid var(--lg-line);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
}

.m-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.m-grid-2,
.m-grid-3,
.m-grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .m-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .m-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* —— Footer —— */
.m-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.75rem 0 max(2rem, env(safe-area-inset-bottom));
  background: #09080e;
  color: #c8c0d8;
}

.m-footer a {
  color: #efe9ff;
  touch-action: manipulation;
}

.m-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.m-footer a:focus-visible {
  outline-color: var(--lg-brand);
}

.m-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .m-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.m-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: #8f86a3;
  font-family: var(--lg-font);
  font-weight: 700;
  text-transform: none;
  max-width: none;
}

.m-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-footer li {
  margin-bottom: 0.4rem;
}

.m-footer__brand {
  font-family: var(--lg-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.m-legal h2 {
  font-family: var(--lg-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  max-width: none;
}

.m-legal p,
.m-legal li {
  color: var(--lg-muted);
}
