/* Scroll After Class public site.
   Values come from the prototype pages (Landing.dc.html, Pricing.dc.html): the `c` colour objects
   become the custom properties below, the inline styles become the classes. The desktop layout
   (1440 px artboard, 120 px side padding) is unchanged; media queries at the end only adapt it
   to smaller screens. */

/* ---------- Theme tokens (dark = prototype "sombre", light = "clair") ---------- */
:root {
  --bg: #1C1F1A; --band: #20241E; --card: #262A23; --card-border: #262A23; --line: #3D4237;
  --text: #F4F6EE; --muted: #AEB3A3; --accent: #C6F432; --head-line: #2A2E27;
  --tile-edge: transparent; --lime-edge: 0; --cta: none; --dot-bg: #0E0F0C; --dot-border: 0; --dot-icon: #C6F432;
  --sel-bg: #30352C; --hl-edge: none; --frame: #3A3C37; --frame-edge: #5E615A; --phone-shadow: 0 40px 90px rgba(0,0,0,.55);
  --bubble: #30352C; --user-bg: #3B4A1A; --user-edge: #3B4A1A; --ok-fg: #C6F432; --ok-bg: #2F3A1C;
  --err-fg: #F2B8A0; --err-bg: #3A2A24; --big-shadow: none; --ink: #C6F432; --track: #30352C; --bar-edge: none;
  --pop-shadow: 0 42px 70px -18px rgba(0,0,0,.75), 0 18px 30px -12px rgba(0,0,0,.55), 0 0 60px rgba(198,244,50,.16);
  --font: Nunito, sans-serif;
  --gut: max(120px, calc((100vw - 1200px) / 2));
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ECEEE7; --band: #E3E6DC; --card: #FFFFFF; --card-border: #D5D9CC; --line: #D5D9CC;
    --text: #0E0F0C; --muted: #545A4C; --accent: #4D6B00; --head-line: #D5D9CC;
    --tile-edge: #0E0F0C; --lime-edge: 1.5px solid #0E0F0C; --cta: 0 4px 0 #0E0F0C; --dot-bg: #C6F432; --dot-border: 1.5px solid #0E0F0C; --dot-icon: #0E0F0C;
    --sel-bg: #F6FDE0; --hl-edge: inset 0 0 0 2px #0E0F0C; --frame: #3A3C37; --frame-edge: #7C8077; --phone-shadow: 0 30px 70px rgba(14,15,12,.25);
    --bubble: #F1F3EC; --user-bg: #EAF7C2; --user-edge: #C9DD8A; --ok-fg: #3F5A00; --ok-bg: #EEF8D4;
    --err-fg: #9A3A14; --err-bg: #FBEDE6; --big-shadow: 0 8px 0 #0E0F0C; --ink: #0E0F0C; --track: #ECEEE7; --bar-edge: inset 0 0 0 1.5px #0E0F0C;
    --pop-shadow: 0 44px 70px -20px rgba(14,15,12,.42), 0 18px 32px -14px rgba(14,15,12,.30), 0 2px 6px rgba(14,15,12,.10);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ECEEE7; --band: #E3E6DC; --card: #FFFFFF; --card-border: #D5D9CC; --line: #D5D9CC;
  --text: #0E0F0C; --muted: #545A4C; --accent: #4D6B00; --head-line: #D5D9CC;
  --tile-edge: #0E0F0C; --lime-edge: 1.5px solid #0E0F0C; --cta: 0 4px 0 #0E0F0C; --dot-bg: #C6F432; --dot-border: 1.5px solid #0E0F0C; --dot-icon: #0E0F0C;
  --sel-bg: #F6FDE0; --hl-edge: inset 0 0 0 2px #0E0F0C; --frame: #3A3C37; --frame-edge: #7C8077; --phone-shadow: 0 30px 70px rgba(14,15,12,.25);
  --bubble: #F1F3EC; --user-bg: #EAF7C2; --user-edge: #C9DD8A; --ok-fg: #3F5A00; --ok-bg: #EEF8D4;
  --err-fg: #9A3A14; --err-bg: #FBEDE6; --big-shadow: 0 8px 0 #0E0F0C; --ink: #0E0F0C; --track: #ECEEE7; --bar-edge: inset 0 0 0 1.5px #0E0F0C;
  --pop-shadow: 0 44px 70px -20px rgba(14,15,12,.42), 0 18px 32px -14px rgba(14,15,12,.30), 0 2px 6px rgba(14,15,12,.10);
  color-scheme: light;
}
[dir=rtl] { --font: "IBM Plex Sans Arabic", Nunito, sans-serif; }

