/* Adahly website: Lantern theme (Requirements.md §9). No trackers, no
   cookies, fonts served from this site. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #edf2ef;
  --card: #ffffff;
  --emerald: #0d4a3f;
  --emerald-accent: #16705f;
  --on-emerald: #f3fbf7;
  --on-emerald-muted: #bfe3d6;
  --saffron: #f4b43c;
  --on-saffron: #2a1e05;
  --ink: #10231f;
  --ink-muted: #4f6259;
  --line: #d7e2dc;
  --prayed: #1f9d6b;
  --freeze: #2d6e9e;
  --excused: #6e5fa6;
  --band: #10231f;
  --on-band: #f3fbf7;
  --on-band-muted: #a9c3ba;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1513;
    --card: #13201d;
    --emerald: #0f5a4b;
    --emerald-accent: #5cc9a7;
    --ink: #e9f1ee;
    --ink-muted: #9db1aa;
    --line: #22332f;
    --band: #060d0b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--emerald-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-accent);
  margin: 0 0 12px;
}
.lead { font-size: 18px; color: var(--ink-muted); max-width: 34em; margin: 16px 0 0; }

/* Header + hero (emerald band) */
.hero { background: var(--emerald); color: var(--on-emerald); position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -40px;
  width: 640px;
  height: 760px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 320px 320px 0 0;
  pointer-events: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-emerald); text-decoration: none; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nav-links a { color: #cdebe0; text-decoration: none; }
.nav-links a:hover { color: #fff; }
.pill { background: var(--saffron); color: var(--on-saffron) !important; padding: 9px 16px; border-radius: 999px; font-weight: 800; }

.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 48px; position: relative; z-index: 1; }
.hero-copy { flex: 1 1 440px; min-width: 0; padding-bottom: 72px; }
.hero-copy h1 { font-size: clamp(42px, 6vw, 76px); line-height: 0.98; }
.hero-copy .lead { color: #cdebe0; }
.badge { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--saffron); background: rgba(244, 180, 60, 0.14); padding: 8px 14px; border-radius: 999px; margin-bottom: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: 16px; font-weight: 800; text-decoration: none; }
.btn-light { background: var(--on-emerald); color: #0d4a3f; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: #cdebe0; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 14px; }
.promises li::before { content: "✓"; color: var(--saffron); margin-right: 8px; }

.phone-col { flex: 0 1 480px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 16px; }
.phone { width: 300px; max-width: 100%; background: #0a2520; border-radius: 46px 46px 0 0; padding: 12px 12px 0; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.screen { background: #edf2ef; color: #10231f; border-radius: 36px 36px 0 0; padding: 22px 16px 18px; display: grid; gap: 12px; }
.screen small { display: block; font-size: 11px; font-weight: 600; color: #56695f; }
.screen .city { font-family: var(--display); font-size: 20px; font-weight: 800; }
.next { background: #0d4a3f; color: #f3fbf7; border-radius: 22px; padding: 14px 16px; }
.next .label { font-size: 11px; color: #bfe3d6; font-weight: 600; }
.next .name { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.next .name span { font-size: 17px; color: #bfe3d6; font-weight: 600; }
.next .count { font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.list { background: #fff; border-radius: 20px; padding: 6px; margin: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.list li.now { background: #fff6e0; }
.list li .t { margin-left: auto; font-family: var(--display); }
.list li.later { color: #56695f; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #b7c6bf; flex: none; }
.dot.done { background: #1f9d6b; border: 2px solid #1f9d6b; }
.dot.now { border: 2px solid #f4b43c; }
.streak-tile { position: relative; flex: none; margin-bottom: 48px; width: 150px; height: 150px; border-radius: 28px; background: var(--saffron); color: var(--on-saffron); padding: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); }
.streak-tile b { display: block; font-family: var(--display); font-size: 46px; line-height: 1; letter-spacing: -0.04em; }
.streak-tile span { font-size: 12px; font-weight: 700; }
.streak-tile svg { position: absolute; right: 6px; bottom: 4px; }

/* The name */
.name-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 48px; background: var(--card); border-radius: 32px; padding: 32px; }
.name-card > div { flex: 1 1 420px; min-width: 0; }
.name-card .lead strong { color: var(--ink); }
.arabic { flex: 0 1 auto; margin: 0; font-family: "Amiri", "Noto Naskh Arabic", "Scheherazade New", "Times New Roman", serif; font-size: clamp(56px, 9vw, 96px); line-height: 1.2; color: var(--emerald-accent); }

/* Sections */
section { padding-block: 88px 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.feature { background: var(--card); border-radius: 28px; padding: 28px; }
.feature .icon { width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--prayed) 14%, var(--card)); color: var(--emerald-accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature p { margin: 10px 0 0; color: var(--ink-muted); font-size: 15px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; color: var(--ink-muted); font-size: 15px; }
.points b { color: var(--ink); }
.chip { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 16px; }
.panel { background: var(--card); border-radius: 32px; padding: 28px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.day { border-radius: 16px; border: 1px solid var(--line); padding: 12px 0 10px; text-align: center; font-size: 12px; font-weight: 700; }
.day i { display: block; width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }

.band { background: var(--band); color: var(--on-band); margin-top: 88px; }
.band .wrap { padding-block: 88px; }
.band h2 { font-size: clamp(40px, 5.4vw, 72px); max-width: 13em; }
.band h2 em { font-style: normal; color: var(--saffron); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 40px; }
.band-grid div { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; }
.band-grid b { display: block; font-family: var(--display); font-size: 20px; }
.band-grid p { margin: 8px 0 0; color: var(--on-band-muted); font-size: 15px; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.price { background: var(--card); border-radius: 28px; padding: 28px; position: relative; }
.price.featured { background: var(--emerald); color: var(--on-emerald); }
.price .amount { font-family: var(--display); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 14px; }
.price .amount small { font-size: 15px; font-weight: 600; letter-spacing: 0; opacity: 0.8; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-muted); }
.price.featured ul { color: #cdebe0; }
.tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--saffron); color: var(--on-saffron); }
.fine { font-size: 14px; color: var(--ink-muted); max-width: 60em; margin-top: 20px; }

.faq { display: grid; gap: 4px; margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq p { color: var(--ink-muted); margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 72px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px 40px; font-size: 14px; color: var(--ink-muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Legal pages */
.doc-header { background: var(--emerald); }
.doc { max-width: 760px; margin: 0 auto; padding: 48px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-muted); }
.doc strong { color: var(--ink); }
.doc .updated { font-size: 14px; margin-top: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .table-scroll { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); }

@media (max-width: 520px) {
  .streak-tile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
