/* Rhinex Academy landing (/ and /ar/) — the sections and motion on top of the
   landing's own rhinex.css, which keeps the tokens, fonts, buttons, form and
   footer. Logical properties throughout, so the Arabic page mirrors itself.
   All motion is opt-in: it runs only once academy.js has put .js-motion on
   <html>, stops under prefers-reduced-motion, and the page's pause button
   (.motion-paused) freezes whatever loops. */

:root {
  --hakim: #f08a24;
  --nora: #2f6bff;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* A cooler palette than rhinex.css's gold and sand (which the POS landing
     keeps): the accent is a steel blue, the highlight a sky blue. Same token
     names, so every rule in both stylesheets follows. */
  --paper: #f3f6f9;
  --line: #d6dee8;
  --olive-deep: #0d3557;
  --gold: #1f6fc0;
  --gold-soft: #a8d8ff;
}

/* rhinex.css's dark set turns --olive-deep and --gold-soft into sand and dark
   brown, which made the phone hero a brown gradient with unreadable copy.
   Same selector as there, loaded later, so it wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #011826;
    --surface: #0c2a46;
    --ink: #eef3f8;
    --olive-deep: #0d3557;
    --olive-hero: #010f1a;
    --gold: #2a74c4;
    --gold-soft: #8cc8ff;
    --line: #1a3550;
  }
  :root:not([data-theme="light"]) .eyebrow { color: var(--gold-soft); }
  :root:not([data-theme="light"]) .eyebrow::before { background: var(--gold-soft); }
}

/* ---- scroll progress (browsers with scroll-driven animations) ---- */
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 60; background: linear-gradient(to right, var(--gold), var(--nora)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
[dir="rtl"] .progress { transform-origin: right; }
@supports (animation-timeline: scroll()) {
  .js-motion .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* ---- top bar ---- */
.brand__mark--img { background: none; box-shadow: none; width: 42px; height: 42px; }
.brand__mark--img img { width: 42px; height: 42px; display: block; }
.topbar { transition: box-shadow .3s ease, background .3s ease; }
.topbar.is-scrolled { box-shadow: 0 10px 30px -18px rgba(1, 24, 38, .45); }
.topnav { display: flex; gap: 1.4rem; font-size: .92rem; font-weight: 600; margin-inline: auto; }
.topnav a { color: var(--muted); text-decoration: none; position: relative; padding-block: .3rem; }
.topnav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); }

/* ---- hero ---- */
.hero--academy { isolation: isolate; }
.hero--academy::after { display: none; }

/* The audience line is the first thing a lecturer reads: light text in a lit
   pill, not the accent blue, which disappears on the navy hero. */
.hero--academy .eyebrow { font-size: .9rem; padding: .55rem 1.1rem; color: #eaf5ff; background: color-mix(in srgb, var(--gold-soft) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 55%, transparent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--gold-soft) 45%, transparent); }
:lang(ar) .hero--academy .eyebrow { font-size: 1rem; }
.hero--academy .eyebrow::before { width: 8px; height: 8px; background: var(--gold-soft); }
.js-motion .hero--academy .eyebrow::before { animation: ping-eyebrow 2s ease-out infinite; }
@keyframes ping-eyebrow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-soft) 70%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* the free-trial call to action: the arrow leans toward erp.nordexar.com */
.btn--go svg { transition: transform .3s var(--ease-out); }
.btn--go:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn--go svg { transform: scaleX(-1); }
[dir="rtl"] .btn--go:hover svg { transform: scaleX(-1) translateX(4px); }
.js-motion .btn--go { animation: nudge-glow 2.8s ease-in-out 2s infinite; }
@keyframes nudge-glow { 0%, 100% { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gold) 80%, black); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--gold) 80%, black); } }
.hero__nudge { margin-top: .9rem; font-size: .92rem; font-weight: 600; color: var(--gold-soft); }

