:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #E0E7FF;
  --accent: #EC4899;
  --accent-light: #FBCFE8;
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --tint: #F1F2FE;
  --text: #111827;
  --muted: #475569;
  --border: #E2E8F0;
  --shadow: 0 10px 30px rgba(79, 70, 229, .12);
  --shadow-lg: 0 18px 40px rgba(79, 70, 229, .18);
  --radius: 16px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* phone mockups are sized from the viewport height so a section always fits one screen */
  --phone-h: clamp(260px, 54svh, 520px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A;
    --surface: #1E293B;
    --tint: #172036;
    --text: #F1F5F9;
    --muted: #A8B4C7;
    --border: #334155;
    --primary-light: #312E81;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html[lang="ar"] { --font: 'Noto Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* scroll progress */
.progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
}
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { box-shadow: 0 8px 28px rgba(15, 23, 42, .12); }
.nav__in { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 20px; margin-inline-start: auto; font-size: .92rem; font-weight: 500; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); padding: 4px 0; transition: color .2s ease; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--primary); }
.nav__links a.active::after { transform: scaleX(1); }
.lang { display: flex; gap: 4px; background: var(--tint); padding: 3px; border-radius: 999px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) * .4) 0 clamp(24px, 5svh, 56px);
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(8px, 3svh, 32px));
  background: radial-gradient(900px 400px at 85% -10%, var(--primary-light), transparent 70%);
  --phone-h: clamp(300px, 62svh, 600px);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate; will-change: transform;
}
.blob--a { width: 380px; height: 380px; background: var(--primary); inset-inline-end: -80px; top: 8%; opacity: .28; }
.blob--b { width: 320px; height: 320px; background: var(--accent-light); inset-inline-start: -90px; bottom: 6%; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
h1 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem); line-height: 1.12; margin: 16px 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.3rem); line-height: 1.2; margin: 6px 0 14px; letter-spacing: -.01em; font-weight: 800; }
h3 { margin: 6px 0; font-size: 1.05rem; }
.lead { color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.12rem); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(14px, 3svh, 24px) 0; }
.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 120%; }
.btn--ghost { border: 1.5px solid var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary-light); }
.btn--light { background: #fff; color: var(--primary-dark); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

/* hero load-in */
.hero__text > * { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .3s; }
.hero__text > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__art { position: relative; display: flex; justify-content: center; align-items: center; padding-bottom: 24px; }
.hero__art .phone--lg { animation: float 7s ease-in-out infinite, pop 1s var(--ease) .2s both; translate: 0 calc(var(--py, 0) * -1px); }
.hero__art .phone--sm { animation: float 8s ease-in-out -3s infinite, pop 1s var(--ease) .45s both; translate: 0 calc(var(--py, 0) * -2px); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); } }
@keyframes pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }

/* phone mockup: height drives width so ratio matches the screenshots */
.phone {
  height: var(--phone-h);
  width: calc(var(--phone-h) * 390 / 844);
  background: #0F172A; border-radius: calc(var(--phone-h) * .075); padding: calc(var(--phone-h) * .014);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .28);
  flex: none;
}
.phone img { width: 100%; height: 100%; border-radius: calc(var(--phone-h) * .062); object-fit: cover; background: var(--primary-light); }
.phone--sm { --phone-h: clamp(230px, 47svh, 460px); position: absolute; inset-inline-end: 0; bottom: 0; --rot: 6deg; }
[dir="rtl"] .phone--sm { --rot: -6deg; }

/* sections: each fills the viewport, content centred */
.sec {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) * .6 + clamp(12px, 3svh, 40px)) 0 clamp(24px, 5svh, 56px);
}
.sec--tint { background: var(--tint); }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0; }
html[lang="ar"] .kicker { letter-spacing: 0; }
.kicker--light { color: var(--accent-light); }

