/* Sabeel website. Tokens mirror lib/design_system/colors.dart so the site and the app look like one product. */
:root {
  color-scheme: light;
  --primary: #15803D;
  --primary-dark: #0E5C2B;
  --primary-light: #34B865;
  --primary-container: #E3F6E8;
  --secondary: #1A73C8;
  --secondary-dark: #125499;
  --secondary-container: #E3F0FC;
  --star: #FFC531;
  --star-dark: #D99A00;
  --almost: #B85A00;
  --almost-container: #FFF0DC;
  --error: #C92A3A;
  --error-container: #FDE7E9;
  --bg: #FFF9F0;
  --grey100: #F6F1E9;
  --grey200: #EDE6DA;
  --grey300: #CFC6B8;
  --muted: #6B6575;
  --ink: #2D2A32;
  --card: #FFFFFF;
  --ledge: #E2D9CA;
  --grass: #9CCB62;
  --grass-side: #5D8B30;
  --sand: #F4D898;
  --water: #49CFCB;
  --radius: 20px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Scheherazade New", "Amiri", serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  /* the isometric ground grid of the app's map, very faint */
  background-image:
    repeating-linear-gradient(30deg, rgba(207,198,184,.18) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(150deg, rgba(207,198,184,.18) 0 1px, transparent 1px 56px);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-underline-offset: 3px; }
a:hover { color: var(--secondary-dark); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 249, 240, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 2px solid var(--grey200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: -.3px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .ar { font-family: var(--arabic); font-weight: 700; color: var(--primary); font-size: 22px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav a:hover { color: var(--primary); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ---------- buttons: a face with a darker ledge under it, like the app ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 900; font-size: 15px; letter-spacing: .8px; text-transform: uppercase;
  padding: 14px 24px; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--primary); box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn.blue { background: var(--secondary); box-shadow: 0 5px 0 var(--secondary-dark); }
.btn.blue:active { box-shadow: 0 1px 0 var(--secondary-dark); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 var(--ledge); border: 2px solid var(--grey200); }
.btn.ghost:hover { color: var(--ink); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--ledge); }
.btn.sm { padding: 10px 16px; font-size: 13px; border-radius: 12px; }

.card {
  background: var(--card); border: 2px solid var(--grey200); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ledge);
}

.tag {
  display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--primary-container); color: var(--primary-dark);
}
.tag.soon { background: var(--almost-container); color: #8A4300; }
.tag.blue { background: var(--secondary-container); color: var(--secondary-dark); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.4px; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; }
h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 900; }
h3 { font-size: 21px; font-weight: 800; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); font-weight: 600; }
.kicker { color: var(--secondary); font-weight: 900; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; display: block; }

