:root {
  --bg: #fbf8f1; --surface: #f2ede0; --text: #17231f; --muted: #55625c; --border: #e1d9c4;
  --accent: #0f5a46; --accent-hover: #0b4636; --accent-text: #ffffff; --brass: #a67a2c;
  --hero-1: #17765c; --hero-2: #082f25; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1512; --surface: #121e1a; --text: #eef3ef; --muted: #9fb0a8; --border: #22332d;
    --accent: #4ec59d; --accent-hover: #6fd8b5; --accent-text: #08231b; --brass: #d6ae62; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
section { padding: 72px 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--brass); margin: 0 0 10px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: inherit; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav a.link { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
.nav a.link:hover { color: var(--text); }

.hero { position: relative; overflow: hidden; color: #fff; padding-bottom: 0;
  background: radial-gradient(800px 420px at 12% -10%, rgba(201,163,90,.22), transparent 60%), linear-gradient(160deg, var(--hero-1) 0%, #0f5a46 45%, var(--hero-2) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; right: -110px; top: -110px; width: 380px; height: 380px; border: 9px solid #c9a35a; border-radius: 28px; opacity: .09; }
.hero::after { transform: rotate(45deg); }
.hero .nav a.link { color: rgba(255,255,255,.75); }
.hero .nav a.link:hover { color: #fff; }
.hero-grid { position: relative; display: grid; gap: 40px; padding: 48px 0 0; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.hero .eyebrow { color: #e2c98f; }
.hero p.lead { font-size: 1.2rem; opacity: .9; margin: 18px 0 28px; max-width: 34rem; }
.arabic { font-family: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif; direction: rtl; font-size: 1.5em; color: #e2c98f; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; font-size: 16px; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-primary { background: #fff; color: #0b4636; }
.btn-primary:hover { background: #eaf4ef; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost[aria-disabled='true'] { opacity: .75; cursor: default; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.note { font-size: 14px; opacity: .8; margin-top: 14px; }

.phones { display: flex; gap: 16px; justify-content: center; align-items: flex-end; margin-bottom: -90px; }
.phone { width: min(31%, 230px); border-radius: 30px; padding: 7px; background: #0b0f0d; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1) inset; }
.phone img { border-radius: 24px; width: 100%; }
.phone:nth-child(2) { transform: translateY(-34px); }
.hero + main > section:first-child { padding-top: 130px; }

.features { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px 24px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--brass); border-radius: 12px; opacity: .22; pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: var(--brass); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: var(--chip); color: var(--accent); }
:root { --chip: #e3ede7; }
@media (prefers-color-scheme: dark) { :root { --chip: #163229; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* The one featured card: a deep green plate with a brass frame and a faint star, like the app's main cards. */
.card.plate { color: #f4f7f4; border-color: transparent; background: radial-gradient(420px 220px at 0% 0%, rgba(201,163,90,.2), transparent 60%), linear-gradient(160deg, #126b54 0%, #0f5a46 50%, #082f25 100%); }
.card.plate::before { border-color: #c9a35a; opacity: .5; }
.card.plate::after { content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border: 6px solid #c9a35a; border-radius: 14px; opacity: .12; transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.card.plate h3 { color: #fff; }
.card.plate p { color: rgba(244,247,244,.85); }
.card.plate .icon { background: rgba(255,255,255,.12); color: #e2c98f; }
.card.plate:hover { border-color: #c9a35a; }

.showcase { display: grid; gap: 36px 28px; margin-top: 36px; }
@media (min-width: 700px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .showcase { grid-template-columns: repeat(4, 1fr); } }
.showcase figure { margin: 0; }
.showcase .phone { width: 100%; background: #0b0f0d; }
@media (max-width: 699px) { .showcase figure { max-width: 280px; margin-inline: auto; } .hero .btn { padding: 11px 16px; } .phones { gap: 10px; } .phone { border-radius: 22px; padding: 5px; } .phone img { border-radius: 18px; } }
.showcase figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.showcase figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
section[style*='surface'] code { background: var(--bg); }

details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; }
details p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.doc { max-width: 720px; padding: 40px 0 72px; }
.doc h1 { font-size: 2.2rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 8px; }
.doc li { margin: 6px 0; }
