/* omar — website styles. Tokens come from the brand kit (omar-brand-kit/tokens). */
@import url("../fonts/fonts.css");

:root {
  --navy: #10142E;
  --orange: #FF7A1A;
  --orange-text: #D9580A;
  --cream: #FFF4E6;
  --peach: #FFD3AE;
  --peach-light: #FFE8D1;
  --citron: #DCF45B;
  --citron-light: #F3FBD6;
  --lavender: #C5B9E3;
  --lavender-deep: #7B63D9;
  --lavender-light: #E6E0F5;
  --white: #FFFFFF;
  --muted: #5E6280;
  --success: #12A883;
  --gray: #EEF0F5;

  --font-ar: "Rubik", "Segoe UI", Tahoma, sans-serif;
  --font-hand-ar: "Marhey", "Rubik", sans-serif;
  --font-en: "Inter Tight", "Rubik", system-ui, sans-serif;
  --font-hand: "Shantell Sans", "Marhey", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --line: 2px solid var(--navy);
  --lift: 0 5px 0 0 rgba(16, 20, 46, .16);
  --lift-hover: 0 9px 0 0 rgba(16, 20, 46, .18);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html.lang-wait body { opacity: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ar); background: var(--white); color: var(--navy); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="en"] body { font-family: var(--font-en); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--citron); }
:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.en { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
section { padding-block: 104px; position: relative; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ── shared pieces ───────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 22px; border: var(--line); border-radius: 999px; background: var(--gray); font-weight: 500; font-size: 16px; }
.sec-title { font-size: clamp(34px, 5.2vw, 58px); margin: 20px auto 12px; max-width: 900px; }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; margin-inline: auto; }
.acc { font-family: var(--font-hand); color: var(--orange-text); font-weight: 700; }
html[lang="ar"] .acc { font-family: var(--font-hand-ar); }
.hl { font-family: var(--font-hand-ar); background: var(--orange); border: var(--line); border-radius: 18px; padding: 0 .25em; box-shadow: var(--lift); display: inline-block; }
html[lang="en"] .hl { font-family: var(--font-hand); }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--font-ar); padding: 14px 30px; border-radius: 999px; border: var(--line); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease-pop), box-shadow .25s var(--ease-out); white-space: nowrap; }
html[lang="en"] .btn { font-family: var(--font-en); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); box-shadow: var(--lift); }
.btn-accent { background: var(--orange); color: var(--navy); box-shadow: var(--lift); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(-4px); }
html[lang="en"] .btn:hover .arrow { transform: translateX(4px); }
html[lang="en"] .btn .arrow { transform: scaleX(-1); }
html[lang="en"] .btn:hover .arrow { transform: scaleX(-1) translateX(-4px); }

