:root {
  --bg: #ffffff; --soft: #f5f5f7; --soft-2: #f5f5f7; --line: #e3e3e8;
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73;
  --tint: #0f8f68; --tint-ink: #ffffff; --tint-deep: #0a6b4e; --tint-soft: #d8efe5;
  --bad: #d63b40; --warn: #b26c0c;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .35), 0 10px 24px -14px rgba(0, 0, 0, .18);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --serif: var(--display);
  --ar: 'Amiri Quran', 'Amiri', serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --soft: #111113; --soft-2: #111113; --line: #2c2c2e;
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #86868b;
    --tint: #30d39a; --tint-ink: #032a1c; --tint-deep: #6fe3b9; --tint-soft: #173a2d;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --soft: #111113; --soft-2: #111113; --line: #2c2c2e;
  --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #86868b;
  --tint: #30d39a; --tint-ink: #032a1c; --tint-deep: #6fe3b9; --tint-soft: #173a2d;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--tint-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 10vw, 80px); }
h2 { font-size: clamp(34px, 7vw, 60px); }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--muted); max-width: 34em; font-weight: 500; letter-spacing: -.005em; }
.muted { color: var(--muted); }
/* the one word in a headline in the brand colour */
mark { background: linear-gradient(100deg, #12a37a, #1a8fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar { font-family: var(--ar); direction: rtl; font-weight: 400; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--soft); }
@media (max-width: 420px) { .nav a.opt { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; background: var(--tint); color: var(--tint-ink); transition: transform .15s ease, background .15s; }
.btn:hover { background: var(--tint-deep); color: var(--bg); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; }

/* hero */
.hero { padding: 36px 0 0; }
.hero .grid { display: grid; gap: 40px; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 18px; }
.hero .actions { margin-top: 26px; }
.date { margin-top: 18px; font-size: 15px; color: var(--muted); }
.date b { color: var(--ink); }
.meaning { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 4px 14px 4px 6px; }
.meaning .ar { font-size: 26px; line-height: 1.3; color: var(--tint-deep); background: var(--bg); border-radius: 999px; padding: 0 12px; }
.stage { position: relative; background: var(--soft); border-radius: 32px; padding: 34px 16px 0; overflow: hidden; display: flex; justify-content: center; gap: 18px; }
.stage .phone { width: min(300px, 74vw); margin-bottom: -90px; }
.stage .phone.back { display: none; }
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero .grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .stage { padding: 44px 24px 0; min-height: 600px; }
  .stage .phone { width: 280px; }
  .stage .phone.back { display: block; margin-top: 70px; }
}

/* phone */
.phone { aspect-ratio: 390 / 844; border-radius: 46px; padding: 9px; background: #0d1210; box-shadow: var(--shadow); position: relative; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #fff; }
.phone::after { content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 999px; background: #0d1210; }

/* sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.feature .grid { display: grid; gap: 36px; align-items: center; }
.feature .copy > * + * { margin-top: 16px; }
.feature .copy h2 + p { margin-top: 18px; }
.feature .art { position: relative; background: var(--soft); border-radius: 32px; padding: 40px 16px; display: grid; place-items: center; overflow: hidden; }
.feature .art .word { position: absolute; top: 14px; right: 22px; font-size: clamp(44px, 9vw, 72px); line-height: 1.4; color: var(--tint); opacity: .22; pointer-events: none; }
.feature .art .phone { width: min(290px, 72vw); }
@media (min-width: 900px) {
  .feature .grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .art { order: -1; }
}
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); }
.points li::before { content: ''; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--tint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8f68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.points b { color: var(--ink); font-weight: 700; }
.note { font-size: 15px; color: var(--muted); }
.tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--tint-deep); background: var(--tint-soft); border-radius: 999px; padding: 3px 12px; }

/* the band of smaller features */
.band { background: var(--soft-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card .ar { font-size: 34px; line-height: 1.5; color: var(--tint); display: block; text-align: right; }
.card h3 { font-size: 21px; margin-top: 4px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* pricing table */
.table-wrap { margin-top: 32px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--soft); font-size: 15px; }
td.c, th.c { text-align: center; width: 92px; }
td.c svg { width: 20px; height: 20px; color: var(--tint); }
td small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.prices { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.price.main { border-color: var(--tint); box-shadow: inset 0 0 0 1px var(--tint); }
.price .amt { font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 10px; }
.price .amt span { font: 600 16px var(--sans); color: var(--muted); }
.price p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* sign-up */
.signup { background: var(--soft); border-radius: 32px; padding: 32px 18px; display: grid; gap: 28px; }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1.05fr; padding: 56px; gap: 56px; } }
.signup .lede { margin-top: 16px; }
form { display: grid; gap: 16px; }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
label.f span.opt { font-weight: 500; color: var(--muted); }
input[type=email], input[type=text] { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px; font: 500 17px var(--sans); }
input[type=email]:focus, input[type=text]:focus { border-color: var(--tint); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 20%, transparent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; transition: background .15s, box-shadow .15s; }
.chips input:checked + span { background: var(--tint-soft); box-shadow: inset 0 0 0 1.5px var(--tint); color: var(--tint-deep); }
.chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-msg.err { color: var(--bad); }
.done { background: var(--bg); border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.done h3 { font-size: 26px; }
.done p { margin-top: 10px; color: var(--ink-2); }
.done .actions { margin-top: 18px; }

/* page header for inner pages */
.phead { padding: 48px 0 8px; }
.phead .lede { margin-top: 16px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.toc a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: var(--soft); border-radius: 999px; padding: 8px 14px; }

/* faq */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 30px; }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }

/* prose (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose p, .prose ul { margin-top: 14px; color: var(--ink-2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 72px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; gap: 20px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- Apple-style layout: centered type, big product shots, alternating white and grey bands ---- */
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }
.hero.center { padding: 56px 0 0; }
.hero.center .appicon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px -14px rgba(0,0,0,.3); }
.hero.center h1 { margin-top: 0; }
.hero.center .lede { margin-top: 18px; }
.hero.center .actions { margin-top: 30px; }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: 52px; height: clamp(420px, 116vw, 620px); overflow: hidden; }
.fan .phone { width: clamp(240px, 64vw, 310px); position: relative; z-index: 2; }
.fan .phone.side { width: clamp(210px, 54vw, 270px); z-index: 1; margin-top: 56px; }
.fan .phone.l { margin-right: -48px; transform: rotate(-6deg); }
.fan .phone.r { margin-left: -48px; transform: rotate(6deg); }
@media (max-width: 560px) { .fan .phone.side { display: none; } }
@media (min-width: 900px) { .fan .phone.l { margin-right: 28px; transform: none; } .fan .phone.r { margin-left: 28px; transform: none; } }

.show { padding: 96px 0 0; overflow: hidden; }
.show.grey { background: var(--soft); }
.show h2 { max-width: 14em; margin: 0 auto; }
.show .lede { margin-top: 18px; }
/* the phone is cut off by a line, the way product pages show a device rising out of the page */
.show .shot { display: flex; justify-content: center; align-items: flex-start; margin-top: 52px; height: clamp(400px, 112vw, 560px); overflow: hidden; border-bottom: 1px solid var(--line); }
.show .shot .phone { width: clamp(250px, 70vw, 330px); }
.specs { display: grid; gap: 28px; padding: 52px 0 96px; text-align: left; }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.specs h3 { font-size: 19px; }
.specs p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.specs .rule { height: 2px; width: 28px; background: var(--tint); border-radius: 2px; margin-bottom: 14px; }

.tiles { display: grid; gap: 16px; margin-top: 48px; text-align: left; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--soft); border-radius: 28px; padding: 30px 26px 34px; min-height: 230px; display: flex; flex-direction: column; }
.tile .ar { font-size: 40px; line-height: 1.5; color: var(--ink); opacity: .9; text-align: right; }
.tile h3 { margin-top: auto; padding-top: 24px; font-size: 24px; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.plans { display: grid; gap: 16px; margin: 48px auto 0; max-width: 820px; text-align: left; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--soft); border-radius: 28px; padding: 30px 28px; }
.plan .amt { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 52px; line-height: 1; margin-top: 14px; }
.plan .amt span { font: 500 17px var(--sans); letter-spacing: 0; color: var(--muted); }
.plan p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.plan.first { background: var(--ink); color: var(--bg); }
.plan.first p, .plan.first .amt span { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.join-sec { padding: 104px 0; }
.join-card { max-width: 620px; margin: 44px auto 0; text-align: left; }
.join-card form { gap: 18px; }
.join-card .btn[type=submit] { width: 100%; min-height: 56px; font-size: 17px; }

/* gentle rise as each part scrolls in */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }
.btn { font-weight: 600; }
.center h2 + .lede { margin-top: 18px; }
.grey .tile, section[style*="--soft"] .tile { background: var(--bg) !important; }
label.f { display: block; }
label.f input { margin-top: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { box-shadow: 0 0 0 1.5px #3a3a3c, var(--shadow); } }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1.5px #3a3a3c, var(--shadow); }
