/* The sale page: the program's identity (dark green, copper, white; Amiri
   and Noto Naskh Arabic, served by this site), the phone first. */
@font-face { font-family: Amiri; src: url("fonts/Amiri-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Amiri; src: url("fonts/Amiri-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Naskh; src: url("fonts/NotoNaskhArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Naskh; src: url("fonts/NotoNaskhArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --green: #0E4A43;
  --green-dark: #082E2A;
  --copper: #B87333;
  --copper-dark: #9A5A2C;
  --gold: #F2C79A;
  --ink: #12302C;
  --soft: #5A6B68;
  --white: #FFFFFF;
  --tint: #EEF5F3;
  --line: #D6E2DF;
  --whatsapp: #0F7A40;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Naskh, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img, video { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: Amiri, Naskh, serif; font-weight: 700; line-height: 1.3; margin: 0; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }

/* ---- header ---- */
.hero {
  background: var(--green);
  background: linear-gradient(180deg, #11564E 0%, var(--green) 55%, var(--green-dark) 100%);
  color: var(--white);
  padding: 0 16px 30px;
  border-bottom: 6px solid var(--copper);
}
.top {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand img { border-radius: 8px; }
.lang {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 16px;
}
.lang:hover { background: rgba(255,255,255,.12); }
.hero-body { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 6px; }
.hero-logo { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero h1 { font-size: 30px; }
.tagline { font-size: 16px; margin: 8px auto 18px; color: #EAF3F1; max-width: 640px; }
.trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 18px; max-width: 640px; padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.1); color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.5;
}
.trust svg { width: 22px; height: 22px; fill: var(--gold); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trial { margin: 12px 0 0; color: var(--gold); font-weight: 700; font-size: 15px; text-align: center; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.btn.primary { background: var(--copper-dark); color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn.primary:hover { background: #87501f; }
.btn.ghost { color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.whatsapp { background: var(--whatsapp); color: var(--white); width: 100%; font-size: 18px; min-height: 58px; margin-top: 18px; }
.btn.whatsapp:hover { background: #0b5f32; }
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---- sections: white, very light green, white... ---- */
.part { padding: 44px 16px; }
.part.tint { background: var(--tint); }
.part.dark { background: var(--green); color: var(--white); }
.part.dark.deep { background: var(--green-dark); border-top: 6px solid var(--copper); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.part h2 { font-size: 27px; color: var(--green); text-align: center; margin-bottom: 22px; }
.part.dark h2 { color: var(--white); }
.note { color: var(--soft); font-size: 14px; text-align: center; margin: 12px 0 0; }
.center { text-align: center; }
.lead { font-size: 18px; margin: 0; color: #EAF3F1; }

.video-frame { position: relative; max-width: 900px; margin: 0 auto; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(8,46,42,.25); }
/* The frame keeps the video's shape from the cover to the end (it shrank
   to a strip at play in a browser that had no size for it yet). */
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; cursor: pointer; }
.video-frame video.upright { aspect-ratio: 9 / 16; }
.play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--white); background: var(--copper-dark); color: var(--white);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.play:hover { background: #87501f; }
.play svg { width: 40px; height: 40px; fill: currentColor; margin-inline-start: 4px; }
[dir="rtl"] .play svg { transform: scaleX(1); }

.pitches { list-style: none; margin: 22px auto 0; padding: 0; max-width: 900px; display: grid; gap: 10px; }
.pitches li {
  background: var(--tint); border-inline-start: 5px solid var(--copper); border-radius: 12px;
  padding: 10px 16px; font-weight: 700; color: var(--green); font-size: 16.5px; line-height: 1.6;
}
.intro { max-width: 820px; margin: 0 auto 22px; text-align: center; font-size: 17px; color: #2B4541; }
.links-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.link-groups { display: grid; gap: 14px; }
.link-group { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.link-group h3 { font-size: 18px; color: var(--copper-dark); margin-bottom: 6px; }
.link-group ul { margin: 0; padding-inline-start: 20px; }
.link-group li { margin: 3px 0; color: var(--green); font-weight: 700; }
.links-shot { margin: 0; }
.pitch-band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 16px; }
.pitch-band .pitch { margin: 6px 0; font-family: Amiri, Naskh, serif; font-weight: 700; font-size: 22px; color: var(--green); line-height: 1.5; }
.buy-line { margin: 16px 0 4px; padding: 12px 14px; border-radius: 12px; background: #FBF4EC; color: var(--ink); font-weight: 700; text-align: center; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.card .ic { width: 48px; height: 48px; border-radius: 12px; background: #E1EEEA; display: grid; place-items: center; flex: none; }
.card .ic svg { width: 26px; height: 26px; fill: var(--green); }
.card h3 { font-size: 19px; color: var(--green); }
.card p { margin: 0; color: #2B4541; font-size: 15.5px; line-height: 1.6; }

.screens { display: grid; grid-template-columns: 1fr; gap: 18px; }
.shot { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.shot img { border-radius: 10px; margin: 0 auto; }
.shot.doc { grid-column: 1 / -1; }
.shot.doc img { max-height: 760px; width: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 22px rgba(8,46,42,.18); }
.shot.phone img { max-height: 520px; width: auto; border: 6px solid #111716; border-radius: 26px; }
.shot figcaption { text-align: center; font-size: 15px; color: var(--soft); margin-top: 10px; }
/* On a phone, the phone's screens first. */
.shot.phone { order: -1; }

.band-icon { width: 46px; height: 46px; fill: var(--gold); margin: 0 auto 8px; display: block; }

.downloads { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 820px; margin: 0 auto; }
.dl {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green);
  background: var(--white); border-radius: 18px; padding: 16px 18px; min-height: 80px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.dl:hover { background: #F4F9F7; }
.dl .os { width: 32px; height: 32px; fill: var(--green); flex: none; }
.dl .arrow { width: 30px; height: 30px; fill: var(--white); background: var(--copper-dark); border-radius: 50%; padding: 5px; flex: none; margin-inline-start: auto; }
.dl-text b { display: block; font-size: 17px; line-height: 1.4; }
.dl-text small { display: block; color: var(--soft); font-size: 14px; }
.part.dark .sheet { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--gold); }
.part.dark .trial { font-size: 16px; }

.price-card { max-width: 640px; margin: 0 auto; background: var(--white); border: 2px solid var(--copper); border-radius: 20px; padding: 22px 20px 20px; }
.price-rows { margin: 0 0 8px; }
.price-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-rows dt { color: var(--soft); }
.price-rows dd { margin: 0; font-weight: 700; text-align: end; }
.price-rows .price { font-size: 22px; color: var(--copper-dark); }
.price-card h3 { font-size: 19px; color: var(--green); margin: 16px 0 6px; }
.steps { margin: 0 0 14px; padding-inline-start: 22px; }
.steps li { margin: 6px 0; }
.shop { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.shop-name { margin: 4px 0; font-weight: 700; font-size: 18px; }
.shop-line { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.shop-line svg { width: 20px; height: 20px; fill: var(--copper-dark); flex: none; margin-top: 4px; }
.shop-line a { font-weight: 700; }
.btn.map { margin-top: 8px; min-height: 44px; font-size: 16px; color: var(--green); border: 2px solid var(--green); }
.btn.map:hover { background: var(--tint); }
.wa-number { text-align: center; font-weight: 700; margin: 10px 0 0; }
.wa-number bdi { font-size: 19px; letter-spacing: .5px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--green); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--copper-dark); }
.faq details[open] summary::before { content: "−"; }
.faq p { margin: 0 0 14px; }

.foot { text-align: center; color: var(--soft); font-size: 14px; padding: 26px 16px 32px; border-top: 1px solid var(--line); }
.foot p { margin: 2px 0; }
.foot .dev { color: var(--green); font-weight: 700; }

/* What the owner still has to fill in (site/config.json): visible in the
   preview only, never published as is. */
.todo { background: #FFF3C4; color: #7A4B00; outline: 2px dashed #C98A00; border-radius: 6px; padding: 0 6px; }

/* ---- wider screens ---- */
@media (min-width: 700px) {
  .hero { padding-bottom: 52px; }
  .hero-logo { width: 112px; height: 112px; border-radius: 24px; margin-bottom: 14px; }
  .hero h1 { font-size: 46px; }
  .tagline { font-size: 20px; margin: 12px auto 22px; }
  .part { padding: 56px 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr 1fr; align-items: start; }
  .shot.wide { grid-column: 1 / -1; }
  .shot.phone { order: 0; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card { padding: 16px; }
  .links-layout { grid-template-columns: 2fr 3fr; }
}
