
/* ==========================================================================
   Kevro Apps: one stylesheet for every page. Colours are tokens on :root,
   redefined for dark under prefers-color-scheme. Plain CSS, no build step.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #F6F8FC;
  --card: #ffffff;
  --header-bg: rgba(246, 248, 252, 0.78);
  --navy: #0A2540;
  --navy-2: #123456;
  --on-navy: #ffffff;

  --ink: #0A2540;
  --body: #4A5B72;
  --card-body: #52627A;
  --muted: #5E6B7F;
  --nav: #4B5A6E;
  --quote: #2C3B4E;
  --chip: #3C4B5F;
  --accent: #1A5FE0;
  --accent-btn: #1A5FE0;
  --teal: #17B3A6;
  --teal-ink: #0B6F66;
  --star: #F5A623;

  --surface: #EDF2FA;
  --surface-2: #F1F5FB;
  --tint-blue: #EEF3FB;
  --tint-blue-2: #E6EFFF;
  --tint-blue-3: #EAF0F7;
  --tint-blue-4: #F1F5FB;
  --tint-teal: #EAF6F4;

  --border: #E1E8F2;
  --border-2: #E6ECF4;
  --border-chip: #E4EAF3;
  --border-btn: #D3DCE8;
  --field-border: #7B8CA5; /* form field edge: 3.4:1 on white, for WCAG 1.4.11 */
  --placeholder: #66758B;
  --dashed: #CBD6E4;
  --dashed-2: #C2CEDE;

  --foot-name: #DDE6F0;
  --foot-link: #AEBFD3;
  --foot-copy: #8DA0B8;

  --dot: #7B8CA5;
  --dot-hover: #5E7089;
  --selection: #cfe0ff;
  --glow-1: rgba(47, 107, 234, 0.20);
  --glow-2: rgba(23, 179, 166, 0.17);
  --shadow: 10, 37, 64;

  /* Light mode depth: layered shadows, a soft wash behind the hero, a lit primary button, a glowing phone.
     Dark mode keeps its own values below, unchanged. */
  --hero-wash: radial-gradient(1000px 480px at 50% -10%, rgba(47, 107, 234, 0.13), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(246, 248, 252, 0) 100%);
  --card-shadow: 0 1px 2px rgba(10, 37, 64, 0.05), 0 12px 32px -16px rgba(10, 37, 64, 0.20), 0 2px 10px -6px rgba(10, 37, 64, 0.10);
  --card-shadow-hover: 0 1px 2px rgba(10, 37, 64, 0.06), 0 22px 44px -18px rgba(26, 95, 224, 0.30), 0 4px 14px -8px rgba(10, 37, 64, 0.14);
  --btn-grad: linear-gradient(180deg, #2F6BEA 0%, #1A5FE0 100%); /* white on #2F6BEA is 4.76:1 (was #3D7BF2, 3.95:1) */
  --btn-shadow: 0 14px 28px -12px rgba(26, 95, 224, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --btn2-shadow: 0 1px 2px rgba(10, 37, 64, 0.06), 0 8px 18px -12px rgba(10, 37, 64, 0.25);
  --phone-shadow: 0 60px 100px -44px rgba(26, 95, 224, 0.55), 0 30px 50px -28px rgba(10, 37, 64, 0.45), 0 0 0 1px rgba(10, 37, 64, 0.08);
  --lift: -3px;
  --hero-dots: none; /* the faint dot grid behind the hero was removed (Captain: it looked odd) */
  --h1-grad: linear-gradient(100deg, #0A2540 0%, #0A2540 38%, #1A5FE0 100%);
  --h1-fill: transparent;
  --h1-pad: 0.06em;
  --edge-fade: linear-gradient(180deg, var(--bg) 0, transparent 110px);
  --phone-halo: radial-gradient(closest-side, rgba(47, 107, 234, 0.30), rgba(23, 179, 166, 0.10) 55%, transparent 78%);

  --maxw: 1160px;
  --pad: 32px;
}

/* Dark mode: follows the device unless the visitor chose (the header button sets data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1322;
    --card: #131E31;
    --header-bg: rgba(11, 19, 34, 0.82);
    --navy: #16294A;
    --navy-2: #1D3560;

    --ink: #EAF0F8;
    --body: #B2BFD0;
    --card-body: #A9B7C9;
    --muted: #9AA9BD;
    --nav: #B9C6D8;
    --quote: #D3DCE8;
    --chip: #C7D2E0;
    --accent: #7AA8FF;
    --accent-btn: #2F6BEA;
    --teal: #2CCBBC;
    --teal-ink: #55E0D2;

    --surface: #0F1A2D;
    --surface-2: #0D1727;
    --tint-blue: #172542;
    --tint-blue-2: #1A2D52;
    --tint-blue-3: #1B2A44;
    --tint-blue-4: #15233C;
    --tint-teal: #12302F;

    --border: #213049;
    --border-2: #25354F;
    --border-chip: #2A3B57;
    --border-btn: #3A4C69;
    --field-border: #566B8C;
    --placeholder: #93A5BF;
    --dashed: #34465F;
    --dashed-2: #3C4F6A;

    --foot-copy: #8DA0B8;
    --dot: #6C7F9C;
    --dot-hover: #93A5BF;
    --selection: #2B4A85;
    --glow-1: rgba(47, 107, 234, 0.22);
    --glow-2: rgba(44, 203, 188, 0.14);
    --shadow: 0, 0, 0;
    --hero-wash: none;
    --card-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 2px 10px -6px rgba(0, 0, 0, 0.1);
    --btn-grad: var(--accent-btn);
    --btn-shadow: 0 12px 26px -12px var(--accent-btn);
    --btn2-shadow: none;
    --phone-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --lift: 0px;
    --hero-dots: none;
    --h1-grad: none;
    --h1-fill: currentcolor;
    --h1-pad: 0;
    --edge-fade: linear-gradient(transparent, transparent);
    --phone-halo: none;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1322;
  --card: #131E31;
  --header-bg: rgba(11, 19, 34, 0.82);
  --navy: #16294A;
  --navy-2: #1D3560;

  --ink: #EAF0F8;
  --body: #B2BFD0;
  --card-body: #A9B7C9;
  --muted: #9AA9BD;
  --nav: #B9C6D8;
  --quote: #D3DCE8;
  --chip: #C7D2E0;
  --accent: #7AA8FF;
  --accent-btn: #2F6BEA;
  --teal: #2CCBBC;
  --teal-ink: #55E0D2;

  --surface: #0F1A2D;
  --surface-2: #0D1727;
  --tint-blue: #172542;
  --tint-blue-2: #1A2D52;
  --tint-blue-3: #1B2A44;
  --tint-blue-4: #15233C;
  --tint-teal: #12302F;

  --border: #213049;
  --border-2: #25354F;
  --border-chip: #2A3B57;
  --border-btn: #3A4C69;
  --field-border: #566B8C;
  --placeholder: #93A5BF;
  --dashed: #34465F;
  --dashed-2: #3C4F6A;

  --foot-copy: #8DA0B8;
  --dot: #6C7F9C;
  --dot-hover: #93A5BF;
  --selection: #2B4A85;
  --glow-1: rgba(47, 107, 234, 0.22);
  --glow-2: rgba(44, 203, 188, 0.14);
  --shadow: 0, 0, 0;
  --hero-wash: none;
  --card-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 2px 10px -6px rgba(0, 0, 0, 0.1);
  --btn-grad: var(--accent-btn);
  --btn-shadow: 0 12px 26px -12px var(--accent-btn);
  --btn2-shadow: none;
  --phone-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --lift: 0px;
  --hero-dots: none;
  --h1-grad: none;
  --h1-fill: currentcolor;
  --h1-pad: 0;
  --edge-fade: linear-gradient(transparent, transparent);
  --phone-halo: none;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Two logos, one shown: the dark ink logo on light, the light logo on dark. */
.logo-for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .logo-for-dark { display: inline; }
}
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: inline; }

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* a focused field or link is never left under the sticky header */
html { scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--selection); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  /* hide-on-scroll-down / show-on-scroll-up: JS toggles .header-hidden */
  transition: transform 0.2s ease;
  will-change: transform;
}
.site-header.header-hidden { transform: translateY(-100%); }

