/* ItqanLand landing — single stylesheet for the RTL (ar) and LTR (en) pages.
   Logical properties only, so direction comes from <html dir>. The page reads and navigates without JavaScript; only the
   sign-up / booking form (assets/site.js) needs it. */

@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/tajawal-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/tajawal-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/tajawal-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/tajawal-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/tajawal-arabic-800.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/tajawal-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green-900: #0f3d1f;
  --green-800: #14532d;
  --green-700: #1e7e34;
  --green-500: #3f9d55;
  --green-100: #e4f2e7;
  --night-900: #0a1a13;
  --night-800: #0f251b;
  --night-700: #163527;
  --gold-600: #a8851a;
  --gold-500: #c9a227;
  --gold-300: #e6cf7a;
  --gold-100: #f8efc8;
  --cream: #fbf8ef;
  --paper: #ffffff;
  --ink: #17251b;
  --ink-soft: #46574b;
  --line: #dde6dc;
  --danger: #a32222;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 61, 31, 0.1);
  --wrap: 1120px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-block-start: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Tajawal", "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-900); box-shadow: 0 0 0 6px var(--gold-100); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  background: var(--green-900);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { inset-block-start: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(251, 248, 239, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-800);
  text-decoration: none;
}
.brand span { white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--green-800); }
.nav .lang { border: 1px solid var(--line); padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--paper); }
.languages { position: relative; }
.languages summary { cursor: pointer; white-space: nowrap; border: 1px solid var(--line); padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--paper); }
.languages > div { position: absolute; z-index: 20; inset-block-start: 100%; inset-inline-end: 0; min-width: 9rem; padding: 0.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.7rem; box-shadow: 0 6px 20px #0002; }
.nav .languages a.lang { display: block; border: 0; border-radius: 0.3rem; padding: 0.4rem 0.6rem; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--green-700); border-radius: 999px; padding: 0.4rem 0.8rem; color: var(--green-800); font-weight: 700; }
.account-menu > div { position: absolute; z-index: 21; inset-block-start: calc(100% + 0.35rem); inset-inline-end: 0; min-width: 12rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--paper); box-shadow: 0 6px 20px #0002; }
.account-logout { width: 100%; border: 0; border-radius: 0.4rem; padding: 0.6rem; background: transparent; color: var(--green-800); font: inherit; text-align: start; cursor: pointer; }
.account-logout:hover { background: var(--green-100); }
.account-error { display: block; color: #a22b22; font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(30, 126, 52, 0.28); }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--green-800); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn-gold { background: linear-gradient(180deg, #e2bf4a, var(--gold-500)); color: #2a2204; box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35); }
.btn-gold:hover { background: linear-gradient(180deg, #ecd06a, #d4ad2f); color: #2a2204; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

h1, h2, h3 { line-height: 1.3; color: var(--green-900); margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Eight-pointed star lattice used as a faint texture on the dark panels */
.hero, .ijazah-card, .final {
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%23e6cf7a' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M36 6l8.8 21.2L66 36l-21.2 8.8L36 66l-8.8-21.2L6 36l21.2-8.8z'/%3E%3Cpath d='M14.8 14.8l21.2 8.8 21.2-8.8-8.8 21.2 8.8 21.2-21.2-8.8-21.2 8.8 8.8-21.2z'/%3E%3C/svg%3E");
}

/* Hero: the Mushaf itself is the picture */
.hero {
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(201, 162, 39, 0.22), transparent 70%),
    var(--lattice),
    linear-gradient(180deg, var(--night-900), var(--night-700));
  color: #f4f1e4;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 24ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.eyebrow {
  display: inline-block;
  background: var(--gold-100);
  color: #6b5400;
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-block-end: 0.9rem;
}
.hero .eyebrow { background: rgba(230, 207, 122, 0.14); color: var(--gold-300); border: 1px solid rgba(230, 207, 122, 0.4); }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin-block: 1rem 1.6rem; }
.hero .lead { color: #d5dccf; max-width: 56ch; margin-inline: auto; }
.hero .cta-row { justify-content: center; }
.hero-account { margin: 1.1rem 0 0; color: #b9c4b6; font-size: 1rem; }
.hero-account a { color: var(--gold-300); font-weight: 700; }
.hero-account a:hover { color: #fff; }

.mushaf-shot { margin: clamp(2rem, 5vw, 3.2rem) auto 0; max-width: 980px; }
.mushaf-shot img {
  width: 100%;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(230, 207, 122, 0.45);
  border-block-end: 0;
  box-shadow: 0 -10px 60px rgba(201, 162, 39, 0.18), 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #101c16;
}
.mushaf-shot figcaption {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Trust strip under the hero */
.strip { background: var(--night-900); color: #cfd8cb; padding-block: 1rem; border-block-start: 1px solid rgba(230, 207, 122, 0.3); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.2rem; font-weight: 500; }
.strip li::before { content: "\2726"; color: var(--gold-500); margin-inline-end: 0.55rem; }

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { max-width: 62ch; margin-block-end: 2rem; }
.section-head p { color: var(--ink-soft); margin: 0.6rem 0 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.alt { background: var(--paper); border-block: 1px solid var(--line); }

/* Ijazah: drawn as a certificate */
.ijazah { padding-block: clamp(3rem, 7vw, 5.5rem); }
.ijazah-card {
  position: relative;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(201, 162, 39, 0.2), transparent 70%),
    var(--lattice),
    linear-gradient(160deg, var(--night-800), #0d2c1d 55%, var(--night-900));
  color: #efeede;
  border-radius: 30px;
  border: 2px solid var(--gold-500);
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3.5rem);
  text-align: center;
  box-shadow: 0 30px 70px rgba(10, 26, 19, 0.35);
  isolation: isolate;
}
.ijazah-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(230, 207, 122, 0.55);
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}
.seal { width: 84px; height: 84px; margin: 0 auto 1rem; color: var(--gold-300); filter: drop-shadow(0 4px 14px rgba(201, 162, 39, 0.45)); }
.ijazah-kicker { color: var(--gold-300); font-weight: 700; letter-spacing: 0.02em; margin: 0 0 0.5rem; }
.ijazah-card h2 {
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.35;
  color: var(--gold-300);
  background: linear-gradient(180deg, #fbeeb2, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ijazah-sanad { font-size: clamp(1.2rem, 2.8vw, 1.75rem); font-weight: 700; color: #fff; margin: 0.4rem 0 0; }
.rule { display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--gold-500); margin: 1.3rem auto; max-width: 420px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold-500); opacity: 0.6; }
.ijazah-lead { color: #d5dccf; max-width: 60ch; margin: 0 auto; font-size: 1.12rem; }

.chain { list-style: none; padding: 0; margin: 2rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 0.5rem 0; }
.chain li { display: flex; align-items: center; }
.chain span {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 207, 122, 0.5);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  white-space: nowrap;
}
.chain li:not(:last-child)::after { content: ""; width: 1.6rem; height: 1px; background: var(--gold-500); }
.chain li:last-child span { background: linear-gradient(180deg, #e2bf4a, var(--gold-500)); color: #2a2204; border-color: transparent; }
.chain-note { color: #aeb9aa; font-size: 0.95rem; margin: 0.8rem 0 0; }

.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-block: 2.2rem; text-align: start; }
.track { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(230, 207, 122, 0.28); border-radius: var(--radius); padding: 1.3rem; }
.track h3 { color: var(--gold-300); margin-block-end: 0.35rem; }
.track p { margin: 0; color: #d5dccf; }
.ijazah-card .cta-row { justify-content: center; }
.hadith { margin: 2rem auto 0; max-width: 46ch; color: #e9e6d2; font-size: 1.15rem; font-weight: 700; }
.hadith cite { display: block; font-style: normal; font-weight: 400; font-size: 0.92rem; color: #aeb9aa; margin-block-start: 0.2rem; }

/* Cards */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.alt .card { background: var(--cream); }
.card h3 { margin-block-end: 0.4rem; }
.card p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  margin-block-end: 0.8rem;
}
.icon svg { width: 26px; height: 26px; }
.section-cta { margin-block-start: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }
.section-cta small { color: var(--ink-soft); font-size: 0.95rem; }

.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-weight: 800;
  margin-block-end: 0.7rem;
}
.steps li:last-child::before { background: var(--gold-500); color: #2a2204; }
.steps h3 { margin-block-end: 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-inline-start: 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.45rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Join: sign-up of interest / 45-minute session booking, and the account box */
.join-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.panel > h3 { font-size: 1.35rem; margin-block-end: 0.3rem; }
.panel > p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.side { display: grid; gap: 1.2rem; }
.side .panel { box-shadow: none; }
.side .cta-row .btn { flex: 1 1 auto; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
.modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mode { position: relative; display: block; cursor: pointer; }
.mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mode-body { display: block; height: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 0.8rem 1rem; background: var(--cream); transition: border-color 0.15s ease, background-color 0.15s ease; }
.mode-body strong { display: block; color: var(--green-900); }
.mode-body small { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; display: block; }
.mode input:checked + .mode-body { border-color: var(--green-700); background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.mode input:focus-visible + .mode-body { outline: 3px solid var(--green-900); outline-offset: 2px; }
.mode input:disabled + .mode-body { opacity: 0.55; cursor: not-allowed; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.field { display: grid; gap: 0.25rem; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .slots-title { font-weight: 700; color: var(--green-900); font-size: 0.98rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  min-height: 2.9rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); background: var(--paper); }
/* Bots fill every field; people never see this one. */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.slots { grid-column: 1 / -1; border: 1.5px dashed var(--gold-500); border-radius: 16px; padding: 1rem; background: #fffdf3; min-width: 0; }
.slots-title { margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; }
.slots-title small { font-weight: 400; color: var(--ink-soft); }
.days, .times { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.days { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 0.5rem; margin-block-end: 0.6rem; scrollbar-width: thin; }
.chip {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
  line-height: 1.5;
}
.chip small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.chip:hover { border-color: var(--green-500); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip[aria-pressed="true"] small { color: #dff1e3; }
.slots-note { margin: 0; color: var(--ink-soft); }
.picked { margin: 0.8rem 0 0; font-weight: 700; color: var(--green-800); }

.form-foot { margin-block-start: 1.3rem; display: grid; gap: 0.7rem; }
.form-status { margin: 0; font-weight: 700; color: var(--danger); }
.form-status:empty { display: none; }
.form-privacy { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.done { text-align: center; padding-block: 1.5rem; }
.done .seal { color: var(--gold-500); width: 72px; height: 72px; }
.done h3 { font-size: 1.5rem; }
.done p { color: var(--ink-soft); margin: 0.6rem auto 0; max-width: 44ch; }
.done .when { color: var(--green-800); font-weight: 800; font-size: 1.2rem; }
.noscript { background: var(--gold-100); border-radius: 12px; padding: 0.8rem 1rem; margin: 0 0 1rem; color: #4a3b00; }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--green-900); list-style-position: inside; }
.faq details[open] summary { margin-block-end: 0.5rem; }
.faq p { margin: 0; color: var(--ink-soft); }

/* Final CTA + footer */
.final {
  background: var(--lattice), linear-gradient(135deg, var(--night-900), var(--green-800));
  color: #fff;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.final h2 { color: #fff; }
.final p { color: #e4f2e7; max-width: 52ch; margin: 0.8rem auto 1.5rem; }
.final .cta-row { justify-content: center; }

.site-footer { padding-block: 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--green-800); }
.site-footer p { margin: 0; }

/* Error page */
.center-page { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 2rem; }

@media (max-width: 1020px) {
  .nav a:not(.btn):not(.lang) { display: none; }
}
@media (max-width: 860px) {
  .join-grid { grid-template-columns: 1fr; }
  .chain { flex-direction: column; align-items: center; gap: 0; }
  .chain li { flex-direction: column; }
  .chain li:not(:last-child)::after { width: 1px; height: 1rem; }
}
@media (max-width: 700px) {
  .mushaf-shot { max-width: 400px; }
}
@media (max-width: 560px) {
  .nav { gap: 0.5rem; }
  .nav .btn-ghost { display: none; }
  .account-menu summary { max-width: 6rem; }
  .fields, .modes { grid-template-columns: 1fr; }
  .strip ul { flex-direction: column; align-items: center; }
}
@media (max-width: 420px) {
  .btn { width: 100%; white-space: normal; }
  .nav .btn { width: auto; white-space: nowrap; padding-inline: 0.8rem; }
  .brand span { font-size: 1.1rem; }
}
@media print {
  .site-header, .final, .mushaf-shot, #join { display: none; }
}