.grid { display: grid; gap: clamp(12px, 2svh, 20px); margin-top: clamp(16px, 3.5svh, 32px); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(14px, 2.4svh, 24px); box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary); transition: background .3s ease, color .3s ease;
}
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico { background: var(--primary); color: #fff; }
@media (prefers-color-scheme: dark) { .ico { color: #A5B4FC; } .card:hover .ico { color: #fff; } } /* 5.7:1 on the dark tile, light-mode primary is only 2.6:1 */
/* clickable feature cards: details open in a dialog, the cards never change size */
.card--x { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; }
.card--x > p { flex: 1; }
.card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--primary); }
.card__cta .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card--x:hover .card__cta .i { transform: rotate(90deg); }
@media (prefers-color-scheme: dark) { .card__cta { color: #A5B4FC; } }
html:not(.js) .card__cta { display: none; }
.grid--4 .card__cta { grid-column: 1 / -1; align-self: end; }
.card__btn { all: unset; cursor: pointer; display: inline; font: inherit; color: inherit; }
.card__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.card__more { grid-column: 1 / -1; display: block; padding-top: 10px; }
.card__more figure { display: none; }
html.js .card__more { display: none; }
html { scrollbar-gutter: stable; }
html.dialog-open { overflow: hidden; }
dialog.feat { border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 36px); width: min(92vw, 760px); max-height: 86svh; overflow: auto; margin: auto; }
dialog.feat[open] { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); animation: dlgin .3s var(--ease); }
dialog.feat::backdrop { background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px); }
dialog.feat[open]::backdrop { animation: fade .3s ease; }
@keyframes dlgin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.feat__text { flex: 1; min-width: 0; }
.feat__title { margin: 14px 0 6px; font-size: clamp(1.3rem, 3.4vw, 1.75rem); }
.feat__lead { margin: 0 0 12px; color: var(--muted); }
.feat__more { margin: 0; font-size: 1.05rem; }
.feat__ico { width: 52px; height: 52px; }
.feat__ico .i { width: 26px; height: 26px; }
.feat__shot { --phone-h: clamp(280px, 52svh, 440px); margin: 0; flex: none; }
.feat__shot[hidden] { display: none; }
.feat__close { all: unset; cursor: pointer; position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); transition: background .2s ease, color .2s ease; }
.feat__close:hover { background: var(--primary); color: #fff; }
.feat__close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.feat__close .i { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { .feat__close { color: #A5B4FC; } .feat__close:hover { color: #fff; } }
@media (max-width: 760px) { dialog.feat[open] { flex-direction: column; align-items: stretch; } .feat__shot { --phone-h: clamp(170px, 28svh, 250px); align-self: center; } .feat__text { padding-top: 24px; } }
.card--steps ol { margin: 10px 0 0; padding-inline-start: 22px; color: var(--muted); }
.card--steps li { margin: 8px 0; }

/* tour */
.tour-wrap { position: relative; margin-top: clamp(8px, 2svh, 20px); --phone-h: clamp(250px, 53svh, 520px); }
.tour {
  display: flex; gap: clamp(16px, 3vw, 32px); overflow-x: auto; padding: clamp(14px, 3svh, 32px) max(16px, calc((100vw - 1120px) / 2)) 16px;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - 1120px) / 2));
  scrollbar-width: none; cursor: grab;
}
.tour::-webkit-scrollbar { display: none; }
.tour.dragging { scroll-snap-type: none; cursor: grabbing; scroll-behavior: auto; }
.tour.dragging img { pointer-events: none; }
.tour figure {
  margin: 0; scroll-snap-align: center; text-align: center; flex: none;
  transform: scale(calc(.92 + .08 * var(--focus, 1))); opacity: calc(.72 + .28 * var(--focus, 1));
  transition: transform .25s ease-out, opacity .25s ease-out;
}
.tour figcaption { margin-top: 14px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.tour-btn {
  position: absolute; top: 50%; translate: 0 -60%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--primary); font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s ease, color .2s ease;
}
.tour-btn:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.tour-btn--prev { inset-inline-start: 12px; }
.tour-btn--next { inset-inline-end: 12px; }
[dir="rtl"] .tour-btn { scale: -1 1; }

.trust { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 4vw, 48px); align-items: center; --phone-h: clamp(270px, 56svh, 520px); }
.trust .phone { justify-self: center; }

/* roadmap */
.road { list-style: none; padding: 0; margin: clamp(18px, 4svh, 36px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.road li {
  position: relative; background: var(--surface); padding: 22px 18px 18px; border-radius: 0 0 var(--radius) var(--radius);
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.road li::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--primary);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--i, 0) * 180ms + 150ms);
}
[dir="rtl"] .road li::before { transform-origin: 100% 50%; }
.road li.in::before, .road li.done::before { transform: scaleX(1); }
.road li:nth-child(2)::before { background: var(--accent); }
.road li:nth-child(3)::before { background: var(--primary-dark); }
.road strong { font-size: 1.3rem; }
.road span { color: var(--muted); font-size: .95rem; }