/* Elements drawn only in one theme (sun/moon icon, phone screens with their own markup). */
:root[data-theme="dark"] .only-light,
:root[data-theme="light"] .only-dark { display: none !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .only-dark { display: none !important; } }
@media not (prefers-color-scheme: light) { :root:not([data-theme]) .only-light { display: none !important; } }

/* ---------- Base (prototype <style> block) ---------- */
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-thumb { background: #C6F432; border-radius: 99px; }
@keyframes lp-in { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lp-float2 { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-8px); } }
@keyframes lp-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lp-eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes lp-msg { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: none; } }
@keyframes lp-cardfloat { 0%,100% { translate: 0 -22px; } 50% { translate: 0 -34px; } }
@keyframes lp-swap { from { opacity: 0; transform: translate3d(0,-6px,0); } to { opacity: 1; transform: none; } }
div, a, button, span, section { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.lp-in { animation: lp-in .7s cubic-bezier(.22,1,.36,1) both; }
.lp-front { animation: lp-float 6s ease-in-out infinite; }
.lp-back { animation: lp-float2 7s ease-in-out infinite; }
.lp-step .lp-phone { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.lp-step:hover .lp-phone { transform: translateY(-8px) rotate(-1.5deg); }
.lp-card { transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, background-color .35s ease; }
.lp-card:hover { transform: translateY(-6px); }
.lp-card:hover .lp-tile { transform: rotate(-8deg) scale(1.08); }
.lp-tile { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.lp-btn { transition: transform .14s ease, box-shadow .14s ease, background-color .3s ease; }
.lp-btn:hover .lp-arrow { transform: translateX(4px); }
.lp-btn:active { transform: translateY(4px); box-shadow: none !important; }
.lp-arrow { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.lp-ghost { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .3s ease; }
.lp-ghost:hover { transform: translateY(-2px); }
.lp-link { transition: opacity .2s ease; }
.lp-link:hover { opacity: .65; }
.lp-icon-btn { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.lp-icon-btn:hover { transform: scale(1.08); }
.lp-icon-btn:active { transform: scale(.9); }
.lp-lang { transition: background-color .25s ease, color .25s ease; }
.lp-seg { transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.lp-seg:active { transform: scale(.95); }
.lp-eq { transform-origin: center; animation: lp-eq .9s ease-in-out infinite; }
.lp-msg { animation: lp-msg .6s cubic-bezier(.22,1,.36,1) both; }
.lp-swap { animation: lp-swap .45s cubic-bezier(.22,1,.36,1) both; }
.lp-faq { transition: background-color .3s ease, border-color .3s ease; }
.lp-faq:hover { border-color: #C6F432 !important; }
.lp-chev { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.lp-pop { animation: lp-pop .4s cubic-bezier(.34,1.56,.64,1) both; }
.lp-input:focus { outline: none; border-color: #C6F432 !important; box-shadow: 0 0 0 4px rgba(198,244,50,.25); }
/* RTL rules of the prototype; the phone screens (.ph) keep their own (French, LTR) typography. */
[dir=rtl] *:not(.ph, .ph *) { letter-spacing: 0 !important; }
[dir=rtl] h1, [dir=rtl] h2 { font-weight: 700 !important; }
[dir=rtl] p:not(.ph *) { line-height: 1.85 !important; }
[dir=rtl] .lp-k { font-size: 15px !important; font-weight: 700 !important; }
[dir=rtl] .lp-flip { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid #C6F432; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 18px var(--gut); background: var(--bg); border-bottom: 1px solid var(--head-line); }
.hd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.hd-brand svg { flex-shrink: 0; }
.hd-name { font: 900 20px Nunito, sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
.hd-nav { flex-grow: 1; display: flex; gap: 22px; font-size: 14.5px; font-weight: 800; }
.hd-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.hd-nav--pricing { gap: 28px; font-size: 15px; }
.hd-nav a[aria-current="page"] { color: var(--text); }
.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); }
.lang { min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 900 13px Nunito, sans-serif; cursor: pointer; }
.lang--ar { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang.is-on { background: #C6F432; color: #0E0F0C; }
.theme-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex-shrink: 0; }
.hd-cta { display: flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #C6F432; color: #0E0F0C; box-shadow: var(--cta); font-size: 15px; font-weight: 900; text-decoration: none; white-space: nowrap; }

/* ---------- Shared section pieces ---------- */
.sec { padding: 96px var(--gut); }
.band { background: var(--band); }
.lp-k { font-size: 14px; font-weight: 900; letter-spacing: 0.1em; color: var(--accent); }
.h2 { margin: 0; font-size: 48px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hl { background: #C6F432; color: #0E0F0C; padding: 0 14px; border-radius: 16px; box-shadow: var(--hl-edge); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.check { width: 28px; height: 28px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks > span { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; background: var(--card); border: 1.5px solid var(--card-border); }
.card-t { font-size: 22px; font-weight: 900; }
.card-b { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.tile { width: 56px; height: 56px; border-radius: 18px; border: 1.5px solid var(--tile-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

/* ---------- Landing: hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 540px; gap: 40px; align-items: center; padding: 56px var(--gut) 96px; }
.hero-l { display: flex; flex-direction: column; gap: 26px; }
.badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; color: var(--accent); }
.badge-dot { width: 8px; height: 8px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); }
.h1 { margin: 0; font-size: 74px; font-weight: 900; line-height: 1.14; letter-spacing: -0.035em; animation-delay: .06s; }
[dir=rtl] .h1 { font-size: 64px; line-height: 1.4; }
.hero-sub { margin: 0; max-width: 580px; font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--muted); animation-delay: .12s; }
.hero-ctas { display: flex; gap: 14px; animation-delay: .18s; }
.cta-main { display: flex; align-items: center; gap: 18px; min-height: 62px; padding-inline: 28px 8px; border-radius: 999px; background: #C6F432; color: #0E0F0C; box-shadow: var(--cta); font-size: 18px; font-weight: 900; text-decoration: none; }
.cta-dot { width: 48px; height: 48px; border-radius: 999px; background: var(--dot-bg); border: var(--dot-border); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.lp-flip { display: flex; }
.cta-ghost { display: flex; align-items: center; min-height: 62px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-size: 17px; font-weight: 900; text-decoration: none; }
.facts { display: flex; gap: 32px; padding-top: 10px; animation-delay: .24s; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-big { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.fact-small { font-size: 13px; font-weight: 800; color: var(--muted); }
.hero-art { position: relative; width: 540px; height: 640px; }

/* Scaled boxes (phones) that shrink to fit narrow screens; see fitBoxes() in site.js. */
.fit { position: relative; flex-shrink: 0; }
.fit > .fit-inner { position: absolute; top: 0; left: 0; transform-origin: top left; }

/* ---------- Landing: sections ---------- */
.prob { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.prob-l { display: flex; flex-direction: column; gap: 10px; }
.prob-big { font: 900 132px/1 Nunito, sans-serif; letter-spacing: -0.05em; color: var(--accent); }
.prob-unit { max-width: 420px; font-size: 22px; font-weight: 800; line-height: 1.4; }
.prob-src { font-size: 13px; font-weight: 700; color: var(--muted); }
.col20 { display: flex; flex-direction: column; gap: 20px; }
.col22 { display: flex; flex-direction: column; gap: 22px; }
.body18 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.lp-step { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.step-ph { position: relative; }
.step-n { position: absolute; top: -14px; left: -14px; width: 46px; height: 46px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 900 20px Nunito, sans-serif; color: #0E0F0C; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.step-txt { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.step-t { font-size: 23px; font-weight: 900; letter-spacing: -0.01em; }
.step-b { font-size: 16px; font-weight: 700; line-height: 1.55; color: var(--muted); }

.sk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sk-head .head { max-width: 720px; }
.sk-side { margin: 0; max-width: 380px; font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--muted); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.sk-card { padding: 26px; }
.sk-card .tile { width: 52px; height: 52px; border-radius: 16px; }
.sk-card .card-b { font-size: 15px; line-height: 1.55; flex-grow: 1; }
.pill { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--sel-bg); font-size: 13px; font-weight: 900; color: var(--accent); }

.tutor { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 32px; background: var(--card); border: 1.5px solid var(--card-border); }
.chat-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-av { width: 44px; height: 44px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.chat-who { display: flex; flex-direction: column; }
.chat-name { font-size: 16px; font-weight: 900; }
.chat-lvl { font-size: 13px; font-weight: 700; color: var(--muted); }
.chat-log { display: flex; flex-direction: column; gap: 14px; font-family: Nunito, sans-serif; }
.msg-prof { align-self: flex-start; max-width: 80%; padding: 13px 16px; border-radius: 20px 20px 20px 6px; background: var(--bubble); font-size: 16px; font-weight: 700; }
.msg-me { align-self: flex-end; max-width: 80%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bub-me { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 20px 20px 6px 20px; background: var(--user-bg); border: 1.5px solid var(--user-edge); font-size: 16px; font-weight: 800; }
.eq { display: flex; align-items: center; gap: 3px; height: 16px; }
.eq > span { display: block; width: 3px; height: 14px; border-radius: 9px; background: var(--accent); }
.tag-err { padding: 6px 12px; border-radius: 12px; background: var(--err-bg); color: var(--err-fg); font-size: 13px; font-weight: 900; font-family: var(--font); }
.tag-ok { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-fg); font-size: 13px; font-weight: 900; font-family: var(--font); }

.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.path-line { position: absolute; top: 27px; left: 28px; right: 28px; height: 3px; border-radius: 9px; background: var(--line); }
.path-i { position: relative; display: flex; flex-direction: column; gap: 14px; }
.path-n { width: 56px; height: 56px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 900 20px Nunito, sans-serif; color: var(--text); }
.path-n.is-first { background: #C6F432; border: var(--lime-edge); color: #0E0F0C; }
.path-t { font-size: 21px; font-weight: 900; }
.path-b { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--muted); }

.modes { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.modes-ph { display: flex; justify-content: center; }
.mode-card { flex-direction: row; gap: 18px; padding: 24px; border-radius: 26px; }
.mode-txt { display: flex; flex-direction: column; gap: 6px; }
.mode-txt .card-b { line-height: 1.55; }
.mode-tag { align-self: flex-start; margin-top: 4px; padding: 7px 12px; border-radius: 999px; background: var(--sel-bg); font-size: 14px; font-weight: 900; color: var(--accent); }

.cmp { margin-top: 48px; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--card-border); background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row--head { align-items: center; }
.cmp-h { padding: 20px 16px; text-align: center; font-size: 15px; font-weight: 900; color: var(--muted); }
.cmp-h0 { padding: 20px 28px; }
.cmp-us { padding: 20px 16px; text-align: center; font-size: 16px; font-weight: 900; background: #C6F432; color: #0E0F0C; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.cmp-l { padding: 18px 28px; font-size: 16px; font-weight: 800; }
.cmp-c { display: flex; align-items: center; justify-content: center; }
.cmp-c.is-us { background: var(--sel-bg); }
.yes { width: 30px; height: 30px; border-radius: 999px; background: var(--line); border: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.yes svg { stroke: var(--text); }
.is-us .yes { background: #C6F432; border: var(--lime-edge); }
.is-us .yes svg { stroke: #0E0F0C; }

.rule-big { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; color: var(--accent); }
.rule-t { font-size: 21px; font-weight: 900; }
.rule-card .card-b { line-height: 1.55; }

.priv { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.priv-sec { padding-top: 80px; padding-bottom: 80px; }
.priv-list { display: flex; flex-direction: column; gap: 12px; }
.priv-i { display: flex; gap: 16px; padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--card-border); }
.priv-tile { width: 44px; height: 44px; border-radius: 14px; background: #CFE3D6; border: 1.5px solid var(--tile-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.priv-txt { display: flex; flex-direction: column; gap: 4px; }
.priv-t { font-size: 18px; font-weight: 900; }
.priv-b { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--muted); }

/* FAQ (landing variant; the pricing page uses .faq--pricing) */
.faq { display: grid; grid-template-columns: 380px 1fr; gap: 72px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-i { border-radius: 22px; background: var(--card); border: 1.5px solid var(--card-border); }
.faq-i.is-open { border-color: var(--ink); }
.faq-q { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 0 24px; border: 0; background: transparent; color: var(--text); font: 900 19px var(--font); text-align: start; cursor: pointer; }
.faq-q > span { flex-grow: 1; }
.faq-q svg { flex-shrink: 0; stroke: var(--text); }
.faq-i.is-open .lp-chev { transform: rotate(180deg); }
.faq-a { margin: 0; padding: 0 24px 22px; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.faq--pricing { gap: 64px; align-items: start; }
.faq--pricing .faq-q { justify-content: space-between; min-height: 0; padding: 20px 24px; font: inherit; font-size: 18px; font-weight: 900; }

/* Waitlist */
.wl-sec { padding: 0 var(--gut) 96px; }
.wl { display: grid; grid-template-columns: 1fr 500px; gap: 56px; align-items: center; padding: 64px; border-radius: 40px; background: #C6F432; color: #0E0F0C; border: var(--lime-edge); box-shadow: var(--big-shadow); }
.wl-l { display: flex; flex-direction: column; gap: 16px; }
.wl-t { margin: 0; font-size: 52px; font-weight: 900; line-height: 1.08; letter-spacing: -0.035em; }
.wl-s { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.55; opacity: .75; }
.wl-form { display: flex; flex-direction: column; gap: 12px; }
.wl-label { font-size: 14px; font-weight: 900; }
.wl-row { display: flex; gap: 10px; }
.wl-input { flex-grow: 1; min-width: 0; min-height: 60px; padding: 0 22px; border-radius: 999px; border: 2px solid #0E0F0C; background: #FFFFFF; color: #0E0F0C; font: 800 17px Nunito, sans-serif; box-sizing: border-box; }
.wl-btn { min-height: 60px; padding: 0 26px; border-radius: 999px; border: 0; background: #0E0F0C; color: #C6F432; font: 900 17px var(--font); cursor: pointer; white-space: nowrap; }
.wl-btn:disabled { cursor: default; }
.wl-note { font-size: 13px; font-weight: 800; opacity: .7; }
.wl-ok { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 26px; background: #FFFFFF; border: 2px solid #0E0F0C; }
.wl-ok-dot { width: 52px; height: 52px; border-radius: 999px; background: #0E0F0C; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-ok-txt { display: flex; flex-direction: column; gap: 2px; }
.wl-ok-t { font-size: 19px; font-weight: 900; }
.wl-ok-s { font-size: 15px; font-weight: 700; opacity: .75; }

/* Footer */
.ft { display: flex; align-items: center; gap: 32px; padding: 36px var(--gut) 44px; border-top: 1px solid var(--line); }
.ft-brand { display: flex; align-items: center; gap: 10px; font: 900 17px Nunito, sans-serif; }
.ft-brand svg { flex-shrink: 0; }
.ft-txt { flex-grow: 1; font-size: 14px; font-weight: 700; color: var(--muted); }
.ft a { font-size: 14px; font-weight: 800; color: var(--muted); text-decoration: none; }
.ft-c { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Pricing page ---------- */
.pr-top { padding: 64px var(--gut) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.pr-h1 { margin: 0; font-size: 58px; font-weight: 900; line-height: 1.14; letter-spacing: -0.035em; animation-delay: .05s; }
[dir=rtl] .pr-h1 { font-size: 52px; line-height: 1.45; }
.pr-sub { margin: 0; max-width: 760px; font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--muted); animation-delay: .1s; }
.bills { display: flex; gap: 4px; padding: 5px; margin-top: 8px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); animation-delay: .15s; }
.bill { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-sizing: border-box; }
.bill.is-on { background: #C6F432; color: #0E0F0C; border: var(--lime-edge); }
.bill-save { padding: 3px 8px; border-radius: 999px; background: var(--sel-bg); color: var(--accent); font-size: 12px; font-weight: 900; }
.bill.is-on .bill-save { background: #0E0F0C; color: #C6F432; }
.plans-sec { padding: 0 var(--gut) 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; padding-top: 44px; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 24px 26px; border-radius: 28px; background: var(--card); color: var(--text); border: 1.5px solid var(--card-border); box-shadow: none; z-index: 1; animation: lp-in .7s cubic-bezier(.22,1,.36,1) both; --mut: var(--muted); --pline: var(--line); }
.plan[data-plan="plus"] { animation-delay: .05s; }
.plan[data-plan="max"] { animation-delay: .1s; }
.plan.is-pop { padding-top: 40px; background: #C6F432; color: #0E0F0C; border: 0; box-shadow: var(--pop-shadow); translate: 0 -22px; scale: 1.04; z-index: 2; animation: lp-in .7s cubic-bezier(.22,1,.36,1) .05s both, lp-cardfloat 5s ease-in-out 1s infinite; --mut: #33401A; --pline: rgba(14,15,12,.18); }
.pop-badge { position: absolute; top: -19px; left: 50%; transform: translateX(-50%) rotate(-2deg); display: flex; align-items: center; gap: 8px; padding: 9px 18px 9px 10px; border-radius: 999px; background: #0E0F0C; color: #F4F6EE; border: 2px solid #C6F432; box-shadow: 0 8px 20px rgba(0,0,0,.35); white-space: nowrap; font-size: 14px; font-weight: 900; letter-spacing: 0.03em; }
.pop-star { width: 24px; height: 24px; border-radius: 999px; background: #C6F432; display: flex; align-items: center; justify-content: center; }
.plan-hd { display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.plan-name { font-size: 22px; font-weight: 900; }
.plan-tag { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--mut); }
.plan-price { display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.plan-row { display: flex; align-items: baseline; gap: 8px; }
.plan-big { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.plan-per, .plan-billed { font-size: 15px; font-weight: 800; color: var(--mut); }
.plan-billed { font-size: 14px; }
.plan-save { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--sel-bg); color: var(--accent); font-size: 13px; font-weight: 900; }
.is-pop .plan-save { background: #0E0F0C; color: #C6F432; }
.plan-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; font-size: 16px; font-weight: 900; text-decoration: none; box-sizing: border-box; }
.is-pop .plan-cta { min-height: 58px; background: #0E0F0C; color: #C6F432; border: 0; box-shadow: 0 6px 16px rgba(14,15,12,.25); }
.plan-line { height: 1px; background: var(--pline); }
.feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; line-height: 1.45; }
.fdot { width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fdot svg { stroke: #0E0F0C; }
.plan[data-plan="free"] .fdot { background: var(--sel-bg); border: 0; }
.plan[data-plan="free"] .fdot svg { stroke: var(--accent); }
.is-pop .fdot { background: #0E0F0C; border: 0; }
.is-pop .fdot svg { stroke: #C6F432; }
.pr-note { margin: 26px auto 0; max-width: 820px; text-align: center; font-size: 14.5px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.pr-fair { margin: 10px auto 0; max-width: 820px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.trust-sec { padding: 72px var(--gut); margin-top: 48px; }
.kblock { display: block; }
.h2--pr { margin: 14px 0 32px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust .card { gap: 12px; padding: 26px; border-radius: 26px; }
.trust .tile { width: 52px; height: 52px; border-radius: 16px; }
.trust .card-t { font-size: 21px; }
.trust .card-b { line-height: 1.55; }
.pcmp-sec { padding: 88px var(--gut); }
.pcmp { border-radius: 26px; background: var(--card); border: 1.5px solid var(--card-border); overflow: hidden; }
.pcmp-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.pcmp-row:last-child { border-bottom: 0; }
.pcmp-h0 { padding: 20px 24px; }
.pcmp-h { padding: 20px 16px; text-align: center; font-size: 17px; font-weight: 900; }
.pcmp-l { padding: 18px 24px; font-size: 16px; font-weight: 800; }
.pcmp-c { display: flex; align-items: center; justify-content: center; padding: 14px 12px; text-align: center; font-size: 15px; font-weight: 800; color: var(--text); }
.is-plus { background: var(--sel-bg); }
.pyes { width: 26px; height: 26px; border-radius: 999px; background: #C6F432; border: var(--lime-edge); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.pyes svg { stroke: #0E0F0C; }
.pcmp-c.is-free .pyes { background: var(--sel-bg); border: 0; }
.pcmp-c.is-free .pyes svg { stroke: var(--accent); }
.pno { display: flex; }
.faqp-sec { padding: 80px var(--gut); }
.end-sec { padding: 88px var(--gut) 72px; }
.end { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 32px; background: #C6F432; color: #0E0F0C; border: var(--lime-edge); box-shadow: var(--big-shadow); }
.end-t { font-size: 38px; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; max-width: 720px; }
.end-cta { display: flex; align-items: center; gap: 14px; min-height: 60px; padding-inline: 28px 8px; border-radius: 999px; background: #0E0F0C; color: #F4F6EE; font-size: 17px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.end-dot { width: 44px; height: 44px; border-radius: 999px; background: #C6F432; display: flex; align-items: center; justify-content: center; }
.pr-foot { margin: 40px 0 0; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); }

/* ---------- Legal pages (not in the prototype: landing header/footer, card and text styles) ---------- */
.legal-sec { padding: 56px var(--gut) 96px; }
.legal { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.legal .badge { color: var(--err-fg); }
.legal .badge-dot { background: var(--err-fg); border: 0; }
.legal-intro { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.legal-date { font-size: 14px; font-weight: 800; color: var(--muted); }
.legal-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 30px; border-radius: 28px; background: var(--card); border: 1.5px solid var(--card-border); }
.legal-card h2 { margin: 0; font-size: 22px; font-weight: 900; }
.legal-card p, .legal-card li { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.legal-card ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-card strong { color: var(--text); font-weight: 900; }
.legal-card a { color: var(--accent); font-weight: 900; }

/* ---------- Phone mockups (built by phones.js) ---------- */
.ph { box-sizing: border-box; background: #050605; box-shadow: 0 0 0 2px var(--frame), 0 0 0 3px var(--frame-edge), var(--phone-shadow); flex-shrink: 0; }
.ph-k { position: absolute; background: var(--frame); box-shadow: inset 0 0 0 1px var(--frame-edge); }
.ph-scr { position: relative; overflow: hidden; background: var(--bg); }
.ph-app { position: absolute; left: 0; width: 390px; height: 844px; transform-origin: top left; }
.ph-cover { position: absolute; left: 0; top: 0; width: 100%; background: var(--bg); }
.ph-time { position: absolute; left: 0; text-align: center; color: var(--text); font-family: -apple-system, 'SF Pro Text', Nunito, sans-serif; font-weight: 700; direction: ltr; }
.ph-icons { position: absolute; right: 0; display: flex; align-items: center; justify-content: center; color: var(--text); direction: ltr; }
.ph-isl { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.ph-isl > span { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 999px; background: #0D1016; box-shadow: inset 0 0 0 1px #1A1F2A; }
.ph-home { position: absolute; left: 50%; height: 4px; transform: translateX(-50%); border-radius: 999px; background: var(--text); }

/* App screens shown inside the phones (Mode, V2-Parler, Blocage, Resultat artboards). */
@keyframes ttu-in { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: none; } }
@keyframes ttu-shake { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(0,-6px,0) rotate(-3deg); } }
@keyframes ttu-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes md-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes md-open { from { opacity: 0; transform: translate3d(0,-6px,0); } to { opacity: 1; transform: none; } }
@keyframes md-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes md-row { from { opacity: 0; transform: translate3d(-8px,0,0); } to { opacity: 1; transform: none; } }
@keyframes v2-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes v2-msg { from { opacity: 0; transform: translate3d(0,12px,0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v2-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.45); opacity: 0; } }
.scr { width: 390px; height: 844px; box-sizing: border-box; font-family: Nunito, sans-serif; display: flex; flex-direction: column; }
.scr-t { background: var(--bg); color: var(--text); }
.scr a { text-decoration: none; }
.scr button { font-family: Nunito, sans-serif; }
.sbtn { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; box-sizing: border-box; }
.md-dot { animation: md-pop .35s cubic-bezier(.34,1.56,.64,1) both; }
.md-open { animation: md-open .4s cubic-bezier(.22,1,.36,1) both; }
.md-bar { transform-origin: left; animation: md-fill .9s .15s cubic-bezier(.22,1,.36,1) both; }
.md-row { animation: md-row .45s cubic-bezier(.22,1,.36,1) both; }
.md-chip { min-height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: 900 15px Nunito, sans-serif; padding: 0; }
.md-chip.on { background: #C6F432; color: #0E0F0C; border-color: var(--ink); }
.md-k { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.v2-in { animation: ttu-in .5s cubic-bezier(.22,1,.36,1) both; }
.v2-msg { animation: v2-msg .45s cubic-bezier(.22,1,.36,1) both; }
.v2-pop { animation: v2-pop .35s cubic-bezier(.34,1.56,.64,1) both; }
.pv-ring { position: absolute; inset: -4px; border-radius: 999px; border: 2px solid #C6F432; animation: v2-ring 1.8s ease-out infinite; }
.pv-log { mask-image: linear-gradient(to bottom, transparent 0, #000 40px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px); }

/* ---------- Smaller screens (the prototype is desktop only) ---------- */
@media (max-width: 1199px) {
  :root { --gut: 40px; }
  .hd { gap: 20px; }
  .hd-nav { gap: 16px; }
  .hd-nav--pricing { gap: 20px; }
}
@media (max-width: 1099px) {
  .hd { flex-wrap: wrap; row-gap: 12px; }
  .hd-nav { order: 10; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hd-nav::-webkit-scrollbar { display: none; }
  .hd-brand { margin-inline-end: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art-wrap { justify-self: center; width: 540px; }
  .h1 { font-size: 60px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .path-line { display: none; }
  .faq, .faq--pricing { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .priv, .modes, .tutor, .prob { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .wl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { gap: 24px; }
}
@media (max-width: 899px) {
  :root { --gut: 16px; }
  .hd { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .hd-brand svg { width: 34px; height: 34px; }
  .hd-brand { gap: 10px; }
  .hd-name { font-size: 17px; }
  .theme-btn { width: 40px; height: 40px; }
  .lang { min-width: 36px; padding: 0 8px; }
  .hd-cta { display: none; }
  .hd-nav { flex-basis: auto; flex: 1 1 0; min-width: 0; font-size: 14px; }
  .langs { order: 9; }
  :target, section[id] { scroll-margin-top: 124px; }
  .sec, .pcmp-sec, .faqp-sec, .trust-sec { padding-top: 64px; padding-bottom: 64px; }
  .priv-sec { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .hero-art-wrap { width: 100%; }
  .h1, [dir=rtl] .h1 { font-size: 44px; }
  .hero-sub { font-size: 18px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cta-main { justify-content: space-between; }
  .cta-ghost { justify-content: center; }
  .facts { flex-wrap: wrap; gap: 18px 28px; }
  .h2 { font-size: 34px; }
  .prob-big { font-size: 96px; }
  .prob-unit { font-size: 20px; }
  .steps, .grid3, .trust, .grid4, .path { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 56px; margin-top: 40px; }
  .sk-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card { padding: 24px; }
  .mode-card { padding: 20px; gap: 14px; }
  .chat { padding: 20px; }
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cmp-h0, .cmp-l { padding: 14px 12px; }
  .cmp-l { font-size: 14px; }
  .cmp-h, .cmp-us { padding: 14px 6px; font-size: 12.5px; }
  .faq-q { font-size: 17px; padding: 0 18px; min-height: 64px; }
  .faq-a { padding: 0 18px 18px; }
  .wl-sec { padding-bottom: 64px; }
  .wl { padding: 28px 22px; border-radius: 32px; }
  .wl-t { font-size: 36px; }
  .ft { flex-wrap: wrap; gap: 12px 20px; padding-top: 28px; padding-bottom: 36px; }
  .ft-txt { flex-basis: 100%; order: 1; }
  .ft-brand { flex-basis: 100%; }
  .ft a, .ft-c { order: 2; }
  .pr-top { padding-top: 40px; }
  .pr-h1, [dir=rtl] .pr-h1 { font-size: 40px; }
  .pr-sub { font-size: 18px; }
  .bills { flex-wrap: wrap; justify-content: center; border-radius: 28px; }
  .bill { padding: 0 14px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .plan.is-pop { scale: 1; translate: 0 0; animation: lp-in .7s cubic-bezier(.22,1,.36,1) .05s both; }
  .plan-hd, .plan-price { min-height: 0; }
  .pcmp-row { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .pcmp-h0, .pcmp-l { padding: 14px 12px; }
  .pcmp-l { font-size: 14px; }
  .pcmp-h { padding: 14px 6px; font-size: 14px; }
  .pcmp-c { padding: 12px 6px; font-size: 12.5px; }
  .end-sec { padding-top: 64px; padding-bottom: 56px; }
  .end { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .end-t { font-size: 28px; }
  .end-cta { justify-content: space-between; white-space: normal; }
  .legal-sec { padding-top: 32px; padding-bottom: 64px; }
  .legal-card { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .wl-row { flex-direction: column; }
  .wl-btn { width: 100%; }
}
