/* LumiLearn v7 "Autoplay": the page is a quiet, cool frame; the warm product carries the colour.
   One easing curve everywhere (CSS and Motion): cubic-bezier(.22,1,.36,1). 4px grid. */

:root {
  --bg: #F4F6F7;
  --surface: #E9EEF0;
  --card: #FFFFFF;
  --ink: #1A2228;
  --ink-2: #455058;
  --ink-3: #5A656C;
  --line: rgba(26, 34, 40, .10);
  --line-2: rgba(26, 34, 40, .18);
  --accent: #C2491A;          /* LumiLearn burnt orange, a step darker for the cool ground */
  --dark: #14181B;
  --dark-2: #1D2327;
  --on-dark: #F2F4F5;
  --on-dark-2: #AAB3B8;
  --dark-line: rgba(242, 244, 245, .12);

  --font: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hy: "Noto Sans Armenian", "Chivo", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 64px;
  --pad: clamp(16px, 5vw, 64px);
  --maxw: 1240px;
  --r: 12px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: rgba(26, 34, 40, .08); touch-action: manipulation; }
[lang="hy"] { font-family: var(--font-hy); }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; transform: translateY(-80px); transition: transform .15s var(--ease); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn .m-arrow { transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn-ink:hover { background: #2E3940; }
  .btn-line:hover { border-color: var(--ink); background: rgba(26, 34, 40, .04); }
  .btn:hover .m-arrow, .link:hover .m-arrow { transform: translateX(3px); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid var(--line-2);
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .15s var(--ease); }
.link .m-arrow { transition: transform .15s var(--ease); }
.link:hover::after { transform: scaleX(1); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: calc(var(--nav-h) - 1px); }
.logo { display: inline-flex; padding: 8px 0; flex: none; }
.logo img { width: 134px; height: 32px; }
.logo .logo-mark { display: none; width: 32px; height: 32px; }
.nav-links .nav-nojs { display: none; }
html:not(.js) .nav-links .nav-btn { display: none; }
html:not(.js) .nav-links .nav-nojs { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-btn, .nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--font); color: var(--ink-2); text-decoration: none;
  transition: color .15s var(--ease);
}
.nav-btn::after, .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .15s var(--ease);
}
.nav-btn .chev { transition: transform .2s var(--ease); }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-btn[aria-expanded="true"], .nav-btn:hover, .nav-link:hover { color: var(--ink); }
.nav-btn:hover::after, .nav-link:hover::after, .nav-btn[aria-expanded="true"]::after { transform: scaleX(1); }

