/* Shatrat — the apps' palette on the web, with dark "night" bands for the hero,
 * the closing call to action and page headers, and light sections between.
 * No scripts and no inline styles (the CSP forbids both): every effect here is
 * plain CSS, and every motion switches off under prefers-reduced-motion.
 *
 * Caching: this file is published as styles.<hash>.css (immutable) and the
 * first fetch of each new version clears the site's HTTP cache
 * (Clear-Site-Data), so pages cached under an older stylesheet go away. */
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* light sections */
  --brand: #075b5b;
  --brand-deep: #043e3e;
  --brand-soft: #e4efee;
  --mint: #19c979;
  --canvas: #f6f5ef;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --ink: #142120;
  --ink-soft: #55605e;
  --line: #e2e3dd;
  /* night bands — always dark, in both colour schemes */
  --night: #061312;
  --night-2: #0b1f1d;
  --night-ink: #eaf3f0;
  --night-soft: #9fb3ae;
  --night-line: rgba(234, 243, 240, .12);
  --night-glass: rgba(255, 255, 255, .06);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fd1c9;
    --brand-deep: #9be3dd;
    --brand-soft: #16302f;
    --canvas: #0c1716;
    --surface: #111f1e;
    --glass: rgba(17, 31, 30, .75);
    --ink: #e8eeec;
    --ink-soft: #a8b4b1;
    --line: #22302e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.75 'Plex Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--mint); color: #04201a; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* The fading end of a headline ("…without the effort"), as on the reference. */
.fade {
  --fade-a: var(--ink);
  --fade-b: color-mix(in srgb, var(--ink) 28%, transparent);
  --fade-dir: to right;
  background-image: linear-gradient(var(--fade-dir), var(--fade-a) 15%, var(--fade-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[dir='rtl'] .fade { --fade-dir: to left; }
.dark .fade { --fade-a: var(--night-ink); --fade-b: rgba(234, 243, 240, .28); }

/* ------------------------------------------------------------ night bands */
.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--night-ink); }
.dark .lead, .dark p { color: var(--night-soft); }
.dark a:not(.store):not(.btn) { color: var(--night-ink); }
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glow.g1 { width: 520px; height: 520px; inset-inline-end: -120px; top: -160px; background: radial-gradient(circle, rgba(25, 201, 121, .30), rgba(25, 201, 121, .08) 40%, transparent 70%); }
.glow.g2 { width: 640px; height: 640px; inset-inline-start: -220px; bottom: -320px; background: radial-gradient(circle, rgba(7, 120, 116, .45), rgba(7, 120, 116, .12) 40%, transparent 70%); }
.dark::after { /* a faint grain of light at the top edge */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(255, 255, 255, .07), transparent 70%);
}

