/* LeoMee — public landing page.
   Uses the --lm-* tokens from lm-web.css (load that first). Standalone shell:
   this page does not extend base.html, so it carries its own small reset. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--lm-font); font-size: 1.0625rem; line-height: 1.6; background: var(--lm-canvas); color: var(--lm-text); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--lm-brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--lm-action); color: #fff; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lm-text-3); }
.section-title { font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.025em; }
.mark { box-shadow: inset 0 -0.34em 0 var(--lm-marker); padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-theme="dark"] .mark { box-shadow: inset 0 -0.3em 0 rgba(255, 210, 63, 0.5); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--primary { background: var(--lm-action); color: #fff; }
.btn--primary:hover { background: var(--lm-action-h); }
.btn--light { background: #fff; color: var(--lm-ink); }
.btn--light:hover { background: #EDE9FE; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 8px; background: #0B0818; color: #fff; text-decoration: none; border: 1px solid #0B0818; font-weight: 700; font-size: 1.02rem; line-height: 1.1; transition: background .15s ease; }
.store small { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.store:hover { background: #241B45; }
html[data-theme="dark"] .store { background: #fff; border-color: #fff; color: #0B0818; }
html[data-theme="dark"] .store:hover { background: #EDE9FE; }
.store--onink { background: #fff; border-color: #fff; color: #0B0818; }
.store--onink:hover { background: #EDE9FE; }
html[data-theme="dark"] .store--onink { background: #fff; }
.link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--lm-brand); text-underline-offset: 4px; }
.link::after { content: " \2192"; }

/* ── Header ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--lm-canvas); border-bottom: 1px solid var(--lm-rule); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { height: 40px; width: auto; }
.logo--dark { display: none; }
html[data-theme="dark"] .logo--light { display: none; }
html[data-theme="dark"] .logo--dark { display: block; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 0.94rem; font-weight: 600; color: var(--lm-text-2); text-decoration: none; }
.nav__links a:hover { background: var(--lm-hover); color: var(--lm-text); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__login { padding: 8px 12px; font-weight: 600; font-size: 0.94rem; color: var(--lm-text-2); text-decoration: none; border-radius: 8px; }
.nav__login:hover { background: var(--lm-hover); color: var(--lm-text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--lm-text-2); cursor: pointer; }
.icon-btn:hover { background: var(--lm-hover); color: var(--lm-text); }
.i-sun { display: none; }
html[data-theme="dark"] .i-sun { display: block; }
html[data-theme="dark"] .i-moon { display: none; }
.nav__menu { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { margin-top: 16px; font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lede { margin-top: 24px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--lm-text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 0.9rem; color: var(--lm-text-3); }

/* The sample question — a printed paper with the red pen's tick. */
.paper { display: grid; gap: 14px; }
.paper__sheet { background: #FFFFFF; color: #1A1033; border: 1px solid var(--lm-rule-strong); border-radius: 12px; padding: 22px 22px 20px; }
html[data-theme="dark"] .paper__sheet { background-color: #F6F4FB; border-color: #F6F4FB; }
.paper__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #1E0B5E; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4B4466; }
.paper__q { font-family: var(--lm-font-display); font-size: 1.28rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.paper__q b { color: #6D28D9; margin-right: 6px; }
.paper__opts { display: grid; gap: 6px; margin-top: 16px; }
.paper__opts li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 4px; font-size: 1rem; font-weight: 500; }
.bub { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #8A82A6; font-style: normal; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: #4B4466; }
.bub--on { background: #1E0B5E; border-color: #1E0B5E; color: #fff; }
.tick { margin-left: auto; color: #D93A1C; }
.paper__note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #C5BEDB; font-size: 0.86rem; line-height: 1.5; color: #D93A1C; font-weight: 600; }
.thread { display: grid; gap: 8px; padding-left: 4px; }
.thread__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lm-text-3); }
.msg { display: grid; gap: 2px; max-width: 88%; padding: 10px 14px; border: 1px solid var(--lm-rule); border-radius: 12px 12px 12px 4px; background: var(--lm-surface); font-size: 0.94rem; }
.msg b { font-size: 0.78rem; color: var(--lm-text-3); }
.msg--reply { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--lm-brand-soft); border-color: transparent; }
.msg--reply b { color: var(--lm-brand); }

/* ── Exams ───────────────────────────────────────────────────────────── */
.exams { background: var(--lm-ink); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
html[data-theme="dark"] .exams { background: #1B1040; }
.exams__title { max-width: 26ch; font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.015em; color: #fff; }
.exams__list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.exams__list li { display: grid; gap: 2px; padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.exams__list strong { font-family: var(--lm-font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.exams__list span { font-size: 0.9rem; color: #C4B5FD; }

/* ── What you do here ────────────────────────────────────────────────── */
.what { padding: clamp(56px, 8vw, 112px) 0; }
.what .section-title { max-width: 18ch; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--lm-rule); }
.what .section-title + .row { margin-top: clamp(28px, 4vw, 48px); }
.row--flip .row__text { order: 2; }
.row__tag { display: flex; align-items: baseline; gap: 12px; font-family: var(--lm-font-display); font-weight: 700; font-size: 1.05rem; color: var(--lm-brand); }
.row__tag span { font-family: var(--lm-font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--lm-text-3); }
.row h3 { margin-top: 10px; font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.row__text > p:not(.row__tag) { margin-top: 14px; max-width: 52ch; color: var(--lm-text-2); }
.row__demo { max-width: 520px; width: 100%; justify-self: end; }
.row--flip .row__demo { justify-self: start; }

.post { padding: 18px; background: var(--lm-surface); border: 1px solid var(--lm-rule); border-radius: 12px; display: grid; gap: 12px; }
.post__who { display: flex; align-items: center; gap: 10px; }
.post__who b { display: block; font-size: 0.94rem; line-height: 1.2; }
.post__who small { font-size: 0.78rem; color: var(--lm-text-3); }
.av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lm-brand-soft); color: var(--lm-brand); font-weight: 700; }
.post > p { font-size: 0.98rem; }
.poll { display: grid; gap: 8px; }
.poll__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--lm-rule-strong); border-radius: 8px; font-size: 0.94rem; }
.poll__row--on { border-color: var(--lm-ok); background: var(--lm-ok-soft); font-weight: 600; }
.poll .bub { color: var(--lm-text-2); border-color: var(--lm-rule-strong); }
.poll .bub--on { background: var(--lm-ok); border-color: var(--lm-ok); color: #fff; }

.chat { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--lm-rule); border-radius: 12px; background: var(--lm-surface); }
.chat p { max-width: 82%; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: var(--lm-sunken); font-size: 0.96rem; }
.chat .chat__me { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--lm-action); color: #fff; }

.row--ink { margin-top: 8px; padding: clamp(28px, 4vw, 48px); background: var(--lm-ink); color: #fff; border-radius: 12px; border-top: 0; }
html[data-theme="dark"] .row--ink { background: #1B1040; }
.row--ink .row__tag { color: #C4B5FD; }
.row--ink .row__tag span { color: #C4B5FD; opacity: .85; }
.row--ink h3 { color: #fff; }
.row--ink .row__text > p:not(.row__tag) { color: #DDD6FE; }
.row--ink .store { margin-top: 22px; }
.chapters { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.chapters li { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); font-family: var(--lm-font-display); font-weight: 600; font-size: 1.12rem; }
.chapters li::after { content: "\2192"; color: #C4B5FD; }

/* ── How we work ─────────────────────────────────────────────────────── */
.honest { padding: clamp(56px, 8vw, 104px) 0; background: var(--lm-sunken); }
.honest__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.honest__title { margin-top: 12px; font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.honest__lede { margin-top: 18px; max-width: 42ch; color: var(--lm-text-2); }
.honest__list > div { padding: 22px 0; border-top: 1px solid var(--lm-rule-strong); }
.honest__list > div:last-child { border-bottom: 1px solid var(--lm-rule-strong); }
.honest__list dt { font-family: var(--lm-font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.honest__list dd { margin-top: 6px; color: var(--lm-text-2); max-width: 52ch; }

/* ── Events ──────────────────────────────────────────────────────────── */
.events { padding: clamp(56px, 8vw, 104px) 0; }
.events__list { margin-top: 32px; border-top: 1px solid var(--lm-rule-strong); }
.events__list li { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--lm-rule); }
.events__when { font-weight: 700; color: var(--lm-brand); font-variant-numeric: tabular-nums; }
.events__list h3 { font-family: var(--lm-font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.events__list p { margin-top: 4px; color: var(--lm-text-2); max-width: 60ch; }
.events__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lm-text-3); white-space: nowrap; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding: 0 0 clamp(56px, 8vw, 104px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__items { border-top: 1px solid var(--lm-rule-strong); }
.faq details { border-bottom: 1px solid var(--lm-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 500; color: var(--lm-brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; max-width: 60ch; color: var(--lm-text-2); }

/* ── Closing ─────────────────────────────────────────────────────────── */
.closing { background: var(--lm-action); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
html[data-theme="dark"] .closing { background: #5B21B6; }
.closing__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { max-width: 20ch; font-family: var(--lm-font-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.closing__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { padding: 48px 0 24px; border-top: 1px solid var(--lm-rule); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand p { margin-top: 12px; max-width: 30ch; font-size: 0.94rem; color: var(--lm-text-3); }
.foot h2 { font-family: var(--lm-font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lm-text-3); margin-bottom: 10px; }
.foot li a { display: inline-block; padding: 5px 0; font-size: 0.95rem; font-weight: 500; color: var(--lm-text-2); text-decoration: none; }
.foot li a:hover { color: var(--lm-brand); text-decoration: underline; text-underline-offset: 3px; }
.foot__bar { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--lm-rule); font-size: 0.86rem; color: var(--lm-text-3); }

/* ── Tablet / phone ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__grid, .row, .honest__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .row--flip .row__text { order: 0; }
  .row__demo, .row--flip .row__demo { justify-self: stretch; max-width: none; }
  .exams__list { grid-template-columns: repeat(2, 1fr); }
  .events__list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }

  .nav__menu { display: grid; }
  .nav__login { display: none; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; background: var(--lm-canvas); border-bottom: 1px solid var(--lm-rule); }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--lm-rule); border-radius: 0; font-size: 1.02rem; }
  .nav.is-open .nav__links { display: flex; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 32px); }
  .nav__inner { gap: 12px; }
  .logo { height: 34px; }
  .nav__actions .btn--sm { padding: 0 12px; font-size: 0.85rem; }
  .hero__cta .btn, .hero__cta .store { width: 100%; justify-content: center; }
  .paper__sheet { padding: 18px 16px; }
  .closing__cta .btn, .closing__cta .store { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001s !important; }
}
