/* Oravia website — «سماء ديالى» (2026-10-30)
   Calm sky design. Day = sunrise over Diyala's orchards, night = moonlight on the river.
   The theme lives on <html data-theme="day|night"> (chosen before paint in <head>, toggled by
   oravia.js). RTL throughout: logical properties, physical ones only where geometry needs them.
   Font: IBM Plex Sans Arabic (OFL), subset woff2 in /assets/fonts. */

@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ───────────────────────────────────────────── tokens: sunrise (day) */
:root {
  color-scheme: light;
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --bg: #f3f9fe;
  --bg-2: #e8f3fc;
  --surface: #ffffff;
  --surface-2: #f5faff;
  --line: #d9e9f5;
  --line-2: #c4dcee;
  --ink: #0c2a45;
  --text: #29465f;
  --muted: #5b7790;
  --brand: #0a7fd0;
  --brand-2: #38bdf8;
  --brand-soft: #e1f1fc;
  --brand-shadow: rgba(10, 127, 208, 0.45);
  --accent: #e9822a;
  --accent-soft: #fff0e0;
  --ok: #0e9a6f;
  --ok-soft: #dff5ec;
  --wa: #1fa855;
  --wa-soft: #e2f6ea;

  --grad: linear-gradient(135deg, #3cc0f5 0%, #0a8ad8 52%, #0b67bd 100%);
  --hl: linear-gradient(260deg, #0a69c0 0%, #128bdb 50%, #27b2f0 100%);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --nav-bg: rgba(243, 249, 254, 0.8);
  --halo: rgba(255, 196, 120, 0.42);
  --cta-bg: linear-gradient(100deg, #fff3e3 0%, #e4f3fd 100%);
  --page-top: #d4ecfb;
  --foot-bg: #eaf4fc;
  --store-bg: #0c2a45;
  --store-ink: #ffffff;

  --shadow-sm: 0 1px 2px rgba(12, 42, 69, 0.05), 0 6px 18px -12px rgba(12, 60, 110, 0.2);
  --shadow: 0 1px 2px rgba(12, 42, 69, 0.05), 0 14px 34px -16px rgba(12, 60, 110, 0.28);
  --shadow-lg: 0 34px 70px -30px rgba(10, 60, 110, 0.42);

  /* the scene (hero + final) */
  --sc-far: #a4c9e6;
  --sc-mid: #83b1d5;
  --sc-palm: #4c80a9;
  --sc-tree: #5189ae;
  --sc-fruit: #ff9a2f;
  --sc-bank: #3e7198;
  --sc-near: #1d4a71;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  --nav-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 24px;
}

/* ───────────────────────────────────────────── tokens: moonlight (night) */
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #061326;
  --bg-2: #091b34;
  --surface: #0c203d;
  --surface-2: #0f2748;
  --line: rgba(150, 195, 245, 0.13);
  --line-2: rgba(150, 195, 245, 0.22);
  --ink: #eef5ff;
  --text: #c7d7ec;
  --muted: #8ea7c6;
  --brand: #72c6ff;
  --brand-2: #a9dcff;
  --brand-soft: rgba(114, 198, 255, 0.12);
  --brand-shadow: rgba(80, 170, 255, 0.35);
  --accent: #ffd27a;
  --accent-soft: rgba(255, 210, 122, 0.12);
  --ok: #5fd6a8;
  --ok-soft: rgba(95, 214, 168, 0.13);
  --wa: #3ccf78;
  --wa-soft: rgba(60, 207, 120, 0.13);

  --grad: linear-gradient(135deg, #c3e6ff 0%, #7cc8ff 50%, #4aa3ea 100%);
  --hl: linear-gradient(260deg, #f2f7ff 0%, #b8deff 55%, #86c6ff 100%);
  --glass: rgba(10, 30, 58, 0.55);
  --glass-strong: rgba(12, 32, 61, 0.86);
  --nav-bg: rgba(6, 19, 38, 0.74);
  --halo: rgba(150, 195, 255, 0.22);
  --cta-bg: linear-gradient(100deg, rgba(255, 210, 122, 0.09) 0%, rgba(114, 198, 255, 0.09) 100%);
  --page-top: #0b2246;
  --foot-bg: #040e1d;
  --store-bg: #eef5ff;
  --store-ink: #061326;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -14px rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 34px 80px -30px rgba(0, 0, 0, 0.8);

  --sc-far: #17335b;
  --sc-mid: #112a4c;
  --sc-palm: #0c203e;
  --sc-tree: #0e2443;
  --sc-fruit: #b3722c;
  --sc-bank: #0a1a33;
  --sc-near: #040e20;
}

/* ───────────────────────────────────────────── base */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.85 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--brand-soft); color: var(--ink); }

/* a theme switch cross-fades the page (the class lives only for the switch) */
html.theme-anim body,
html.theme-anim .nav,
html.theme-anim .sec,
html.theme-anim .feat,
html.theme-anim .pstep,
html.theme-anim .q,
html.theme-anim .foot,
html.theme-anim .chatcard,
html.theme-anim .legal-section,
html.theme-anim .ccard,
html.theme-anim .form { transition: background-color 0.9s var(--ease), color 0.9s var(--ease), border-color 0.9s var(--ease); }

/* reveal on scroll (only when JS runs; oravia.js or the 2.5 s safety net shows them) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .rv.is-in,
.rv-done .rv { opacity: 1; transform: none; }

/* ───────────────────────────────────────────── buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px var(--brand-shadow); }
[data-theme="night"] .btn--primary { color: #04203a; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px var(--brand-shadow); }
.btn--ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.94rem; }

/* ───────────────────────────────────────────── nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.is-stuck {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 50, 90, 0.5);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; flex: none; }
.brand__mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(10, 127, 208, 0.25)); }
.brand__ar { font-size: 1.24rem; line-height: 1; }
.brand__latin { font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; line-height: 1; padding-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav__links a:not(.btn) { padding: 8px 13px; border-radius: 999px; font-weight: 500; font-size: 0.98rem; color: var(--text); transition: color 0.25s, background-color 0.25s; }
.nav__links a:not(.btn):hover,
.nav__links a.is-active { color: var(--brand); background: var(--brand-soft); }
.nav__menu-cta { display: none; }
.nav__end { display: flex; align-items: center; gap: 8px; margin-inline-start: 10px; }
.theme, .nav__burger {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.theme:hover, .nav__burger:hover { border-color: var(--brand); color: var(--brand); }
.theme .ic, .nav__burger .ic { width: 20px; height: 20px; }
.theme .ic-sun { display: none; color: var(--accent); }
[data-theme="night"] .theme .ic-sun { display: block; }
[data-theme="night"] .theme .ic-moon { display: none; }
.theme:active { transform: rotate(-30deg) scale(0.92); }
.nav__burger { display: none; }

@media (max-width: 980px) {
  .nav__burger { display: grid; }
  .nav__cta { display: none; }
  .nav__end { margin-inline-start: auto; }
  .nav__links {
    position: absolute; inset: calc(var(--nav-h) - 6px) 12px auto; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .nav__links a:not(.btn) { padding: 12px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav__menu-cta { display: inline-flex; margin-top: 8px; }
}

/* ───────────────────────────────────────────── hero + the Diyala sky */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 880px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 30px) 0 max(276px, 19vw);
}
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sky::before,
.sky::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity 1.4s var(--ease); }
.sky::before { background: linear-gradient(180deg, #5cb0e8 0%, #8acbf2 26%, #bde3f8 46%, #e3f2fb 58%, #fbe7cf 68%, #ffd9ab 77%, #f9cf9f 100%); }
.sky::after { background: linear-gradient(180deg, #030a19 0%, #061631 30%, #0b2347 52%, #15355f 68%, #1f4878 78%, #183a66 100%); opacity: 0; }
[data-theme="night"] .sky::before { opacity: 0; }
[data-theme="night"] .sky::after { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun, .moon, .glint, .water, .fglow { transition: opacity 1.4s var(--ease); }
.moon, .glint--night, .water--night, .fglow--night { opacity: 0; }
[data-theme="night"] .sun,
[data-theme="night"] .glint--day,
[data-theme="night"] .water--day,
[data-theme="night"] .fglow--day { opacity: 0; }
[data-theme="night"] .moon,
[data-theme="night"] .glint--night,
[data-theme="night"] .water--night,
[data-theme="night"] .fglow--night { opacity: 1; }
.sun { animation: sunrise 4.5s var(--ease) both; }
.sun__disc { fill: #fff6e2; }
.moon__disc { fill: #f2eee0; }
.moon__craters { fill: #d9d2bf; opacity: 0.55; }
.hill, .bank, .near, .grove .p, .grove .t { transition: fill 1.4s var(--ease), color 1.4s var(--ease); }
.hill--far { fill: var(--sc-far); }
.hill--mid { fill: var(--sc-mid); }
.bank { fill: var(--sc-bank); }
.grove .p { fill: var(--sc-palm); }
.grove .t { fill: var(--sc-tree); color: var(--sc-fruit); }
.near { fill: var(--sc-near); }
.glint--day { fill: #fff3dc; }
.glint--night { fill: #e3ecff; }
.glint .g1 { animation: shimmer 3.4s ease-in-out infinite alternate; }
.glint .g2 { animation: shimmer 3.4s ease-in-out -1.7s infinite alternate; }

.sky__stars {
  position: absolute; inset: 0 0 30% 0; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(2.2px 2.2px at 6% 12%, #fff, transparent), radial-gradient(1.6px 1.6px at 14% 34%, #fff, transparent),
    radial-gradient(2.4px 2.4px at 21% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 27% 46%, #fff, transparent),
    radial-gradient(2.0px 2.0px at 33% 22%, #fff, transparent), radial-gradient(1.6px 1.6px at 39% 6%, #fff, transparent),
    radial-gradient(1.9px 1.9px at 45% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 52% 15%, #fff, transparent),
    radial-gradient(2.3px 2.3px at 58% 30%, #fff, transparent), radial-gradient(1.6px 1.6px at 63% 4%, #fff, transparent),
    radial-gradient(1.9px 1.9px at 69% 42%, #fff, transparent), radial-gradient(1.5px 1.5px at 74% 18%, #fff, transparent),
    radial-gradient(2.4px 2.4px at 81% 9%, #fff, transparent), radial-gradient(1.6px 1.6px at 86% 36%, #fff, transparent),
    radial-gradient(2.0px 2.0px at 92% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 97% 44%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 10% 56%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 58%, #fff, transparent);
}
.sky__stars--b {
  background-image:
    radial-gradient(1.6px 1.6px at 3% 28%, #fff, transparent), radial-gradient(2.0px 2.0px at 11% 4%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 18% 20%, #fff, transparent), radial-gradient(2.2px 2.2px at 24% 30%, #dbe8ff, transparent),
    radial-gradient(1.5px 1.5px at 30% 12%, #fff, transparent), radial-gradient(1.8px 1.8px at 36% 52%, #fff, transparent),
    radial-gradient(2.2px 2.2px at 42% 16%, #fff, transparent), radial-gradient(1.5px 1.5px at 48% 26%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 55% 6%, #fff, transparent), radial-gradient(1.5px 1.5px at 61% 48%, #fff, transparent),
    radial-gradient(2.0px 2.0px at 66% 24%, #fff, transparent), radial-gradient(1.6px 1.6px at 72% 6%, #dbe8ff, transparent),
    radial-gradient(1.5px 1.5px at 78% 32%, #fff, transparent), radial-gradient(2.2px 2.2px at 84% 22%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 90% 4%, #fff, transparent), radial-gradient(1.8px 1.8px at 95% 30%, #fff, transparent);
}
[data-theme="night"] .sky__stars { opacity: 0.85; }
[data-theme="night"] .sky__stars--b { animation: twinkle 4.8s ease-in-out infinite alternate; }

.sky__clouds { position: absolute; inset: 0 0 45% 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.sky__clouds i {
  position: absolute; left: 0; display: block; width: 360px; height: 110px; will-change: transform;
  background:
    radial-gradient(70px 36px at 26% 62%, rgba(255, 255, 255, 0.85), transparent 72%),
    radial-gradient(96px 50px at 50% 46%, rgba(255, 255, 255, 0.92), transparent 72%),
    radial-gradient(80px 40px at 74% 60%, rgba(255, 255, 255, 0.8), transparent 72%),
    radial-gradient(150px 26px at 50% 78%, rgba(255, 255, 255, 0.6), transparent 72%);
  animation: drift 150s linear infinite;
}
.sky__clouds i:nth-child(1) { top: 14%; animation-delay: -40s; }
.sky__clouds i:nth-child(2) { top: 30%; width: 250px; height: 78px; animation-duration: 190s; animation-delay: -120s; opacity: 0.8; }
.sky__clouds i:nth-child(3) { top: 6%; animation-duration: 230s; animation-delay: -10s; opacity: 0.65; }
[data-theme="night"] .sky__clouds { opacity: 0.08; }

.sky__cap {
  position: absolute; inset-inline-start: var(--gut); bottom: 22px; z-index: 1;
  display: flex; font-size: 0.8rem; font-weight: 500; color: var(--muted);
}
.sky__cap span { display: inline-flex; align-items: center; gap: 6px; }
.sky__cap .ic { width: 14px; height: 14px; }
.cap-night { display: none !important; }
[data-theme="night"] .cap-day { display: none !important; }
[data-theme="night"] .cap-night { display: inline-flex !important; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 590px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 0.92rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 4.3vw, 3.55rem); line-height: 1.2; letter-spacing: 0; }
.hero h1 .hl { display: block; }
.hl { background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.grad { background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; max-width: 32em; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.92rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.facts .ic { color: var(--brand); width: 17px; height: 17px; }

.hero__devices { position: relative; height: clamp(470px, 44vw, 600px); }
.phone {
  --w: 280px; width: var(--w); padding: 9px; border-radius: 42px; background: #0a1322;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone__screen { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 9 / 16; background: #0a1322; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone--front { position: absolute; left: 30%; top: 6%; --w: clamp(220px, 19vw, 272px); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone--back { position: absolute; left: 2%; top: 16%; --w: clamp(196px, 16.5vw, 236px); animation: float-back 8s ease-in-out infinite; }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 0.84rem; line-height: 1.4;
}
.float b { display: block; color: var(--ink); font-size: 0.96rem; font-weight: 700; }
.float small { color: var(--muted); }
.float__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.float__ico--warm { background: var(--accent-soft); color: var(--accent); }
.float--a { right: -4%; top: 24%; animation: float 6s ease-in-out -2s infinite; }
.float--b { left: 6%; bottom: 3%; animation: float 6.5s ease-in-out -4s infinite; }

/* ───────────────────────────────────────────── sections */
.sec { position: relative; padding: clamp(76px, 10vw, 128px) 0; }
.sec__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 0.88rem;
}
.eyebrow .ic { width: 16px; height: 16px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(14, 154, 111, 0.5); animation: pulse 2.2s infinite; }
.h2 { margin-top: 16px; font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.28; text-wrap: balance; }
.lead { margin-top: 14px; font-size: clamp(1.03rem, 1.3vw, 1.15rem); color: var(--muted); }

/* simulators */
.sims__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.sim {
  position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 28px; background: #0b1a2e; box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.sim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 36, 0) 34%, rgba(4, 18, 36, 0.55) 60%, rgba(4, 18, 36, 0.93) 100%); }
.sim__body { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(20px, 2.4vw, 28px); color: #e8f2ff; }
.sim h3 { color: #fff; font-size: 1.5rem; }
.sim p { margin-top: 8px; font-size: 0.98rem; line-height: 1.75; color: rgba(232, 242, 255, 0.86); }
.sim .lnk { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: #a6dcff; }
a.sim:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.sim:hover img { transform: scale(1.04); }
.badge {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0c2a45; font-size: 0.84rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #13a874; animation: pulse 2.2s infinite; }
.badge--soon i { background: #f0a23a; animation: none; }
.sims__note { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--muted); font-size: 0.98rem; }
.sims__note .ic { color: var(--brand); width: 20px; height: 20px; }

/* pharmacy */
.pharm { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.pharm__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.psteps { display: grid; gap: 10px; }
.pstep {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  width: 100%; padding: 16px 20px; border-radius: 20px; border: 1px solid transparent; background: transparent;
  text-align: start; cursor: pointer; transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.pstep:hover { background: var(--glass); }
.pstep__n {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 1.05rem; transition: background 0.4s, color 0.4s;
}
.pstep b { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.pstep .d { display: block; grid-column: 2; color: var(--muted); font-size: 0.96rem; line-height: 1.75; }
.pstep.is-on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.pstep.is-on .pstep__n { background: var(--grad); color: #fff; }
[data-theme="night"] .pstep.is-on .pstep__n { color: #04203a; }
.pstep__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: right; opacity: 0; }
.pstep.is-on .pstep__bar { opacity: 1; animation: fillbar 5.2s linear forwards; }
.psteps.is-paused .pstep.is-on .pstep__bar { animation-play-state: paused; }
.pharm__device { position: relative; display: grid; justify-items: center; }
.pharm__device::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: min(520px, 110%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -54%); background: radial-gradient(circle, var(--halo) 0%, transparent 68%);
}
.phone--lg { --w: clamp(250px, 24vw, 304px); }
.shots img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.shots img.is-on { opacity: 1; }
.cap { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.cap .ic { color: var(--ok); width: 16px; height: 16px; }

.pfeat, .app__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pfeat { margin-top: clamp(52px, 7vw, 84px); }
.feat {
  padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--brand-soft); color: var(--brand); }
.feat .ico .ic { width: 22px; height: 22px; }
.feat h3 { font-size: 1.12rem; font-weight: 600; }
.feat p { margin-top: 6px; color: var(--muted); font-size: 0.96rem; line-height: 1.75; }

.pcta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px;
  margin-top: 18px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--cta-bg); border: 1px solid var(--line);
}
.pcta b { display: block; font-size: 1.22rem; color: var(--ink); }
.pcta p { color: var(--muted); }
.pcta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Ora */
.ora { background: var(--bg-2); }
.ora__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.ticks .ic { margin-top: 0.42em; color: var(--ok); }
.fine { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.ora__visual { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.ora__bot { position: relative; z-index: 2; width: clamp(150px, 16vw, 214px); margin-inline-end: -34px; filter: drop-shadow(0 26px 30px rgba(10, 60, 110, 0.25)); animation: float 6s ease-in-out infinite; }
.chatcard {
  position: relative; display: grid; gap: 12px; width: min(400px, 100%); margin-bottom: 36px; padding: 26px 22px 22px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.chatcard__tag {
  position: absolute; top: -12px; inset-inline-end: 18px; padding: 2px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); font-size: 0.76rem; font-weight: 600;
}
[data-theme="day"] .chatcard__tag { color: #b25d10; }
.msg { max-width: 92%; padding: 12px 16px; border-radius: 18px; font-size: 0.97rem; line-height: 1.75; }
.msg--me { justify-self: start; background: var(--grad); color: #fff; border-end-start-radius: 6px; }
[data-theme="night"] .msg--me { color: #04203a; }
.msg--ora { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-end-end-radius: 6px; }
.cite { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.83rem; font-weight: 600; }
.cite .ic { width: 15px; height: 15px; }

/* FAQ */
.faq__list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.q { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow 0.35s, border-color 0.35s; }
.q[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.q summary::-webkit-details-marker { display: none; }
.q summary .ic { color: var(--brand); transition: transform 0.35s var(--ease); }
.q[open] summary .ic { transform: rotate(180deg); }
.q > div { padding: 0 22px 20px; color: var(--text); line-height: 1.95; }
.q a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* final: back at the river */
.final { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(80px, 10vw, 124px) 0 clamp(190px, 21vw, 290px); }
.final__sky { position: absolute; inset: 0; z-index: -1; }
.final__sky::before,
.final__sky::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity 1.4s var(--ease); }
.final__sky::before { background: linear-gradient(180deg, var(--bg) 0%, #d6edfb 40%, #eaf5fc 62%, #fde5c8 84%, #ffd6a6 100%); }
.final__sky::after { background: linear-gradient(180deg, var(--bg) 0%, #0a1e3e 45%, #13305a 75%, #1d4473 100%); opacity: 0; }
[data-theme="night"] .final__sky::before { opacity: 0; }
[data-theme="night"] .final__sky::after { opacity: 1; }
.final__sky .sky__stars { inset: 18% 0 30% 0; }
.final__scene { position: absolute; inset: auto 0 0; width: 100%; height: clamp(170px, 21vw, 300px); }
.final__mark { width: 74px; height: 74px; margin: 0 auto 18px; filter: drop-shadow(0 10px 24px rgba(10, 127, 208, 0.3)); }
.final h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.final p { margin-top: 12px; font-size: 1.12rem; color: var(--text); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px; border-radius: 18px; text-align: start;
  background: var(--store-bg); color: var(--store-ink); box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.store:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store .ic { width: 22px; height: 22px; }
.store small { display: block; font-size: 0.76rem; opacity: 0.8; line-height: 1.3; }
.store strong { display: block; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.store.is-mine { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.final__wa { margin-top: 24px; font-size: 0.98rem; color: var(--muted) !important; }
.final__wa a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }

/* footer */
.foot { background: var(--foot-bg); border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); font-size: 0.96rem; }
.foot__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.foot__about p { margin-top: 14px; max-width: 34em; line-height: 1.85; }
.foot h4 { margin-bottom: 12px; font-size: 1rem; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: var(--brand); }
.foot__bar { display: grid; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.foot .fine { margin: 0; font-size: 0.78rem; line-height: 1.8; opacity: 0.9; }

/* ───────────────────────────────────────────── inner pages */
.page { padding: calc(var(--nav-h) + 52px) 0 clamp(64px, 8vw, 100px); background: linear-gradient(180deg, var(--page-top) 0, var(--bg) 380px); }
.page--doc .wrap { max-width: 920px; }
.page__head { max-width: 760px; margin-bottom: 36px; }
.page__head h1 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.page__head .lead { color: var(--text); }
.page__meta { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.legal { display: grid; gap: 16px; }
.legal-section { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.legal h2 { margin-bottom: 10px; font-size: 1.3rem; }
.legal h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.legal p { margin: 10px 0; line-height: 1.95; }
.legal ul { display: grid; gap: 6px; margin: 10px 0; padding-inline-start: 1.4em; list-style: disc; }
.legal li::marker { color: var(--brand); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.box { margin: 6px 0; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: var(--brand-soft); border: 1px solid var(--line-2); }
.box h3 { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0; }
.steps > div { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.steps .n { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }

.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.ccards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease); }
a.ccard:hover { border-color: var(--brand); transform: translateY(-2px); }
.ccard .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ccard .ico--cyan { background: var(--wa-soft); color: var(--wa); }
.ccard b { display: block; color: var(--ink); }
.ccard .v { display: block; direction: ltr; text-align: right; font-weight: 600; color: var(--brand); }
.ccard .d { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.form { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h2 { font-size: 1.4rem; }
.form > p { margin-top: 6px; color: var(--muted); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; margin-top: 14px; }
.f label { font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font: inherit; transition: border-color 0.25s, box-shadow 0.25s;
}
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.form__note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.form__ok { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 0.94rem; }
.form__ok.is-on { display: block; }
.start__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sstep { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sstep h3 { font-size: 1.08rem; }
.sstep p { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.err404 { display: grid; justify-items: center; gap: 14px; padding: 40px 0; text-align: center; }
.err404 b { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; font-weight: 700; }

/* ───────────────────────────────────────────── motion */
@keyframes sunrise { from { transform: translateY(70px); } to { transform: none; } }
@keyframes shimmer { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.95; } }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(120vw); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-back { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(9px); } }
@keyframes fillbar { to { transform: scaleX(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 168, 116, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(19, 168, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(19, 168, 116, 0); } }
.hero.is-off *, .hero.is-off *::before, .final.is-off * { animation-play-state: paused !important; }

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

/* ───────────────────────────────────────────── responsive */
@media (max-width: 1080px) {
  .float--a { right: -8%; }
}
@media (max-width: 900px) {
  .hero { min-height: 100svh; align-items: flex-start; padding: calc(var(--nav-h) + 26px) 0 clamp(420px, 115vw, 520px); }
  .moon { transform: translateY(50px); } /* a lower moonrise keeps the disc clear of the text */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 620px; margin-inline: auto; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__cta, .facts { justify-content: center; }
  .hero__devices { display: none; }
  .sky__cap { inset-inline-start: 50%; transform: translateX(50%); bottom: 16px; }
  .pharm__grid, .ora__grid { grid-template-columns: 1fr; }
  .pharm__device { order: -1; }
  .pstep:not(.is-on) .d { display: none; }
  .pfeat, .app__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact, .start__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .ora__visual { justify-content: center; }
  .sims__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 340px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 14px;
  }
  .sims__grid::-webkit-scrollbar { display: none; }
  .sim { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts li { font-size: 0.84rem; padding: 5px 11px 5px 9px; }
  .pfeat, .app__grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .pcta { padding: 22px; }
  .pcta__btns, .pcta__btns .btn { width: 100%; }
  .ora__visual { flex-direction: column; align-items: center; }
  .ora__bot { width: 124px; margin: 0 0 -26px; }
  .chatcard { width: 100%; margin-bottom: 0; }
  .phone--lg { --w: min(64vw, 250px); }
  .brand__latin { display: none; }
  .store { flex: 1 1 100%; justify-content: center; }
}
