/* ==========================================================================
   فهيم — landing page (index.html)
   Layout: a framed column on a dotted canvas, floating pill header, full-screen menu,
   big brand title, pill buttons, tilted stacked cards, chip cloud.
   Motion follows the site rule (components.css): Arabic text never fades, slides or
   clips. Only shapes move — the dot spotlight, marker sweeps, the menu's circle wipe,
   rings, bars, ticks — and the scrolling ribbon carries English tags only.
   ========================================================================== */
.lp {
  --line: var(--border);                  /* frame hairlines */
  --wrap: 1200px;
  --pad: 40px;
  background: var(--canvas);
  overflow-x: clip;
}
@media (max-width: 720px) { .lp { --pad: 16px; } }

/* ---------- frame: vertical hairlines at the column edges, horizontal ones between sections ---------- */
.lp-sec { border-top: 1px solid var(--line); }
.lp-sec:first-of-type { border-top: 0; }
.lp-wrap { width: min(var(--wrap), 100% - 24px); margin-inline: auto; border-inline: 1px solid var(--line); padding: 104px var(--pad); position: relative; }
@media (max-width: 720px) { .lp-wrap { width: calc(100% - 8px); padding-block: 72px; } }

.lp-h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; font-weight: var(--w-display); text-align: center; color: var(--ink); }
.lp-h2--start { text-align: start; }
.lp-h2 .is-quiet { color: inherit; }   /* one colour per headline */
.lp-lead { max-width: 560px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 18px; line-height: 1.8; }

