/* حفّز — the marketing page.
 *
 * One system, stated once at the top and obeyed below. The previous stylesheet had grown eight corner
 * radii (2, 8, 10, 14, 22, 34, 50%, 999), five different shadows and a type ramp that jumped from 54px
 * straight to 32px and then sat on 17/16/15 doing nothing. Measured, not guessed: the page rendered at
 * 5,757px tall, which is six full screens for an argument that takes one.
 *
 * The rules this file keeps:
 *   Type    two faces. Readex Pro carries the headings, IBM Plex Sans Arabic carries the text. Five
 *           sizes in the whole page, from --t-display down to --t-xs, and nothing between them.
 *   Shape   three radii, each with a job. --r-s for controls, --r-m for cards, --r-pill for things that
 *           are actually pills. The phone in the hero is the one exception, because it is a drawing of
 *           a device rather than a card, and it says so in its own rule.
 *   Depth   one shadow, spent once, on the phone. Everything else separates with a 1px line.
 *   Ground  a warm off-white biased toward the brand's green rather than a default grey, so the
 *           neutral reads as chosen. Cards are white against it; that difference is the hierarchy.
 */

/* Palette: white dominant, a light-blue sky and a light-green action.
   --blue and --green are the darkened members of their own families so that text and controls clear
   4.5:1 on white; the pale members are grounds only and never carry type. Brass is gone from the page
   and stays where it still belongs, in the logo mark and the reward coin. */
:root {
  /* action and accent */
  --green: #14855f;
  --green-deep: #0f6a4c;
  --green-soft: #d8f1e6;
  --blue: #2181b4;
  --blue-soft: #d9edf8;
  --sky-1: #dceffa;
  --sky-2: #effaf5;

  /* ground and surfaces */
  --ground: #ffffff;
  --paper: #ffffff;
  --raised: #f6fbfa;
  --line: #e0ebe8;
  --hair: #edf4f2;

  /* text */
  --text: #0f2620;
  --muted: #566b65;
  --faint: #8ba39c;

  /* type */
  --display: Tajawal, "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font: "IBM Plex Sans Arabic", -apple-system, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --t-display: clamp(34px, 5.2vw, 62px);
  --t-h2: clamp(23px, 3vw, 31px);
  --t-lead: 17px;
  --t-body: 15px;
  --t-xs: 13px;

  /* shape and motion */
  --r-s: 8px;
  --r-m: 14px;
  --r-pill: 999px;
  --lift: 0 18px 44px -20px rgba(15, 38, 32, .22);
  --ease: cubic-bezier(.32, .72, 0, 1);

  /* kept for the phone drawing and the reward coin only */
  --ink: #0f2620;
  --brass: #c6a15b;
  --brass-deep: #8a6a2f;
  --emerald: var(--green);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  direction: rtl;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.4px; }
h1 { font-size: var(--t-display); font-weight: 700; line-height: 1.14; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.28; }
h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 20; background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.stuck { background: rgba(255, 255, 255, .92); border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--green-deep); }
.brand .wordmark { display: block; }
.nav .btn { min-height: 38px; padding: 0 18px; font-size: var(--t-xs); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--green); border-radius: var(--r-s);
  background: var(--green); color: #fff;
  font-family: var(--display); font-size: var(--t-body); font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn.brass { background: var(--green); border-color: var(--green); color: #fff; }
.btn.brass:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.text, .btn.ghost { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn.text:hover, .btn.ghost:hover { background: var(--blue-soft); }

/* ---------- hero ---------- */
/* The page opens on the product: سرب الصقور at full viewport, flying itself, in daylight. Pale blue
   sky, a mint horizon, white dominant — so the section reads as the same page as everything below it
   rather than as a black band pasted on top. */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: grid; align-items: center;
  padding: clamp(90px, 12vh, 130px) 0 clamp(72px, 12vh, 120px);
  background: var(--sky-2); color: var(--text); overflow: hidden;
}
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* A white haze behind the words only: enough to hold contrast without hiding the sky. */
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(78% 56% at 74% 46%, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(0deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 30%);
}
.hero-copy { position: relative; max-width: 640px; }
.hero h1 { color: var(--text); letter-spacing: -1.2px; line-height: 1.06; }
.hero p { margin-top: 20px; max-width: 42ch; font-size: var(--t-lead); line-height: 1.8; color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .offer { margin-top: 16px; font-size: var(--t-xs); color: var(--faint); }

/* «جرّبها على متجرك» — two questions, opened from the hero's second button. It sits on the glass the
   hero canvas is behind, so it needs its own opaque ground; a translucent panel over a moving sky is
   unreadable at the exact moment someone is typing into it. */
.tryme {
  margin-top: 18px; max-width: 460px; padding: 18px 18px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 1px 2px rgba(15, 38, 32, .05), 0 16px 40px -18px rgba(15, 38, 32, .25);
  animation: tryme-in .26s cubic-bezier(.32, .72, 0, 1);
}
@keyframes tryme-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tryme-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tryme-row label { font-size: var(--t-xs); font-weight: 600; color: var(--text); }
.tryme-row label span { font-weight: 400; color: var(--faint); }
.tryme input {
  min-height: 46px; padding: 10px 12px; font: inherit; font-size: var(--t-body);
  color: var(--text); background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--r-s);
}
.tryme input::placeholder { color: var(--faint); }
.tryme input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); background: #fff; }
.tryme-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tryme-go .btn { flex: 1 1 auto; justify-content: center; }
.tryme[aria-busy="true"] .tryme-go .btn { opacity: .55; pointer-events: none; }
.tryme-note { margin: 12px 0 0; font-size: var(--t-xs); line-height: 1.7; color: var(--faint); }
.tryme-note.is-bad { color: #b4462c; }
@media (max-width: 520px) { .tryme { max-width: none; } }
.offer-pill {
  display: inline-block; margin-bottom: 20px; white-space: nowrap;
  padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--green-soft); border: 1px solid rgba(20, 133, 95, .28); color: var(--green-deep);
  font-size: var(--t-xs); font-weight: 500;
}