section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 14px 0 0; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 .hl { color: var(--primary); }
.hero .lead { margin: 18px 0 28px; max-width: 540px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-weight: 800; font-size: 15px; }
.hero .meta span::before { content: "✓"; color: var(--primary); margin-right: 6px; font-weight: 900; }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art .island { position: absolute; inset: 0; margin: auto; width: 92%; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(45, 42, 50, .12)); }
.hero-art .bubble {
  position: absolute; top: 4%; right: 2%; padding: 12px 18px; border-radius: 18px; background: var(--card);
  border: 2px solid var(--grey200); box-shadow: 0 5px 0 var(--ledge); font-family: var(--arabic); font-size: 40px; line-height: 1.2;
  direction: rtl; animation: bob 6s ease-in-out infinite reverse;
}
.hero-art .bubble::after { content: ""; position: absolute; bottom: -12px; left: 28px; width: 20px; height: 20px; background: var(--card); border-right: 2px solid var(--grey200); border-bottom: 2px solid var(--grey200); transform: rotate(45deg); }
.hero-art .star { position: absolute; left: 4%; top: 18%; width: 54px; height: 54px; animation: spin 9s linear infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .island, .hero-art .bubble, .hero-art .star { animation: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ---------- trust strip ---------- */
.strip { padding: 0 0 24px; }
.strip ul { list-style: none; margin: 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; }
.strip li b { display: block; font-size: 22px; font-weight: 900; color: var(--primary); line-height: 1.1; }
.strip li small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- isometric block icon (inline SVG wrapper) ---------- */
.iso { width: 64px; height: 64px; flex: none; }

/* ---------- how it works: phones ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--secondary); box-shadow: 0 4px 0 var(--secondary-dark); }
.step p { margin: 0; color: var(--muted); font-weight: 600; }
.phone {
  border-radius: 26px; overflow: hidden; border: 8px solid var(--ink); background: var(--bg);
  box-shadow: 0 8px 0 #18161b; aspect-ratio: 620 / 610; margin-top: auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- journey: six islands ---------- */
.journey { background: linear-gradient(180deg, transparent, rgba(73, 207, 203, .10) 30%, rgba(73, 207, 203, .10) 70%, transparent); }
.islands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: isl; }
.isl { padding: 18px 20px 22px; position: relative; display: flex; flex-direction: column; }
.isl .pic { aspect-ratio: 1 / 1; display: grid; place-items: center; margin: -6px -6px 6px; }
.isl .pic img { max-height: 100%; width: auto; transition: transform .25s ease; }
.isl:hover .pic img { transform: translateY(-6px); }
.isl.soon .pic img { filter: saturate(.55) brightness(1.04); }
.isl .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.isl .stage { font-weight: 900; font-size: 12px; letter-spacing: 1.4px; color: var(--muted); }
.isl h3 { margin-bottom: 4px; }
.isl p { margin: 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.isl p b { color: var(--ink); }
@media (max-width: 900px) { .islands { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 540px) {
  .islands { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 16px; }
  .isl { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature p { margin: 0; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- split (families / privacy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split ul.check { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.split ul.check li { padding-left: 34px; position: relative; font-weight: 700; }
.split ul.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 3px 0 var(--primary-dark); }
.split .panel { padding: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.promise div { padding: 16px; border-radius: 16px; background: var(--grey100); border: 2px solid var(--grey200); font-weight: 800; }
.promise div small { display: block; font-weight: 600; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; font-size: 26px; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-weight: 600; }
.faq details > div p { margin: 0 0 10px; }

/* ---------- download CTA ---------- */
.cta-band { text-align: center; padding: 48px 24px; position: relative; overflow: hidden; background: var(--primary); color: #fff; border-color: var(--primary-dark); box-shadow: 0 8px 0 var(--primary-dark); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E3F6E8; font-weight: 700; margin: 12px auto 26px; max-width: 560px; }
.cta-band .icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 14px;
  background: #18161b; color: #fff; text-decoration: none; box-shadow: 0 5px 0 #000; text-align: left; min-width: 200px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: .4px; }
.store b { display: block; font-size: 18px; font-weight: 900; line-height: 1.1; }
.store[aria-disabled="true"] { cursor: default; opacity: .92; }
.soon-note { margin-top: 18px; font-size: 14px; font-weight: 800; color: #fff; opacity: .9; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 2px solid var(--grey200); margin-top: 40px; background: var(--grey100); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--primary); }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 2px solid var(--grey200); padding-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- legal / document pages ---------- */
.doc-hero { padding: 48px 0 8px; }
.doc-hero .wrap { max-width: 860px; }
.doc-hero p.lead { margin: 14px 0 0; }
.doc-hero .dates { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.doc { max-width: 860px; margin: 0 auto; padding: 28px 20px 40px; }
.doc .card { padding: clamp(22px, 4vw, 44px); }
.doc h2 { font-size: 26px; margin: 36px 0 12px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; }
.doc p, .doc li { font-weight: 500; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .toc { background: var(--grey100); border: 2px solid var(--grey200); border-radius: 16px; padding: 16px 20px; margin-bottom: 28px; }
.doc .toc b { display: block; margin-bottom: 6px; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--grey200); }
.doc th { background: var(--grey100); font-weight: 900; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { border-radius: 16px; padding: 16px 18px; margin: 18px 0; font-weight: 600; border: 2px solid; }
.note.green { background: var(--primary-container); border-color: #BFE7CB; }
.note.blue { background: var(--secondary-container); border-color: #BFDAF5; }
.note.amber { background: var(--almost-container); border-color: #F5D4A8; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* delete-account steps */
.path { display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0 !important; }
.path li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; margin: 0 !important; }
.path li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--primary); box-shadow: 0 4px 0 var(--primary-dark); }
.ui { display: inline-block; font-weight: 900; font-size: .92em; padding: 1px 9px; border-radius: 8px; background: var(--grey100); border: 2px solid var(--grey200); white-space: nowrap; }
.ui.red { color: var(--error); background: var(--error-container); border-color: #F6C6CB; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cols2 { grid-template-columns: 1fr; } }
.cols2 > div { border-radius: 16px; padding: 16px 18px; background: var(--grey100); border: 2px solid var(--grey200); }
.cols2 h3 { margin-top: 0; }