/* Anchor targets clear the sticky header when jumped to via nav links. Header
   height ≈ 66px on desktop; leave breathing room so the heading lands fully. */
section[id], [id="ar"], [id="en"], .panel[id] { scroll-margin-top: 86px; }

@media (prefers-reduced-motion: reduce) {
  /* No slide: header stays sticky and always visible (JS no-ops too). */
  .site-header { transition: none; }
  .site-header.header-hidden { transform: none; }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-logo { height: 34px; width: auto; }

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
}

.nav-link {
  color: var(--nav);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 2px;
}
.nav-link:hover { color: var(--ink); }
/* the page you are on */
.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 13px;
  white-space: nowrap;
  max-width: 100%;
  transition: filter 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--btn-grad);
  color: #fff;
  font-size: 16px;
  padding: 15px 26px;
  box-shadow: var(--btn-shadow);
}
.btn-accent:hover { color: #fff; filter: brightness(0.93); }

.btn-nav {
  background: var(--btn-grad);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 11px;
  box-shadow: 0 6px 18px -8px var(--accent-btn);
}
.btn-nav:hover { color: #fff; filter: brightness(0.93); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  padding: 15px 26px;
  border: 1px solid var(--border-btn);
  box-shadow: var(--btn2-shadow);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  padding: 15px 26px;
  box-shadow: 0 12px 26px -14px rgba(var(--shadow), 0.7);
}
.btn-navy:hover { color: #fff; filter: brightness(1.12); }

/* ============================ HERO ============================ */
.hero { position: relative; background: var(--hero-wash); overflow-x: clip; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-dots);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 35%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 35%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow span {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.hero-glow .glow-blue {
  top: -140px; left: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 68%);
}
.hero-glow .glow-teal {
  top: 80px; right: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 66%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(40px, 5vw, 56px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint-blue-4);
  border: 1px solid var(--border-chip);
  font-size: 13px;
  font-weight: 600;
  color: var(--nav);
  letter-spacing: 0.2px;
  margin-bottom: 26px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: var(--h1-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--h1-fill);
    padding-bottom: var(--h1-pad);
  }
}
@media (forced-colors: active) {
  .hero h1 { background: none; -webkit-text-fill-color: currentColor; }
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 34px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.trust span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust .dot { width: 5px; height: 5px; }

/* phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: var(--navy);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--phone-shadow);
}
/* The screen takes the screenshots' own shape (594 x 1254), so nothing of the app is cropped or covered. */
.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 594 / 1254;
  border-radius: 36px;
  overflow: hidden;
  background: var(--tint-blue-3);
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* hero slideshow */
.hero-figure { width: min(300px, 100%); position: relative; }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -10% -34%;
  background: var(--phone-halo);
  pointer-events: none;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.is-active { opacity: 1; }

/* caption chip: centered (H + V) inside the app's bottom cream band, i.e. the
   gap below the palette/tools. Cream band spans the lower ~16.8% of the screen,
   so its center sits 8.4% up from the bottom. */
.slide-label {
  position: absolute;
  left: 50%;
  bottom: 8.4%;
  transform: translate(-50%, 50%);
  z-index: 4;
  margin: 0;
  max-width: calc(100% - 32px);
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 14px -6px rgba(var(--shadow), 0.55);
}

/* dots sit just below the phone but out of flow, so the hero copy centers
   against the phone mockup itself rather than the phone + dots */
.hero-caption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.slide-dots {
  display: none;            /* revealed by JS; without JS, slide 1 shows statically */
  gap: 0;
}
.js-slideshow .slide-dots { display: flex; }
/* scoped to .slide-dots so the teal badge/trust dots keep their own styling */
.slide-dots .dot {
  width: 28px; height: 28px;
  padding: 9px;
  background-clip: content-box;
  border: none;
  border-radius: 50%;
  background: var(--dot);
  background-clip: content-box;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slide-dots .dot:hover { background: var(--dot-hover); }
.slide-dots .dot.is-active,
.slide-dots .dot.is-active:hover { background: var(--accent); transform: scale(1.15); }

/* premium, restrained hover lift shared across card types */
.value, .check, .quote-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.value:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 30px -14px rgba(var(--shadow), 0.18);
}
.check:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 42px -18px rgba(var(--shadow), 0.4);
}
.quote-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px -18px rgba(var(--shadow), 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .value, .check, .quote-card { transition: none; }
  .value:hover, .check:hover, .quote-card:hover { transform: none; }
}

/* ============================ FEATURED / APPS ============================ */
.apps {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.apps .wrap { padding-top: 88px; padding-bottom: 88px; }

/* Shares the spotlight's grid so both rows have one vertical edge down the
   right column (intro paragraph lines up with the first screenshot). */
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.section-head .lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.app-icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px -12px rgba(var(--shadow), 0.4);
  flex-shrink: 0;
  background: var(--navy);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-head h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.app-desc {
  font-size: 18px;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 26px;
  max-width: 440px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 15px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border-chip);
  font-size: 14px;
  font-weight: 600;
  color: var(--chip);
  white-space: nowrap;
}

.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 24px;
  max-width: 560px;
}
.app-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border-chip);
  color: var(--chip);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.app-facts-hero {
  margin: 0;
}