/* A scoreboard, not a caption: fixed columns and tabular figures, so counting never reflows the row. */
.hero-hud {
  position: absolute; inset-block-start: 96px; inset-inline-end: max(20px, calc((100% - 1080px) / 2));
  display: grid; grid-template-columns: auto auto auto; align-items: baseline; gap: 0 10px;
  padding: 10px 16px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .82); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.hud-k { font-size: 11px; color: var(--faint); letter-spacing: .3px; }
.hud-v { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; direction: ltr; }

.hero-scroll { position: absolute; inset-block-end: 18px; inset-inline-start: 50%; translate: 50% 0; width: 26px; height: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.6); border-radius: var(--r-pill); display: grid; justify-items: center; padding-top: 8px; }
.hero-scroll span { width: 3px; height: 7px; border-radius: var(--r-pill); background: var(--blue); animation: hfz-drop 1.9s var(--ease) infinite; }
@keyframes hfz-drop { 0%, 100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; transform: translateY(9px); } }

/* The phone sits beside the goal it demonstrates rather than in the hero, where it was decoration. */
.goal-split { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; margin-top: 26px; }
.hero-shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot-phone { width: 262px; border-radius: 30px; padding: 8px; background: var(--ink); box-shadow: var(--lift); position: relative; overflow: hidden; }
.shot-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 8px; color: #cfd8d4; font-size: 11px; }
.shot-bar i { width: 22px; height: 8px; border-radius: var(--r-pill); background: #cfd8d4; opacity: .6; }
.shot-app { background: var(--paper); border-radius: 22px 22px 0 0; padding: 14px 16px 18px; }
.shot-nav { display: flex; align-items: center; justify-content: space-between; font-size: var(--t-xs); color: var(--ink); }
.shot-nav span { color: var(--faint); }
.shot-media { margin: 12px 0; display: grid; place-items: center; height: 100px; background: var(--raised); border: 1px solid var(--hair); border-radius: var(--r-s); }
.shot-media img { width: 54px; height: 54px; }
.shot-kicker { display: block; font-size: 11px; color: var(--brass-deep); }
.shot-name { display: block; margin-top: 2px; font-size: var(--t-body); color: var(--ink); }
.shot-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.shot-buy strong { font-size: var(--t-body); color: var(--ink); }
.shot-buy span { padding: 6px 14px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.shot-sheet { background: var(--paper); border-top: 1px solid var(--hair); border-radius: 0 0 22px 22px; padding: 18px 18px 20px; text-align: center; }
.shot-coin { display: block; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: var(--r-pill); background: linear-gradient(135deg, #f1dca0, #c6a15b 55%, #8a6320); }
.shot-sheet b { display: block; font-family: var(--display); font-size: var(--t-lead); color: var(--ink); }
.shot-sheet small { display: block; margin-top: 5px; font-size: var(--t-xs); line-height: 1.6; color: var(--muted); }
.shot-cta { display: block; margin-top: 14px; padding: 11px; border-radius: var(--r-s); background: var(--emerald); color: #fff; font-size: var(--t-xs); font-weight: 600; }
.shot-when { display: flex; align-items: baseline; gap: 7px; font-size: var(--t-xs); }
.shot-when small { color: var(--faint); }
.shot-when b { color: var(--emerald); font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: 56px 0; border-top: 1px solid var(--hair); background: var(--ground); }
.sec p { color: var(--muted); }
.sec .lead { margin-top: 10px; max-width: 60ch; font-size: var(--t-lead); line-height: 1.75; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.count { font-size: var(--t-xs); color: var(--faint); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- goals ---------- */
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.goal {
  display: block; text-align: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--raised); transition: border-color .15s, background .15s;
}
.goal:hover { border-color: #c6cdc9; }
.goal[aria-pressed=true] { border-color: var(--green); background: var(--green-soft); }
.goal-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--hair); color: var(--muted); }
.goal-mark svg { display: block; }
.goal[aria-pressed=true] .goal-mark { background: var(--green); border-color: var(--green); color: #fff; }
.goal b { display: block; margin-top: 12px; font-family: var(--display); font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.goal small { display: block; margin-top: 5px; font-size: var(--t-xs); line-height: 1.65; color: var(--muted); }
.goal-when { display: block; margin-top: 10px; font-size: 12px; color: var(--faint); }
.goal[aria-pressed=true] .goal-when { color: var(--green-deep); }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 26px; margin-top: 26px; counter-reset: j; }
.journey li { counter-increment: j; padding-inline-start: 38px; position: relative; }
.journey li::before {
  content: counter(j); position: absolute; inset-inline-start: 0; top: 1px;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font-family: var(--display); font-size: 12px; font-weight: 600;
}
.journey b { display: block; font-family: var(--display); font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.journey span { display: block; margin-top: 3px; font-size: var(--t-xs); line-height: 1.65; color: var(--muted); }

/* ---------- game library ---------- */
.categories { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; padding-bottom: 4px; }
.categories::-webkit-scrollbar { display: none; }
.categories button {
  flex-shrink: 0; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); color: var(--muted);
  font-size: var(--t-xs); transition: border-color .15s, color .15s;
}
.categories button:hover { border-color: #c6cdc9; color: var(--text); }
.categories button[aria-pressed=true] { border-color: var(--green); background: var(--green); color: #fff; }

.rail { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.game { flex: 0 0 62%; scroll-snap-align: start; }
.game { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); padding: 10px; position: relative; }
.game.out { display: none; }
.game .thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-s); overflow: hidden; background: var(--sky-1); }
.game .thumb svg { display: block; width: 100%; height: 100%; }
.game:hover .thumb { filter: brightness(1.08); }
.game b { display: block; margin-top: 9px; font-family: var(--display); font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.game small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.game .kind { display: none; }
.game .badge {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; font-size: var(--t-xs); font-weight: 600;
}
.game.lead .thumb { outline: 1px solid var(--blue); outline-offset: -1px; }

/* ---------- two-column lists ---------- */
.cols { display: grid; grid-template-columns: 1fr; gap: 34px; }
ul.plain { margin-top: 14px; display: grid; gap: 9px; }
ul.plain li { position: relative; padding-inline-start: 20px; font-size: var(--t-body); line-height: 1.7; color: var(--muted); }
ul.plain li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--blue); }

/* ---------- install ---------- */
ol.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-inline-start: 38px; font-size: var(--t-body); line-height: 1.7; color: var(--muted); }
ol.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--green);
  font-family: var(--display); font-size: 12px; font-weight: 600;
}
ol.steps code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; direction: ltr; unicode-bidi: embed; background: var(--raised); border: 1px solid var(--hair); border-radius: var(--r-s); padding: 1px 5px; }

/* ---------- pricing ---------- */
.price { text-align: center; max-width: 60ch; margin-inline: auto; }
.price b { display: block; margin-top: 14px; font-family: var(--display); font-size: var(--t-lead); font-weight: 600; color: var(--ink); }
.price p { margin-top: 10px; font-size: var(--t-body); line-height: 1.75; }
.price .btn { margin-top: 22px; }

/* ---------- faq ---------- */
.faq { margin-top: 22px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 15px 0 15px 34px; font-family: var(--display); font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 13px; width: 22px; text-align: center; color: var(--faint); font-weight: 400; font-size: 19px; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; max-width: 66ch; font-size: var(--t-body); line-height: 1.75; color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 26px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: var(--t-xs); color: var(--faint); }
footer a { color: var(--muted); }
footer a:hover { color: var(--green); }

/* ---------- wider than a phone ---------- */
@media (min-width: 720px) {
  .wrap { width: min(1080px, 100% - 64px); }
  .sec { padding: 76px 0; }
  .goal-split { grid-template-columns: 300px 1fr; gap: 44px; }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .game { flex-basis: calc((100% - 36px) / 4.4); }
  .journey { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  ol.steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (min-width: 480px) and (max-width: 719px) {
  .game { flex-basis: 40%; }
}
/* The scale is five sizes. These were the two that leaked past it on page furniture; 11px survives only
   inside the phone drawing, where it is a picture of small text rather than text to read. */
.goal-when, .game small, .journey span, .price p { font-size: var(--t-xs); }