.note { color: var(--muted); text-align: center; margin-top: 20px; }

.contact { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; align-items: center; position: relative; overflow: hidden; }
.contact::before, .contact::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.contact::before { width: 420px; height: 420px; top: -140px; inset-inline-start: -100px; }
.contact::after { width: 320px; height: 320px; bottom: -120px; inset-inline-end: -60px; animation-direction: alternate-reverse; }
.contact .wrap { position: relative; z-index: 1; }
.contact .lead { color: #E0E7FF; margin: 0 auto 12px; }

.foot { padding: 22px 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* scroll reveal (class is added by JS, so content is visible without it) */
.reveal {
  opacity: 0; transform: translateY(22px) scale(.98);
  transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* compact card: icon sits beside the title, text runs full width underneath */
  .grid--4 .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .grid--4 .card h3 { margin: 0; }
  .grid--4 .card p { grid-column: 1 / -1; margin-top: 8px; }
  .grid--4 .ico { width: 36px; height: 36px; }
  .grid--4 .i { width: 18px; height: 18px; }
  .hero__in, .trust { grid-template-columns: 1fr; }
  .hero { --phone-h: clamp(240px, 40svh, 460px); align-items: flex-start; }
  .hero .phone--sm { --phone-h: clamp(190px, 31svh, 360px); }
  .trust { --phone-h: clamp(250px, 44svh, 480px); }
  .tour-wrap { --phone-h: clamp(240px, 46svh, 460px); }
}
@media (max-width: 900px) {
  .burger { display: block; margin-inline-start: auto; }
  .lang { margin-inline-start: 0; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
}
@media (max-width: 760px) {
  .grid { gap: 10px; }
  .grid--4 .card, .grid--3 .card { padding: 12px; }
  .grid--4 .card p, .grid--3 .card p { font-size: .78rem; line-height: 1.4; }
  .grid--4 h3, .grid--3 h3 { font-size: .92rem; margin: 4px 0; }
  .ico { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 10px; }
  .tour-btn { display: none; }
  h1 { font-size: 1.75rem; margin: 10px 0; }
  .hero .lead { font-size: .95rem; }
  .hero .chips { display: none; }
  .hero { --phone-h: clamp(210px, 31svh, 380px); }
  .hero .phone--sm { --phone-h: clamp(160px, 24svh, 290px); }
  .hero__art { margin-top: 0; padding-bottom: 8px; }
  .road { gap: 10px; }
  .road li { padding: 16px 14px 12px; }
  .road strong { font-size: 1.1rem; }
  .road span { font-size: .85rem; }
  .card--steps li { margin: 4px 0; }
}
/* short landscape screens: let content set the height rather than force it */
@media (max-height: 600px) {
  .hero, .sec { min-height: auto; }
  .hero { padding-bottom: 40px; }
  .tour-wrap, .hero, .trust { --phone-h: 300px; }
  .hero .phone--sm { --phone-h: 230px; }
}


/* patient journey: a winding path with animated arrow; each step is an illustration plus a short text */
.journey { min-height: auto; justify-content: flex-start; padding-bottom: clamp(40px, 8svh, 96px); }
.journey__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.journey__head { position: sticky; top: calc(var(--nav-h) + clamp(16px, 8svh, 80px)); }
.journey__head .note { text-align: start; margin-top: 14px; font-size: .85rem; font-style: italic; }
.path { position: relative; padding: 8px 0; }
.path__svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.path__track { fill: none; stroke: var(--border); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; animation: flow 1.4s linear infinite; }
.path__line { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(99, 102, 241, .45)); }
.path__arrow path { fill: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.path__steps { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: clamp(36px, 10svh, 110px); }
.step { display: flex; align-items: center; gap: 16px; padding-inline-start: var(--x, 0%); }
.node { --stage-h: 112px; position: relative; z-index: 1; flex: none; width: calc(var(--stage-h) * .95); height: var(--stage-h); border-radius: 22px; overflow: hidden; border: 3px solid var(--border); background: var(--surface); font-size: .8rem; transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.step.on .node { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 8px 22px rgba(99, 102, 241, .28); }
.step__txt { flex: 1; min-width: 0; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
.step__txt h3 { margin: 0; }
.step__txt p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.step__pre { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.step__txt .reveal__name { margin: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journey.js .step--reveal.on .reveal__name { animation: revealin 1s var(--ease) backwards; }
@keyframes revealin { from { opacity: 0; transform: scale(.82); filter: blur(10px); } }
.step--reveal .node { border-color: var(--accent); }
.step--reveal.on .node { box-shadow: 0 0 0 6px rgba(236, 72, 153, .18), 0 14px 34px rgba(99, 102, 241, .4); }
.step--last .btn { margin-top: 12px; padding: 10px 18px; font-size: .9rem; }
.journey.js .step { opacity: .45; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.journey.js .step.on { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .journey__in { grid-template-columns: minmax(0, 1fr); }
  .journey__head { position: static; }
  .step { padding-inline-start: calc(var(--x, 0%) * .5); }
  .step__txt { max-width: none; }
  .path__steps { gap: clamp(28px, 8svh, 64px); }
}
@media (max-width: 480px) {
  .node { --stage-h: 88px; border-radius: 18px; }
  .step { gap: 12px; }
  .step__txt { padding: 12px 14px; }
  .step__txt .reveal__name { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey.js .step { opacity: 1; transform: none; }
}

/* illustration scenes (shared by every step) */
.vis { position: absolute; inset: 0; pointer-events: none; }
.vis svg { display: block; width: 100%; height: 100%; }
.vis--desk { background: linear-gradient(#E0E7FF, #F5F3FF); }
.vis--wait { background: linear-gradient(#FCE7F3, #EEF2FF); }
.vis--phone { background: linear-gradient(#E0E7FF, #EEF2FF); }
.vis--remind { background: linear-gradient(#FCE7F3, #E0E7FF); }
.vis svg * { transform-box: fill-box; }
.vis.is-on .pulse { animation: pulse 2.2s ease-in-out 1s infinite; }
.vis.is-on .pop { transform-origin: center; animation: pop2 .5s var(--ease) var(--d, 0s) backwards; }
.vis.is-on .spin { transform-box: view-box; animation: spin 8s linear infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes pop2 { from { transform: scale(0); opacity: 0; } }
.vis.is-on .orbit { transform-box: view-box; transform-origin: 190px 200px; animation: spin 26s linear infinite; }
.vis.is-on .counter { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite reverse; }
.vis--phone, .vis--logo { display: grid; place-items: center; }
.phone--stage { --phone-h: calc(var(--stage-h) * .9); }
.vis.is-on .phone--stage { animation: rise .6s var(--ease) backwards; }
.vis .logo-anim { grid-area: 1 / 1; width: 58%; height: auto; aspect-ratio: 1; border-radius: 24%; overflow: hidden; box-shadow: 0 18px 40px rgba(99, 102, 241, .35); }
.vis.is-on .logo-anim { animation: logoin .8s var(--ease) backwards, logofloat 4s ease-in-out .8s infinite; }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
@keyframes logoin { from { transform: scale(.4) rotate(-14deg); opacity: 0; } }
.vis.is-on .beat-line { stroke-dasharray: 1; animation: beatdraw 3.2s ease-in-out infinite; }
.vis.is-on .beat-dot { transform-origin: center; animation: beatdot 3.2s ease-in-out infinite; }
@keyframes beatdraw { 0% { stroke-dashoffset: 1; } 55%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes beatdot { 0%, 50% { transform: scale(0); } 60% { transform: scale(1.5); } 68%, 82% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes logofloat { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.vis--logo { background: linear-gradient(150deg, #312E81, #4F46E5 55%, #BE185D); overflow: hidden; }
.vis--logo .logo-anim { box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.spark { position: absolute; bottom: -4%; inset-inline-start: var(--x); width: .7em; height: .7em; border-radius: 50%; background: #F9A8D4; opacity: 0; }
.vis.is-on .spark { animation: spark 4s ease-out var(--d) infinite; }
@keyframes spark { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-420%) scale(1); opacity: 0; } }





/* motion is optional */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .road li::before { transform: scaleX(1); }
  .progress, .blob { display: none; }
  .tour figure { transform: none; opacity: 1; }
}

/* Legal pages (privacy, support) */
.doc { max-width: 760px; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 56px; line-height: 1.65; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.doc__meta { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.doc ul { padding-inline-start: 1.2rem; margin: 8px 0 16px; }
.doc li { margin: 6px 0; }
.doc dt { font-weight: 700; margin-top: 18px; }
.doc dd { margin: 4px 0 0; color: var(--muted); }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
