/* Bayti TV — the website. The kids world's town: dusk over the white Casbah for the opening,
   the whitewashed walls for the rest, Bayti red for what you press, lantern gold for stars.
   The pointed Maghrebi arch is the one shape that repeats (docs/design/kids-redesign.md).
   El Messiri for headlines, Readex Pro for reading. */

@font-face { font-family: "El Messiri"; font-weight: 500 700; font-display: swap; src: url(/fonts/messiri-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "El Messiri"; font-weight: 500 700; font-display: swap; src: url(/fonts/messiri-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; font-weight: 300 700; font-display: swap; src: url(/fonts/readex-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-weight: 300 700; font-display: swap; src: url(/fonts/readex-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4; }
@font-face { font-family: "Readex Pro"; font-weight: 300 700; font-display: swap; src: url(/fonts/readex-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  /* The town */
  --dusk-1: #1a2f63;
  --dusk-2: #2b3e86;
  --dusk-3: #8e5a86;
  --night: #13254a;
  --wall: #f6f5f0;
  --paper: #ffffff;
  --door: #2b3e86;
  --lamp: #f6c445;
  /* Words */
  --ink: #14223a;
  --ink-2: #57647a;
  --line: #e2e1da;
  /* What you press */
  --red: #e0141e;
  --red-2: #c40f18;
  --gold: #f6c445;
  --gold-ink: #2a1d02;
  --err: #b3261e;
  /* Category families, as in the app */
  --faith: #1e9e5a;
  --learn: #2f6fd6;
  --play: #f2a93b;
  --home: #e0141e;
  --bed: #3b4c9b;
  --display: "El Messiri", "Readex Pro", Tahoma, serif;
  --sans: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --r: 16px;
  /* The arch, as a mask (100×124 grid). */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124'%3E%3Cpath d='M5 124V60C5 32 25 14 50 3c25 11 45 29 45 57v64z'/%3E%3C/svg%3E");
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 16.5px/1.7 var(--sans); overflow-x: hidden; }
html[lang="fr"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--door); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: 0; }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 19px; }
html[lang="fr"] h1, html[lang="fr"] h2 { letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 42em; margin-top: 12px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border-radius: 14px; border: 1.5px solid transparent; font: 600 16.5px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(224, 20, 30, 0.8); }
.btn.red:hover { background: var(--red-2); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn.line { color: var(--door); border-color: var(--door); background: transparent; }
.btn.line:hover { background: #e9edf8; }
.btn.big { min-height: 58px; padding: 14px 30px; font-size: 18px; border-radius: 16px; }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 15px; box-shadow: none; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(26, 47, 99, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.bar-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo img { border-radius: 9px; }
.logo b { font: 700 22px/1 var(--display); }
.logo-ar { font: 600 18px/1 var(--display); color: var(--lamp); }
.lang { margin-inline-start: auto; display: flex; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; overflow: hidden; color: #fff; }
.lang button { background: none; border: 0; color: inherit; padding: 7px 10px; font: 600 13.5px var(--sans); cursor: pointer; min-width: 38px; }
.lang button + button { border-inline-start: 1px solid rgba(255, 255, 255, 0.18); }
.lang button:hover { background: rgba(255, 255, 255, 0.1); }
.lang button[aria-pressed="true"] { background: #fff; color: #1a2f63; }
@media (max-width: 860px) { .bar .btn.small { display: none; } }

/* ── Opening: dusk over the town ──────────────────────────────────────────── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 56px 0 clamp(80px, 10vw, 128px);
  background: linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 52%, var(--dusk-3) 100%);
}
/* A few early stars. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 23% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 41% 12%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 57% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 74% 9%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 91% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 33% 64%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 86% 58%, #fff 50%, transparent 51%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.12; }
html[lang="fr"] .hero h1 { font-size: clamp(38px, 5.6vw, 66px); }
.lede { font-size: clamp(17px, 1.8vw, 19.5px); color: rgba(255, 255, 255, 0.86); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.town { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(56px, 8.5vw, 112px); display: block; }
.town .walls { fill: var(--wall); }
.town .doors { fill: var(--door); }
.town .wins { fill: var(--lamp); }

/* The TV: a thin bezel, a stand, the real screens, crossfading by age. */
.tv-stage { margin: 0; }
.tv { background: #05080f; padding: 10px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 120px -10px rgba(246, 196, 69, 0.18); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #0f1d3a; }
.tv-screen .look { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.tv-screen .look.on { opacity: 1; transform: none; }
.tv-foot { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#0a0f1c, #1b2540); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.tv-stage figcaption { margin-top: 18px; display: grid; gap: 10px; justify-items: center; }
.ages { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.ages button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.86); border-radius: 999px; padding: 8px 18px; min-height: 40px;
  font: 600 15px var(--sans); cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ages button:hover { color: #fff; }
.ages button.on { background: #fff; color: var(--dusk-1); }

/* One entrance, on load: the words, then the TV rising into place. Movement only, never
   opacity: if a browser doesn't run the animation (a paused tab, an in-app browser), the
   content is still all there. */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
.hero-copy { animation: rise 0.7s var(--ease) both; }
.tv-stage { animation: rise 0.9s 0.15s var(--ease) both; }

@media (max-width: 900px) {
  /* On a phone the TV comes right under the headline: the product first. */
  .hero { padding: 28px 0 88px; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; animation: none; }
  .hero h1 { order: 1; margin-bottom: 22px; }
  .tv-stage { order: 2; }
  .lede { order: 3; margin: 26px 0 22px; }
  .cta { order: 4; }
  .cta .btn { flex: 1 1 100%; }
}

/* ── Four reasons, one line each ──────────────────────────────────────────── */
.points { padding: 56px 0 40px; }
.pts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pts li { display: grid; gap: 6px; align-content: start; }
/* Each point under a small arch, in the kids world's family colours. */
.pts li::before {
  content: ""; width: 26px; height: 32px; margin-bottom: 6px; background: var(--c, var(--faith));
  -webkit-mask: var(--arch) center / contain no-repeat; mask: var(--arch) center / contain no-repeat;
}
.pts li:nth-child(1) { --c: var(--red); }
.pts li:nth-child(2) { --c: var(--faith); }
.pts li:nth-child(3) { --c: var(--learn); }
.pts li:nth-child(4) { --c: var(--play); }
.pts h2 { font-size: 21px; }
.pts p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .pts { grid-template-columns: 1fr 1fr; gap: 26px 20px; } }
@media (max-width: 460px) { .pts { grid-template-columns: 1fr; gap: 20px; } .pts li { grid-template-columns: 26px 1fr; column-gap: 14px; } .pts li::before { grid-row: span 2; margin: 2px 0 0; } }

/* ── The free trial: a night band, one button ─────────────────────────────── */
.tryband { padding: 40px 0; color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--dusk-1) 100%); }
.tryband-in { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.tryband img { border-radius: 16px; }
.tryband h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; }
.tryband p { color: rgba(255, 255, 255, 0.74); font-size: 15px; margin: 0; }
@media (max-width: 760px) {
  .tryband-in { grid-template-columns: auto 1fr; }
  .tryband .btn { grid-column: 1 / -1; }
  .tryband img { width: 52px; height: 52px; }
}

/* ── The trial window: the number, then the steps ─────────────────────────── */
dialog.sheet {
  border: none; border-radius: 24px; padding: 0; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); overflow: auto;
}
dialog.sheet::backdrop { background: rgba(10, 18, 40, 0.62); }
dialog.sheet[open] { animation: up 0.28s var(--ease); }
@keyframes up { from { transform: translateY(14px); } to { transform: none; } }
.sheet .x {
  position: absolute; inset-inline-end: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--wall); color: var(--ink-2); font: 400 24px/1 var(--sans); cursor: pointer;
}
.sheet .x:hover { color: var(--ink); background: #ecebe4; }
.try-ask, .try-steps { padding: 30px 24px 24px; display: grid; gap: 14px; }
.try-steps:focus { outline: none; }
.try-ask img { border-radius: 14px; }
.sheet h2 { font-size: 24px; padding-inline-end: 36px; }
.sheet .dim { color: var(--ink-2); margin: 0; font-size: 15px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.field input {
  width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--wall);
  font: 500 19px var(--sans); letter-spacing: 0.03em; color: var(--ink); transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus { outline: none; border-color: var(--door); background: #fff; box-shadow: 0 0 0 4px #e3e8f6; }
.field.bad input { border-color: var(--err); background: #fff6f5; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: var(--wall); }
.steps li img { border-radius: 12px; }
.steps b { font-size: 16.5px; }
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; }
/* Downloader | direct link */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--wall); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; color: var(--ink-2); border-radius: 10px; min-height: 42px; padding: 6px 10px;
  font: 600 14.5px var(--sans); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(19, 37, 74, 0.35); }
.apk-way { display: grid; gap: 12px; }
.apk-url { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.apk-url b { color: var(--ink); unicode-bidi: isolate; overflow-wrap: anywhere; }
.steps .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--door); color: #fff; font: 700 15px var(--sans); }
.dl-code { font: 700 22px/1 var(--sans); letter-spacing: 0.08em; color: var(--gold-ink); background: var(--gold); border-radius: 12px; padding: 13px 10px; }
.small-link { display: inline-block; margin-top: 4px; color: var(--door); font-weight: 600; font-size: 14px; }

/* ── Order ────────────────────────────────────────────────────────────────── */
.order { padding: 88px 0; }
.order-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.offer { padding-top: 6px; }
.price { margin: 18px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price b { font: 700 clamp(44px, 6vw, 64px)/1 var(--display); color: var(--ink); }
.price span { color: var(--ink-2); }
.incl { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.incl li { display: flex; gap: 12px; align-items: flex-start; }
.incl li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 50%; background: #dff1e8 center / 13px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.2 2.2L9.5 3.6' fill='none' stroke='%231e9e5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.form, .done { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px -36px rgba(19, 37, 74, 0.45); }
.form { display: grid; gap: 16px; }
.form-title { font-size: 26px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form select {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--wall);
  font: 400 16.5px var(--sans); color: var(--ink); transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2357647a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px; background-position: left 14px center; padding-inline-end: 36px; }
html[dir="ltr"] .form select { background-position: right 14px center; }
.form input:focus, .form select:focus { outline: none; border-color: var(--door); background: #fff; box-shadow: 0 0 0 4px #e3e8f6; }
.form select:disabled { opacity: 0.6; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } .form, .done { padding: 22px 18px; } }
.err { display: none; color: var(--err); font-size: 13.5px; font-weight: 500; }
label.bad .err { display: block; }
label.bad input, label.bad select { border-color: var(--err); background: #fff6f5; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.total { margin: 4px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--wall); display: grid; gap: 6px; }
.total div { display: flex; justify-content: space-between; gap: 12px; }
.total dt { color: var(--ink-2); }
.total dd { margin: 0; font-weight: 500; }
.total .sum { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.total .sum dt { color: var(--ink); font-weight: 600; }
.total .sum dd { font-weight: 700; font-size: 18px; }

.or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.bm { background: #fff; color: #173a7a; border-color: #c9d6ec; font-weight: 600; }
.btn.bm:hover { border-color: #173a7a; }
.btn.bm img { border-radius: 7px; }
.fine { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.form-msg { color: var(--err); font-weight: 500; margin: 0; min-height: 0; }
.form-msg:empty { display: none; }

.done { display: grid; gap: 14px; text-align: start; }
.done:focus { outline: none; }
.done h2 { color: var(--faith); font-size: 28px; }
.ref { font: 700 22px var(--sans); letter-spacing: 0.04em; color: var(--ink); }

@media (max-width: 900px) { .order-in { grid-template-columns: 1fr; gap: 32px; } .order { padding: 60px 0; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { padding: 24px 0 96px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); max-width: 52em; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; max-width: 46em; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.foot { background: var(--night); color: rgba(255, 255, 255, 0.75); padding: 28px 0 32px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 7px; }
.foot-logo { font: 700 20px var(--display); color: #fff; }
.foot-wa { color: var(--lamp); text-decoration: none; font-weight: 600; }
@media (max-width: 860px) { .foot { padding-bottom: 96px; } }

/* ── Sticky order button on phones ────────────────────────────────────────── */
.stick {
  position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px;
  border-radius: 16px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(19, 37, 74, 0.6);
}
@media (min-width: 861px) { .stick { display: none !important; } }

/* ── BaridiMob window ─────────────────────────────────────────────────────── */
dialog#bm { border: none; border-radius: 22px; padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
dialog#bm::backdrop { background: rgba(10, 18, 40, 0.6); }
.bm-in { padding: 26px 24px 22px; display: grid; gap: 12px; }
.bm-logo { border-radius: 16px; margin: 0 auto; }
.bm-in h2 { font-size: 24px; text-align: center; }
.bm-in > p { margin: 0; }
.rip { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #eef3fb; border: 1.5px dashed #9fb6dd; }
.rip-label { font-size: 12px; font-weight: 600; color: #173a7a; background: #fff; padding: 3px 8px; border-radius: 6px; }
.rip b { flex: 1; font: 700 18px/1.3 var(--sans); letter-spacing: 0.04em; color: #0e2550; overflow-wrap: anywhere; }
.copy { border: none; background: #173a7a; color: #fff; border-radius: 10px; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; min-height: 40px; }
.rip-name { color: var(--ink-2); }
.bm-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.bm-ref { margin: 0; }
.btn.wa { background: #1f9d55; color: #fff; }
.btn.wa:hover { background: #188a4a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Paying by card (Edahabia / CIB, through Chargily) ---------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cards { display: inline-flex; gap: 5px; vertical-align: middle; direction: ltr; }
/* The cards' own marks (Edahabia, CIB, BaridiMob), each on a small white tile. */
.cards img {
  box-sizing: content-box; height: 24px; width: auto; padding: 3px 6px; border-radius: 6px;
  background: #fff; box-shadow: 0 0 0 1px rgba(19, 37, 74, 0.12); object-fit: contain;
}
.pay-card { display: inline-flex; align-items: center; gap: 6px; }

.ways { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.way { position: relative; cursor: pointer; }
.way input { position: absolute; opacity: 0; pointer-events: none; }
.way-in {
  display: grid; gap: 6px; height: 100%; padding: 14px 14px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--wall); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.way-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.way-top b { font-size: 16px; }
.way-top em { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; }
.way small { color: var(--ink-2); font-size: 13px; line-height: 1.45; font-weight: 400; }
.way:hover .way-in { border-color: #b9c3dc; }
.way input:checked + .way-in { border-color: var(--door); background: #fff; box-shadow: 0 0 0 3px #e3e8f6; }
.way input:focus-visible + .way-in { outline: 3px solid var(--door); outline-offset: 2px; }
.tv-note { margin: -4px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef7f1; color: #17603b; font-size: 14px; }

.btn.gold { background: var(--gold); color: var(--gold-ink); gap: 10px; box-shadow: 0 10px 24px -12px rgba(201, 151, 26, 0.9); }
.btn.gold:hover { background: #f0b92c; }
.btn.gold .cards img { height: 22px; box-shadow: none; }


/* ---- /paid: after Chargily's page ------------------------------------------------------------ */
.paid { min-height: 100vh; display: grid; place-items: start center; padding: 40px 16px 64px; background: var(--wall); }
.paid-card { width: min(560px, 100%); }
.paid-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.paid-top .lang { margin-inline-start: auto; }
.paid-box { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px -36px rgba(19, 37, 74, 0.45); display: grid; gap: 14px; }
.paid-box h1 { font-size: 26px; margin: 0; }
.paid-box p { margin: 0; color: var(--ink-2); }
.paid-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.paid-mark.ok { background: #e3f4ea; color: #17603b; }
.paid-mark.wait { background: #e9edf8; color: var(--door); }
.paid-mark.bad { background: #fbe6e5; color: var(--err); }
.paid-mark.wait::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid currentColor; border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .paid-mark.wait::after { animation-duration: 3s; } }
.code-box { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: var(--night); color: #fff; }
.code-box b { flex: 1; font: 700 clamp(20px, 6vw, 28px)/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; direction: ltr; text-align: center; }
.code-box .copy { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.tv-done { padding: 12px 14px; border-radius: 12px; background: #eef7f1; color: #17603b !important; font-weight: 500; }
.paid-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; color: var(--ink-2); }
.paid-ref { font-size: 14px; }
.paid-box:focus { outline: none; }
.paid-banner {
  position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; gap: 8px; padding: 12px 16px;
  background: #17603b; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
}
.paid-banner:hover { background: #12502f; }
.paid-ref b { direction: ltr; unicode-bidi: isolate; color: var(--ink); }
.paid .lang { color: var(--ink); border-color: var(--line); }
.paid .lang button + button { border-inline-start-color: var(--line); }
.paid .lang button:hover { background: rgba(0, 0, 0, 0.05); }
.paid .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.paid-top .logo { color: var(--ink); text-decoration: none; }
.pay-card [data-t=comma] { margin-inline-start: -6px; }
.paid-steps.single { list-style: none; padding-inline-start: 0; }

/* The visitor's trial code, at the top of the download steps. */
.trial-code { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px; border-radius: 16px; background: var(--wall); border: 2px dashed var(--gold); }
.trial-code > span { font-weight: 700; }
.trial-code b { font: 700 clamp(17px, 5.4vw, 24px)/1.2 var(--sans); letter-spacing: 0.04em; white-space: nowrap; color: var(--gold-ink); background: var(--gold); border-radius: 12px; padding: 10px 14px; user-select: all; }
.trial-code button { appearance: none; border: 0; background: none; padding: 4px 8px; margin: 0; cursor: pointer; font: inherit; color: var(--door); font-weight: 600; font-size: 14px; text-decoration: underline; }
.trial-code small { color: var(--ink-2); font-size: 13.5px; }
/* BaridiMob receipt: picked and sent inside the window; "send" stays off until a file is attached. */
dialog#bm { max-height: calc(100dvh - 24px); overflow: auto; }
.bm-up { display: grid; gap: 8px; }
.bm-file { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 14px; border-radius: 14px; border: 2px dashed #9fb6dd; background: #f6f9fe; cursor: pointer; }
.bm-file:focus-within { outline: 3px solid var(--door); outline-offset: 2px; }
.bm-file.has { border-style: solid; border-color: #4f8a5b; background: #f2faf3; }
.bm-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.bm-file-t { font-weight: 700; color: #173a7a; }
.bm-file-n { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.bm-file img { max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: contain; }
#bm-err:not(:empty) { display: block; text-align: center; }
#bm-sendr:disabled { opacity: 0.45; cursor: not-allowed; }
.bm-ok { display: grid; gap: 6px; text-align: center; padding: 16px; border-radius: 14px; background: #f2faf3; border: 1.5px solid #4f8a5b; }
.bm-ok b { color: #23633a; font-size: 18px; }
.bm-ok p { margin: 0; color: var(--ink-2); }
.bm-ok:focus { outline: none; }
#done-receipt { margin-bottom: 8px; }
dialog#bm .bm-in { position: relative; }
dialog#bm .x { position: absolute; inset-inline-end: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--wall); color: var(--ink-2); font: 400 24px/1 var(--sans); cursor: pointer; }
dialog#bm .x:hover { color: var(--ink); background: #ecebe4; }
#bm-must { text-align: center; margin: 0; }

/* ---- /try: the free trial, one step at a time --------------------------------------------------- */
.try-page { background: var(--wall); }
.try-wrap { width: min(640px, 100%); margin: 0 auto; padding-inline: 16px; }
.try-top { background: var(--night); color: #fff; }
.try-bar { display: flex; align-items: center; gap: 10px; padding-block: 14px; }
.try-bar .logo { color: #fff; }
.try-bar .lang { margin-inline-start: auto; }
.try-hero h1 { font-size: clamp(25px, 6.4vw, 34px); line-height: 1.25; margin: 10px 0 12px; }
.try-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #d6deef; font-size: 15.5px; }
.try-pts li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-inline-end: 8px; }
.try-pts li.no { color: #f3c7c3; }
.try-pts li.no::before { content: "✕"; color: #ff8a80; }
.try-main { display: grid; gap: 14px; padding-block: 18px 48px; }
/* The setup video, first on /try. */
.try-video { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); }
.try-video h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.try-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.try-video p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.try-video[hidden] { display: none; }
.try-progress { position: sticky; top: 0; z-index: 5; background: var(--wall); padding-block: 8px; }
.try-progress-t { font-weight: 700; font-size: 14px; color: var(--door); margin-bottom: 6px; }
.try-bar-bg { height: 8px; border-radius: 99px; background: #e4e2d9; overflow: hidden; }
.try-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--door), #4f6fd1); border-radius: inherit; transition: width 0.35s ease; }
.try-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); scroll-margin-top: 54px; }
.try-step.current { border-color: var(--door); box-shadow: 0 18px 44px -30px rgba(19, 37, 74, 0.6); }
.try-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e9edf8; color: var(--door); font: 700 20px var(--sans); }
.try-step.current .try-num { background: var(--door); color: #fff; }
.try-body { display: grid; gap: 12px; min-width: 0; }
.try-body h2 { font-size: 20px; line-height: 1.3; margin: 0; padding-top: 9px; }
.try-body p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.try-body h3.try-sub { font-size: 17px; line-height: 1.35; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); }
.try-body form { display: grid; gap: 12px; }
/* A done step folds to its title, with a check; a tap on the title opens it again. */
.try-step.done { padding-block: 14px; opacity: 0.85; }
.try-step.done .try-num { background: #e3f4ea; color: #17603b; font-size: 0; }
.try-step.done .try-num::after { content: "✓"; font-size: 22px; }
.try-step.done h2 { cursor: pointer; padding-top: 10px; }
.try-step.done .try-body > :not(h2) { display: none; }
.try-code { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px; border-radius: 16px; background: #fff8e2; border: 2px dashed var(--gold); }
.try-code > span { font-weight: 700; }
.try-code b { font: 700 clamp(19px, 6vw, 26px)/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.05em; white-space: nowrap; color: var(--gold-ink); background: var(--gold); border-radius: 12px; padding: 10px 16px; user-select: all; }
.try-code.small { padding: 12px; }
.try-code small { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.try-copy, .try-link { appearance: none; border: 0; background: none; font: 600 15px var(--sans); color: var(--door); cursor: pointer; padding: 6px 10px; text-decoration: underline; }
.try-link { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.try-tv-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fbe6e5; color: #8a1c1c !important; font-weight: 600; }
.try-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-pick { appearance: none; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--wall); color: var(--ink); font: inherit; cursor: pointer; }
.try-pick:hover { border-color: var(--door); }
.try-pick[aria-pressed="true"] { border-color: var(--door); background: #e9edf8; }
.try-pick-i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--door); color: #fff; font-weight: 700; }
.try-pick b { font-size: 16px; }
.try-pick small { color: var(--ink-2); font-size: 13px; }
.try-media img { border-radius: 16px; }
.try-mock { display: flex; gap: 8px; padding: 14px; border-radius: 14px; background: #20242c; }
.try-mock-box { flex: 1; padding: 12px 14px; border-radius: 8px; background: #fff; color: #111; font: 700 24px ui-monospace, Menlo, monospace; letter-spacing: 0.08em; }
.try-mock-go { display: grid; place-items: center; padding: 0 18px; border-radius: 8px; background: #f57c00; color: #fff; font: 700 18px var(--sans); }
.try-url { font: 700 20px ui-monospace, Menlo, monospace; color: var(--ink) !important; text-align: center; padding: 10px; border-radius: 12px; background: var(--wall); }
.try-shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.try-help-q { border-radius: 12px; background: var(--wall); padding: 10px 14px; }
.try-help-q summary { cursor: pointer; font-weight: 700; color: var(--door); }
.try-help-q p { margin-top: 8px; }
.try-help-q .try-shot { margin-top: 10px; }
.try-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 20px; border-radius: 20px; background: #f2faf3; border: 1.5px solid #4f8a5b; }
.try-done:focus { outline: none; }
.try-done-i { font-size: 44px; }
.try-done h2 { margin: 0; font-size: 24px; }
.try-done p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.try-help { display: grid; gap: 8px; padding: 18px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.try-help p { margin: 0; color: var(--ink-2); }
.try-home { text-align: center; margin: 4px 0 0; }
.try-home a { color: var(--door); font-weight: 600; }
/* Phones: the number sits on the title's line, everything else takes the full width. */
@media (max-width: 560px) {
  .try-step { grid-template-columns: 1fr; position: relative; padding: 18px 16px; }
  .try-num { position: absolute; top: 14px; inset-inline-start: 14px; width: 38px; height: 38px; font-size: 18px; }
  .try-body h2, .try-step.done h2 { padding-top: 7px; padding-inline-start: 50px; min-height: 38px; }
}
/* /try: WhatsApp, fixed in the corner on every step. */
.wa-fab { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 20; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px -8px rgba(18, 140, 70, 0.75); transition: transform 0.15s ease; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:focus-visible { outline: 3px solid var(--door); outline-offset: 3px; }
.wa-fab[hidden] { display: none; }
/* Main page, phones: above the red order bar while it shows. */
.stick-on .wa-fab { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); }
@media (min-width: 861px) { .stick-on .wa-fab { bottom: max(18px, env(safe-area-inset-bottom)); } }
.try-page .try-main { padding-bottom: 96px; }