/* contact card (replaces the WhatsApp form) */
.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow); display: grid; gap: 1rem; justify-items: start; }
.contact__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--olive), var(--gold)); }
.contact__icon svg { width: 26px; height: 26px; }
.contact__label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.contact__mail { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-all; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px; transition: background-size .4s var(--ease-out); }
[dir="rtl"] .contact__mail { background-position: 100% 100%; }
.contact__mail:hover { background-size: 100% 2px; }
.contact__note { color: var(--muted); font-size: .95rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.contact .btn--ghost { color: var(--ink); }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; }
.aurora span:nth-child(1) { background: var(--gold); inset-block-start: -20%; inset-inline-end: -10%; }
.aurora span:nth-child(2) { background: var(--nora); inset-block-end: -30%; inset-inline-start: -12%; opacity: .3; }
.aurora span:nth-child(3) { background: #2ec4d6; inset-block-start: 30%; inset-inline-end: 30%; width: 22vmax; height: 22vmax; opacity: .18; }
.js-motion .aurora span { animation: drift 18s ease-in-out infinite alternate; }
.js-motion .aurora span:nth-child(2) { animation-duration: 23s; animation-direction: alternate-reverse; }
.js-motion .aurora span:nth-child(3) { animation-duration: 15s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } 100% { transform: translate(-6%, -4%) scale(.94); } }

.hero h1 .shine { background: linear-gradient(100deg, var(--gold-soft) 20%, #fff 40%, var(--gold-soft) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.js-motion .hero h1 .shine { animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

/* the duo and their workspace card */
.duo { position: relative; min-height: 540px; }
.duo__bot { margin: 0; position: absolute; inset-block-start: 0; width: 48%; max-width: 250px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .35)); }
.duo__bot img { display: block; width: 100%; height: auto; }
.duo__bot--hakim { inset-inline-start: 0; }
.duo__bot--nora { inset-inline-end: 0; }
/* Hakim and Nora step forward: they start small, soft and far back, then come
   up to the glass with a slight overshoot, and then stand still. */
.js-motion .duo__bot { animation: approach 1.5s var(--ease-out) .2s both; }
.js-motion .duo__bot--nora { animation-delay: .55s; }
@keyframes approach {
  0% { opacity: 0; transform: scale(.45) translateY(60px); filter: blur(10px) brightness(.5); }
  65% { opacity: 1; transform: scale(1.07) translateY(-4px); filter: blur(0) brightness(1.08); }
  100% { opacity: 1; transform: none; filter: none; }
}