/* ---------- pill buttons (soft 3D) ---------- */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: var(--w-semibold); line-height: 1; white-space: nowrap;
  position: relative; top: 0;
  transition: top var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur-fast) var(--ease);
}
.pbtn .icon { transition: transform var(--dur) var(--ease-out); }
.pbtn:hover { top: -2px; }
.pbtn:hover .icon--go { transform: translateX(-4px); }
.pbtn:active { top: 1px; transition-duration: 80ms; }
.pbtn--dark { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pbtn--dark:hover { background: var(--accent-hover); box-shadow: none; }
.pbtn--light { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pbtn--light:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.pbtn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.pbtn:focus-visible, .lp-round:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* round icon button (menu, card arrows) */
.lp-round {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  position: relative; top: 0; transition: top var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.lp-round:hover { top: -2px; }
.lp-round--dark { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* ==========================================================================
   Header: two floating pills
   ========================================================================== */
.lp-head { position: fixed; z-index: 50; inset: 16px 0 auto; pointer-events: none; }
.lp-head__in { width: min(var(--wrap), 100% - 24px); margin-inline: auto; padding-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 720px) { .lp-head { top: 10px; } .lp-head__in { width: 100%; padding-inline: 12px; } }
.lp-head__in > * { pointer-events: auto; }
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 0 0 1px var(--line); color: var(--ink);
}
.lp-brand__mark { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.lp-brand__mark svg { width: 36px; height: 36px; fill: var(--on-accent); }
.lp-brand b { display: block; line-height: 0; }
.lp-brand__word { height: 22px; width: auto; fill: currentColor; }
.lp-brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.lp-head__end { display: flex; align-items: center; gap: 8px; }
.lp-head__login { font-size: 14px; font-weight: var(--w-medium); color: var(--ink); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px var(--line); }
.lp-head__login:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.lp-head.is-scrolled .lp-brand, .lp-head.is-scrolled .lp-round { box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
@media (max-width: 560px) { .lp-head__login, .lp-head__cta { display: none; } }
/* wide screens: the page's sections as plain links between the two pills */
.lp-head__nav { display: none; }
@media (min-width: 1081px) {
  .lp-head__nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px var(--line); }
  .lp-head__nav a { padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: var(--w-medium); color: var(--ink-2); transition: background-color var(--dur-fast), color var(--dur-fast); }
  .lp-head__nav a:hover { background: var(--lilac); color: var(--ink); }
  .lp-head__nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lp-head.is-scrolled .lp-head__nav { box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
}

/* ==========================================================================
   Full-screen menu: a circle wipes out from the menu button (a text-free layer);
   the links are simply there once it has opened.
   ========================================================================== */
.lp-menu { position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; }
.lp-menu__bg { position: absolute; inset: 0; background: var(--canvas); }   /* landing.js wipes it open as a circle from the menu button */
.lp-menu.is-open { visibility: visible; pointer-events: auto; }
.lp-menu__body { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 96px 24px 32px; overflow-y: auto; visibility: hidden; }
.lp-menu.is-ready .lp-menu__body { visibility: visible; }
.lp-menu__links { display: grid; justify-items: center; gap: 6px; }
.lp-menu__links a { position: relative; isolation: isolate; font-size: clamp(30px, 5vw, 44px); font-weight: var(--w-display); line-height: 1.45; color: var(--ink); padding-inline: 6px; }
.lp-menu__links a small { font-size: 14px; font-weight: var(--w-medium); color: var(--muted); margin-inline-start: 8px; }
.lp-menu__links a::before { content: ""; position: absolute; z-index: -1; inset-inline: 0; bottom: .3em; height: .38em; background: var(--highlight); border-radius: 3px; clip-path: inset(0 0 0 100%); transition: clip-path .35s cubic-bezier(.65, 0, .35, 1); }
.lp-menu__links a:hover::before, .lp-menu__links a:focus-visible::before { clip-path: inset(0); }
.lp-menu__links a:focus-visible { outline: none; }
.lp-menu__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lp-menu__note { font-size: 13px; color: var(--muted); }
body.lp-locked { overflow: hidden; }

/* ==========================================================================
   Hero: the promise on the right (two-line headline, one sentence, two buttons),
   and on the left a "desk": real Ihraz screens in miniature around a photo of a
   study table, over one flat ivory shape. Only text-free shapes move.
   ========================================================================== */
.lp-hero { overflow: hidden; }
.lp-hero .lp-wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; gap: 40px;
  min-height: min(100vh, 860px); padding-block: 132px 72px; }
.lp-hero__text { display: grid; grid-template-rows: auto 1fr auto; gap: 28px; align-content: start; padding-block: 24px 8px; }
.lp-hero__title { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.28; font-weight: var(--w-display); color: var(--ink); }
.lp-hero__title > span { display: block; white-space: nowrap; }
.lp-hero__sub { align-self: end; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.85; color: var(--ink-2); }
.lp-hero__sub b { color: var(--ink); font-weight: var(--w-semibold); }
.lp-hero__foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.lp-hero__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero__go { padding-inline: 28px 8px; gap: 16px; min-height: 60px; }
.lp-hero__go-chip { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 243, 238, .14); }
.lp-hero__go-chip .icon { width: 20px; height: 20px; }
.lp-hero__alt { min-height: 60px; box-shadow: none; border: 1.5px solid var(--ink); }
.lp-hero__alt:hover { box-shadow: none; background: var(--lilac); }
.lp-hero__fine { font-size: 14px; line-height: 1.7; color: var(--muted); }

.lp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.lp-chip__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--highlight); display: grid; place-items: center; }
.lp-chip__dot svg { width: 13px; height: 13px; fill: var(--ink); }


/* ---- the desk: every piece is placed in % of one box, so the whole still life scales as one ---- */
.lp-desk { position: relative; align-self: center; width: 100%; aspect-ratio: 1 / 1.2; container-type: inline-size;
  font-size: clamp(12px, 2.6cqi, 15.5px); color: var(--ink); }
.lp-desk > * { position: absolute; }
.lp-desk__ground { inset-inline-start: 22%; top: 6%; width: 74%; height: 80%; border-radius: 9% 9% 9% 30%; background: var(--lilac); transform: rotate(-9deg); transform-origin: 70% 40%; }
/* the reading task: a dark label and a dark card under it */
.lp-desk__pin, .lp-desk__task { inset-inline-start: 2%; width: 44%; background: var(--ink); color: var(--on-accent); }
.lp-desk__pin { top: 4%; display: flex; align-items: center; gap: .6em; padding: .85em 1.1em; border-radius: 999px; font-size: .95em; font-weight: var(--w-medium); white-space: nowrap; overflow: hidden; }
.lp-desk__pin .icon { width: 1.3em; height: 1.3em; flex: none; color: var(--highlight); }
.lp-desk__pin > span { overflow: hidden; text-overflow: ellipsis; }
.lp-desk__task { top: 15.5%; display: grid; gap: .7em; padding: 1.1em 1.2em 1.2em; border-radius: 1.3em; }
.lp-desk__task b { font-size: .95em; font-weight: var(--w-medium); }
.lp-desk__tags { display: flex; flex-wrap: wrap; gap: .4em; direction: ltr; justify-content: flex-end; }
.lp-desk__tags i { font-style: normal; font-size: .84em; font-weight: var(--w-medium); padding: .3em .75em; border-radius: 999px; color: var(--ink); }
.lp-desk__tags .is-r { background: var(--t-reading); }
.lp-desk__tags .is-v { background: var(--t-vocab); }
.lp-desk__tags .is-w { background: var(--t-writing); }
.lp-desk__task small { font-size: .86em; line-height: 1.7; color: rgba(245, 243, 238, .72); }
/* the instant-marking chip */
.lp-desk__ok { top: 11%; inset-inline-start: 52%; display: flex; align-items: center; gap: .6em; padding: .7em 1em; border-radius: .7em;
  background: var(--ink); color: var(--on-accent); font-size: .95em; white-space: nowrap; }
.lp-desk__tick { width: 1.4em; height: 1.4em; flex: none; display: grid; place-items: center; border-radius: .3em; background: var(--c-speaking); }
.lp-desk__tick svg { width: 1em; height: 1em; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* the AI helper's correction */
.lp-desk__ai { top: 50%; inset-inline-start: 0; width: 45%; display: grid; justify-items: center; gap: .55em; padding: 1.4em 1.2em 1.3em; text-align: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 1.3em; }
.lp-desk__spark { width: 3.6em; height: 3.6em; border-radius: 50%; display: grid; place-items: center; background: var(--highlight-soft); border: 1px solid var(--highlight-line); margin-bottom: .2em; }
.lp-desk__spark svg { width: 1.6em; height: 1.6em; fill: var(--highlight-edge); }
.lp-desk__ai b { font-size: 1.12em; font-weight: var(--w-semibold); }
.lp-desk__ai .en { font-size: .88em; line-height: 1.55; color: var(--ink-2); text-align: center; }
.lp-desk__ai s { color: var(--terracotta); text-decoration-thickness: 2px; }
.lp-desk__ai ins { text-decoration: none; font-weight: var(--w-bold); color: var(--c-speaking); }
.lp-desk__ai small { font-size: .86em; line-height: 1.6; color: var(--muted); }
.lp-desk__btn { margin-top: .4em; padding: .7em 1.4em; border-radius: .6em; background: var(--t-grammar); border: 1px solid var(--l-grammar); font-size: .9em; font-weight: var(--w-medium); }
/* the photo, with today's plan arriving on it */
.lp-desk__photo { margin: 0; top: 22%; inset-inline-end: 0; width: 51%; aspect-ratio: 3 / 4; border-radius: 1.1em; overflow: hidden; background: var(--lilac); }
.lp-desk__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-desk__toast { position: absolute; top: 3.5%; inset-inline: 4%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .7em;
  padding: .75em .8em; border-radius: .8em; background: var(--surface); border: 1px solid var(--border); }
.lp-desk__logo { width: 2.5em; height: 2.5em; border-radius: .6em; background: var(--ink); display: grid; place-items: center; }
.lp-desk__logo svg { width: 2.5em; height: 2.5em; fill: var(--on-accent); }
.lp-desk__toast b { display: block; font-size: .92em; font-weight: var(--w-semibold); line-height: 1.5; }
.lp-desk__toast small { display: block; font-size: .86em; color: var(--muted); }
.lp-desk__when { font-size: .8em !important; }
/* this week: done, today, still to come */
.lp-desk__week { top: 84%; inset-inline-end: 0; width: 51%; display: grid; gap: .7em; padding: .9em 1em 1em; border-radius: 1.1em;
  background: var(--surface); border: 1px solid var(--border-strong); }
.lp-desk__weekhead { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; }
.lp-desk__weekhead b { font-size: .92em; font-weight: var(--w-semibold); }
.lp-desk__weekhead small { font-size: .84em; color: var(--muted); white-space: nowrap; }
.lp-desk__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4em; }
.lp-desk__days i { height: 1.9em; border-radius: .45em; background: var(--lilac); }
.lp-desk__days i.is-done { background: var(--t-speaking); box-shadow: inset 0 0 0 1px var(--l-speaking); }
.lp-desk__days i.is-today { background: var(--highlight); }

/* shapes only: the ground settles, the tick draws, the week fills in day by day */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero .reveal .lp-desk__ground { transition: transform 1.1s var(--ease-out); transform: rotate(-3deg); }
  .lp-hero .reveal.is-in .lp-desk__ground { transform: rotate(-9deg); }
  .lp-hero .reveal .lp-desk__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease-out) .6s; }
  .lp-hero .reveal.is-in .lp-desk__tick path { stroke-dashoffset: 0; }
  .lp-hero .reveal .lp-desk__days i { transform: scale(.4); transition: transform .45s var(--ease-spring); }
  .lp-hero .reveal.is-in .lp-desk__days i { transform: none; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(1) { transition-delay: 0.57s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(2) { transition-delay: 0.64s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(3) { transition-delay: 0.71s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(4) { transition-delay: 0.78s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(5) { transition-delay: 0.85s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(6) { transition-delay: 0.92s; }
  .lp-hero .reveal.is-in .lp-desk__days i:nth-child(7) { transition-delay: 0.99s; }
}

/* narrower screens: the text above, the desk below it */
@media (max-width: 1080px) {
  .lp-hero .lp-wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding-block: 120px 64px; }
  .lp-hero__text { grid-template-rows: auto; gap: 22px; padding: 0; }
  .lp-hero__sub { align-self: auto; }
  .lp-desk { max-width: 620px; justify-self: center; }
}
/* phones: a simpler desk — the photo with today's plan, the AI correction and the marking chip */
@media (max-width: 560px) {
  .lp-hero__title { font-size: clamp(30px, 8.6vw, 40px); }
  .lp-hero__acts, .lp-hero__acts .pbtn { width: 100%; }
  .lp-hero__go { justify-content: space-between; }
  .lp-desk { aspect-ratio: 1 / 1.2; font-size: clamp(11px, 3.4cqi, 14px); }
  .lp-desk__pin, .lp-desk__task, .lp-desk__week { display: none; }
  .lp-desk__ground { inset-inline-start: 6%; top: 4%; width: 88%; height: 84%; }
  .lp-desk__photo { top: 0; inset-inline-end: 0; width: 64%; }
  .lp-desk__ok { z-index: 3; top: 27%; inset-inline-start: 0; }
  .lp-desk__ai { z-index: 2; top: auto; bottom: 0; width: 62%; }
}

/* ==========================================================================
   Proof strip: learners + a ribbon of English skill tags
   ========================================================================== */
.lp-strip .lp-wrap { padding-block: 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
@media (max-width: 720px) { .lp-strip .lp-wrap { grid-template-columns: 1fr; gap: 16px; justify-items: center; } }
.lp-proof { display: flex; align-items: center; gap: 12px; }
.lp-faces { display: flex; }
.lp-faces span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: var(--w-bold); color: var(--ink); border: 2px solid var(--canvas); margin-inline-start: -10px; }
.lp-faces span:first-child { margin-inline-start: 0; }
.lp-proof__txt { display: grid; gap: 2px; }
.lp-stars { display: flex; gap: 2px; color: var(--ink); }
.lp-stars svg { width: 13px; height: 13px; fill: currentColor; }
.lp-proof__txt span { font-size: 14px; color: var(--ink-2); font-weight: var(--w-medium); }

.lp-ribbon { overflow: hidden; position: relative; max-width: 100%; }
.lp-ribbon::before, .lp-ribbon::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 12%; pointer-events: none; }
.lp-ribbon::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.lp-ribbon::after { right: 0; background: linear-gradient(-90deg, var(--canvas), transparent); }
.lp-ribbon__track { display: flex; width: max-content; animation: lp-marquee 38s linear infinite; will-change: transform; }
.lp-ribbon:hover .lp-ribbon__track { animation-play-state: paused; }
.lp-ribbon__set { display: flex; gap: 36px; padding-inline-end: 36px; }
.lp-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 17px; font-weight: var(--w-semibold); color: var(--muted); white-space: nowrap; transition: color var(--dur-fast); }
.lp-tag:hover { color: var(--ink); }
.lp-tag svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Showcase: four live mini-demos
   ========================================================================== */
.lp-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr; } }
.sc {
  --tone: var(--tint-cyan);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 22px;
  display: grid; grid-template-rows: 1fr auto; gap: 22px; min-height: 480px;
  background: color-mix(in srgb, var(--tone) 42%, var(--canvas)); box-shadow: inset 0 0 0 1px rgba(23, 25, 23, .06);
  top: 0; transition: top var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.sc--cyan { --tone: var(--tint-cyan); } .sc--violet { --tone: var(--tint-violet); } .sc--peach { --tone: var(--tint-peach); } .sc--magenta { --tone: var(--tint-magenta); }
/* a soft light that follows the pointer (paint only) */
.sc:hover { box-shadow: inset 0 0 0 1px rgba(23, 25, 23, .1); }
.sc__panel { align-self: center; background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: none; display: grid; gap: 14px; }
.sc__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sc__meta h3 { font-size: 26px; font-weight: var(--w-display); line-height: 1.3; }
.sc__meta p { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.sc__tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.sc__tag .mono { color: var(--muted); }
.sc__tag b { font-weight: var(--w-semibold); color: var(--ink-2); font-size: 13px; }
.en { direction: ltr; text-align: left; unicode-bidi: isolate; }
.sc__fb { min-height: 24px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sc__fb.is-good { color: var(--accent); }
.sc__fb.is-bad { color: var(--terracotta); }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.tick svg { width: 12px; height: 12px; stroke-width: 3; }
.is-good .tick { animation: lp-pop .45s var(--ease-spring); }
@keyframes lp-pop { from { transform: scale(0); } }

@media (max-width: 560px) {
  .sc { padding: 10px; border-radius: 22px; min-height: 0; gap: 14px; }
  .sc__panel { padding: 16px; border-radius: 16px; }
  .sc__meta { padding: 0 8px 8px; }
  .sc__meta h3 { font-size: 22px; }
  .sc__tag { flex-wrap: wrap; }
  .opt { font-size: 12px; letter-spacing: 0; }
}

/* reading: True / False / Not Given */
.rd-passage { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.rd-passage mark { background: color-mix(in srgb, var(--highlight) 70%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.rd-q { font-size: 15px; font-weight: var(--w-semibold); color: var(--ink); padding: 12px 14px; border-radius: 12px; background: var(--canvas); }
.rd-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { min-height: 44px; border-radius: 12px; font-size: 13px; font-weight: var(--w-semibold); letter-spacing: .02em; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); position: relative; top: 0; transition: top var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast); }
.opt:hover { top: -1px; box-shadow: inset 0 0 0 1px var(--ink); }
.opt.is-right { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.opt.is-wrong { background: color-mix(in srgb, var(--terracotta) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--terracotta); color: var(--terracotta); animation: lp-shake .35s; }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes lp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* writing: one click corrects the paragraph */
.wr-band { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--highlight); color: var(--ink); font-size: 12px; font-weight: var(--w-semibold); }
.wr-band b { font-size: 16px; font-weight: var(--w-display); }
.wr-text { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.wr-text .err { text-decoration: underline wavy var(--terracotta); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.wr-text ins { display: none; text-decoration: none; position: relative; isolation: isolate; color: var(--ink); font-weight: var(--w-semibold); }
.wr-text ins::before { content: ""; position: absolute; z-index: -1; inset-inline: -2px; bottom: .1em; height: .5em; background: color-mix(in srgb, var(--tint-violet) 90%, var(--accent) 10%); border-radius: 3px; clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.65, 0, .35, 1) .1s; }
.wr.is-fixed .err { text-decoration: line-through var(--terracotta) 1.5px; color: var(--faint); }
.wr.is-fixed ins { display: inline; }
.wr.is-fixed ins::before { clip-path: inset(0); }
.wr-crit { display: grid; gap: 8px; }
.wr-crit div { display: grid; grid-template-columns: 9.5em 1fr 2.2em; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); direction: ltr; }
.wr-crit b { font-size: 13px; color: var(--ink); text-align: end; }
.lp-bar { height: 8px; border-radius: 99px; background: var(--lilac); overflow: hidden; }
.lp-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--v, 0)); transition: transform .9s var(--ease-out); }
.wr:not(.is-fixed) .lp-bar > span { transform: scaleX(.12); background: var(--faint); }
.wr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wr-foot span { font-size: 13px; color: var(--muted); }

/* grammar: fill the gap */
.gr-sent { font-size: 22px; font-weight: var(--w-semibold); color: var(--ink); line-height: 1.6; text-align: center; padding: 18px 8px; border-radius: 14px; background: var(--canvas); }
.gr-gap { display: inline-block; min-width: 3.4em; border-bottom: 2px dashed var(--border-strong); color: var(--accent); }
.gr-gap.is-filled { border-bottom-style: solid; border-color: var(--accent); }
.gr-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gr-opts .opt { font-size: 16px; letter-spacing: 0; }
.gr-rule { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.gr-rule code { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--tint-peach) 50%, var(--surface)); color: var(--ink); direction: ltr; unicode-bidi: isolate; }