/* screenshots row */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border-chip);
  box-shadow: 0 20px 40px -22px rgba(var(--shadow), 0.35);
}
/* Each screen keeps its own shape (the width and height attributes in the HTML give the ratio). */
.shot img { width: 100%; height: auto; }
.shot > a { display: block; cursor: zoom-in; }
.shot > a:focus-visible { outline-offset: -4px; }
.shot figcaption {
  padding: 10px 14px 13px;
  border-top: 1px solid var(--border-chip);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--body);
  text-align: start;
}
.shot.raised { transform: translateY(14px); }
.shot.center { box-shadow: 0 24px 46px -22px rgba(var(--shadow), 0.4); }

/* Mobile/tablet: the 3-across desktop grid crushes and (in older cached CSS)
   overflowed the tall phone mockups. Below 768px, turn the row into a tidy
   horizontal swipe strip — each phone a comfortable size, snap-scrolled, with
   the next one peeking to signal there's more. Never overlaps or overflows the
   page (the strip owns its own horizontal scroll). */
@media (max-width: 768px) {
  .shots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 var(--pad);
    padding-bottom: 14px;                 /* room for the drop shadows and the scrollbar */
    scrollbar-width: thin;                /* a visible cue that there is more to swipe to */
    scrollbar-color: var(--dot) transparent;
    align-items: flex-start;
  }
  .shots > .shot {
    flex: 0 0 auto;
    width: min(72vw, 300px);
    scroll-snap-align: center;
  }
  .shots > .shot.raised { transform: none; }       /* no vertical stagger in the strip */
}

/* more apps scaffold */
.more-apps {
  margin-top: 52px;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 10px -6px rgba(var(--shadow), 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.more-apps .left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.more-apps h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.more-apps p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--card-body);
  margin: 0;
  max-width: 460px;
}
.more-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.more-link:hover { color: var(--accent); opacity: 0.7; }