.soon { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: .35rem .65rem; border-radius: 999px; color: var(--olive-hero); background: linear-gradient(100deg, var(--gold-soft), #e6f3ff); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); white-space: nowrap; }
:lang(ar) .soon { letter-spacing: 0; text-transform: none; font-size: .78rem; }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hakim); }
.js-motion .soon::before { animation: ping-soon 1.8s ease-out infinite; }
@keyframes ping-soon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hakim) 70%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.persona h3 .soon { margin-inline-start: .4rem; }
.assistants .section-head .soon { margin-inline-start: .4rem; }
.duo__card { position: absolute; inset-block-end: 0; inset-inline: 8% 8%; z-index: 2; background: var(--surface); color: var(--ink); border-radius: 18px; padding: .9rem 1rem; box-shadow: var(--shadow); font-size: .85rem; }
.duo__head { display: flex; align-items: center; gap: .5rem; font-weight: 700; padding-block-end: .55rem; border-block-end: 1px solid var(--line); }
.duo__head small { margin-inline-start: auto; font-weight: 600; color: var(--muted); font-size: .72rem; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1faf54; box-shadow: 0 0 0 0 rgba(31, 175, 84, .6); }
.js-motion .live { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 175, 84, .55); } 100% { box-shadow: 0 0 0 10px rgba(31, 175, 84, 0); } }
.chat { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .5rem; }
.chat li { max-width: 88%; padding: .5rem .7rem; border-radius: 14px; line-height: 1.45; }
.chat__me { justify-self: end; background: color-mix(in srgb, var(--olive) 12%, var(--surface)); border-end-end-radius: 4px; }
.chat__bot { background: color-mix(in srgb, var(--nora) 9%, var(--surface)); border-end-start-radius: 4px; }
.chat__bot b { display: block; font-size: .72rem; color: color-mix(in srgb, var(--hakim) 70%, var(--ink)); }
.chat__typing { display: inline-flex; gap: 4px; padding-block: .2rem; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .4; }
.js-motion .chat__typing i { animation: blink 1.2s infinite; }
.js-motion .chat__typing i:nth-child(2) { animation-delay: .2s; }
.js-motion .chat__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.js-motion .chat li { opacity: 0; transform: translateY(8px); animation: pop .6s var(--ease-out) forwards; }
.js-motion .chat li:nth-child(2) { animation-delay: .9s; }
.js-motion .chat li:nth-child(3) { animation-delay: 1.8s; }
.js-motion .chat li:nth-child(4) { animation-delay: 2.7s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---- marquee of what students practise ---- */
.ticker { padding-block: 1.1rem; background: var(--olive-hero); color: #f4f1e4; overflow: hidden; display: flex; align-items: center; gap: 1rem; }
.ticker__track { display: flex; gap: 2.4rem; flex: 0 0 auto; padding-inline-end: 2.4rem; white-space: nowrap; font-weight: 600; font-size: .95rem; list-style: none; margin: 0; padding-inline-start: 0; }
.ticker__track li { display: inline-flex; align-items: center; gap: .6rem; }
.ticker__track li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-soft); }
.ticker__lane { display: flex; overflow: hidden; flex: 1 1 auto; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.js-motion .ticker__track { animation: marquee 38s linear infinite; }
[dir="rtl"].js-motion .ticker__track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
.ticker__pause { flex: 0 0 auto; margin-inline-end: clamp(1rem, 4vw, 2.5rem); font: inherit; font-size: .8rem; font-weight: 700; color: inherit; background: color-mix(in srgb, #fff 10%, transparent); border: 1px solid color-mix(in srgb, #fff 25%, transparent); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.ticker__pause:hover { background: color-mix(in srgb, #fff 18%, transparent); }
.ticker__pause[hidden] { display: none; }

/* ---- reveal on scroll ---- */
.js-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* ---- counters ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-block-start: 2.6rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--olive); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-block-start: .4rem; color: var(--muted); font-size: .92rem; }

/* ---- journey (how it works) ---- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; position: relative; }
.journey li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.journey__num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--olive), var(--gold)); }
.journey h3 { margin-block-start: .8rem; font-size: 1.15rem; }
.journey p { margin-block-start: .4rem; color: var(--muted); font-size: .96rem; }

/* ---- split showcase rows ---- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase + .showcase { margin-block-start: clamp(3.5rem, 8vw, 5.5rem); }
.showcase--flip > :first-child { order: 2; }
.showcase h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.showcase .h-sub { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.showcase__copy > p { margin-block-start: .9rem; color: var(--muted); font-size: 1.06rem; }
.ticks { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-block-start: 3px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8fe0' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.2rem; position: relative; overflow: hidden; }
.panel__title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--muted); padding-block-end: .7rem; margin-block-end: .9rem; border-block-end: 1px solid var(--line); }
.panel__title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.panel__note { margin-block-start: .8rem; font-size: .72rem; color: var(--muted); text-align: center; }

/* spotlight that follows the pointer on cards */
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%); }
.glow:hover::after { opacity: 1; }
.feature.glow { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.feature.glow:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* wizard */
.wizard__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .95rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out); }
.chip:hover { transform: translateY(-2px); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.wizard__out { margin-block-start: 1rem; display: grid; gap: .55rem; }
.wizard__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.wizard__row span { color: var(--muted); }
.wizard__row b { text-align: end; }
.js-motion .wizard__out.is-swapping .wizard__row { animation: pop .5s var(--ease-out) both; }
.js-motion .wizard__out.is-swapping .wizard__row:nth-child(2) { animation-delay: .07s; }
.js-motion .wizard__out.is-swapping .wizard__row:nth-child(3) { animation-delay: .14s; }
.js-motion .wizard__out.is-swapping .wizard__row:nth-child(4) { animation-delay: .21s; }
.js-motion .wizard__out.is-swapping .wizard__row:nth-child(5) { animation-delay: .28s; }
.wizard__bar { height: 6px; border-radius: 999px; background: var(--line); margin-block-start: 1rem; overflow: hidden; }
.wizard__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(to right, var(--gold), var(--olive)); border-radius: inherit; transform-origin: left; }
[dir="rtl"] .wizard__bar i { transform-origin: right; }
.js-motion .wizard__out.is-swapping + .wizard__bar i { animation: fill 1.1s var(--ease-out) both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* mentor board */
.mentor { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mentor th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 .3rem .5rem; }
:lang(ar) .mentor th { text-transform: none; letter-spacing: 0; }
.mentor td { padding: .55rem .3rem; border-block-start: 1px solid var(--line); vertical-align: middle; }
.who { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.who i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: var(--olive); flex: 0 0 auto; }
.who i.c2 { background: var(--gold); }
.who i.c3 { background: color-mix(in srgb, var(--nora) 80%, black); }
.who i.c4 { background: color-mix(in srgb, var(--hakim) 75%, black); }
.meter { width: 100%; min-width: 70px; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(to right, var(--olive), var(--gold)); width: calc(var(--p, 0) * 1%); }
.js-motion .reveal .meter i { width: 0; transition: width 1.4s var(--ease-out) .3s; }
.js-motion .reveal.is-in .meter i { width: calc(var(--p, 0) * 1%); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: color-mix(in srgb, #1faf54 16%, transparent); color: color-mix(in srgb, #1faf54 60%, var(--ink)); }
.pill--warn { background: color-mix(in srgb, var(--hakim) 18%, transparent); color: color-mix(in srgb, var(--hakim) 55%, var(--ink)); }
.feedback { margin-block-start: .9rem; display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 14px; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); font-size: .86rem; }
.feedback b { display: block; font-size: .76rem; }

/* Hakim & Nora */
.assistants { background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--olive) 30%, var(--olive-hero)), var(--olive-hero) 70%); color: #f4f1e4; }
.assistants .section-head { margin-inline: auto; text-align: center; }
.assistants .section-head p { color: color-mix(in srgb, #f4f1e4 78%, transparent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); }
.persona { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 1.2rem; align-items: end; background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 14%, transparent); border-radius: 24px; padding: 1.4rem 1.4rem 0; overflow: hidden; }
.persona__img { align-self: end; }
.persona__img img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: bottom; }
/* A small step forward on hover: a zoom only, no lift. The independent `scale`
   property, not `transform`, so it adds to the approach animation instead of
   being overridden by it. */