.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -32px rgba(26, 34, 40, .35); }
.nav-panel:not([hidden]) { animation: panel-in .2s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }
.panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-block: 16px 24px; }
.panel-grid a {
  display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; row-gap: 4px; align-items: center;
  padding: 12px; border-radius: 10px; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.panel-grid a svg, .panel-grid a img { grid-row: 1; color: var(--ink-2); }
.panel-grid b { font-weight: 500; font-size: 15px; }
.panel-grid span { grid-column: 2; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.panel-grid a:hover { background: var(--surface); }

/* ---------- type ---------- */
h1 { font-weight: 400; font-size: clamp(38px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.h1-line { text-wrap: balance; }
.h1-line { display: block; }
h2 { font-weight: 400; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.eyebrow svg, .eyebrow img { flex: none; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.micro { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.soft { color: var(--ink-3); }

/* ---------- product window (shared) ---------- */
.win {
  position: relative; container: win / inline-size;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(26, 34, 40, .04), 0 28px 56px -32px rgba(26, 34, 40, .32);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; line-height: 16px; color: var(--ink-2);
}
.win-title { display: block; min-width: 0; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title img { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.win-title i { font-style: normal; color: var(--ink-3); }
.win-tag { flex: none; padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; }
.win-tag--real { background: #FBE9E1; color: #8E3412; }
.win-ctl { display: flex; gap: 12px; flex: none; }
.ctl {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-2); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.ctl::before { content: ""; position: absolute; inset: -6px; }
.ctl:hover { background: var(--surface); color: var(--ink); }
.ctl:focus-visible { outline-offset: -2px; background: var(--surface); color: var(--ink); }
.ctl:active { transform: scale(.97); }
.ctl .i-play { display: none; }
.ctl[data-state="paused"] .i-play { display: block; }
.ctl[data-state="paused"] .i-pause { display: none; }
html:not(.demos-on) .win-ctl { display: none; }

/* The demo view: a fixed design stage scaled to the window, like a GIF that stays sharp. */
.view {
  --sw: 720; --sh: 460;
  position: relative; overflow: hidden; aspect-ratio: var(--sw) / var(--sh);
  background: #FFF8F0;
}
.stage {
  position: absolute; left: 0; top: 0;
  width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px);
  transform: scale(var(--k, 1)); transform-origin: 0 0;
}
@container win (max-width: 559px) {
  .view { --sw: 380; --sh: var(--sh-n, 600); }
}
@container win (max-width: 330px) {
  .win-title { visibility: hidden; }   /* a 320px phone: the section heading above names the window */
}
/* until the demos run (no JS, or Motion could not load) nothing measures the window:
   the stage takes the window's width and shows its last frame */
html:not(.demos-on) .view { aspect-ratio: auto; }
html:not(.demos-on) .stage { position: relative; width: 100%; height: calc(var(--sh) * 1px); transform: none; }

/* ---------- hero ---------- */
.hero { padding-block: 48px 56px; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy h1 { margin-top: -4px; }
.hero-copy .micro { margin-top: -8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.win--hero { width: 100%; }

/* m-enter: the hero arrives once on load (page.js); nothing else moves with the page */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-entered) [data-e] { opacity: 0; transform: translateY(12px); }
  html.m-enter:not(.m-entered) [data-e-visual] { opacity: 0; transform: translateY(16px); }
}

/* ---------- feature sections ---------- */
.feat {
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.feat-in { display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.feat-text { display: grid; gap: 20px; align-content: start; }
.feat-text > p:not(.eyebrow):not(.feat-link) { color: var(--ink-2); max-width: 44ch; }
.feat-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 16px; }

/* the beats: what the demo beside it is doing now */
.beats { display: grid; gap: 0; margin-top: 4px; counter-reset: beat; }
.beats li {
  counter-increment: beat;
  display: grid; grid-template-columns: 24px 1fr; align-items: baseline;
  padding: 8px 0 8px 16px; border-left: 2px solid var(--line-2);
  font-size: 15px; line-height: 20px; color: var(--ink-3);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.beats li::before { content: counter(beat); font-size: 13px; color: inherit; }
.beats li.is-past { color: var(--ink-2); }
.beats li.is-now { color: var(--ink); border-left-color: var(--accent); }

.feat--dark { background: var(--dark); color: var(--on-dark); border-top: 0; }
.feat--dark .eyebrow, .feat--dark .feat-text > p:not(.eyebrow):not(.feat-link) { color: var(--on-dark-2); }
.feat--dark .soft { color: var(--on-dark-2); }
.feat--dark .beats li { border-left-color: var(--dark-line); color: #8F999F; }
.feat--dark .beats li.is-past { color: var(--on-dark-2); }
.feat--dark .beats li.is-now { color: var(--on-dark); border-left-color: #FFB955; }
.feat--dark .link { border-bottom-color: var(--dark-line); }
.feat--dark :focus-visible { outline-color: #FFB955; }
.win--dark { background: #0F1214; border-color: var(--dark-line); box-shadow: 0 28px 56px -32px rgba(0, 0, 0, .7); }
.win--dark .win-bar { border-bottom-color: var(--dark-line); color: var(--on-dark-2); }
.win--dark .win-title i { color: var(--on-dark-2); }
.win--dark .ctl:focus-visible { background: #232A2F; color: var(--on-dark); outline-color: #FFB955; }
.win--dark .win-tag { background: #232A2F; color: var(--on-dark-2); }
.win--dark .ctl { color: var(--on-dark-2); }
.win--dark .ctl:hover { background: #232A2F; color: var(--on-dark); }
.win--dark .view { background: #16110E; }

/* ---------- proof ---------- */
.proof { padding-block: 96px; border-top: 1px solid var(--line); }
.proof-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.proof-text { display: grid; gap: 20px; }
.proof-text p { color: var(--ink-2); max-width: 48ch; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.figs > div { padding: 24px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.figs > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figs dt { font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; }
.figs dd { color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* ---------- close ---------- */
.close { padding-block: 96px 112px; border-top: 1px solid var(--line); }
.close-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.close h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.close-side { display: grid; gap: 20px; justify-items: start; }
.close-side > p:first-child { color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--on-dark-2); padding-block: 40px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-inline: -8px; }
.foot-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; color: var(--on-dark); }
.foot-links a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .15s var(--ease); }
.foot-links a:hover::after { transform: scaleX(1); }
.foot :focus-visible { outline-color: #FFB955; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.card-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-marks li { display: grid; place-items: center; height: 36px; padding: 0 10px; border-radius: 8px; background: #fff; }
.card-marks img { height: 20px; width: auto; object-fit: contain; }
.foot-copy { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.foot-copy a { color: var(--on-dark); }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font: 500 15px/1 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-lang { display: inline-flex; align-items: center; gap: 2px; font: 500 14px/1 var(--font); color: var(--ink-3); }
.nav-lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ink-2); text-decoration: none; }
.nav-lang a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-lang a:hover { color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .feat { min-height: 0; }
  .hero { padding-block: 40px 64px; }
  .hero-in, .feat-in, .proof-in, .close-in { grid-template-columns: minmax(0, 1fr); }
  .feat { padding-block: 64px; }
  .feat-text > p:not(.eyebrow):not(.feat-link), .lead { max-width: 60ch; }
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
@media (max-width: 960px) {
  /* Log in, EN/ՀԱՅ and Pricing need the room; the in-page links stay in the Product menu. */
  .nav-links .nav-link[href^="#"] { display: none; }
  .nav-in { gap: 20px; }
}
@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
  .nav-lang { display: none; }
  /* Log in and Book a demo need the row; every Product section is one scroll away. */
  .nav-links .nav-btn, html:not(.js) .nav-links .nav-nojs { display: none; }
  .nav-in { gap: 12px; }
  .nav-links { margin-right: auto; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .figs > div, .figs > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { width: 112px; height: 27px; }
  .nav-btn { padding: 0 8px; }
  .btn-sm { padding: 0 12px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); padding-block: 8px 16px; }
  .lead { font-size: 17px; }
  .cta-row { width: 100%; }
  .cta-row .btn { width: 100%; }
  .beats { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 48px; }
  .feat { padding-block: 56px; }
  .proof, .close { padding-block: 64px; }
  .crumb-pre { display: none; }
  .hero-visual { display: none; }
}
@media (max-width: 360px) {
  .logo .logo-full { display: none; }
  .logo .logo-mark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
