/* TIBA + NUHA sites, release 2.0 design ("Night Shift"). One file, byte-identical in sites/tiba and sites/nuha.
   Motion: transform/opacity only, native scroll. Everything that moves or hides is gated behind html.motion / html.js,
   so reduced-motion and no-JS visitors get the end states by default. */

@font-face { font-family: Tajawal; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/tajawal-ar-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/tajawal-ar-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --black: #040404;
  --card-d: #111317;
  --edge-d: #23262d;
  --ink-d: #f5f5f7;
  --grey-d: #a1a7b3;      /* 8.5:1 on --black */
  --pale: #f2f5f7;
  --ink: #111318;
  --grey: #586070;        /* 5.8:1 on --pale, 6.3:1 on white */
  --accent: #007aff;      /* app 2.0 accent: icons, large text; 5.1:1 on --black */
  --link: #0057b8;        /* small links on light: 6.3:1 on --pale */
  --link-d: #4da3ff;      /* small links on dark: 7.8:1 on --black */
  --icon-blue: #003a8f;
  --gutter: 24px;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ar: Tajawal, var(--sys);
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--black); color: var(--ink-d); font: 400 17px/1.5 var(--sys); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.pale-page { background: var(--pale); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[lang="ar"], bdi[lang="ar"] { font-family: var(--ar); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sys); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .2s ease, opacity .2s ease; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill:active { transform: scale(.97); }
.pill-white { background: #fff; color: #000; }
.pill-white:hover { opacity: .88; }
.pill-dark { background: #111318; color: #fff; }
.pill-dark:hover { opacity: .86; }
.pill-sm { height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 720px) { .pill-sm { height: 44px; padding: 0 18px; } }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { border-radius: 999px; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto 0; height: 64px; transition: background-color .3s ease; }
.nav .brand, .nav .links a, .nav .pill { transition: color .3s ease, background-color .3s ease; }
.nav.scrolled { background: rgba(10, 11, 13, .74); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.nav.light { background: rgba(242, 245, 247, .86) !important; -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.nav.light .brand, .nav.light .brand .mark { color: #111318; }
.nav.light .links a { color: #3b404a; }
.nav.light .links a:hover { color: #000; }
.nav.light .pill-white { background: #111318; color: #fff; }
.nav-in { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font: 700 19px/1 var(--sys); letter-spacing: .02em; color: #fff; }
.brand .mark { width: 28px; height: 28px; color: #fff; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { font-size: 14px; color: #d4d7dd; text-decoration: none; white-space: nowrap; }
@media (min-width: 721px) and (max-width: 820px) { .nav-in { gap: 18px; } .links { gap: 16px; } }
.links a:hover { color: #fff; }
.links a[aria-current="page"] { font-weight: 600; }
/* Phone menu: a no-JS <details>, shown only at ≤720 px. */
.menu { display: none; }
.menu summary { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 999px; list-style: none; cursor: pointer; font: 600 15px/1 var(--sys); color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: rgba(255, 255, 255, .12); }
.menu-panel { position: absolute; right: var(--gutter); top: 58px; width: min(260px, calc(100vw - 32px)); padding: 6px; border-radius: 18px; background: var(--card-d); box-shadow: inset 0 0 0 1px var(--edge-d), 0 24px 60px rgba(0, 0, 0, .6); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 16px; color: #e8eaee; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.nav.light .menu summary { color: #111318; }
.nav.light .menu[open] summary { background: rgba(17, 19, 24, .07); }
.nav.light .menu-panel { background: #fff; box-shadow: 0 0 0 1px rgba(17, 19, 24, .06), 0 24px 60px rgba(17, 19, 24, .18); }
.nav.light .menu-panel a { color: #2b2f37; }
.nav.light .menu-panel a:hover, .nav.light .menu-panel a[aria-current="page"] { background: #f2f5f7; color: #000; }
@media (max-width: 720px) {
  .links { display: none; }
  .nav-in { gap: 6px; }
  .menu { display: block; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 700px); display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 112px 0 72px; }
.cone {
  position: absolute; z-index: -1; left: 50%; top: -12%; width: min(1500px, 170vw); height: 108%; transform: translateX(-50%);
  background:
    radial-gradient(42% 30% at 50% 0%, rgba(140, 176, 255, .22), transparent 72%),
    radial-gradient(22% 70% at 50% 0%, rgba(90, 140, 255, .12), transparent 70%),
    radial-gradient(60% 50% at 50% 46%, rgba(20, 60, 160, .20), transparent 70%);
}
.hero-in { position: relative; text-align: center; padding: 0 var(--gutter); max-width: 1100px; }
.icon-wrap { position: relative; width: 168px; height: 168px; margin: 0 auto 44px; }
.bloom {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, .60) 0%, rgba(0, 122, 255, .25) 34%, rgba(0, 122, 255, 0) 68%);
  filter: blur(26px); opacity: .86;
}
html.motion .bloom { animation: breathe 6s ease-in-out infinite; }
.floor { position: absolute; z-index: -1; left: 50%; bottom: -34px; width: 260px; height: 40px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 130, 255, .38), transparent); filter: blur(8px); }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .72; } 50% { transform: scale(1.06); opacity: 1; } }
.app-icon { position: relative; width: 168px; height: 168px; border-radius: 22.5%; overflow: hidden; background: var(--icon-blue); box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 30px 80px rgba(0, 30, 120, .55); }
.app-icon img { width: 100%; height: 100%; }
.app-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.hero h1 { margin: 0; font: 700 clamp(40px, 6.3vw, 86px)/1.03 var(--sys); letter-spacing: -.028em; }
@media (min-width: 900px) { .hero h1 .line { white-space: nowrap; } }
.hero h1 .line { display: block; }
.hero h1 .dim { color: #8d929c; }
.sub { margin: 22px auto 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 21px); color: var(--grey-d); letter-spacing: -.005em; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.proof { margin: 22px 0 0; font-size: 14px; color: var(--grey-d); }
.proof b { color: #fff; font-weight: 600; }
.stars { color: #ffcc33; letter-spacing: 2px; font-size: 14px; }
.stars .half { background: linear-gradient(90deg, #ffcc33 40%, #4a4d55 40%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.dark { color: #b97800; }
.stars.dark .half { background: linear-gradient(90deg, #b97800 40%, #cfd3da 40%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) {
  .icon-wrap, .app-icon { width: 116px; height: 116px; }
  .icon-wrap { margin-bottom: 34px; }
  .bloom { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .floor { width: 180px; margin-left: -90px; bottom: -26px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero { padding-top: 96px; }
}

/* Intro: CSS only, so it never waits for a CDN. html.intro is set only when motion is allowed. */
html.intro .app-icon { animation: icon-in .6s cubic-bezier(.2, .7, .1, 1) both; }
html.intro .hero h1 .line, html.intro .sub, html.intro .cta, html.intro .proof { animation: rise .5s cubic-bezier(.2, .7, .1, 1) both; }
html.intro .hero h1 .line:nth-child(1) { animation-delay: .1s; }
html.intro .hero h1 .line:nth-child(2) { animation-delay: .15s; }
html.intro .sub { animation-delay: .2s; }
html.intro .cta { animation-delay: .25s; }
html.intro .proof { animation-delay: .3s; }
@keyframes icon-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement { position: relative; padding: 120px 0; }
.statement-in { display: grid; place-items: center; padding: 0 var(--gutter); }
html.motion .statement { height: 220vh; padding: 0; }
html.motion .statement-in { position: sticky; top: 0; height: 100vh; height: 100svh; }
.statement-text { margin: 0; max-width: 21em; text-align: center; text-wrap: balance; font: 600 clamp(26px, 3.4vw, 46px)/1.28 var(--sys); letter-spacing: -.02em; color: var(--ink-d); }
.statement-text .w { display: inline; will-change: opacity; }

/* ---------- Story ---------- */
.story { position: relative; padding: 120px 0 80px; background: var(--black); }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.h2-dark, .new h2, .rev-head h2, .get h2 { margin: 0; font: 700 clamp(34px, 4.6vw, 60px)/1.05 var(--sys); letter-spacing: -.025em; }
.story .wrap > .kicker, .story .wrap > .h2-dark { text-align: center; }
/* .pills is a direct child of .story, so sticky holds through all four steps. */
.pills { display: flex; justify-content: center; gap: 6px; margin: 34px auto 0; padding: 5px; width: max-content; max-width: calc(100% - 2 * var(--gutter)); border-radius: 999px; background: var(--card-d); box-shadow: inset 0 0 0 1px var(--edge-d); position: sticky; top: 76px; z-index: 5; transition: opacity .3s ease, transform .3s ease; }
.pills.off { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.pills a { padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--grey-d); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.pills a.on { background: #fff; color: #000; }

.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; margin-top: 24px; }
.story-end { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; pointer-events: none; }
.steps { position: relative; }
.step { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; transition: opacity .5s ease; }
html.js .step { opacity: .45; }
.step { scroll-margin-top: 140px; }
html.js .step.on { opacity: 1; }
.step-n { font-size: 14px; font-weight: 600; color: var(--grey-d); letter-spacing: .02em; }
.step h3 { margin: 10px 0 14px; font: 700 clamp(28px, 3vw, 40px)/1.1 var(--sys); letter-spacing: -.02em; max-width: 13em; text-wrap: balance; }
.step p { margin: 0; max-width: 26em; font-size: 18px; line-height: 1.55; color: var(--grey-d); }
.m-stage { display: none; }

.stage { position: relative; }
.stage-in { position: sticky; top: max(132px, calc(50vh - 300px)); height: min(640px, calc(100vh - 140px)); display: grid; place-items: center; }
/* Short laptop screens (e.g. 1366x625): the pinned phone shrinks to fit under the pills (review r2 S-C). */
.stage .device { width: min(290px, calc((100vh - 125px) * .46)); }
.device { position: relative; width: 290px; padding: 10px; border-radius: 50px; background: #0b0b0d; box-shadow: inset 0 0 0 1px #2a2d33, 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03); }
.device .screen { position: relative; border-radius: 40px; overflow: hidden; background: #000; aspect-ratio: 720 / 1559; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage .screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.stage .screen img.on { opacity: 1; }

.frag { position: absolute; z-index: 3; margin: 0; width: 290px; padding: 8px; border-radius: 16px; background: var(--card-d); box-shadow: inset 0 0 0 1px var(--edge-d), 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate3d(var(--dx, 0), 20px, 0) rotate(var(--r, 0deg)) scale(.97); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .1, 1); pointer-events: none; }
.frag.on { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
.frag img { width: 100%; border-radius: 10px; }
.frag figcaption { padding: 8px 4px 2px; font-size: 13px; color: var(--grey-d); }
.stage .fa { left: -6%; top: 16%; --r: -3deg; --dx: -16px; }
.stage .fb { right: -6%; bottom: 14%; --r: 2.5deg; --dx: 16px; }
.stage .f-2.fa { left: auto; right: -7%; top: 30%; width: 320px; --r: 2deg; --dx: 16px; }
.stage .f-1.fa { width: 300px; top: 12%; }
.stage .f-3.fb { width: 330px; }
.stage .f-0.fa { top: 30%; }
@media (max-width: 1240px) { .stage .fb { right: 0; } .stage .fa { left: -2%; } .stage .f-2.fa { left: auto; right: 0; } }

/* Phone layout, and the no-JS fallback at any width: stacked steps, each with its own phone. */
@media (max-width: 1023px) {
  .story { padding: 96px 0 40px; }
  .story-grid { display: block; }
  .stage { display: none; }
  .pills { top: 70px; }
  html.js .step, .step { min-height: 0; opacity: 1; padding: 56px 0 24px; }
  .m-stage { display: block; position: relative; width: min(280px, 72vw); margin: 32px auto 0; padding-bottom: 36px; }
  .m-stage .device { width: 100%; border-radius: 44px; padding: 9px; }
  .m-stage .device .screen { border-radius: 36px; }
  .m-frag { position: absolute; width: 86%; right: -22%; bottom: 0; opacity: 1; transform: rotate(2.5deg); }
  .step:nth-child(even) .m-frag { right: auto; left: -22%; transform: rotate(-2.5deg); }
}
@media (max-width: 420px) { .m-frag { right: -10%; width: 84%; } .step:nth-child(even) .m-frag { left: -10%; } }
@media (min-width: 1024px) {
  html:not(.js) .story-grid { display: block; }
  html:not(.js) .stage { display: none; }
  html:not(.js) .step { min-height: 0; padding: 56px 0 24px; align-items: center; text-align: center; }
  html:not(.js) .step h3, html:not(.js) .step p { margin-left: auto; margin-right: auto; }
  html:not(.js) .m-stage { display: block; position: relative; width: min(280px, 72vw); margin: 32px auto 0; padding-bottom: 36px; }
  html:not(.js) .m-frag { position: absolute; width: 86%; right: -22%; bottom: 0; opacity: 1; transform: rotate(2.5deg); }
}

/* ---------- New in 2.0 (pale) ---------- */
.new { background: var(--pale); color: var(--ink); padding: 120px 0 96px; overflow: hidden; border-radius: 36px 36px 0 0; position: relative; z-index: 2; }
.new-head { text-align: center; }
.new-head p { margin: 14px auto 0; max-width: 30em; font-size: 19px; color: var(--grey); }
.tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; margin-bottom: 18px; }
.tile svg { width: 22px; height: 22px; }
.t-blue { background: var(--accent); } .t-pink { background: #ff375f; } .t-indigo { background: #5856d6; } .t-teal { background: #0a9fb5; } .t-amber { background: #f5a700; }
.band { position: relative; height: 620px; margin: 24px 0 40px; perspective: 1700px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%); }
.band-row { position: absolute; left: 50%; top: 70px; display: flex; gap: 34px; transform-origin: 50% 40%; transform: translateX(-50%) rotateX(8deg) rotateZ(-4deg); }
.band .device { width: 250px; flex: none; box-shadow: inset 0 0 0 1px #2a2d33, 0 40px 80px rgba(20, 30, 50, .28); }
.band .device:nth-child(2) { margin-top: 60px; } .band .device:nth-child(3) { margin-top: 20px; } .band .device:nth-child(4) { margin-top: 80px; }
.feats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.feats li { display: flex; flex-direction: column; }
.feats li .tile { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; }
.feats li .tile svg { width: 20px; height: 20px; }
.feats b { font-size: 18px; letter-spacing: -.01em; }
.feats span:last-child { margin-top: 6px; font-size: 16px; color: var(--grey); line-height: 1.5; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 720px) {
  .new { padding: 88px 0 72px; border-radius: 26px 26px 0 0; }
  .band { height: 400px; margin: 10px 0 24px; }
  .band-row { gap: 16px; top: 30px; }
  .band .device { width: 150px; border-radius: 30px; padding: 6px; }
  .band .device .screen { border-radius: 24px; }
  .band .device:nth-child(2) { margin-top: 36px; } .band .device:nth-child(3) { margin-top: 12px; } .band .device:nth-child(4) { margin-top: 48px; }
}

/* ---------- Numbers (static row by default; a pinned swap with motion) ---------- */
.numbers { position: relative; background: var(--black); padding: 120px 0; }
.numbers-in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.num-stack { width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.num { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big { font: 700 clamp(44px, 7vw, 96px)/1 var(--sys); letter-spacing: -.045em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #ffffff 30%, #8d929c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lbl { margin-top: 10px; font-size: clamp(17px, 1.8vw, 24px); color: var(--grey-d); }
.num-src { margin: 26px 0 0; font-size: 13px; color: #8a909b; }
.num-markers { display: none; }
@media (max-width: 720px) { .num-stack { grid-template-columns: 1fr; gap: 40px; } }
html.motion .numbers { height: 300vh; padding: 0; }
html.motion .numbers-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.motion .num-stack { position: relative; display: block; height: clamp(150px, 22vw, 260px); max-width: none; }
html.motion .num { position: absolute; inset: 0; opacity: 0; transform: translate3d(0, 34%, 0); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .1, 1); }
html.motion .num.on { opacity: 1; transform: none; }
html.motion .num.past { opacity: 0; transform: translate3d(0, -34%, 0); }
html.motion .big { font-size: clamp(72px, 13vw, 176px); }
@media (max-width: 720px) { html.motion .numbers { height: 240vh; } html.motion .numbers-in { justify-content: flex-start; padding-top: 28svh; } }
html.motion .num-markers { display: grid; position: absolute; inset: 0; pointer-events: none; grid-template-rows: repeat(3, 1fr); }

/* ---------- Reviews (pale) ---------- */
.reviews { position: relative; background: var(--pale); color: var(--ink); padding: 150px 0 40px; border-radius: 36px 36px 0 0; }
.peek { position: absolute; left: 50%; top: -70px; width: 140px; height: 140px; margin-left: -70px; border-radius: 22.5%; overflow: hidden; box-shadow: 0 0 0 6px var(--pale), 0 30px 60px rgba(0, 40, 140, .25); }
.peek img { width: 100%; height: 100%; }
.rev-head { text-align: center; margin-bottom: 44px; }
.rev-head p { margin: 14px 0 0; color: var(--grey); font-size: 16px; }
.rev-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px; }
.rev { flex: 0 1 calc((100% - 36px) / 3); min-width: 280px; margin: 0; padding: 24px 24px 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(17, 19, 24, .04); }
.rev .stars { font-size: 15px; }
.rev b { display: block; margin: 10px 0 8px; font-size: 17px; letter-spacing: -.01em; }
.rev blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: #33373f; }
.rev[lang="ar"] b, .rev[lang="ar"] blockquote { font-family: var(--ar); font-size: 18px; line-height: 1.7; }
.rev figcaption { margin-top: 14px; font-size: 13px; color: var(--grey); }

/* ---------- Get ---------- */
.get { background: var(--pale); color: var(--ink); padding: 80px 0 120px; }
.get-head { text-align: center; }
.get-head .app-icon.sm { width: 84px; height: 84px; margin: 0 auto 22px; box-shadow: 0 20px 40px rgba(0, 40, 140, .22); }
.get-head p { margin: 12px 0 0; color: var(--grey); font-size: 18px; }
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 44px auto 0; }
.get-card { background: #fff; border-radius: 24px; padding: 34px 30px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.get-card .dev { width: 52px; height: 52px; color: var(--ink); }
.get-card h3 { margin: 16px 0 4px; font-size: 22px; letter-spacing: -.015em; }
.get-card p { margin: 0 0 22px; color: var(--grey); }
@media (max-width: 720px) { .get-grid { grid-template-columns: 1fr; } .reviews { padding-top: 120px; border-radius: 26px 26px 0 0; } .peek { width: 112px; height: 112px; margin-left: -56px; top: -56px; } }
.new + .get { padding-top: 24px; }

/* ---------- Contact (pale) ---------- */
.page { padding: 136px 0 104px; }
.page-head { text-align: center; max-width: 760px; margin: 0 auto; }
.page-head h1 { margin: 0; font: 700 clamp(38px, 5.4vw, 64px)/1.04 var(--sys); letter-spacing: -.03em; }
.page-head .lead { margin: 16px auto 0; font-size: clamp(17px, 1.7vw, 20px); color: var(--grey); max-width: 34em; }
.c-card { max-width: 760px; margin: 44px auto 0; background: #fff; border-radius: 28px; padding: 44px 40px; }
.c-block { text-align: center; }
.c-block + .c-block { margin-top: 36px; padding-top: 36px; border-top: 1px solid #e7ebef; }
.c-block h2 { margin: 0; font-size: 24px; letter-spacing: -.015em; }
.c-block p { margin: 10px auto 22px; max-width: 32em; color: var(--grey); }
.c-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.c-meta { max-width: 760px; margin: 22px auto 0; display: grid; gap: 12px; }
.c-meta .time { text-align: center; margin: 4px 0 6px; color: var(--grey); font-size: 15px; }
.note { background: #fff; border-radius: 18px; padding: 18px 22px; font-size: 15px; line-height: 1.6; color: #33373f; }
.note b, .note strong { color: var(--ink); }
@media (max-width: 720px) { .page { padding: 112px 0 80px; } .c-card { padding: 32px 22px; border-radius: 22px; } .c-row .pill { width: 100%; } }

/* ---------- Legal reading layout (pale) ---------- */
.legal-head { max-width: 860px; }
.legal-head h1 { margin: 0; font: 700 clamp(38px, 5.4vw, 64px)/1.04 var(--sys); letter-spacing: -.03em; }
.updated { display: inline-block; margin-top: 18px; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 14px; color: var(--grey); }
.legal-note { margin-top: 26px; max-width: 760px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc-title { margin: 0 0 10px 14px; font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: .02em; }
.toc ol { list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 18px; }
.toc a { display: block; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: #3b404a; text-decoration: none; }
.toc a:hover { color: var(--ink); background: #f5f7fa; }
.toc a.on { background: #e0edff; color: var(--link); font-weight: 600; }
.toc-m { display: none; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: #262a31; }
.prose section + section { margin-top: 8px; }
.prose h2 { margin: 48px 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 88px; }
.prose section:first-child h2 { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li > ul { margin: 6px 0 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
@media (max-width: 1023px) {
  .legal-grid { display: block; margin-top: 34px; }
  .toc { display: none; }
  .toc-m { display: block; margin: 0 0 34px; background: #fff; border-radius: 18px; }
  .toc-m summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .toc-m[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
  .toc-m ol { list-style: none; margin: 0; padding: 0 8px 10px; }
  .toc-m a { display: block; padding: 11px 12px; border-radius: 10px; color: #3b404a; text-decoration: none; font-size: 15px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: 40px; }
}

/* ---------- For organizations: dark hero and data band, pale sections ---------- */
button.pill { border: 0; cursor: pointer; }
.o-hero { position: relative; overflow: hidden; isolation: isolate; padding: 176px 0 128px; text-align: center; }
.o-hero .cone { height: 150%; }
.o-hero .kicker { margin-bottom: 18px; }
.o-hero h1 { margin: 0 auto; max-width: 13em; font: 700 clamp(38px, 5.8vw, 76px)/1.04 var(--sys); letter-spacing: -.03em; text-wrap: balance; }
.o-hero .cta { margin-top: 32px; }
.o-pale { position: relative; background: var(--pale); color: var(--ink); padding: 112px 0 40px; border-radius: 36px 36px 0 0; }
.o-pale + .o-pale { border-radius: 0; padding-top: 72px; }
.o-pale.o-last { padding-bottom: 120px; }
.o-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.o-head h2 { margin: 0; font: 700 clamp(32px, 4.4vw, 54px)/1.06 var(--sys); letter-spacing: -.025em; }
.o-head p { margin: 14px auto 0; max-width: 34em; font-size: 18px; color: var(--grey); }
.o-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.o-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 30px 28px 26px; }
.o-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.o-card p { margin: 0; color: var(--grey); }
.o-list { margin: 12px 0 0; padding-left: 20px; color: #33373f; }
.o-list li { margin: 4px 0; }
.o-meta { margin-top: auto !important; padding-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink) !important; }
.o-data { background: var(--black); padding: 120px 0; text-align: center; }
.o-data .num-stack { margin: 52px auto 0; }
.o-cover { margin: 52px auto 0; max-width: 30em; font: 600 clamp(20px, 2.2vw, 28px)/1.4 var(--sys); letter-spacing: -.012em; color: var(--ink-d); text-wrap: balance; }
.o-daily { margin: 14px auto 0; max-width: 34em; font-size: 18px; color: var(--grey-d); }
.o-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.o-fit ul { list-style: none; margin: 6px 0 0; padding: 0; }
.o-fit li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid #e7ebef; }
.o-fit li:first-child { border-top: 0; }
.o-fit li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.o-yes li svg { color: #1d7f45; }   /* 5.1:1 on white (non-text, ≥ 3:1) */
.o-no li svg { color: #6b7280; }    /* 4.8:1 on white */
.o-apps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.o-price { margin: 18px 0 0 !important; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.o-price b { font: 700 clamp(40px, 4.4vw, 54px)/1 var(--sys); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.o-price b.o-quoted { font-size: clamp(32px, 3.4vw, 42px); }
.o-from, .o-unit { font-size: 16px; font-weight: 600; color: var(--grey); }
.o-note { margin: 24px auto 0; text-align: center; font-size: 17px; color: var(--grey); }
.o-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.o-steps li { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 24px 22px; }
.o-n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.o-steps b { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.o-steps li > span:last-child { margin-top: 6px; font-size: 16px; color: var(--grey); }
.o-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.o-q { background: #fff; border-radius: 18px; padding: 22px 24px; }
.o-q h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.o-q p { margin: 0; color: var(--grey); }
.o-form { max-width: 860px; margin: 0 auto; padding: 40px; border-radius: 28px; background: #fff; }
.o-form > * + * { margin-top: 30px; }
.o-form fieldset { min-width: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; border: 0; }
.o-hero h1 .nw { white-space: nowrap; }
.o-form legend { margin-bottom: 14px; padding: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.o-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.o-wide { grid-column: 1 / -1; }
.o-field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 600; }
.o-field small { font-size: 14px; font-weight: 400; color: var(--grey); }
.o-field input, .o-field select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #767d8a; border-radius: 12px; background-color: #fff; color: var(--ink); font: 400 16px/1.2 var(--sys); }
.o-field select { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23586070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.o-field input::placeholder { color: var(--grey); opacity: 1; }
.o-field input:focus-visible, .o-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.o-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.o-check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid #767d8a; border-radius: 12px; font-size: 16px; cursor: pointer; }
.o-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--link); }
.o-check:has(input:checked) { border-color: var(--link); background: #eef5ff; }
.o-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.o-send { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.o-alt { margin: 0; font-size: 15px; color: var(--grey); }
.o-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); text-underline-offset: 2px; }
.o-status { margin: 0; padding: 14px 16px; border-radius: 12px; background: #eef5ff; font-size: 15px; color: var(--ink); }
.o-status:empty { display: none; }
.o-clinical { max-width: 40em; margin: 32px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--grey); }
@media (max-width: 1023px) { .o-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .o-cards, .o-fit { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .o-hero { padding: 132px 0 96px; }
  .o-hero .cta { max-width: none; flex-direction: row; }
  .o-pale { padding-top: 88px; border-radius: 26px 26px 0 0; }
  .o-pale + .o-pale { padding-top: 56px; }
  .o-data { padding: 96px 0; }
  .o-steps, .o-grid, .o-checks { grid-template-columns: 1fr; }
  .o-wide { grid-column: auto; }
  .o-form { padding: 26px 18px; border-radius: 22px; }
  .o-send .pill { width: 100%; }
}

/* ---------- Footer ---------- */
.foot { background: var(--black); color: var(--grey-d); padding: 64px 0 96px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #1c1e23; }
.foot-links { display: flex; gap: 0 22px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #d4d7dd; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.disclaimer { margin: 28px 0 0; max-width: 78em; font-size: 13px; line-height: 1.7; color: #9aa0ab; }
.copy { margin: 18px 0 0; font-size: 13px; color: #8a909b; }

/* ---------- Reduced motion (belt and braces: html.motion is never set then) ---------- */
@media (prefers-reduced-motion: reduce) {
  .bloom { animation: none !important; }
  .frag, .num, .stage .screen img, .step, .pills, .pills a, .pill, .nav { transition: none !important; }
}

/* ---------- Print (legal pages above all) ---------- */
@media print {
  .nav, .foot, .toc, .toc-m, .cta, .pills { display: none !important; }
  body, body.pale-page { background: #fff; color: #000; }
  .page { padding: 0; }
  .prose { max-width: none; color: #000; font-size: 11pt; }
  .prose a { color: #000; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .updated, .note { background: none; padding: 0; }
  .legal-grid { display: block; margin-top: 16px; }
}

/* 320 px phones: the step pills and the nav fit (review r2 S-D). */
@media (max-width: 360px) {
  .pills a { padding: 11px 12px; font-size: 14px; }
  .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