/* ============================ APP DETAIL PAGE ============================ */
.app-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    var(--edge-fade),
    radial-gradient(circle at 12% 0%, var(--glow-2) 0%, transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}
.app-hero-grid {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.app-hero-copy {
  min-width: 0;
}
.app-title-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.app-icon-large {
  width: 104px;
  height: 104px;
  border-radius: 24px;
}
.app-title-lockup h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  font-weight: 850;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.app-hero-copy .page-lead {
  margin-bottom: 32px;
}
.app-hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}
.app-hero-media .shot {
  border-radius: 24px;
  background: var(--card);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-panel {
  padding: 30px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-panel:hover { transform: translateY(var(--lift)); box-shadow: var(--card-shadow-hover); }
}
.feature-panel h3 {
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.25px;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature-panel p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--card-body);
  margin: 0;
}
.product-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: start;
}
.product-split .section-sub {
  margin-bottom: 28px;
}
.section-head.compact {
  margin-bottom: 34px;
}
.app-gallery {
  max-width: 820px;
}

@media (max-width: 900px) {
  .app-hero-grid,
  .product-split {
    grid-template-columns: minmax(0, 1fr);
  }
  /* a long label (Arabic with the Google Play name inside) flows and wraps as one line of text, not as separate boxes */
  .btn { display: inline-block; white-space: normal; text-align: center; line-height: 1.4; text-wrap: balance; }
  .btn bdi { white-space: nowrap; }
  .btn svg { display: inline-block; vertical-align: -0.22em; margin-inline-end: 10px; }
  .app-hero-media {
    max-width: 520px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* a status tag or link longer than the card wraps instead of widening it */
  .panel-links .chip, .more-link { white-space: normal; }
}

@media (max-width: 560px) {
  .app-title-lockup {
    align-items: flex-start;
    gap: 16px;
  }
  .app-icon-large {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }
  .app-hero-media {
    gap: 14px;
  }
  .feature-panel {
    padding: 26px;
  }
}

/* ============================ TESTIMONIALS ============================ */
.testimonials .wrap { padding-top: 96px; padding-bottom: 24px; }
.section-intro { max-width: 620px; margin-bottom: 48px; }
.section-intro h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

/* carousel head: heading on the left, arrow controls on the right */
.testimonials .section-intro.tc-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
}
/* Side chevrons: bare arrowhead marks pinned to the carousel's outer edges,
   vertically centered against the card row. No button chrome — just the mark,
   wrapped in a generous invisible tap target. Hidden until JS marks .tc-ready
   and hidden entirely on mobile (swipe + dots take over). */
.tc-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;              /* invisible clickable area around the mark */
  border: none;
  background: none;
  color: #B4C0D0;                  /* muted grey at rest */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(-50%);
  transition: color 0.15s ease, transform 0.15s ease;
}
.tc-ready .tc-arrow { display: inline-flex; }
.tc-arrow svg { width: 28px; height: 47px; display: block; }
.tc-arrow[data-dir="-1"] { left: -10px; }
.tc-arrow[data-dir="1"]  { right: -10px; }
.tc-arrow:hover {
  color: var(--ink);              /* ink navy #0A2540 */
  transform: translateY(-50%) scale(1.12);
}
.tc-arrow:active { transform: translateY(-50%) scale(1.04); }
.tc-arrow:focus-visible { color: var(--ink); }

/* carousel: track of cards translated by JS; overflow-hidden clips the peek */
.tcarousel { position: relative; }
.tc-viewport {
  overflow: hidden;
  padding: 18px 0;            /* headroom for the card hover-lift + shadow */
  touch-action: pan-y;        /* let vertical page scroll through; we own horizontal */
}
.tc-ready .tc-viewport { cursor: grab; }
.tc-ready .tc-viewport:active { cursor: grabbing; }
.tc-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  user-select: none;
}
.tc-track .quote-card {
  flex: 0 0 var(--tc-w, 30%);
  max-width: var(--tc-w, 30%);
}
.quote-card {
  margin: 0;
  padding: 34px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.tc-dots {
  display: none;
  justify-content: center;
  gap: 0;
  margin-top: 18px;
}
.tc-ready .tc-dots { display: flex; }
.tc-dot {
  width: 28px; height: 28px;
  padding: 9px;
  background-clip: content-box;
  border: none;
  border-radius: 50%;
  background: var(--dot);
  background-clip: content-box;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tc-dot:hover { background: var(--dot-hover); }
.tc-dot.is-active,
.tc-dot.is-active:hover { background: var(--accent); transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .tc-track { transition: none; }
}
.quote-card blockquote {
  font-size: 19px;
  line-height: 1.55;
  color: var(--quote);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;   /* pin name+avatar to the bottom so all three align */
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.avatar.blue { background: var(--tint-blue-2); color: var(--accent); }
.avatar.teal { background: var(--tint-teal); color: var(--teal-ink); }
.quote-name { font-weight: 700; font-size: 15px; color: var(--ink); }

/* ============================ ABOUT ============================ */
.about .wrap { padding-top: 72px; padding-bottom: 96px; }
.about .section-intro { margin-bottom: 56px; }
.about .section-intro h2 { margin-bottom: 20px; }
.about-lead {
  font-size: 19px;
  line-height: 1.62;
  color: var(--body);
  margin: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}
.value {
  padding: 32px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px -6px rgba(var(--shadow), 0.1);
}
.value-tile {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-tile.blue { background: var(--tint-blue); }
.value-tile.teal { background: var(--tint-teal); }
.mark-square { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); }
.mark-circle { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); }
.mark-diamond { width: 16px; height: 16px; background: var(--accent); transform: rotate(45deg); }
.value h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.value p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--card-body);
  margin: 0;
}