/* ------------------------------------------------------------------ header */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 21px; color: var(--night-ink); text-decoration: none; }
.mark { width: 26px; height: 26px; fill: var(--mint); flex: none; }
.pill, .lang {
  background: rgba(6, 19, 18, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.top .brand { padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(6, 19, 18, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--night-line); }
.pill { display: flex; gap: 2px; padding: 5px; }
.pill a, .lang { color: var(--night-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 16px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.pill a:hover, .lang:hover { color: var(--night-ink); }
.pill a[aria-current='page'] { background: rgba(255, 255, 255, .1); color: var(--night-ink); }
.lang { color: var(--night-ink); }

/* -------------------------------------------------------------------- hero */
.hero { padding: 130px 0 70px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.08fr .92fr; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--night-ink); background: var(--night-glass); border: 1px solid var(--night-line);
}
.badge .mark { width: 16px; height: 16px; }
.hero h1 { color: var(--night-ink); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: #04201a;
  background: linear-gradient(135deg, #2fe08f, var(--mint) 45%, #10a96a);
  box-shadow: 0 10px 30px rgba(25, 201, 121, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.store.soon { color: var(--night-ink); background: var(--night-glass); border: 1px solid var(--night-line); box-shadow: none; font-weight: 600; }
.ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--night-line); }
.dark .ghost { color: var(--night-ink); }
.ghost:hover { background: var(--night-glass); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 15px; color: var(--night-soft); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .ico { width: 18px; height: 18px; color: var(--mint); }
.hero-art { margin: 0; position: relative; }
.hero-art::before { /* a soft halo under the picture */
  content: ''; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(25, 201, 121, .30), rgba(25, 201, 121, .06) 60%, transparent);
}
.hero-art img { border-radius: 32px; border: 1px solid var(--night-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }

/* ------------------------------------------------------------- sections */
.block { padding: clamp(56px, 8vw, 96px) 0 0; }
.block.narrow { max-width: 860px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head .lead { margin-inline: auto; }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.grid { list-style: none; display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 30px rgba(6, 19, 18, .05);
}
.card p { color: var(--ink-soft); margin: 0; }
.step img { border-radius: 16px; background: var(--brand-soft); margin-bottom: 16px; width: 100%; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.feature .ico.big { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ prices */
.plans { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(6, 19, 18, .06);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-head h3 { margin: 0; }
.tag { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: #04201a; background: var(--mint); }
.amount { margin: 18px 0 0; line-height: 1; color: var(--ink); }
.num-amt { font-size: clamp(40px, 5vw, 52px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cur { font-size: 18px; font-weight: 600; color: var(--ink-soft); }
.per { color: var(--ink-soft); font-size: 15px; margin: 6px 0 20px; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.included { list-style: none; display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.included li { display: flex; gap: 10px; align-items: flex-start; }
.included .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--mint); }

/* The featured plan is a small night card inside the light section. */
.plan.featured {
  color: var(--night-ink);
  border: 1px solid transparent;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(25, 201, 121, .22), transparent 70%) padding-box,
    linear-gradient(var(--night-2), var(--night)) padding-box,
    linear-gradient(140deg, rgba(25, 201, 121, .9), rgba(7, 120, 116, .4) 40%, rgba(255, 255, 255, .08) 70%) border-box;
  box-shadow: 0 24px 60px rgba(6, 19, 18, .35), 0 0 0 1px rgba(25, 201, 121, .08);
  transform: translateY(-8px);
}
.plan.featured .amount { color: var(--night-ink); }
.plan.featured .cur, .plan.featured .per { color: var(--night-soft); }
.plan.featured .included { border-color: var(--night-line); color: var(--night-ink); }
.glow-btn {
  color: #04201a; border: 0;
  background: linear-gradient(135deg, #2fe08f, var(--mint) 45%, #10a96a);
  box-shadow: 0 10px 30px rgba(25, 201, 121, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.prices .section-head .lead { font-size: 16px; }

/* --------------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2355605e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(180deg); }
.qa p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------- call to action */
.cta { margin-top: clamp(64px, 9vw, 110px); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.cta-inner { max-width: 720px; }
.cta h2 { color: var(--night-ink); font-size: clamp(30px, 4.6vw, 52px); }
.cta .lead { margin-inline: auto; }
.cta .stores { justify-content: center; margin-top: 26px; }

/* ----------------------------------------------------------- work + docs */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel h2 { font-size: 24px; }
.panel .included { border: 0; padding-top: 0; margin-top: 6px; font-size: 16px; }
.numbered { padding-inline-start: 1.3em; }
.numbered li { margin-bottom: .6em; }
.numbered li::marker { color: var(--brand); font-weight: 700; }

.page-head { padding: 140px 0 56px; }
.page-head .wrap { max-width: 780px; }
.page-head h1 { color: var(--night-ink); font-size: clamp(30px, 4.6vw, 48px); margin: 0; }
.doc { padding: 48px 0 72px; max-width: 780px; }
.doc section { margin-top: 30px; }
.doc h2 { font-size: 22px; }
.doc ul { padding-inline-start: 1.2em; }
.doc li { margin-bottom: .5em; }
.pull { font-size: 19px; font-weight: 600; border-inline-start: 4px solid var(--mint); padding: 8px 18px; background: var(--surface); border-radius: 10px; }
.meta { margin-top: 40px; color: var(--ink-soft); font-size: 15px; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--night); color: var(--night-soft); padding: 34px 0; font-size: 15px; border-top: 1px solid var(--night-line); }
.cta + .foot { border-top: 0; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot a { color: var(--night-soft); text-decoration: none; }
.foot a:hover { color: var(--night-ink); }
.foot .brand { color: var(--night-ink); }
.foot p { grid-column: 1 / -1; margin: 6px 0 0; }

/* -------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .card, .plan { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
  .card:hover, .plan:not(.featured):hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(6, 19, 18, .1); }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-art { animation: rise 1s .15s var(--ease) both; }
  /* Sections lift in as they scroll into view — no script, where supported. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- narrow */
@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
}
@media (max-width: 820px) {
  .hero { padding-top: 150px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .grid.three { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  /* The bar wraps into two rows: brand + language, then the menu pill. */
  .top { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .pill { order: 3; width: 100%; justify-content: space-between; }
  .pill a { padding: 7px 10px; font-size: 14px; flex: 1; text-align: center; }
  .grid.four { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { order: -1; }
  .page-head { padding-top: 150px; }
  .actions .ghost { flex: 1 1 100%; justify-content: center; }
}