.persona__img img { transition: scale .5s var(--ease-out); transform-origin: 50% 85%; }
.persona:hover .persona__img img { scale: 1.16; }
.persona { transition: border-color .4s ease, background .4s ease; }
.persona--hakim:hover { border-color: color-mix(in srgb, var(--hakim) 45%, transparent); }
.persona--nora:hover { border-color: color-mix(in srgb, var(--nora) 50%, transparent); }
.js-motion .persona .persona__img { opacity: 0; }
.js-motion .persona.is-in .persona__img { animation: approach 1.6s var(--ease-out) .25s both; transform-origin: 50% 85%; }
.js-motion .persona--nora.is-in .persona__img { animation-delay: .5s; }
.persona__copy { padding-block-end: 1.4rem; }
.persona h3 { font-size: 1.6rem; }
.persona__role { display: inline-block; margin-block-start: .3rem; font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.persona--hakim .persona__role { background: color-mix(in srgb, var(--hakim) 25%, transparent); color: #ffd3a8; }
.persona--nora .persona__role { background: color-mix(in srgb, var(--nora) 30%, transparent); color: #c4d5ff; }
.persona p { margin-block-start: .7rem; color: color-mix(in srgb, #f4f1e4 80%, transparent); font-size: .96rem; }
.speech { position: relative; margin-block-start: 1rem; min-height: 3.4rem; padding: .7rem .9rem; border-radius: 16px; background: #fff; color: #0c2a46; font-weight: 600; font-size: .95rem; }
.persona--hakim .speech { border-inline-start: 4px solid var(--hakim); }
.persona--nora .speech { border-inline-start: 4px solid var(--nora); }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; }
.cycle li { grid-area: 1 / 1; }
.cycle li small { display: block; font-size: .7rem; font-weight: 700; color: #4a6275; text-transform: uppercase; letter-spacing: .05em; }
.cycle li + li { visibility: hidden; }
.js-motion .cycle li { visibility: visible; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s var(--ease-out); }
.js-motion .cycle li.is-active { opacity: 1; transform: none; }
.steps-guide { list-style: none; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0; max-width: 820px; display: grid; gap: .7rem; counter-reset: g; }
.steps-guide li { counter-increment: g; display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: color-mix(in srgb, #fff 7%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.steps-guide li::before { content: counter(g); flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: .85rem; background: var(--gold); color: var(--olive-hero); }

/* smart supplier mails */
.mailflow { display: grid; gap: .7rem; }
.mail { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: .86rem; }
.mail__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--nora) 14%, transparent); color: var(--nora); flex: 0 0 auto; }
.mail__icon svg { width: 18px; height: 18px; }
.mail strong { display: block; }
.mail span { color: var(--muted); font-size: .78rem; }
.mail .pill { margin-inline-start: auto; }
.arrow { justify-self: center; color: var(--gold); }
.arrow svg { width: 26px; height: 26px; display: block; }
.js-motion .reveal.is-in .arrow svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.js-motion .reveal .mailflow > * { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[dir="rtl"].js-motion .reveal .mailflow > * { transform: translateX(18px); }
.js-motion .reveal.is-in .mailflow > * { opacity: 1; transform: none; }
.js-motion .reveal.is-in .mailflow > :nth-child(2) { transition-delay: .35s; }
.js-motion .reveal.is-in .mailflow > :nth-child(3) { transition-delay: .7s; }

/* smart voucher scanner */
.scan { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; align-items: center; }
.voucher { position: relative; background: #fffdf6; color: #3a3326; border-radius: 6px; padding: .9rem .8rem 1.1rem; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .7rem; line-height: 1.6; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .5); transform: rotate(-2deg); overflow: hidden; }
[dir="rtl"] .voucher { transform: rotate(2deg); }
.voucher b { display: block; text-align: center; font-size: .82rem; }
.voucher hr { border: 0; border-block-start: 1px dashed #b9ad94; margin: .4rem 0; }
.voucher__row { display: flex; justify-content: space-between; gap: .5rem; }
.voucher__beam { position: absolute; inset-inline: 0; height: 26%; inset-block-start: -30%; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--nora) 35%, transparent) 70%, var(--nora)); opacity: 0; pointer-events: none; }
.js-motion .reveal.is-in .voucher__beam { opacity: 1; animation: beam 2.8s ease-in-out infinite; }
@keyframes beam { 0% { inset-block-start: -30%; } 60%, 100% { inset-block-start: 105%; } }
.fields { display: grid; gap: .45rem; }
.field-out { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--nora) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--nora) 22%, var(--line)); font-size: .82rem; }
.field-out span { color: var(--muted); }
.js-motion .reveal .field-out { opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js-motion .reveal.is-in .field-out { opacity: 1; transform: none; }
.js-motion .reveal.is-in .field-out:nth-child(2) { transition-delay: .5s; }
.js-motion .reveal.is-in .field-out:nth-child(3) { transition-delay: .8s; }
.js-motion .reveal.is-in .field-out:nth-child(4) { transition-delay: 1.1s; }
.js-motion .reveal.is-in .field-out:nth-child(5) { transition-delay: 1.4s; }
.js-motion .reveal.is-in .field-out:nth-child(1) { transition-delay: .2s; }

/* footer endorsement */
.endorse { display: inline-flex; align-items: center; gap: .55rem; color: #f4f1e4; font-size: .85rem; }
.endorse img { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .topnav { display: none; }
}
@media (max-width: 860px) {
  .showcase, .pair, .scan { grid-template-columns: 1fr; }
  .showcase--flip > :first-child { order: 0; }
  .duo { min-height: 520px; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero--academy .hero__visual { order: 0; }
}
@media (max-width: 520px) {
  .persona { grid-template-columns: 1fr; padding-block-start: 1.2rem; }
  .persona__img img { max-height: 220px; margin-inline: auto; }
  .persona__copy { order: -1; padding-block-end: 0; }
  .duo { min-height: 470px; }
  .duo__card { inset-inline: 0; }
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal, .js-motion .chat li, .js-motion .reveal .mailflow > *, .js-motion .reveal .field-out, .js-motion .persona .persona__img { opacity: 1; transform: none; }
}