/* ============================ PRIVACY STRIP ============================ */
.privacy {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy .wrap { padding-top: 72px; padding-bottom: 72px; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.privacy h2 {
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}
.privacy-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-width: 400px;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border-2);
  box-shadow: 0 10px 30px -18px rgba(var(--shadow), 0.35);
}
.check-badge {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, #1FBEAE 0%, #128577 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -7px rgba(18, 133, 119, 0.55);
}
.check span.label {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* ============================ CONTACT ============================ */
.contact .wrap { padding-top: 100px; padding-bottom: 100px; }
.contact-panel {
  border-radius: 28px;
  background: linear-gradient(135deg, #0A2540 0%, #123456 100%);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-panel .glow {
  position: absolute;
  top: -80px; right: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 179, 166, 0.28) 0%, rgba(23, 179, 166, 0) 70%);
}
.contact-panel .inner { position: relative; }
.contact-panel h2 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}
.contact-panel p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--foot-link);
  margin: 0 auto 30px;
  max-width: 440px;
}

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}
.footer-name { color: var(--foot-name); font-weight: 600; font-size: 15px; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer-links .copy { color: var(--foot-copy); }
.footer-links a { color: var(--foot-link); }
.footer-links a:hover { color: #fff; }

/* ============================ NARROW SCREENS ============================ */
/* Compact header up to 900px (also Arabic, whose longer labels need the room at tablet width): one row with the
   name on one side and the language and light/dark buttons on the other, then the three links as full-width
   44px targets. The store button is left to the page's own primary action. */
@media (max-width: 900px) {
  .header-row {
    display: block;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
  }
  .brand {
    display: flex;
    width: fit-content;
    max-width: calc(100% - 140px);
    min-height: 52px;
  }
  .nav {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .nav > .nav-link:not(.lang-link) {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 4px;
    text-align: center;
  }
  .nav > .btn-nav { display: none; }
  .nav > .lang-link,
  .nav > .theme-toggle {
    position: absolute;
    top: 4px;
    margin: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav > .theme-toggle { width: 44px; height: 44px; inset-inline-end: var(--pad); }
  .nav > .lang-link { inset-inline-end: calc(var(--pad) + 50px); min-width: 44px; padding: 0 8px; }
  /* a very narrow window (a phone at large text, or 400% zoom): the labels shrink a little instead of wrapping */
  @media (max-width: 360px) {
    .nav > .nav-link:not(.lang-link) { font-size: 14px; padding-inline: 2px; }
  }
  /* the header is shorter now (about 96px), so anchor targets need less offset */
  section[id], [id="ar"], [id="en"], .panel[id] { scroll-margin-top: 112px; }
  html { scroll-padding-top: 108px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .apps .wrap { padding-top: 64px; padding-bottom: 64px; }
  .testimonials .wrap { padding-top: 64px; }
  /* mobile: drop the side chevrons; swipe + dots carry navigation */
  .tc-ready .tc-arrow { display: none; }
  .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
  .contact-panel { padding: 48px 26px; }
  .more-apps { padding: 28px; }
}

/* ==========================================================================
   SUBPAGES — /about, /services, /contact, /thanks, /404
   Appended after the homepage rules. Everything below introduces a NEW class,
   so no homepage selector changes behaviour. Subpages reuse the header, nav,
   buttons, footer, and colour tokens defined above.
   ========================================================================== */

/* ---- page hero (title block at the top of every subpage) ---- */
.page-hero { position: relative; border-bottom: 1px solid var(--border); }
.page-hero .wrap {
  position: relative;
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.page-hero h1 {
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.page-lead {
  font-size: 19px;
  line-height: 1.62;
  color: var(--body);
  margin: 0;
  max-width: 620px;
}

/* centred variant used by /thanks and /404 */
.page-hero.centered { border-bottom: none; }
.page-hero.centered .wrap { text-align: center; padding-bottom: clamp(56px, 8vw, 88px); }
.page-hero.centered .page-lead { margin-left: auto; margin-right: auto; }
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.status-mark {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.status-mark.ok {
  background: linear-gradient(140deg, #1FBEAE 0%, #128577 100%);
  box-shadow: 0 14px 28px -12px rgba(18, 133, 119, 0.6);
}
.status-mark.warn {
  background: linear-gradient(140deg, #4C8FFF 0%, #1F6BFF 100%);
  box-shadow: 0 14px 28px -12px rgba(31, 107, 255, 0.6);
}

/* ---- generic subpage section ---- */
.section .wrap { padding-top: 72px; padding-bottom: 72px; }
.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.14;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 620px;
}

/* ---- body copy ---- */
.prose { max-width: 680px; }
.prose p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  margin: 0 0 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---- service tiers ---- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 28px;
  align-items: stretch;
}
.tier {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px -6px rgba(var(--shadow), 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(var(--shadow), 0.22);
}
.tier h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  color: var(--ink);
}
.tier-outcome {
  font-size: 16px;
  line-height: 1.55;
  color: var(--card-body);
  margin: 0 0 24px;
}
.tier-meta {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed var(--dashed);
}
.tier-timeline {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}
.tier-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 22px;
}
.tier-price .from {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.tier .btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .tier { transition: none; }
  .tier:hover { transform: none; }
}

/* ---- tick / cross lists (tier deliverables, what's included) ---- */
.ticks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ticks li {
  position: relative;
  padding-inline-start: 27px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--body);
}
.ticks li::before {
  content: "\2713";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
}
.ticks.crosses li::before {
  content: "\00d7";
  color: #A9B6C7;
  font-size: 18px;
  line-height: 1.25;
}
.ticks.tight { margin-bottom: 0; }

/* ---- side-by-side info panels ---- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}
.split.form-split { grid-template-columns: minmax(300px, 1.55fr) minmax(260px, 1fr); }
.panel {
  padding: 32px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.panel.plain { background: var(--surface); box-shadow: none; }
.panel h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 18px;
  color: var(--ink);
}
.panel p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--card-body);
  margin: 0 0 16px;
}
.panel p:last-child { margin-bottom: 0; }

/* highlighted strip (payment terms) */
.terms {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--tint-blue-4);
  border: 1px solid var(--border-chip);
}
.terms p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.terms strong { color: var(--ink); font-weight: 700; }

/* ---- contact form ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 14px; font-weight: 700; letter-spacing: -0.1px; color: var(--ink); }
.field > label .opt { font-weight: 500; color: var(--muted); }
.field > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--ink);
}
.field .opt { font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: 13px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  color: var(--ink);
  background: var(--card);
}
.field textarea {
  resize: vertical;
  min-height: 138px;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.14);
}
.form-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-actions .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.form-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ---- narrow screens ---- */
@media (max-width: 860px) {
  .split.form-split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section .wrap { padding-top: 56px; padding-bottom: 56px; }
  .tier, .panel { padding: 26px; }
  .terms { padding: 22px; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* Apps page: the "more from Kevro Apps" row holds two panels, not three.
   Below 900px the .feature-grid rule above already stacks them. */
@media (min-width: 901px) {
  .feature-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feature-panel .panel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

/* ==========================================================================
   SHARED ADDITIONS (4 Nov 2026): skip link, legal pages, pause control
   ========================================================================== */

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* pause button for the two auto-advancing carousels */
.motion-toggle {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--chip);
  background: var(--card);
  border: 1px solid var(--border-chip);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 14px;
  cursor: pointer;
}
.motion-toggle:hover { border-color: var(--ink); color: var(--ink); }
.motion-toggle[hidden] { display: none; }
.hero-caption { flex-direction: column; align-items: center; gap: 8px; }
.tc-controls { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.tc-controls .tc-dots { margin-top: 0; }

/* ---- legal pages: policies, delete-account, tester ---------------------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow-wrap: anywhere; }
.legal .wrap { max-width: 800px; }
.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
.legal h2 {
  margin: 40px 0 16px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.legal p, .legal li { color: var(--body); line-height: 1.65; }
.legal strong { color: var(--ink); }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { padding-inline-start: 24px; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal a.btn { text-decoration: none; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: start; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; color: var(--body); }
.legal th { background: var(--surface); color: var(--ink); }

.privacy-header { border-bottom: 3px solid var(--navy); padding-bottom: 24px; margin-bottom: 32px; }
.privacy-subtitle { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.effective-date {
  display: inline-block;
  background: var(--tint-blue);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.highlight-box, .tester-alert {
  background: var(--tint-blue);
  border-inline-start: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 8px;
}
.tester-alert { background: var(--tint-teal); border-inline-start-color: var(--teal); }
.highlight-box p, .tester-alert p { margin: 0; color: var(--ink); }
.commitment-box {
  background: var(--tint-blue);
  border: 2px solid var(--accent);
  padding: 24px;
  margin: 40px 0;
  border-radius: 14px;
  text-align: center;
}
.commitment-box h2 { border-bottom: none; margin-top: 0; padding-bottom: 0; }
.commitment-list { list-style: none; padding: 0; margin: 16px 0; font-size: 17px; }
.commitment-list li { margin: 8px 0; font-weight: 600; color: var(--ink); }
.commitment-list li::before { content: "\2713\00a0\00a0"; color: var(--accent); font-weight: 800; }
.short-summary { background: var(--surface); padding: 24px; border-radius: 14px; margin-top: 40px; border: 1px solid var(--border); }
.short-summary h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }
.step-main { background: var(--tint-blue); border: 2px solid var(--accent); border-radius: 14px; padding: 24px; margin: 24px 0; }
.step-main h3 { margin-top: 0; font-size: 20px; }
.step-minor h3, .step-minor p { color: var(--muted); }
.legal .micro { font-size: 14px; color: var(--muted); }
.lang-switch { margin: 12px 0 0; font-size: 15px; }
.tester-cta { margin: 28px 0 8px; }
.tester-more { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 13px;
}
.btn-primary:hover { color: #fff; filter: brightness(0.93); }

/* Arabic blocks inside the Qur'aan Class policy read right to left */
:lang(ar) { font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif; line-height: 1.85; }
[dir="rtl"] { text-align: start; }

/* a quieter nav on very small screens: the labelled Play button wraps under */
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
}

/* offer line, "more from" block, Arabic app name, lede */
.offer {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--tint-teal);
  color: var(--ink);
  border: 1px solid var(--border-chip);
  font-size: 15px;
  font-weight: 700;
}
.app-hero .offer { margin: 20px 0 28px; }
.more-from { margin-top: 64px; }
.more-from .eyebrow { margin-bottom: 20px; }
.more-note { margin: 24px 0 0; color: var(--body); font-size: 15px; }
.more-note a { text-decoration: underline; text-underline-offset: 2px; }
.ar-name { font-weight: 700; margin-inline-start: 6px; font-size: 0.95em; color: var(--body); }
.panel-title { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--ink); }
.lede { margin: 0 0 8px; font-size: 19px; line-height: 1.6; color: var(--body); }
.legal .lede { color: var(--body); }
label.field { cursor: text; }

/* hero label sits under the phone, not over the app's tool bar */
.hero-caption .slide-label {
  position: static;
  transform: none;
  max-width: 100%;
  box-shadow: none;
}

.hero-inner { padding-bottom: clamp(112px, 12vw, 136px); }

/* ===== Website assistant (js/chat.js). Built by the script; without JS nothing shows. ===== */
.kc-root { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-family: inherit; }
.kc-open {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent-btn); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(10, 37, 64, 0.55);
}
.kc-open:hover { filter: brightness(1.06); }
.kc-open { transition: opacity 0.18s ease, transform 0.18s ease; }
.kc-open-icon { display: none; }
/* steps aside while a page button or a field is under it (js/chat.js) */
.kc-open.kc-away:not(:focus) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .kc-open { transition: none; } }
/* a scrim behind the open box on a phone, where it is a modal dialog */
.kc-root.kc-modal::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(5, 12, 24, 0.5); }
.kc-open:focus-visible, .kc-btn:focus-visible, .kc-close:focus-visible, .kc-input:focus-visible,
.kc-field input:focus-visible, .kc-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kc-panel {
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); height: min(560px, calc(100dvh - 32px));
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border-btn); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(10, 37, 64, 0.5);
}
.kc-panel[hidden], .kc-open[hidden] { display: none; }
.kc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 12px 18px; background: var(--navy); color: var(--on-navy); }
.kc-panel[dir="rtl"] .kc-head { padding: 12px 18px 12px 14px; }
.kc-title { margin: 0; font-size: 17px; font-weight: 800; color: inherit; }
.kc-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.kc-close:hover { background: rgba(255, 255, 255, 0.14); }
.kc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.kc-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.kc-bot { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.kc-user { align-self: flex-end; background: var(--accent-btn); color: #fff; }
.kc-note { align-self: center; max-width: 100%; padding: 4px 8px; font-size: 14px; color: var(--muted); text-align: center; }
.kc-msg.kc-note { background: none; }
.kc-msg a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.kc-bar { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--card); }
.kc-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; overflow-y: hidden; padding: 10px 12px; border: 1px solid var(--border-btn); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; }
.kc-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent-btn); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.kc-btn:disabled { opacity: 0.55; cursor: default; }
p.kc-note { margin: 0; padding: 0 14px 12px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: start; background: var(--card); }
.kc-form { align-self: stretch; padding: 14px; border: 1px solid var(--border-btn); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.kc-form-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.kc-field { display: flex; flex-direction: column; gap: 4px; }
.kc-field label { font-size: 14px; font-weight: 700; color: var(--body); }
.kc-field input, .kc-field textarea { padding: 10px 12px; min-height: 44px; border: 1px solid var(--border-btn); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.kc-form-msg { margin: 0; min-height: 0; font-size: 14px; color: var(--muted); }
.kc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 480px) {
  .kc-root { right: 12px; bottom: 12px; }
  .kc-panel { width: calc(100vw - 24px); height: calc(100vh - 24px); height: calc(100dvh - 24px); }
}
/* Small screens: a 52px round launcher instead of the 190px pill, so it does not sit over the page's buttons.
   Its words stay for screen readers (visually hidden) and show as a tooltip on hover. */
@media (max-width: 560px) {
  .kc-open { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .kc-open-icon { display: block; line-height: 0; }
  .kc-open-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .kc-log { scroll-behavior: smooth; }
}

.kc-note .kc-privacy { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.kc-note .kc-privacy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.kc-title { line-height: 1.25; }

/* Light and dark button (js/theme.js adds it to the header nav). */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--field-border); border-radius: 11px;
  background: transparent; color: var(--nav); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--nav); background: var(--tint-blue-4); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { display: block; }

/* ===== App pages (islamic-coloring, quraan-class, ayah-play) and the apps overview ===== */
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--nav); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.ar-name-large { display: inline-block; margin-inline-start: 14px; font-size: 0.7em; font-weight: 700; color: var(--body); white-space: nowrap; }
.at-a-glance { align-self: start; }
.at-a-glance .panel-title { margin: 0 0 14px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; }
.app-card .app-icon { margin-bottom: 14px; }
.app-card .card-title { margin: 0 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -0.3px; color: var(--ink); }
.app-card p { flex: 1; }
.app-card .panel-links { margin-top: 18px; }
.fine { font-size: 14px; color: var(--muted); }
.apps-note { margin: 28px 0 0; text-align: center; }
.panel p a, .fine a, .faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Questions: plain details and summary, no script. */
.faq { display: grid; gap: 12px; max-width: 860px; margin-top: 20px; }
.faq details { border: 1px solid var(--border-btn); border-radius: 14px; background: var(--card); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; padding-inline-end: 28px; position: relative;
  font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--nav); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0 0 18px; color: var(--body); line-height: 1.65; }