.card { background: #fff; border: var(--line); border-radius: 28px; box-shadow: var(--lift); transition: transform .3s var(--ease-pop), box-shadow .3s var(--ease-out); }
.card.hoverable:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--lift-hover); }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: var(--line); border-radius: 999px; padding: 9px 20px; font: 600 16px var(--font-en); box-shadow: var(--lift); white-space: nowrap; direction: ltr; }
.pill img { width: 20px; height: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border: var(--line); border-radius: 10px; padding: 2px 14px; font-weight: 600; font-size: 15px; box-shadow: var(--lift); white-space: nowrap; }
.tag-citron { background: var(--citron); }
.tag-lavender { background: var(--lavender-deep); color: #fff; }
.tag-orange { background: var(--orange); }
.tag-white { background: #fff; }
.chip-note { display: inline-block; font: 600 12px var(--font-en); background: var(--gray); border-radius: 6px; padding: 1px 8px; color: var(--muted); }

.bubble { position: relative; background: var(--orange); border: var(--line); border-radius: 40px; }
.bubble::after { content: ""; position: absolute; width: 36px; height: 36px; background: inherit; border-right: var(--line); border-bottom: var(--line); bottom: -19px; left: 60px; transform: rotate(45deg); border-bottom-right-radius: 6px; }
.bubble.tail-r::after { left: auto; right: 60px; }
.bubble.white { background: #fff; }
.bubble.citron { background: var(--citron); }
.bubble.lavender { background: var(--lavender-light); }

/* ── top bar ─────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); transform-origin: left; }
html[dir="rtl"] .progress i { margin-right: 0; margin-left: auto; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 55; background: #fff; }
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 78px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 22px; font-weight: 500; margin-inline-start: auto; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.switch { display: inline-flex; align-items: center; background: var(--gray); border: var(--line); border-radius: 999px; padding: 3px; cursor: pointer; position: relative; }
.switch span { position: relative; z-index: 1; min-width: 38px; text-align: center; font: 700 13px var(--font-en); padding: 4px 8px; border-radius: 999px; transition: color .2s; }
.switch .knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; width: calc(50% - 3px); background: var(--orange); border-radius: 999px; border: 1.5px solid var(--navy); transition: inset-inline-start .35s var(--ease-pop); inset-inline-start: 3px; }
.switch[aria-checked="true"] .knob { inset-inline-start: calc(50%); }
.sound-btn { width: 42px; height: 42px; border-radius: 50%; border: var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--lift); transition: transform .2s var(--ease-pop); }
.sound-btn:hover { transform: rotate(-8deg) scale(1.06); }
.sound-btn svg { width: 20px; height: 20px; }
.sound-btn .off { display: none; }
.sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] .off { display: block; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: var(--line); background: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: 0; background: var(--peach-light); border-bottom: var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 84px; align-items: center; min-height: 660px; }
.hero .copy { padding-block: 72px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.15; margin: 22px 0 18px; }
.hero .sub { font-size: 20px; max-width: 540px; color: #2E3354; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art { position: relative; height: 600px; width: 480px; align-self: end; }
.hero-art .bubble.big { position: absolute; width: 410px; height: 400px; left: 40px; top: 150px; transform: rotate(-5deg); border-radius: 48px; }
.hero-art .me { position: absolute; left: 34px; bottom: 0; width: 440px; max-width: none; z-index: 1; -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 98%), linear-gradient(to right, transparent 0, #000 16%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 76%, transparent 98%), linear-gradient(to right, transparent 0, #000 16%); mask-composite: intersect; }
.hero-art .float { position: absolute; z-index: 4; }
.blok-btn { background: none; border: 0; cursor: pointer; padding: 0; }
.blok-btn img { width: 130px; transition: transform .35s var(--ease-pop); }
/* live Blok */
.blok-btn { position: relative; }
.blok-sm .blok-live { width: 104px; }
.blok-live { width: 130px; height: auto; display: block; overflow: visible; }
.blok-live g { transform-box: fill-box; }
.b-all { transform-origin: 50% 100%; animation: b-bob 3.2s ease-in-out infinite; }
.b-wave { transform-origin: 0% 100%; animation: b-wave 6s ease-in-out infinite; }
.b-fx { animation: b-fx 6s ease-in-out infinite; }
.b-eyes { animation: b-lookaround 9s ease-in-out infinite; }
.tracking .b-eyes { animation: none; }
.b-look { transition: transform .18s ease-out; }
.b-eye { transform-origin: 50% 50%; animation: b-blink 4.6s infinite; }
.b-mouth { transform-origin: 50% 0%; }
.blok-btn:hover .b-wave { animation-duration: 1.6s; }
.blok-btn:hover .b-mouth { transform: scale(1.12, 1.25); }
.blok-btn.bump .b-all { animation: b-jump .55s var(--ease-pop); }
@keyframes b-bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-5px) scaleY(1.02); } }
@keyframes b-wave { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-14deg); } 16%, 32% { transform: rotate(10deg); } }
@keyframes b-fx { 0%, 36%, 100% { opacity: 1; } 42%, 94% { opacity: 0; } }
@keyframes b-lookaround { 0%, 18%, 100% { transform: translate(0, 0); } 24%, 40% { transform: translate(-6px, 1px); } 48%, 64% { transform: translate(6px, -2px); } 72%, 88% { transform: translate(0, 3px); } }
@keyframes b-blink { 0%, 44%, 50%, 92%, 96%, 100% { transform: scaleY(1); } 47%, 94% { transform: scaleY(.08); } }
@keyframes b-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-18px) rotate(-6deg); } 70% { transform: translateY(0) scaleY(.92); } 100% { transform: none; } }
.blok-say { position: absolute; bottom: 100%; left: 50%; translate: -50% 6px; white-space: nowrap; background: #fff; border: var(--line); border-radius: 14px; padding: 6px 12px; font: 700 14px var(--font-ar); color: var(--navy); box-shadow: var(--lift); opacity: 0; scale: .7; transition: opacity .2s, scale .3s var(--ease-pop), translate .3s var(--ease-pop); pointer-events: none; z-index: 5; }
.blok-btn.talk .blok-say { opacity: 1; scale: 1; translate: -50% -4px; }
.blok-btn:hover img { transform: rotate(-8deg) scale(1.06); }
.blok-btn.bump img { animation: bump .5s var(--ease-pop); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(6deg); } 100% { transform: scale(1); } }
.typing { display: inline-flex; gap: 6px; padding: 13px 20px; }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); opacity: .35; animation: blink 1.4s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.float-y { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* hero photo in a frame (no cutout edges) + floating proof */
.hero-art { align-self: center; height: 580px; }
.hero-art .photo-frame { position: absolute; left: 70px; top: 96px; width: 360px; height: 440px; border: var(--line); border-radius: 36px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); background: var(--peach); z-index: 1; }
.hero-art .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s var(--ease-out); }
.hero-art:hover .photo-frame img { transform: scale(1.04); }
.hero-art .bubble.big { top: 150px; height: 400px; }
.replit-mini { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: var(--line); border-radius: 18px; padding: 10px 16px 10px 12px; box-shadow: var(--lift); text-decoration: none; transition: transform .25s var(--ease-pop); }
.replit-mini:hover { transform: translateY(-3px) rotate(-2deg); }
.replit-mini img { width: 34px; height: 34px; }
.replit-mini b { display: block; font: 800 20px/1.1 var(--font-en); }
.replit-mini small { display: block; font-size: 13px; color: var(--muted); }
.orbit { position: absolute; left: 250px; top: 316px; width: 0; height: 0; z-index: 3; --r: 250px; }
.orbit-ring { position: absolute; left: 0; top: 66px; width: 500px; height: 500px; border: 2px dashed rgba(16, 20, 46, .25); border-radius: 50%; }
.orbit { animation: spin 40s linear infinite; }
.orbit .orb { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.orbit .orb > span { display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; background: #fff; border: var(--line); border-radius: 50%; box-shadow: var(--lift); animation: spin 40s linear infinite reverse; transition: scale .25s var(--ease-pop); }
.orbit .orb img { width: 28px; height: 28px; }
.orbit .orb > span:hover { scale: 1.2; }
.hero-art:hover .orbit, .hero-art:hover .orbit .orb > span { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: var(--line); border-radius: 14px; padding: 6px 16px 6px 8px; box-shadow: var(--lift); text-decoration: none; font-weight: 500; font-size: 15px; transition: transform .25s var(--ease-pop); }
.badge-chip:hover { transform: translateY(-2px); }
.badge-chip img { width: 28px; height: 28px; }
.inst-photo { position: relative; margin: 20px 30px 30px 40px; aspect-ratio: 9 / 11; border: var(--line); border-radius: 36px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 8px 0 0 rgba(16,20,46,.2); background: var(--peach); }
.inst-photo img { width: 100%; height: 100%; object-fit: cover; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: #fff; border: var(--line); border-radius: 999px; box-shadow: var(--lift); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; transition: transform .25s var(--ease-pop), background .2s; }
.socials a:hover { transform: translateY(-3px) rotate(-2deg); background: var(--citron); }
.socials img, .socials svg { width: 22px; height: 22px; }
.socials svg { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-chip b { font-family: var(--font-en); font-weight: 800; }

/* recognition: Replit Top 1% */
.recog { background: var(--citron-light); border-bottom: var(--line); }
.recog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.replit-card { padding: 28px 30px; }
.rc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.rc-logo { width: 60px; height: 60px; flex: none; border: var(--line); border-radius: 16px; background: #fff; display: grid; place-items: center; }
.rc-logo img { width: 32px; height: 32px; }
.rc-head h3 { font: 800 24px var(--font-en); }
.rc-head span { font-size: 14px; color: var(--muted); }
.rc-head .tag { margin-left: auto; color: var(--navy); font-size: 14px; }
.rc-row { border-top: 1.5px solid var(--gray); padding-block: 14px; }
.rc-row b { display: block; font-size: 15px; color: var(--muted); margin-bottom: 2px; }
.rc-row p { font-size: 17px; font-weight: 500; text-align: left; }
.replit-card { text-align: left; }
.rc-proof { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 14px; border: var(--line); border-radius: 999px; background: var(--cream); font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; transition: transform .15s, background .15s; }
.rc-proof:hover { background: var(--citron); transform: translateY(-2px); }
.rc-proof img { width: 16px; height: 16px; }
.rc-proof { cursor: pointer; font-family: inherit; }
.rc-proof i { font-style: normal; transition: transform .3s var(--ease-pop); }
.rc-proof[aria-expanded="true"] i { transform: rotate(180deg); }
.rc-shot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.rc-shot[hidden] { display: grid !important; visibility: hidden; }
.rc-shot.open { grid-template-rows: 1fr; visibility: visible; }
.rc-shot img { min-height: 0; overflow: hidden; width: 100%; border: var(--line); border-radius: 14px; margin-top: 14px; box-shadow: var(--lift); transform: translateY(-16px) rotate(-1.5deg); opacity: 0; transition: transform .6s var(--ease-pop), opacity .4s; }
.rc-shot.open img { transform: none; opacity: 1; }

/* ── logo strip ──────────────────────────────────────────── */
.marquee-set { display: flex; gap: 18px; padding-inline-end: 18px; }
.brand-chip img.wordmark { height: 26px; }
.brand-chip img.wordmark.tall { height: 40px; margin-block: -8px; }
.strip { padding-block: 34px; border-bottom: var(--line); background: #fff; overflow: hidden; }
.strip .label { text-align: center; font-weight: 600; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
html[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.brand-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border: var(--line); border-radius: 16px; background: #fff; font: 800 19px var(--font-en); height: 58px; white-space: nowrap; direction: ltr; }
.brand-chip img { height: 24px; width: auto; }

/* ── method (tabs) ───────────────────────────────────────── */
.method { background: var(--cream); border-bottom: var(--line); }
.term { max-width: 720px; margin: 36px auto 0; background: var(--navy); border: var(--line); border-radius: 18px; box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); overflow: hidden; text-align: left; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1B2045; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; } .term-bar i:nth-child(3) { background: #28C840; }
.term-bar > span { margin-left: 10px; font: 500 13px var(--font-mono); color: #8A90B8; }
.term-body { padding: 20px 24px 24px; min-height: 214px; font: 500 15px/1.9 "JetBrains Mono", "Rubik", monospace; color: #E6E8F5; text-align: start; }
.term-body .p { color: var(--citron); margin-inline-end: 4px; }
.t-cmd { text-align: left; }
.term[dir="rtl"] .t-cmd { text-align: right; }
.t-row { display: grid; grid-template-columns: 26px 96px minmax(0, 1fr); align-items: baseline; }
.t-row.anim { animation: t-in .3s var(--ease-out); }
.t-row .k { color: #8A90B8; }
.t-row .v { color: #E6E8F5; }
.term-body .ok { color: #28C840; font-weight: 800; }
.term-body .spin { color: var(--citron); }
.t-live { margin-top: 6px; color: var(--citron); }
.t-live.anim { animation: t-in .4s var(--ease-pop); }
.t-live a { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; font-weight: 700; }
.t-live a:hover { color: var(--citron); }
.term-body .cur { display: inline-block; width: 9px; height: 1.1em; background: var(--citron); vertical-align: -3px; animation: cur-blink 1s steps(1) infinite; }
.term-replay { margin-left: auto; background: transparent; border: 1px solid #3A4170; color: #C9CDE8; border-radius: 999px; padding: 3px 12px; font: 600 13px var(--font-ar); cursor: pointer; }
.term-replay:hover { background: var(--citron); color: var(--navy); border-color: var(--citron); }
@keyframes t-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cur-blink { 50% { opacity: 0; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.step { text-align: start; padding: 26px; cursor: pointer; position: relative; overflow: hidden; }
.step .num { font: 800 15px var(--font-en); color: var(--muted); }
.step img { width: 96px; margin: 6px 0 10px; transition: transform .35s var(--ease-pop); }
.step:hover img { transform: rotate(-6deg) scale(1.08); }
.step h3 { font-size: 26px; }
.step h3 small { display: block; font: 600 14px var(--font-en); color: var(--muted); }
.step p { color: var(--muted); margin-top: 6px; }
.step .more { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out), margin .3s; margin-top: 0; }
.step[aria-expanded="true"] { background: var(--orange); }
.step[aria-expanded="true"] p, .step[aria-expanded="true"] .num, .step[aria-expanded="true"] h3 small { color: var(--navy); }
.step[aria-expanded="true"] .more { max-height: 220px; margin-top: 12px; }
.step .more ul { list-style: none; display: grid; gap: 6px; }
.step .more li::before { content: "✓ "; font-weight: 800; }
.step .hint { position: absolute; top: 18px; inset-inline-end: 18px; width: 30px; height: 30px; border-radius: 50%; border: var(--line); background: #fff; display: grid; place-items: center; font-weight: 800; transition: transform .3s var(--ease-pop); }
.step[aria-expanded="true"] .hint { transform: rotate(45deg); }

/* ── offers ──────────────────────────────────────────────── */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.offer { padding: 30px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.offer.featured { grid-row: span 2; background: var(--orange); }
.offer.wide { grid-column: 2 / span 2; }
@media (max-width: 1040px) { .offer.wide { grid-column: 1 / -1; } }
.offer.featured .blok { position: absolute; width: 130px; bottom: 18px; inset-inline-end: 18px; }
.offer h3 { font-size: 28px; }
.offer p { color: #3B3F5C; }
.offer.featured p { color: var(--navy); }
.offer ul { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.offer li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.offer.featured li::before { color: var(--navy); }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer .ico { width: 56px; height: 56px; border-radius: 16px; border: var(--line); display: grid; place-items: center; background: var(--cream); }
.offer .ico { color: var(--orange); background: var(--peach); }
.offer .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer:hover .ico { background: var(--citron); transform: rotate(-6deg); transition: transform .2s, background .2s; }

/* ── course block (the course has its own site) ─────────── */
.course-promo { background: var(--navy); color: #fff; border-block: var(--line); }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.course-promo .sec-title { color: #fff; }
.course-promo .lede { color: #C9CDE8; }
.eyebrow.on-dark { background: var(--citron); color: var(--navy); }
.cp-list { list-style: none; display: grid; gap: 8px; margin: 18px 0 26px; font-weight: 600; }
.cp-list li::before { content: "✓ "; color: var(--citron); font-weight: 800; }
.cp-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 54px 24px 34px; background: var(--citron); color: var(--navy); border: 2px solid #fff; border-radius: 28px; text-decoration: none; transform: rotate(2deg); box-shadow: 0 10px 0 0 rgba(255, 255, 255, .15); transition: transform .4s var(--ease-pop); }
.cp-card:hover { transform: rotate(-1deg) translateY(-6px); }
.cp-url { position: absolute; top: 14px; left: 16px; right: 16px; background: #fff; border: var(--line); border-radius: 999px; padding: 3px 12px; font: 600 13px var(--font-mono); text-align: left; }
.cp-card img { width: 150px; animation: b-float 4s ease-in-out infinite; }
.cp-card b { font-size: 30px; font-weight: 800; }
.cp-card small { font-weight: 600; }

/* ── built ───────────────────────────────────────────────── */
.built { background: var(--lavender-light); border-top: var(--line); border-bottom: var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.work { overflow: hidden; display: flex; flex-direction: column; }
.work .shot { aspect-ratio: 16 / 10; background: var(--cream); border-bottom: var(--line); display: grid; place-items: center; overflow: hidden; }
.work .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work:hover .shot img { transform: scale(1.05); }
.work { text-decoration: none; color: inherit; }
.work .kinly-shot { background: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--navy); }
.ks-pill { direction: ltr; display: inline-flex; align-items: center; gap: 12px; background: #fff; border: var(--line); border-radius: 999px; padding: 12px 22px; box-shadow: var(--lift); transition: transform .4s var(--ease-pop); }
.work:hover .ks-pill { transform: rotate(-3deg) scale(1.05); }
.work .kinly-shot img { width: auto; height: 26px; object-fit: contain; transform: none !important; }
.ks-pill b { font: 800 22px var(--font-en); }
.ks-pill span { font: 800 20px var(--font-en); direction: ltr; }
.kinly-shot strong { font: 800 30px var(--font-en); color: #fff; margin-top: 6px; }
.kinly-shot small { font-weight: 600; font-size: 15px; }
.work .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 15px; color: var(--orange-text); display: inline-flex; gap: 6px; align-items: center; }
.work .go i { font-style: normal; display: inline-block; transition: transform .25s var(--ease-pop); }
.work:hover .go i { transform: translate(3px, -3px) scale(1.2); }
.work .m { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work p { color: var(--muted); font-size: 16px; }
.work .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.work .tags span { font: 600 12px var(--font-en); background: var(--gray); border-radius: 6px; padding: 2px 9px; direction: ltr; }

/* ── story / timeline ────────────────────────────────────── */
.story-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
.stage-photo { position: sticky; top: 110px; }
.stage-photo .frame { position: relative; border: var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--lift); transform: rotate(-2deg); aspect-ratio: 4 / 4.6; background: var(--peach); }
.stage-photo .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.stage-photo .frame img.on { opacity: 1; transform: none; }
.step-count { position: absolute; bottom: 14px; left: 14px; background: #fff; border: var(--line); border-radius: 999px; padding: 2px 12px; font: 600 13px var(--font-en); }
.stage-photo .cap { position: relative; margin-top: 18px; min-height: 1.6em; font-weight: 600; font-size: 16px; color: var(--navy); text-align: center; }
.stage-photo .cap span { display: block; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease-out); }
.stage-photo .cap span.on { opacity: 1; transform: none; }
.timeline { display: grid; gap: 18px; }
.t-item { padding: 24px 26px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; transition: transform .35s var(--ease-pop), box-shadow .3s, border-color .3s; }
.t-item.active { transform: translateX(var(--nudge, -6px)); box-shadow: 0 7px 0 0 var(--orange); }
html[dir="ltr"] .t-item.active { --nudge: 6px; }
.t-item .dot { width: 60px; height: 60px; border-radius: 18px; border: var(--line); display: grid; place-items: center; font: 800 18px var(--font-en); background: #fff; transition: transform .4s var(--ease-pop); }
.t-item.active .dot { transform: rotate(-6deg) scale(1.06); }
.t-item .dot img { width: 34px; height: 34px; object-fit: contain; }
.t-item .dot.hack { background: var(--orange); }
.t-item .dot svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-item h3 { font-size: 21px; }
.t-item .when { font: 600 13px var(--font-en); color: var(--muted); direction: ltr; display: inline-block; }
.t-item p { color: #3B3F5C; margin-top: 4px; }
.t-item .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t-item .fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.t-item .fact img { width: 16px; height: 16px; object-fit: contain; }
.t-item .fact img.wm { width: auto; height: 13px; }
.t-item .fact b { font-weight: 800; }
.t-item.replit { background: var(--citron-light); text-decoration: none; color: inherit; }

/* ── numbers ─────────────────────────────────────────────── */
.numbers { padding-block: 56px; background: var(--navy); color: #fff; }
.numbers .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.numbers b { display: block; font: 800 clamp(34px, 4vw, 48px)/1.1 var(--font-en); color: var(--orange); direction: ltr; font-variant-numeric: tabular-nums; }
.numbers span { color: rgba(255,255,255,.78); font-size: 15px; }

/* ── testimonials ────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; max-width: 980px; margin-inline: auto; }
.quote-card { background: #fff; border: 1.5px solid #D9DCE8; border-radius: 18px; padding: 18px 20px; transition: border-color .2s, transform .25s var(--ease-pop); }
.quote-card:hover { border-color: var(--navy); transform: translateY(-3px); }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card i { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--peach-light); border: 1.5px solid var(--peach); display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--orange-text); }
.quote-card b { display: block; font-size: 15px; }
.quote-card small { display: block; font-size: 13px; color: var(--muted); }
.quote-card blockquote { margin: 12px 0 0; font-size: 15px; color: #3B3F5C; line-height: 1.7; }

/* ── posts ───────────────────────────────────────────────── */
.posts { background: var(--cream); border-top: var(--line); border-bottom: var(--line); }
.poster-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.poster-row img { width: 100%; aspect-ratio: 1122 / 1402; object-fit: cover; border: var(--line); border-radius: 18px; box-shadow: var(--lift); transition: transform .35s var(--ease-pop); }
.poster-row img:hover { transform: translateY(-6px) rotate(-1deg); }

/* ── signup ──────────────────────────────────────────────── */
.signup { background: var(--peach-light); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.signup .side > img { width: 200px; margin-top: 18px; }
form.join { padding: 32px; display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: var(--line); border-radius: 14px; background: var(--cream); transition: box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(255, 122, 26, .35); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice button { padding: 7px 16px; border: var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 500; transition: transform .2s var(--ease-pop), background .2s; }
.choice button:hover { transform: translateY(-2px); }
.choice button[aria-pressed="true"] { background: var(--orange); font-weight: 700; box-shadow: var(--lift); }
form.join .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); }
.done-state { display: none; text-align: center; padding: 40px 24px; }
.done-state img { width: 150px; margin: 0 auto 10px; }
form.join.sent > :not(.done-state) { display: none; }
form.join.sent .done-state { display: block; }

/* ── course page ─────────────────────────────────────────── */
.course-hero { background: var(--orange); border-bottom: var(--line); overflow: hidden; }
.course-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: center; min-height: 600px; padding-block: 64px; }
.course-hero h1 { font-size: clamp(44px, 6vw, 78px); margin: 18px 0; }
.course-hero .sub { font-size: 20px; max-width: 560px; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.course-hero .art { position: relative; height: 420px; }
.course-hero .art .bubble { position: absolute; inset: 40px 10px 30px 30px; transform: rotate(4deg); }
.course-hero .art .blok { position: absolute; width: 230px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.course-hero .art .float { position: absolute; z-index: 3; }
.chat-demo { position: absolute; left: 26px; right: 14px; top: 64px; z-index: 2; background: #fff; border: var(--line); border-radius: 22px; padding: 14px 16px 18px; box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); transform: rotate(-2deg); display: flex; flex-direction: column; gap: 10px; min-height: 290px; }
.cd-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1.5px solid var(--gray); font-weight: 700; font-size: 14px; color: var(--muted); }
.cd-bar img { width: 20px; height: 20px; }
.cd-bar span { margin-inline-start: 4px; }
.cd-msg { max-width: 85%; padding: 9px 14px; border-radius: 16px; font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-pop); }
.cd-msg.me { align-self: flex-start; background: var(--navy); color: #fff; border-end-start-radius: 4px; }
.cd-msg.ai { align-self: flex-end; background: var(--gray); border-end-end-radius: 4px; display: flex; gap: 5px; }
.cd-msg.ai i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); animation: blink 1.2s infinite; }
.cd-msg.ai i:nth-child(2) { animation-delay: .2s; } .cd-msg.ai i:nth-child(3) { animation-delay: .4s; }
.cd-app { align-self: flex-end; width: 78%; border: var(--line); border-radius: 14px; padding: 12px 14px; background: var(--cream); display: grid; gap: 8px; opacity: 0; transform: translateY(14px) scale(.92); transition: opacity .4s, transform .6s var(--ease-pop); }
.cd-app b { font-size: 15px; }
.cd-app .f { height: 12px; border-radius: 6px; background: #fff; border: 1.5px solid #D9DCE8; }
.cd-app .go { justify-self: start; background: var(--orange); border: var(--line); border-radius: 999px; padding: 2px 14px; font-weight: 800; font-size: 13px; }
.chat-demo .show { opacity: 1; transform: none; }
.cd-replay { position: absolute; bottom: 10px; inset-inline-start: 12px; background: #fff; border: 1.5px solid #D9DCE8; border-radius: 999px; padding: 2px 12px; font: 600 13px var(--font-ar); cursor: pointer; }
.cd-replay:hover { background: var(--citron); border-color: var(--navy); }
.pain { display: grid; gap: 28px; max-width: 760px; margin: 52px auto 0; }
.pain .bubble { padding: 20px 28px; font-size: 20px; font-weight: 600; max-width: 82%; }
.pain .bubble.white { align-self: start; justify-self: start; }
.pain .bubble.reply { justify-self: end; font-family: var(--font-hand-ar); font-size: 24px; }
html[lang="en"] .pain .bubble.reply { font-family: var(--font-hand); }
.modules { display: grid; gap: 14px; max-width: 900px; margin: 52px auto 0; }
.module { padding: 0; overflow: hidden; }
.module button { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 16px; align-items: center; padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: start; }
.module .n { font: 800 26px var(--font-en); color: var(--orange-text); }
.module h3 { font-size: 21px; }
.module h3 small { display: block; font: 500 14px var(--font-ar); color: var(--muted); margin-top: 2px; }
.module .plus { width: 36px; height: 36px; border-radius: 50%; border: var(--line); display: grid; place-items: center; font-weight: 800; transition: transform .3s var(--ease-pop), background .2s; }
.module.open .plus { transform: rotate(45deg); background: var(--orange); }
.module .body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.module.open .body { max-height: 320px; }
.module .body ul { list-style: none; display: grid; gap: 6px; padding: 0 24px 22px; padding-inline-start: 104px; color: #3B3F5C; }
.module .body li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.fit .card { padding: 28px; }
.fit h3 { font-size: 22px; margin-bottom: 10px; }
.fit ul { list-style: none; display: grid; gap: 10px; }
.fit .yes li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.fit .no { background: var(--gray); }
.fit .no li::before { content: "✕ "; color: var(--muted); font-weight: 800; }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 52px auto 0; }
.faq details { border: var(--line); border-radius: 20px; background: #fff; box-shadow: var(--lift); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 22px var(--font-en); transition: transform .3s var(--ease-pop); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: #3B3F5C; }

/* ── footer ──────────────────────────────────────────────── */
footer { background: var(--navy); color: #fff; padding-block: 56px 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .logo img { height: 42px; }
footer p, footer a { color: rgba(255,255,255,.78); }
footer h4 { font-size: 15px; color: var(--orange); margin-bottom: 10px; }
footer ul { list-style: none; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Blok the companion ──────────────────────────────────── */
.buddy { position: fixed; bottom: 14px; z-index: 60; inset-inline-start: calc(14px + (100vw - 120px) * var(--p, 0)); transition: inset-inline-start .5s var(--ease-out), opacity .4s, translate .5s var(--ease-pop); }
.buddy .blok-live { width: 84px; transition: transform .25s; }
.buddy.flip .blok-live { transform: scaleX(-1); }
.buddy.away { opacity: 0; translate: 0 120%; pointer-events: none; }
.buddy.walking .b-all { animation: b-walk .32s ease-in-out infinite; }
.buddy .blok-say { font-size: 13px; }
@keyframes b-walk { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
/* every Blok on the page stays a little alive */
.step:nth-child(2) img { animation-delay: -1.3s; } .step:nth-child(3) img { animation-delay: -2.6s; }
@keyframes b-float { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-6px) rotate(-3deg); } 60% { transform: translateY(-2px) rotate(2deg); } }
@media (max-width: 640px) {
  .buddy { inset-inline-start: auto; inset-inline-end: 10px; bottom: 10px; }
  .buddy .blok-live { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .buddy { inset-inline-start: auto; inset-inline-end: 14px; } }

/* ── living Blok (layered SVG) ───────────────────────────── */
.blok-alive { display: block; height: auto; max-width: 100%; overflow: visible; cursor: pointer; transform-origin: 50% 100%; animation: ba-bob 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer] { transform-box: fill-box; }
.blok-alive [data-layer="face"] { animation: ba-look 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="eyes"] { transform-origin: 50% 50%; animation: ba-blink 4.2s infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="mouth"] { transform-origin: 50% 30%; animation: ba-talk 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="arm-front"] { transform-origin: 80% 0%; animation: ba-arm 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="arm-back"] { transform-origin: 0% 100%; animation: ba-wave 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="fx"] { transform-origin: 50% 50%; animation: ba-fx 1.6s ease-in-out infinite; }
.blok-alive [data-layer="props"] { transform-origin: 50% 100%; animation: ba-prop 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive [data-layer="studs"] { transform-origin: 50% 100%; animation: ba-studs 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.blok-alive:hover { animation-duration: 1.1s; }
.blok-alive:hover [data-layer="arm-back"], .blok-alive:hover [data-layer="arm-front"] { animation-duration: .9s; }
.blok-alive.hop { animation: ba-hop .6s var(--ease-pop); }
@keyframes ba-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-8px) scale(.98, 1.03); } 55% { transform: translateY(-8px) scale(.98, 1.03); } }
@keyframes ba-look { 0%, 16%, 100% { transform: translate(0, 0); } 22%, 38% { transform: translate(-6px, 1px); } 46%, 62% { transform: translate(6px, -2px); } 70%, 86% { transform: translate(0, 3px); } }
@keyframes ba-blink { 0%, 42%, 48%, 88%, 92%, 100% { transform: scaleY(1); } 45%, 90% { transform: scaleY(.08); } }
@keyframes ba-talk { 0%, 60%, 100% { transform: scale(1); } 66%, 74% { transform: scale(1.15, 1.3); } 70%, 78% { transform: scale(.95, .8); } }
@keyframes ba-arm { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes ba-wave { 0%, 50%, 100% { transform: rotate(0); } 12%, 32% { transform: rotate(-12deg); } 22%, 42% { transform: rotate(8deg); } }
@keyframes ba-fx { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.18) rotate(-8deg); opacity: .75; } }
@keyframes ba-prop { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg) translateY(-2px); } }
@keyframes ba-studs { 0%, 40%, 60%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ba-hop { 0% { transform: none; } 35% { transform: translateY(-26px) rotate(-8deg) scale(1.05); } 70% { transform: translateY(0) scale(1.06, .9); } 100% { transform: none; } }
/* where the pictures had fixed sizes */
.step .blok-alive { width: 96px; margin: 6px 0 10px; }
.signup .side > .blok-alive { width: 200px; margin-top: 18px; }
.cp-card .blok-alive { width: 150px; }
.done-state .blok-alive { width: 150px; margin: 0 auto 10px; }
.course-hero .art .blok-alive.blok { position: absolute; width: 230px; left: 50%; top: 50%; translate: -50% -50%; }

/* ── multi-page: nav state, page heroes ──────────────────── */
.nav-links a.on { font-weight: 700; }
.nav-links a.on::after { transform: scaleX(1); }
.page-hero { position: relative; background: var(--peach-light); border-bottom: var(--line); padding-block: 84px 72px; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.2; margin: 20px 0 14px; max-width: 780px; }
.page-blok { position: absolute; bottom: 24px; inset-inline-end: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button, .tool-tabs button, .screen-tabs button { background: #fff; border: var(--line); border-radius: 999px; padding: 8px 20px; font-weight: 600; cursor: pointer; box-shadow: var(--lift); transition: transform .2s var(--ease-pop), background .2s; }
.filters button:hover, .tool-tabs button:hover, .screen-tabs button:hover { transform: translateY(-2px); }
.filters button.on, .tool-tabs button.on, .screen-tabs button.on { background: var(--navy); color: #fff; }
.work.is-hidden { display: none; }
.work.pop { animation: pop-in .45s var(--ease-pop); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ── case study ─────────────────────────────────────────── */
.cs-hero { background: var(--peach-light); border-bottom: var(--line); padding-block: 40px 76px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; margin-bottom: 26px; }
.cs-back:hover { color: var(--orange-text); }
html[lang="en"] .cs-back .arrow { transform: scaleX(-1); display: inline-block; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cs-count { font: 600 14px var(--font-en); color: var(--muted); }
.cs-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cs-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.2; margin: 18px 0 12px; }
.cs-sub { font-size: 19px; color: #2E3354; }
.cs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.cs-meta div { background: #fff; border: var(--line); border-radius: 16px; padding: 12px 14px; }
.cs-meta dt { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.cs-meta dd { font-size: 14px; font-weight: 600; line-height: 1.45; margin-top: 2px; }
.cs-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cs-shot { border: var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); transform: rotate(1.5deg); background: #fff; transition: transform .5s var(--ease-pop); }
.cs-shot:hover { transform: rotate(0) scale(1.02); }
.cs-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cs-numbers .wrap { grid-template-columns: repeat(3, 1fr); }
.cs-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cs-text { font-size: 18px; line-height: 1.9; color: #2E3354; }
.cs-small { font-size: 18px; margin: 8px 0 14px; }
.scope { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.scope li { background: var(--cream); border: var(--line); border-radius: 10px; padding: 4px 12px; font-size: 14px; font-weight: 600; transition: transform .2s var(--ease-pop), background .2s; }
.scope li:hover { background: var(--citron); transform: translateY(-2px) rotate(-1.5deg); }
.cs-decisions { background: var(--cream); border-block: var(--line); }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.decision-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decision { padding: 26px 28px; }
.decision .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--orange); border: var(--line); font-weight: 800; }
.decision h3 { font-size: 22px; margin: 14px 0 6px; }
.decision p { color: #3B3F5C; }
.cs-ai { padding-block: 0; margin-top: 72px; }
.ai-note { background: var(--navy); color: #fff; border: var(--line); border-radius: 26px; padding: 26px 30px; display: flex; gap: 18px; align-items: flex-start; box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); }
.ai-badge { flex: none; background: var(--citron); color: var(--navy); border-radius: 10px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.ai-note p { font-size: 18px; line-height: 1.8; }
.ai-note a { color: var(--citron); font-weight: 700; }
.cs-context { margin-top: 40px; padding: 18px 22px; border: 2px dashed #C9CDE8; border-radius: 18px; color: #3B3F5C; }
.cs-context b { color: var(--orange-text); margin-inline-end: 6px; }
.cs-next { padding-block: 72px 0; }
.next-card { display: block; padding: 22px 26px; text-decoration: none; color: inherit; }
.next-row { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.next-row img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border: var(--line); border-radius: 14px; }
.next-row b { display: block; font-size: 24px; }
.next-row span { color: var(--muted); }
.next-arrow { margin-inline-start: auto; font-size: 34px; font-weight: 800; color: var(--orange-text) !important; transition: transform .3s var(--ease-pop); }
html[lang="en"] .next-arrow { transform: scaleX(-1); }
.next-card:hover .next-arrow { transform: translateX(-8px); }
html[lang="en"] .next-card:hover .next-arrow { transform: scaleX(-1) translateX(-8px); }
.cs-cta { margin-top: 40px; }
.cs-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* before / after slider */
.compare-sec { background: var(--cream); border-block: var(--line); }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: center; margin-top: 40px; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.screen-tabs button { padding: 6px 14px; font-size: 14px; }
.compare { position: relative; width: 340px; aspect-ratio: 560 / 1213; margin-inline: auto; border: 6px solid var(--navy); border-radius: 44px; overflow: hidden; background: #fff; box-shadow: 0 10px 0 0 rgba(16, 20, 46, .2); --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--navy); pointer-events: none; }
.c-handle i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); border: var(--line); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.c-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.c-label { position: absolute; top: 14px; background: #fff; border: var(--line); border-radius: 999px; padding: 1px 12px; font-weight: 800; font-size: 13px; pointer-events: none; }
.c-l-before { left: 12px; } .c-l-after { right: 12px; background: var(--citron); }
.compare.swap img { animation: pop-in .4s var(--ease-out); }

/* ── about ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) 400px; gap: 48px; align-items: center; }
.about-photo { position: relative; }
.about-photo .frame { border: var(--line); border-radius: 32px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 8px 0 0 rgba(16, 20, 46, .2); background: var(--peach); }
.about-photo .frame img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 20%; }
.about-photo .about-blok, .about-photo .blok-alive { position: absolute; bottom: -24px; inset-inline-start: -30px; width: 120px; }
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.what { padding: 26px; text-align: start; }
.what img, .what .blok-alive { width: 96px; margin-bottom: 10px; }
.what h3 { font-size: 22px; margin-bottom: 6px; }
.what p { color: #3B3F5C; }
.about-exp { background: var(--cream); border-block: var(--line); }
.timeline.exp { margin-top: 36px; }
.exp-list { margin: 10px 0 0; padding-inline-start: 20px; color: #3B3F5C; display: grid; gap: 4px; }
a.fact { text-decoration: none; }
.tool-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.tool-wrap { margin-top: 26px; }
.tool-panel { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tool { display: grid; justify-items: center; gap: 8px; width: 120px; padding: 18px 10px; background: #fff; border: var(--line); border-radius: 22px; box-shadow: var(--lift); animation: pop-in .45s var(--ease-pop) both; transition: transform .25s var(--ease-pop); }
.tool:nth-child(2) { animation-delay: .05s; } .tool:nth-child(3) { animation-delay: .1s; } .tool:nth-child(4) { animation-delay: .15s; } .tool:nth-child(5) { animation-delay: .2s; } .tool:nth-child(6) { animation-delay: .25s; } .tool:nth-child(7) { animation-delay: .3s; }
.tool:hover { transform: translateY(-6px) rotate(-3deg); }
.tool img { width: 40px; height: 40px; object-fit: contain; }
.tool b { font-size: 14px; }
.cloud { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.life { padding: 26px; }
.life-ico { font-size: 34px; display: inline-block; animation: b-float 4s ease-in-out infinite; }
.life h3 { font-size: 22px; margin: 10px 0 4px; }
.life p { color: #3B3F5C; }
.about-link { margin: 14px auto 0; display: flex; width: max-content; }
.built-more { display: flex; justify-content: center; margin-top: 36px; }

@media (max-width: 1040px) {
  .cs-grid, .cs-two, .about-grid, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .what-grid, .life-grid, .decision-grid.n3 { grid-template-columns: 1fr 1fr; }
  .page-blok { display: none; }
}
@media (max-width: 640px) {
  .cs-meta, .decision-grid, .decision-grid.n3, .what-grid, .life-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-numbers .wrap { grid-template-columns: minmax(0, 1fr); }
  .compare { width: min(300px, 100%); }
  .next-row img { width: 96px; }
  .next-row b { font-size: 19px; }
  .ai-note { flex-direction: column; }
  .tool { width: 100px; }
  .about-photo .about-blok, .about-photo .blok-alive { inset-inline-start: -4px; width: 90px; }
}

/* ── hackathon collage ──────────────────────────────────── */
.hackathons { background: var(--lavender-light); border-block: var(--line); overflow: hidden; }
.hackathons::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 20, 46, .09) 1.5px, transparent 1.5px); background-size: 22px 22px; pointer-events: none; }
.collage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; margin-top: 52px; }
.pc { position: relative; margin: 0; background: #fff; border: var(--line); border-radius: 16px; padding: 9px 9px 0; box-shadow: 0 6px 0 0 rgba(16, 20, 46, .16); transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease-pop), box-shadow .3s var(--ease-out); display: flex; flex-direction: column; min-height: 0; }
.pc::before { content: ""; position: absolute; top: -11px; left: 50%; width: 78px; height: 22px; translate: -50% 0; rotate: var(--tr, -4deg); background: var(--tape, rgba(255, 122, 26, .75)); border: 1.5px solid rgba(16, 20, 46, .25); border-radius: 3px; z-index: 3; box-shadow: 0 2px 4px rgba(16, 20, 46, .12); }
.pc button { position: relative; aspect-ratio: 4 / 3; width: 100%; display: block; padding: 0; border: 0; background: var(--gray); cursor: zoom-in; border-radius: 9px; overflow: hidden; }
.pc img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .4s; }
.pc figcaption { padding: 9px 4px 10px; font: 700 15px/1.25 var(--font-hand); text-align: center; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="ar"] .pc figcaption { font-family: var(--font-hand-ar); }
.pc-tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255, 255, 255, .92); border: 1.5px solid var(--navy); border-radius: 999px; padding: 1px 10px; font: 700 12px var(--font-en); color: var(--navy); }
.pc-zoom { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--citron); border: var(--line); display: grid; place-items: center; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease-pop); }
.pc:hover { transform: rotate(0) translateY(-8px) scale(1.025); box-shadow: 0 14px 0 0 rgba(16, 20, 46, .14); z-index: 4; }
.pc:hover img { transform: scale(1.07); }
.pc:hover .pc-zoom { opacity: 1; transform: scale(1); }
/* the layout: one big feature photo, tall portraits, wide landscapes — no gaps */
.pc-1 { --r: -1.2deg; --tape: rgba(220, 244, 91, .9); }
.pc-3 { --r: 1deg; --tr: 5deg; --tape: rgba(197, 185, 227, .95); }
.pc-4 { --r: .8deg; --tr: 3deg; --tape: rgba(220, 244, 91, .9); }
.pc-5 { --r: -1.4deg; }
.pc-7 { --r: -1.2deg; --tr: 4deg; --tape: rgba(220, 244, 91, .9); }
.pc-8 { --r: 1.3deg; --tr: -6deg; --tape: rgba(197, 185, 227, .95); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16, 20, 46, .9); display: grid; place-items: center; padding: 24px; animation: pop-in .3s var(--ease-out); }
.lightbox figure { max-width: min(1000px, 100%); text-align: center; color: #fff; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border: 6px solid #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox figcaption { margin-top: 16px; font: 700 20px var(--font-hand); }
html[lang="ar"] .lightbox figcaption { font-family: var(--font-hand-ar); }
.lb-btn { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: var(--line); background: #fff; font-size: 24px; font-weight: 800; cursor: pointer; transition: transform .2s var(--ease-pop); }
.lb-btn:hover { transform: scale(1.1); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: var(--line); background: var(--citron); font-size: 22px; font-weight: 800; cursor: pointer; }
@media (max-width: 1040px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
}
@media (max-width: 640px) {
  .collage { gap: 22px 14px; margin-top: 36px; }
  .pc { padding: 6px 6px 0; border-radius: 12px; }
  .pc figcaption { font-size: 13px; padding: 6px 2px 7px; }
  .pc-tag { font-size: 10px; top: 6px; inset-inline-start: 6px; }
  .pc::before { width: 56px; height: 16px; top: -8px; }
}

/* ── friendly "who am I" ────────────────────────────────── */
.life-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.life-ico { width: 64px; height: 64px; border-radius: 20px; border: var(--line); display: grid; place-items: center; box-shadow: var(--lift); animation: none; }
.life-ico svg { width: 38px; height: 38px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tone-sea { background: #CFE8FF; } .tone-pitch { background: #D7F5D0; } .tone-hack { background: var(--orange); } .tone-home { background: var(--citron); }
.life-ico .w1 { animation: wave-x 2.4s ease-in-out infinite; } .life-ico .w2 { animation: wave-x 2.4s ease-in-out infinite reverse; }
.life-ico .spin-ball { transform-box: fill-box; transform-origin: center; animation: ball-roll 4s linear infinite; }
.life-ico .wiggle { transform-box: fill-box; transform-origin: 50% 100%; animation: wiggle 2.2s ease-in-out infinite; }
.life-ico .bounce { animation: pin-bounce 1.8s ease-in-out infinite; }
@keyframes wave-x { 50% { transform: translateX(3px); } }
@keyframes ball-roll { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.life-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--orange-text); text-decoration: none; }
@media (max-width: 1040px) { .life-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .life-grid.four { grid-template-columns: minmax(0, 1fr); } }

/* ── reveal on scroll (only when JS is running) ──────────── */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .08s; } html.js .reveal.d2 { transition-delay: .16s; } html.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-links.open { display: grid; position: absolute; top: 78px; inset-inline: 0; background: #fff; border-bottom: var(--line); padding: 18px max(24px, env(safe-area-inset-left, 0px)); gap: 14px; font-size: 18px; }
  .menu-btn { display: grid; }
  .nav-tools { margin-inline-start: auto; }
  .hero .wrap, .course-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .copy { padding-block: 4px 60px; }
  .hero-art { margin-top: 28px; }
  .hero-art { width: min(480px, 100%); margin-inline: auto; }
  .recog-grid { grid-template-columns: minmax(0, 1fr); }
  .course-hero .art { width: min(420px, 100%); margin-inline: auto; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer:last-child { grid-column: 1 / -1; }
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .work-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-photo { position: static; max-width: 420px; margin-inline: auto; }
  .numbers .wrap { grid-template-columns: repeat(3, 1fr); }
  .poster-row { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  section { padding-block: 72px; }
  nav.top .wrap { height: 68px; gap: 10px; }
  .nav-links.open { top: 68px; }
  .logo img { height: 32px; }
  .nav-tools .btn { display: none; }
  .hero-art { height: 470px; }
  .hero-art .bubble.big { width: 290px; height: 300px; left: 50%; margin-left: -150px; top: 130px; }
  .hero-art .photo-frame { width: 250px; height: 310px; left: 50%; margin-left: -125px; top: 80px; border-radius: 28px; }
  .replit-mini { padding: 8px 12px 8px 10px; }
  .replit-mini img { width: 26px; height: 26px; }
  .replit-mini b { font-size: 16px; }
  .hero-art .replit-mini { left: 0 !important; bottom: 70px !important; }
  .orbit { left: 50%; top: 235px; --r: 158px; }
  .orbit-ring { width: 316px; height: 316px; left: 50%; margin-left: -158px; top: 77px; }
  .orbit .orb > span { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .orbit .orb img { width: 22px; height: 22px; }
  .recog-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-art .me { width: 340px; left: 50%; margin-left: -170px; }
  .blok-btn img, .blok-live { width: 92px; }
  .steps, .offers, .work-grid, .quotes, .fit { grid-template-columns: minmax(0, 1fr); }
  .numbers .wrap { grid-template-columns: repeat(2, 1fr); }
  .numbers .wrap > :last-child { grid-column: 1 / -1; }
  .poster-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .poster-row img { scroll-snap-align: center; }
  .module .body ul { padding-inline-start: 24px; }
  .pain .bubble { max-width: 100%; font-size: 18px; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .t-item { grid-template-columns: minmax(0, 1fr); }
  .t-item.active { transform: none; }
}

/* hero Blok: a bit smaller, with a "click me" hint */
.blok-hero .blok-live { width: 96px; }
.blok-hint { position: absolute; top: -6px; inset-inline-start: 92px; white-space: nowrap; background: var(--citron); border: var(--line); border-radius: 12px 12px 12px 4px; padding: 3px 10px; font: 700 13px var(--font-en); color: var(--navy); box-shadow: var(--lift); animation: hint-bob 1.6s ease-in-out infinite; pointer-events: none; }
html[lang="ar"] .blok-hint { font-family: var(--font-ar); border-radius: 12px 12px 4px 12px; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@media (max-width: 640px) { .blok-hero .blok-live { width: 72px; } .blok-hint { inset-inline-start: 68px; font-size: 12px; } }

/* form: sending state + clear errors */
form.join .btn.is-busy { opacity: .85; cursor: progress; }
.spinner { width: 16px; height: 16px; border: 2.5px solid rgba(16, 20, 46, .25); border-top-color: var(--navy); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.form-error { color: #B42318; font-weight: 600; background: #FEF3F2; border: 1.5px solid #FDA29B; border-radius: 14px; padding: 12px 14px; line-height: 1.6; }
.form-error .mail-fallback { margin-top: 10px; display: inline-flex; color: var(--navy); }
form.join input[aria-invalid="true"] { border-color: #D92D20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .15); }

/* ── responsive polish (audit 320 → 1920) ───────────────── */
@media (max-width: 640px) {
  .pc figcaption { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
  .pc-tag { font-size: 11.5px; }
  .cs-back, a.fact, .life-link { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 380px) {
  nav.top .wrap { gap: 10px; }
  .nav-tools { gap: 6px; }
  .sound-btn { display: none; }
  .logo img { height: 28px; }
  nav.top .btn { padding: 10px 14px; font-size: 14px; }
  .hero-art .bubble.big { width: 260px; margin-left: -130px; }
}

/* ── responsive polish, round 2 (real-phone screenshots) ── */
.logo { min-height: 40px; align-items: center; }
@media (max-width: 640px) {
  .hero-art { height: 430px; margin-top: 12px; }
  .hero-art .photo-frame { top: 50px; }
  .hero-art .bubble.big { top: 100px; }
  .orbit { top: 205px; }
  .orbit-ring { top: 47px; }
  .hero .copy { padding-top: 0; }
  .rc-head { flex-wrap: wrap; row-gap: 8px; }
  .rc-head h3 { font-size: 21px; }
  .rc-head .tag { margin-left: 0; order: 3; }
  .replit-card { padding: 22px 20px; }
  .term-body { font-size: 13px; padding: 16px 16px 20px; }
  .t-row { grid-template-columns: 22px 78px minmax(0, 1fr); }
  .hero .eyebrow { border-radius: 18px; }
}
@media (max-width: 380px) {
  .orbit-ring { width: 290px; height: 290px; margin-left: -145px; top: 60px; }
  .orbit { --r: 145px; }
}

/* ── responsive polish, round 3 ─────────────────────────── */
@media (max-width: 640px) {
  .hero-art { height: 400px; }
  .next-row { flex-wrap: wrap; gap: 12px; }
  .next-row img { width: 100%; max-width: none; }
  .next-row > div { flex: 1; min-width: 0; }
  .next-arrow { font-size: 28px; }
  .screen-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin-inline: -4px; scrollbar-width: none; }
  .screen-tabs::-webkit-scrollbar { display: none; }
  .screen-tabs button { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .compare-grid { gap: 18px; }
}

/* tablet: no lonely last items */
@media (min-width: 641px) and (max-width: 1040px) {
  .quotes .quote-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* course: shown as "coming soon", not a link yet */
.soon-link { display: inline-flex; align-items: center; gap: 6px; cursor: default; color: inherit; opacity: .55; user-select: none; }
.soon-link .soon { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--citron, #E4F25A); color: var(--navy, #10142E); opacity: 1; }
.nav-links .soon-link { opacity: 1; color: rgba(16, 20, 46, .55); }
footer .soon-link { color: rgba(255, 255, 255, .5); }