/* plan: countdown ring + this week's streak */
.pl-top { display: flex; align-items: center; gap: 16px; }
.pl-ring { width: 84px; height: 84px; flex: none; position: relative; display: grid; place-items: center; }
.pl-ring svg { position: absolute; inset: 0; rotate: -90deg; }
.pl-ring circle { fill: none; stroke-width: 7; }
.pl-ring .bg { stroke: var(--lilac); }
.pl-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.4s var(--ease-out) .2s; }
.reveal.is-in .pl-ring .fg { stroke-dashoffset: 88; }
.pl-ring b { font-size: 24px; font-weight: var(--w-display); line-height: 1; text-align: center; }
.pl-ring small { display: block; font-size: 11px; font-weight: var(--w-medium); color: var(--muted); }
.pl-top h4 { font-size: 16px; font-weight: var(--w-semibold); }
.pl-top p { font-size: 13px; color: var(--muted); }
.pl-skills { display: grid; gap: 9px; }
.pl-skills div { display: grid; grid-template-columns: 4.6em 1fr 2em; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pl-skills b { text-align: end; font-size: 13px; }
.pl-skills .lp-bar > span { transform-origin: right center; }
:where(.js) .reveal:not(.is-in) .pl-skills .lp-bar > span { transform: scaleX(0); }
.pl-skills .is-weak .lp-bar > span { background: var(--terracotta); }
.pl-week { display: flex; justify-content: space-between; gap: 6px; }
.pl-day { width: 38px; height: 46px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--muted); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); position: relative; top: 0; transition: top var(--dur-fast), background-color var(--dur-fast); }
.pl-day:hover { top: -1px; }
.pl-day i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); display: grid; place-items: center; transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.pl-day i svg { width: 9px; height: 9px; stroke: var(--on-accent); stroke-width: 3.4; opacity: 0; }
.pl-day.is-done i { background: var(--accent); box-shadow: none; animation: lp-pop .4s var(--ease-spring); }
.pl-day.is-done i svg { opacity: 1; }
.pl-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-streak { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pl-streak svg { width: 16px; height: 16px; color: var(--terracotta); }

/* ==========================================================================
   How a lesson works
   ========================================================================== */
.lp-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .lp-about { grid-template-columns: 1fr; gap: 40px; } }
.lp-about__copy p { margin-top: 18px; font-size: 17px; line-height: 1.9; color: var(--muted); max-width: 540px; }
.lp-about__copy p b { color: var(--ink); font-weight: var(--w-semibold); }
.lp-about__copy .pbtn { margin-top: 28px; }
.lesson { border-radius: 28px; background: var(--surface); padding: 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 16px; rotate: 1.5deg; }
.lesson__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lesson__head small { display: block; font-size: 12px; color: var(--muted); }
.lesson__head b { font-size: 18px; font-weight: var(--w-display); }
.lesson__badge { font-size: 12px; font-weight: var(--w-semibold); padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); }
.lesson__steps { display: grid; gap: 8px; counter-reset: st; }
.lesson__steps li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--canvas); font-size: 15px; color: var(--ink-2); }
.lesson__steps li > span:last-child { font-size: 12px; color: var(--muted); }
.st-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); color: var(--muted); font-size: 13px; font-weight: var(--w-bold); position: relative; }
.st-dot svg { width: 16px; height: 16px; stroke-width: 2.6; }
.is-done .st-dot { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.is-now { box-shadow: inset 0 0 0 1.5px var(--accent); }
.is-now b { color: var(--ink); }
.is-now .st-dot { background: var(--highlight); color: var(--ink); box-shadow: none; }
.is-now .st-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--highlight); animation: lp-ping 1.8s var(--ease-out) infinite; }
@keyframes lp-ping { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.lesson__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.lesson__nums div { padding: 12px 6px; border-radius: 14px; background: color-mix(in srgb, var(--tint-violet) 40%, var(--surface)); }
.lesson__nums b { display: block; font-size: 24px; font-weight: var(--w-display); line-height: 1.2; }
.lesson__nums span { font-size: 12px; color: var(--ink-2); }

/* ==========================================================================
   Stacked list cards
   ========================================================================== */
.lp-stack { margin: 64px auto 0; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
.lp-stack .lcard:nth-child(1) { rotate: 4deg; z-index: 2; margin-inline-end: -24px; }
.lp-stack .lcard:nth-child(2) { rotate: -4deg; z-index: 1; margin-top: 20px; }
.lp-stack .lcard:nth-child(3) { grid-column: 1 / -1; rotate: -2deg; z-index: 3; margin-top: -8px; }
@media (max-width: 760px) {
  .lp-stack { grid-template-columns: 1fr; gap: 20px; }
  .lp-stack .lcard:nth-child(n) { margin: 0; grid-column: auto; }
  .lp-stack .lcard:nth-child(1) { rotate: 2deg; }
  .lp-stack .lcard:nth-child(2) { rotate: -2deg; }
  .lp-stack .lcard:nth-child(3) { rotate: 1deg; }
}
.lcard { width: min(100%, 380px); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; top: 0; transition: top var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lcard:hover { top: -10px; z-index: 5; box-shadow: 0 0 0 1px var(--border-strong); }
.lcard__head { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: var(--w-display); color: var(--ink); background: var(--tone, var(--tint-cyan)); }
.lcard__head svg { width: 20px; height: 20px; }
.lcard ul { padding: 4px 0; }
.lcard li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
.lcard li:first-child { border-top: 0; }
.lcard li small { font-size: 12px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--lilac); color: var(--muted); }
.lcard li a { color: inherit; }
.lcard li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Chip cloud
   ========================================================================== */
.lp-cloud { margin-top: 56px; display: grid; gap: 40px; }
.lp-cloud h3 { font-size: 15px; font-weight: var(--w-medium); color: var(--muted); margin-bottom: 16px; text-align: center; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-pchip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 16px; font-weight: var(--w-semibold); color: var(--ink); position: relative; top: 0; transition: top var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
[dir="rtl"] .lp-pchip { padding: 8px 8px 8px 20px; }
.lp-pchip:hover { top: -3px; box-shadow: 0 0 0 1px var(--border-strong); }
.lp-pchip__ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tone, var(--tint-cyan)); transition: transform .5s var(--ease-spring); transition-delay: calc(var(--i, 0) * 60ms); }
.lp-pchip__ic svg { width: 18px; height: 18px; }
:where(.js) .reveal:not(.is-in) .lp-pchip__ic { transform: scale(0) rotate(-40deg); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.lp-plans { margin: 56px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .lp-plans { grid-template-columns: 1fr; } }
.plan2 { border-radius: 28px; padding: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 20px; align-content: start; position: relative; }
.plan2--pro { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.plan2__name { font-size: 16px; font-weight: var(--w-semibold); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan2__ribbon { font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--highlight); color: var(--ink); }
.plan2__price { display: flex; align-items: baseline; gap: 8px; }
.plan2__price b { font-size: 48px; font-weight: var(--w-display); line-height: 1; }
.plan2__price span { font-size: 14px; opacity: .7; }
.plan2 ul { display: grid; gap: 12px; }
.plan2 li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.plan2 li svg { width: 18px; height: 18px; flex: none; stroke-width: 2.4; }
.plan2--pro .pbtn--light { box-shadow: none; }
.lp-plans__note { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.lp-faq { margin: 48px auto 0; max-width: 760px; display: grid; gap: 10px; }
.lp-faq details { border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--dur); }
.lp-faq details[open] { box-shadow: 0 0 0 1px var(--border-strong); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: var(--w-semibold); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 20px; }
.lp-faq summary i { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); }
.lp-faq summary i svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.lp-faq details[open] summary i { background: var(--highlight); }
.lp-faq details[open] summary i svg { transform: rotate(45deg); }
.lp-faq details p { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.lp-faq__more { text-align: center; margin-top: 20px; color: var(--muted); font-size: 15px; }
.lp-faq__more a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Closing call to action + footer
   ========================================================================== */
.lp-cta { border-radius: 32px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.lp-cta h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; font-weight: var(--w-display); }
.lp-cta h2 span { display: block; }
.lp-cta__acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .lp-cta { padding: 28px 22px; } .lp-cta__acts { width: 100%; } .lp-cta__acts .pbtn { flex: 1; } }

.lp-foot .lp-wrap { padding-block: 48px 32px; display: grid; gap: 24px; justify-items: center; text-align: center; }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.lp-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lp-foot p { font-size: 12px; color: var(--muted); max-width: 560px; line-height: 1.8; }

/* ==========================================================================
   AI helper: a dark "studio" card — feature tabs + one demo panel
   Answers are static HTML (landing.js swaps in the thinking card, then the answer);
   only shapes move: the ✦ sparkles, the glow, the thinking bars. Text never animates.
   ========================================================================== */
.lp-ai .lp-wrap { overflow: hidden; }
.lp-ai__head { display: grid; justify-items: center; gap: 18px; }
.lp-ai__head .ai-badge { font-size: 13px; padding: 5px 14px; box-shadow: 0 0 0 1.5px var(--ink); }
.aix {
  margin-top: 56px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 26px; border-radius: 32px; background: var(--accent); color: var(--on-accent);
  box-shadow: none;
}


.aix__tabs { display: grid; gap: 6px; }
.aix__tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 18px; text-align: start; font: inherit; cursor: pointer;
  color: var(--on-accent); background: transparent; position: relative; top: 0;
  transition: background-color var(--dur-fast), box-shadow var(--dur-fast), top var(--dur) var(--ease-out); }
.aix__tab:hover { background: rgba(252, 250, 245, .08); }
.aix__tab:focus-visible { outline: 2px solid var(--tint-cyan); outline-offset: 2px; }
.aix__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: none; }
.aix__ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tone, var(--tint-cyan)); color: var(--ink); }
.aix__ic svg { width: 19px; height: 19px; }
.aix__tx { display: grid; gap: 1px; min-width: 0; }
.aix__tx b { font-size: 16px; font-weight: var(--w-bold); line-height: 1.4; }
.aix__tx small { font-size: 12.5px; line-height: 1.5; opacity: .72; }
.aix__tab[aria-selected="true"] .aix__tx small { opacity: 1; color: var(--muted); }