/* Language link in the header (English and Arabic pages). */
.nav .lang-link { font-weight: 600; }
.nav .lang-link:hover { color: var(--ink); }

/* The facts under the app description: one tidy grid instead of two groups that wrap differently. */
.chips.chips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}
.chips-grid .chip {
  display: flex;
  align-items: center;
  min-height: 40px;
  white-space: normal;
  line-height: 1.3;
}
.chips-grid .chip-wide { grid-column: 1 / -1; }
.shots.shots-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; }
.shots.shots-four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }

/* ===== Review pass of 14 Nov 2026 ===== */

/* A Latin app name in a heading sits under the Arabic name, smaller, as its own left to right line. */
.app-latin {
  display: block;
  margin-top: 0.3em;
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--body);
  text-align: start;
  unicode-bidi: isolate;
}
.card-title .app-latin { font-size: 0.68em; }
.feature-panel h3 .app-latin { font-size: 0.78em; }
.app-latin bdi { line-height: inherit; }

/* Words that say a link opens an English-only page: a quiet suffix inside the link, or a short note under a button. */
.dest-note { font-weight: 500; font-size: 0.9em; opacity: 0.85; white-space: nowrap; }
.cta-stack { display: inline-flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cta-note { font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
/* the supporting line of a heading (the home hero: the availability phrase after the app name) */
.h-note { display: block; margin-top: 0.4em; font-size: 0.56em; font-weight: 600; line-height: 1.45; color: var(--body); }

/* The support form on the contact pages. */
.contact-direct { margin: 22px 0 0; font-size: 16px; color: var(--body); }
.contact-direct a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.field select { appearance: auto; min-height: 50px; }
.field .field-hint { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.form-status:empty { display: none; }
.support-form .form-note { margin-top: 14px; }
.support-form .form-note a { text-decoration: underline; text-underline-offset: 2px; }

/* The larger view of a screenshot (js/gallery.js). */
.shot-viewer {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.shot-viewer::backdrop { background: rgba(5, 12, 24, 0.86); }
.shot-viewer[open] { display: flex; align-items: center; justify-content: center; }
.shot-viewer figure { margin: 0; padding: 56px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shot-viewer img {
  width: auto;
  height: auto;
  max-width: min(100%, 520px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: 18px;
  background: var(--card);
}
.shot-viewer figcaption { max-width: 520px; text-align: center; font-size: 15px; line-height: 1.5; color: #E6EDF7; }
.shot-viewer-close {
  position: fixed;
  top: 10px;
  inset-inline-end: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.shot-viewer-close:hover { background: rgba(255, 255, 255, 0.26); }
.shot-viewer-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* A small magnifier on a screenshot that opens larger (added by js/gallery.js, so it only shows when it works). */
.shot > a { position: relative; }
.shot-zoom {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.78);
  color: #fff;
  pointer-events: none;
}
.shot > a:hover .shot-zoom { background: rgba(10, 37, 64, 0.92); }
.zoom-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Chat: three starter questions (they fill the text box, nothing is sent) and the hide-for-this-visit button. */
.kc-starters { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.kc-starter {
  min-height: 44px; padding: 10px 14px; text-align: start;
  border: 1px solid var(--field-border); border-radius: 14px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.4; cursor: pointer;
}
.kc-starter:hover { border-color: var(--accent); }
.kc-starter:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kc-hide {
  width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-top: 1px solid var(--border);
  background: var(--card); color: var(--body); font: inherit; font-size: 14px; text-align: start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.kc-hide:hover { color: var(--ink); }
/* On a phone with the keyboard up (js/chat.js sets .kc-compact when the visible height is under 480px): a tighter box so the conversation stays in view. */
.kc-compact .kc-hide { display: none; }
.kc-compact .kc-head { padding-block: 4px; }
.kc-compact .kc-title { font-size: 14px; line-height: 1.25; }
.kc-compact .kc-bar { padding: 8px 12px; }
.kc-compact p.kc-note { font-size: 12px; line-height: 1.35; padding: 0 12px 8px; }
.kc-compact .kc-log { padding: 10px; gap: 8px; }
.kc-hide:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