.aix__stage { min-height: 520px; display: grid; }
.aix__panel { background: var(--surface); color: var(--ink-2); border-radius: 22px; padding: 22px; display: grid; gap: 14px; align-content: start;
  box-shadow: none; }
.aix__panel[hidden] { display: none; }
.aix__panel:focus-visible { outline: 2px solid var(--tint-cyan); outline-offset: 3px; }
.aix__panel > .ai-btn { justify-self: start; }
.aix__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.aix__bar b { font-size: 13px; font-weight: var(--w-semibold); color: var(--ink-2); }
.aix__en { font-size: 15.5px; line-height: 1.75; color: var(--ink); padding: 12px 14px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.aix__en--big { font-size: 18px; }
.aix__q { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.aix__q p { font-size: 15px; font-weight: var(--w-semibold); color: var(--ink); }
.aix__ans { display: flex; flex-wrap: wrap; gap: 8px; }
.aix__pick { font-size: 12.5px; padding: 3px 12px; border-radius: var(--r-pill); font-weight: var(--w-semibold); color: var(--ink); }
.aix__pick.is-wrong { background: var(--tint-peach); }
.aix__pick.is-right { background: var(--tint-violet); }
.aix__word { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.aix__word b { font-size: 24px; font-weight: var(--w-display); color: var(--ink); }
.aix__word span { font-size: 14px; color: var(--muted); }
.aix__task { font-size: 15px; color: var(--ink); font-weight: var(--w-semibold); }
/* the student's own words: a "typed" input with a caret */
.aix__typed { position: relative; font-size: 15.5px; line-height: 1.75; color: var(--ink); padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.aix__typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -.15em; background: var(--ink); animation: aix-caret 1.1s steps(1) infinite; }
.aix__typed.is-sent::after { display: none; }
@keyframes aix-caret { 50% { opacity: 0; } }
.aix__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.aix__stats div { padding: 12px 4px; border-radius: 14px; background: color-mix(in srgb, var(--tint-cyan) 35%, var(--surface)); }
.aix__stats b { display: block; font-size: 20px; font-weight: var(--w-display); color: var(--ink); line-height: 1.3; }
.aix__stats span { font-size: 12px; color: var(--muted); }
.aix__out:empty { display: none; }
.aix__out .ai-box { margin-top: 0; }
.aix__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aix__keys { display: grid; gap: 6px; }
.aix__keys li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface); }
.aix__keys b { font-weight: var(--w-semibold); color: var(--ink); }
.aix__headline { font-size: 17px; font-weight: var(--w-bold); color: var(--ink); line-height: 1.6; }
.aix__steps { display: grid; gap: 4px; padding-inline-start: 1.3em; list-style: decimal; }
.aix__steps li::marker { font-weight: var(--w-bold); color: var(--ink); }
.aix .ai-box p b { color: var(--ink); font-weight: var(--w-semibold); }

.lp-ai__more { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.lp-ai__more li { display: inline-flex; align-items: center; gap: 8px; }
.lp-ai__why { margin: 48px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-ai__why > div { padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 6px; justify-items: start; }
.lp-ai__why b { font-size: 18px; font-weight: var(--w-display); color: var(--ink); margin-top: 8px; }
.lp-ai__why p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.lp-ai__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tone, var(--tint-cyan)); transition: transform .5s var(--ease-spring); }
.lp-ai__num svg { width: 20px; height: 20px; }
:where(.js) .reveal:not(.is-in) .lp-ai__num { transform: scale(0) rotate(-40deg); }
.lp-ai__why > div:nth-child(2) .lp-ai__num { transition-delay: 80ms; } .lp-ai__why > div:nth-child(3) .lp-ai__num { transition-delay: 160ms; }
.lp-ai__acts { margin-top: 36px; display: flex; justify-content: center; }

@media (max-width: 900px) {
  .aix { grid-template-columns: 1fr; padding: 14px; border-radius: 26px; }
  /* tabs become a row of chips you can swipe */
  .aix__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 4px 14px 2px; scroll-padding-inline: 14px; }
  .aix__tabs::-webkit-scrollbar { display: none; }
  .aix__tab { width: auto; flex: none; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(252, 250, 245, .22); }
  [dir="rtl"] .aix__tab { padding: 6px 6px 6px 14px; }
  .aix__ic { width: 32px; height: 32px; border-radius: 50%; }
  .aix__ic svg { width: 16px; height: 16px; }
  .aix__tx b { font-size: 14px; white-space: nowrap; }
  .aix__tx small { display: none; }
  .aix__stage { min-height: 560px; }
}
@media (max-width: 720px) { .lp-ai__why { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .aix__panel { padding: 16px; border-radius: 18px; }
  .aix__stage { min-height: 600px; }
  .aix__stats { grid-template-columns: repeat(2, 1fr); }
  .aix__panel > .ai-btn { justify-self: stretch; }
}

/* the hero chip announces the AI helper */
.lp-chip--ai { color: var(--ink); top: 0; position: relative; transition: top var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
[dir="rtl"] .lp-chip--ai { padding: 6px 6px 6px 14px; }
.lp-chip--ai:hover { top: -2px; box-shadow: 0 0 0 1px var(--border-strong); }
.lp-chip--ai .lp-chip__dot { background: var(--tint-cyan); }
.lp-chip--ai .lp-chip__dot svg { animation: ai-star 2.6s ease-in-out infinite; }
.lp-chip--ai > b { font-size: 12px; font-weight: var(--w-bold); padding: 1px 9px; border-radius: var(--r-pill); background: var(--highlight); }
.lp-chip__go { width: 15px; height: 15px; }
.lp-tag--ai { color: var(--ink-2); }
.lp-tag--ai svg { fill: var(--tint-cyan); stroke: var(--ink); stroke-width: 1.4; }
.lp-pchip--ai { box-shadow: 0 0 0 1.5px var(--ink); }

/* endless animations stop while they're off screen (landing.js toggles .is-off) */
.is-off .lp-ribbon__track, .is-off.lp-ribbon__track, .is-off .st-dot::after, .is-off .aix__spark, .is-off .aix__typed::after { animation-play-state: paused; }

/* ==========================================================================
   Reduced motion: everything still works, nothing moves on its own
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .lp-ribbon { overflow-x: auto; scrollbar-width: none; }
  .lp-ribbon__track { animation: none; }
  .is-now .st-dot::after { animation: none; opacity: 0; }
  .opt.is-wrong, .is-good .tick, .pl-day.is-done i { animation: none; }
  .aix__spark, .aix__typed::after, .lp-chip--ai .lp-chip__dot svg { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* what exists now vs. what is coming (no promises the app can't keep) */
.lp-soon { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 1px 10px; border-radius: 9999px; border: 1px dashed currentColor; font-size: 12px; font-weight: 600; opacity: .8; }
.plan2__later li { opacity: .85; }
.plan2 .pbtn.is-disabled { cursor: default; opacity: .7; pointer-events: none; }
.plan2--later { background: transparent; border: 1.5px dashed var(--border-strong); box-shadow: none; }
.plan2--later .plan2__price b { opacity: .75; }
