/* ============================================================
   الورّاق — v2 monochrome reset
   Per Thmanyah aesthetics guide (دليل جماليات خط ثمانية):
     - Thmanyah Serif Display → headlines (عناوين)
     - Thmanyah Serif Text    → body / paragraphs (نصوص)
     - Thmanyah Sans          → digital UI / labels / forms / numerals
   Self-hosted WOFF2, font-display: swap.
   ============================================================ */

/* ---- Thmanyah Sans (UI / labels / forms / numerals) ---- */
@font-face{font-family:'Thmanyah';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/thmanyahsans-Light.woff2') format('woff2')}
@font-face{font-family:'Thmanyah';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/thmanyahsans-Regular.woff2') format('woff2')}
@font-face{font-family:'Thmanyah';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/thmanyahsans-Medium.woff2') format('woff2')}
@font-face{font-family:'Thmanyah';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/thmanyahsans-Bold.woff2') format('woff2')}
@font-face{font-family:'Thmanyah';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/thmanyahsans-Black.woff2') format('woff2')}

/* ---- Thmanyah Serif Text (body / paragraphs / quotes) ---- */
@font-face{font-family:'Thmanyah Text';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/thmanyahseriftext-Light.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Text';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/thmanyahseriftext-Regular.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Text';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/thmanyahseriftext-Medium.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Text';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/thmanyahseriftext-Bold.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Text';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/thmanyahseriftext-Black.woff2') format('woff2')}

/* ---- Thmanyah Serif Display (headlines / hero / pull quotes) ---- */
@font-face{font-family:'Thmanyah Display';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/thmanyahserifdisplay-Regular.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Display';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/thmanyahserifdisplay-Medium.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Display';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/thmanyahserifdisplay-Bold.woff2') format('woff2')}
@font-face{font-family:'Thmanyah Display';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/thmanyahserifdisplay-Black.woff2') format('woff2')}

/* ============== TOKENS ============== */
:root{
  color-scheme:light;
  --ink:#000000;
  --paper:#FFFFFF;
  --ink-mute:#5A5A5A;             /* 5.7:1 on white — comfortable AA */
  --ink-soft:#1A1A1A;             /* btn:hover, deep-but-not-black */
  --surface-soft:#FAFAFA;         /* .demo background, .cite-tag pill */
  --surface-soft-2:#EAEAEA;       /* dark-section btn:hover */
  --line:#E5E5E5;
  --danger:#B00020;
  --danger-soft:rgba(176,0,32,0.05);
  --max:1240px;
  --gap:clamp(120px, 14vw, 200px);
  --pad-x:clamp(20px, 4vw, 40px);
  --touch:44px;                   /* WCAG 2.5.5 / iOS HIG minimum tap target */
}

/* ============== RESET / BASE ============== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Thmanyah Text', 'Thmanyah', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit}
input,textarea,select{font:inherit;color:inherit}
ul{margin:0;padding:0}
::selection{background:#000;color:#FFF}
.section.dark ::selection{background:#FFF;color:#000}

/* Skip link */
.skip-link{
  position:absolute;
  inset-inline-start:8px;
  top:-40px;
  background:var(--ink);
  color:#fff;
  padding:8px 14px;
  border-radius:6px;
  font-size:13px;
  z-index:200;
  transition:top .15s;
}
.skip-link:focus{top:8px;outline:2px solid #fff;outline-offset:2px}

:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}

/* ============== NAV ============== */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.82);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px var(--pad-x);
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:56px;
}
.brand{
  font-family:'Thmanyah';
  font-weight:700;
  font-size:22px;
  letter-spacing:-0.01em;
}
.nav ul{
  list-style:none;
  display:flex;
  gap:clamp(20px, 3vw, 36px);
  font-size:14px;
  font-weight:400;
  color:var(--ink-mute);
}
.nav ul a{
  display:inline-flex;
  align-items:center;
  min-height:var(--touch);
  padding:8px 0;
  transition:color .15s;
}
.nav ul a:hover,
.nav ul a.active{color:var(--ink)}
.nav ul a.active{font-weight:500}

/* ============== SECTION SYSTEM ============== */
main{min-height:60dvh}
.section{padding:var(--gap) 0;position:relative}
.section + .section{padding-top:0}
.section.dark + .section.dark{padding-top:0}
.inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad-x);
}
.section.dark{background:var(--ink);color:#FFFFFF}
.section.dark .eyebrow,
.section.dark .lede,
.section.dark h2 .mute{color:rgba(255,255,255,0.55)}
.section.dark .eyebrow .num{color:#FFFFFF}

/* ============== TYPOGRAPHY ============== */
.eyebrow{
  font-family:'Thmanyah';
  font-weight:500;
  font-size:13px;
  letter-spacing:0.01em;
  color:var(--ink-mute);
  margin-bottom:24px;
  display:flex;
  align-items:center;
  gap:12px;
}
.eyebrow .num{font-weight:300;color:var(--ink)}
.eyebrow .num::after{content:" / ";color:currentColor;opacity:.4;font-weight:300}

h1,h2,h3{margin:0}
h2{
  font-family:'Thmanyah Display';
  font-weight:700;
  font-size:clamp(34px, 5.5vw, 68px);
  line-height:1.2;            /* room for diacritics on 2-line wrap */
  letter-spacing:-0.01em;      /* gentle on Arabic letterforms */
  margin-bottom:32px;
  max-width:920px;
  text-wrap:balance;
}
h2 .mute{color:var(--ink-mute);font-weight:300}

.lede{
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:clamp(17px, 1.9vw, 22px);
  line-height:1.5;
  letter-spacing:-0.01em;
  color:var(--ink-mute);
  max-width:680px;
  text-wrap:pretty;
}

/* ============== HERO ============== */
.hero{
  padding:clamp(64px, 13vw, 180px) 0 clamp(72px, 11vw, 140px);
  text-align:center;
}
.hero.compact{padding:clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px)}
.hero .pre{
  font-family:'Thmanyah';
  font-weight:500;
  font-size:13px;
  letter-spacing:0.01em;
  color:var(--ink-mute);
  margin-bottom:36px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:7px 16px;
  border:1px solid var(--line);
  border-radius:100px;
  background:rgba(255,255,255,0.8);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.hero .pre .dot{
  display:inline-block;
  width:6px;height:6px;
  background:var(--ink);
  border-radius:50%;
  animation:pulse 2.5s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.85)}
}
/* Hero display headline. Sized so the longest line ("النصُّ، كما كتبه مؤلفه.")
   fits in a single line at desktop, breaks to two lines on narrower screens.
   `text-wrap: pretty` avoids orphan words at the end of lines and respects
   word boundaries better than `balance` for long Arabic phrases. */
.hero h1{
  font-family:'Thmanyah Display';
  font-weight:900;
  font-size:clamp(40px, 7.5vw, 96px);
  line-height:1.15;
  letter-spacing:-0.02em;       /* gentle tracking — Arabic display */
  margin:0 auto 28px;
  max-width:980px;
  text-wrap:pretty;
}
.hero h1 .light{
  display:block;
  font-weight:300;
  font-size:.78em;
  color:var(--ink-mute);
  letter-spacing:-0.015em;
  margin-top:14px;
  text-wrap:pretty;
}
/* Subpage compact heroes — slightly smaller still */
.hero.compact h1{font-size:clamp(34px, 5.5vw, 72px);max-width:880px}
.hero.compact h1 .light{font-size:.8em}
.hero .sub{
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:clamp(17px, 2.1vw, 24px);
  line-height:1.5;
  letter-spacing:-0.01em;
  color:var(--ink-mute);
  max-width:640px;
  margin:0 auto 48px;
  text-wrap:pretty;
}
.cta-group{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  font-family:'Thmanyah';
  font-weight:500;
  font-size:15px;
  letter-spacing:-0.005em;
  padding:14px 26px;
  border-radius:100px;
  border:1px solid var(--ink);
  transition:all .18s cubic-bezier(0.4, 0, 0.2, 1);
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  white-space:nowrap;
}
.btn.primary{background:var(--ink);color:#FFFFFF}
.btn.primary:hover{background:var(--ink-soft);transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--ink);transform:translateY(-1px)}

/* Dark-section button variants — invert so primary stays prominent and
   ghost stays visible against the black backdrop. */
.section.dark .btn.primary{background:#FFFFFF;color:var(--ink);border-color:#FFFFFF}
.section.dark .btn.primary:hover{background:var(--surface-soft-2)}
.section.dark .btn.ghost{color:#FFFFFF;border-color:rgba(255,255,255,0.25)}
.section.dark .btn.ghost:hover{border-color:#FFFFFF}
.btn .arrow{font-size:13px;opacity:.7;transition:transform .18s}
.btn:hover .arrow{transform:translateX(-3px)}

.hero .agents{
  margin-top:72px;
  padding-top:32px;
  border-top:1px solid var(--line);
  font-family:'Thmanyah';
  font-weight:400;
  font-size:13px;
  color:var(--ink-mute);
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 24px;
}
.hero .agents strong{font-weight:500;color:var(--ink)}
.hero .agents .sep{color:var(--line)}

/* ============== CITATION ============== */
.showcase{text-align:center}
.showcase .lede{margin:0 auto 64px}

.cite{
  max-width:780px;
  margin:0 auto;
  text-align:right;
  padding-top:48px;
  border-top:1px solid var(--ink);
  position:relative;
}
.cite-tag{
  display:inline-block;
  font-family:'Thmanyah';
  font-weight:500;
  font-size:11px;
  letter-spacing:0.06em;
  color:var(--ink-mute);
  padding:5px 12px;
  border:1px solid var(--line);
  border-radius:100px;
  background:var(--surface-soft);
  margin-bottom:28px;
}
.cite-tag::before{
  content:"";
  display:inline-block;
  width:5px;height:5px;
  background:var(--ink-mute);
  border-radius:50%;
  margin-inline-end:8px;
  vertical-align:middle;
}
.cite blockquote{
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:clamp(20px, 2.5vw, 30px);
  line-height:1.5;
  letter-spacing:-0.015em;
  margin:0 0 48px;
}
.cite blockquote::before{content:"«";color:var(--ink-mute);margin-left:6px;font-weight:300}
.cite blockquote::after{content:"»";color:var(--ink-mute);margin-right:6px;font-weight:300}

.cite-meta{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
  padding:32px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:right;
  margin:0;
}
.cite-meta dt{
  font-family:'Thmanyah';
  font-weight:500;
  font-size:12px;
  color:var(--ink-mute);
  margin-bottom:6px;
}
.cite-meta dd{
  font-family:'Thmanyah';
  font-weight:500;
  font-size:15px;
  line-height:1.5;
  letter-spacing:-0.005em;
  margin:0;
}
.cite-also{
  margin-top:32px;
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:14px;
  color:var(--ink-mute);
  line-height:1.5;
}
.cite-also strong{font-weight:500;color:var(--ink);display:block;margin-bottom:8px;font-size:13px}
.cite-also span+span::before{content:"·";color:var(--line);margin:0 16px;font-weight:300}
.cite-note{
  margin-top:48px;
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:13px;
  color:var(--ink-mute);
  text-align:center;
}

/* ============== VERBS ============== */
.verbs-section{text-align:center}
.verbs-section .lede{margin:0 auto 80px}
.verbs{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0;
  max-width:1100px;
  margin:0 auto;
  text-align:right;
}
.verb{
  padding:40px 0 0;
  padding-inline-end:24px;
  border-top:1px solid var(--ink);
}
.verb:last-child{padding-inline-end:0}
.verb .vlabel{font-family:'Thmanyah';font-weight:300;font-size:13px;color:var(--ink-mute);margin-bottom:12px}
.verb h3{
  font-family:'Thmanyah Display';
  font-weight:700;
  font-size:clamp(28px, 3vw, 40px);
  line-height:1.2;
  letter-spacing:-0.03em;
  margin-bottom:14px;
}
.verb p{font-family:'Thmanyah Text';font-weight:400;font-size:15px;line-height:1.5;color:var(--ink-mute);letter-spacing:-0.005em;margin:0}

/* ============== HOW IT WORKS / CONVO (DARK) ============== */
.how .lede{margin-bottom:64px}
.convo{
  max-width:880px;
  margin:0 auto;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:16px;
  padding:28px;
  background:rgba(255,255,255,0.025);
}
.convo-head{
  display:flex;
  justify-content:space-between;
  padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,0.15);
  margin-bottom:24px;
  font-family:'Thmanyah';
  font-weight:500;
  font-size:13px;
  color:rgba(255,255,255,0.55);
}
.convo-head .live{display:flex;align-items:center;gap:8px}
.convo-head .live::before{
  content:"";
  display:inline-block;
  width:7px;height:7px;
  background:#FFFFFF;
  border-radius:50%;
  animation:pulse 2s ease-in-out infinite;
}
.convo-from{font-family:'Thmanyah';font-weight:300;font-size:14px;color:rgba(255,255,255,0.55);margin:0 0 24px}
.q-row{padding:24px 0;border-top:1px solid rgba(255,255,255,0.12)}
.q-row:first-of-type{border-top:none;padding-top:0}
.q-src{font-family:'Thmanyah';font-weight:300;font-size:13px;color:rgba(255,255,255,0.55);margin:0 0 10px}
.q-src strong{font-weight:500;color:#FFFFFF;margin-left:8px}
.q-text{font-family:'Thmanyah Text';font-weight:400;font-size:clamp(16px, 1.7vw, 20px);line-height:1.5;letter-spacing:-0.01em;color:#FFFFFF;margin:0}
.convo-input{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,0.15);
  display:flex;
  justify-content:space-between;
  font-family:'Thmanyah';
  font-weight:300;
  font-size:14px;
  color:rgba(255,255,255,0.5);
}

/* ============== PULL QUOTE (DARK) ============== */
.pull{padding:clamp(80px,12vw,160px) 0;text-align:center}
.pull p{
  font-family:'Thmanyah Display';
  font-weight:400;
  font-size:clamp(24px,3.4vw,44px);
  line-height:1.4;
  letter-spacing:-0.025em;
  max-width:1000px;
  margin:0 auto;
  color:rgba(255,255,255,0.85);
  text-wrap:balance;
}
.pull .accent{font-weight:500;color:#FFFFFF}

/* ============== STEPS ============== */
.steps-section{text-align:center}
.steps-section .lede{margin:0 auto 80px}
.steps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  max-width:1100px;
  margin:0 auto;
  text-align:right;
}
.step{padding:40px 0 0;padding-inline-end:32px;border-top:1px solid var(--ink)}
.step:last-child{padding-inline-end:0}
.step .snum{font-family:'Thmanyah';font-weight:300;font-size:13px;color:var(--ink-mute);margin-bottom:18px}
.step h3{
  font-family:'Thmanyah Display';
  font-weight:700;
  font-size:23px;
  line-height:1.3;
  letter-spacing:-0.02em;
  margin-bottom:12px;
}
.step p{font-family:'Thmanyah Text';font-weight:400;font-size:15px;line-height:1.5;color:var(--ink-mute);letter-spacing:-0.005em;margin:0 0 24px}
.step .demo{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 16px;
  background:var(--surface-soft);
  font-family:'Thmanyah';
  font-weight:400;
  font-size:13px;
  line-height:1.5;
  color:var(--ink-mute);
}
.step .demo .row{padding:2px 0;direction:rtl;text-align:right}
.step .demo .row.on{color:var(--ink);font-weight:500}
.step .demo .row.on::before{content:"← ";color:var(--ink)}

/* ============== FORM (early-access + feedback) ============== */
.access{text-align:center}
.access .lede{margin:0 auto 56px}

.form{max-width:520px;margin:0 auto;text-align:right}
.form-row{margin-bottom:28px}
.form label{
  display:block;
  font-family:'Thmanyah';
  font-weight:500;
  font-size:13px;
  color:var(--ink-mute);
  margin-bottom:8px;
  line-height:1.5;
}
.form input,
.form textarea,
.form select{
  width:100%;
  padding:14px 0;
  border:none;
  border-bottom:1px solid var(--line);
  background:transparent;
  font-family:'Thmanyah';
  font-weight:400;
  font-size:18px;
  color:var(--ink);
  outline:none;
  transition:border-color .18s;
  letter-spacing:-0.005em;
  border-radius:0;
}
.form textarea{resize:vertical;min-height:96px;line-height:1.5}
/* Custom chevron for native <select> — guarantees the arrow is visible
   on dark sections too (default OS arrow is hidden by transparent bg). */
.form select{
  -webkit-appearance:none;
  appearance:none;
  /* Inline SVG chevron, ink-colored. Pinned to inline-start (left in RTL). */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5l5 5 5-5' stroke='%235A5A5A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:left 4px center;
  padding-inline-start:24px;
}
.section.dark .form select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,.7)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.form input:focus,
.form textarea:focus,
.form select:focus{border-bottom-color:var(--ink)}

.form button{
  width:100%;
  margin-top:20px;
  background:var(--ink);
  color:#FFFFFF;
  border:none;
  padding:16px 28px;
  border-radius:100px;
  font-family:'Thmanyah';
  font-weight:500;
  font-size:16px;
  letter-spacing:-0.005em;
  cursor:pointer;
  transition:background .18s, transform .18s;
}
.form button:hover{background:var(--ink-soft);transform:translateY(-1px)}
.form .note{
  margin-top:24px;
  font-family:'Thmanyah';
  font-weight:300;
  font-size:13px;
  color:var(--ink-mute);
  text-align:center;
  line-height:1.5;
}

/* Dark form (used on /feedback + disclaimer contact) */
.section.dark .form label{color:rgba(255,255,255,0.55)}
.section.dark .form input,
.section.dark .form textarea,
.section.dark .form select{
  color:#FFFFFF;
  border-bottom-color:rgba(255,255,255,0.18);
}
.section.dark .form input:focus,
.section.dark .form textarea:focus,
.section.dark .form select:focus{border-bottom-color:#FFFFFF}
.section.dark .form button{background:#FFFFFF;color:var(--ink)}
.section.dark .form button:hover{background:var(--surface-soft-2)}
.section.dark .form .note{color:rgba(255,255,255,0.55)}
.section.dark .form .note strong{color:#FFFFFF}

/* HTMX form-error slot */
.form-error{
  margin-top:14px;
  padding:12px 16px;
  border:1px solid var(--danger);
  background:var(--danger-soft);
  color:var(--danger);
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  text-align:right;
}
.section.dark .form-error{
  background:rgba(255,80,80,0.08);
  border-color:rgba(255,120,120,0.4);
  color:#ffb4b4;
}

/* Success panel after HTMX submit */
.success{
  max-width:520px;margin:0 auto;
  text-align:center;
  padding:32px;
  border:1px solid var(--line);
  border-radius:16px;
}
.section.dark .success{border-color:rgba(255,255,255,0.18)}
.success h3{font-family:'Thmanyah Display';font-weight:700;font-size:clamp(20px,2.5vw,28px);letter-spacing:-0.02em;margin-bottom:12px}
.success p{font-family:'Thmanyah Text';font-weight:400;color:var(--ink-mute);line-height:1.5;margin:0}
.section.dark .success p{color:rgba(255,255,255,0.55)}

/* ============== UTILITY CLASSES (subpages, replace inline styles) ============== */
/* Center an `.eyebrow` (which is display:flex by default) */
.eyebrow--center{justify-content:center}
/* Center the H2 max-width box (also works on .lede when reused) */
.h2--center{margin-inline-start:auto;margin-inline-end:auto;text-align:center;text-wrap:balance}
/* Section content offset after a centered title block */
.inner--offset{margin-top:48px}
.inner--offset-lg{margin-top:64px}
.inner--offset-xl{margin-top:80px}
/* Narrower prose inner */
.inner--narrow{max-width:880px}
/* Centered CTA group with stacked layout */
.cta-group--centered{margin:0 auto 48px;justify-content:center}
/* Legal-quote block — used in /disclaimer for verbatim Saudi-law citations */
.legal-quote{
  padding-inline-start:24px;
  border-inline-start:1px solid var(--ink);
  font-size:16px;
}
/* External-link affordance — small ↗ glyph after the link */
.ext-link::after{
  content:"↗";
  display:inline-block;
  margin-inline-start:4px;
  font-size:.85em;
  color:currentColor;
  opacity:.7;
}

/* ============== PROSE (subpages) ============== */
.prose{
  max-width:760px;
  /* Align to inline-start (right in RTL) so prose right-edge meets the
     title block above it. `margin-inline-end:auto` pushes the box to the
     start side. Pages that want centered prose can opt-in via .prose--center. */
  margin:0;
  margin-inline-end:auto;
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:clamp(16px,1.6vw,18px);
  line-height:1.5;
  color:var(--ink);
}
/* Opt-in centering for sections whose title block is centered (e.g. waqf §١). */
.prose.prose--center{margin-inline-start:auto;margin-inline-end:auto}
.prose p{margin:0 0 22px}
.prose strong{font-weight:600}
.prose em{font-style:italic;color:var(--ink-mute)}

/* Triptych (waqf 3 pillars) */
.triptych{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  max-width:1100px;
  margin:0 auto;
  text-align:right;
}
.triptych > div{padding:40px 0 0;padding-inline-end:32px;border-top:1px solid var(--ink)}
.triptych > div:last-child{padding-inline-end:0}
.triptych .lbl{font-family:'Thmanyah';font-weight:300;font-size:13px;color:var(--ink-mute);margin-bottom:14px}
.triptych h3{font-family:'Thmanyah Display';font-weight:700;font-size:clamp(26px,2.6vw,34px);line-height:1.2;letter-spacing:-0.025em;margin-bottom:14px}
.triptych p{font-family:'Thmanyah Text';font-weight:400;font-size:15px;line-height:1.5;color:var(--ink-mute);margin:0}

/* Compare (yes/no — disclaimer) */
.compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  max-width:1100px;
  margin:0 auto;
}
.compare > div{padding-top:32px;border-top:1px solid var(--ink)}
.compare h3{
  font-family:'Thmanyah Display';
  font-weight:700;
  font-size:clamp(22px,2.2vw,28px);
  letter-spacing:-0.02em;
  margin-bottom:24px;
  display:flex;align-items:center;gap:10px;
}
.compare .mark{
  display:inline-grid;place-items:center;
  width:28px;height:28px;border-radius:50%;
  background:var(--ink);color:#fff;font-size:14px;font-weight:700;
}
.compare .no .mark{background:var(--line);color:var(--ink)}
.compare ul{
  list-style:none;
  font-family:'Thmanyah Text';
  font-weight:400;
  font-size:15px;
  line-height:1.5;
  color:var(--ink-mute);
}
.compare li{padding:14px 0;border-top:1px solid var(--line)}
.compare li:first-child{border-top:none}
.compare strong{font-weight:600;color:var(--ink)}

/* ============== FOOTER (DARK) ============== */
footer{
  background:var(--ink);
  color:#FFFFFF;
  padding:clamp(64px,8vw,96px) 0 32px;
}
.foot-mark{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad-x) clamp(48px,6vw,72px);
  text-align:center;
}
.foot-mark .tag{margin-inline:auto;max-width:560px}
.foot-mark h2{
  font-family:'Thmanyah Display';
  font-weight:900;
  font-size:clamp(56px,9vw,120px);   /* a confident closer, not a takeover */
  line-height:1;
  letter-spacing:-0.02em;
  color:#FFFFFF;
  margin-bottom:0;
  max-width:none;
}
.foot-mark .tag{
  font-family:'Thmanyah';
  font-weight:300;
  font-size:clamp(15px,1.6vw,18px);
  color:rgba(255,255,255,0.55);
  margin-top:24px;
  letter-spacing:-0.005em;
}
.foot-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:32px var(--pad-x) 0;
  border-top:1px solid rgba(255,255,255,0.15);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}
.foot-inner .meta{font-family:'Thmanyah';font-weight:300;font-size:13px;color:rgba(255,255,255,0.55);line-height:1.5}
.foot-links{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px 28px;
  font-family:'Thmanyah';
  font-weight:400;
  font-size:14px;
  color:rgba(255,255,255,0.55);
}
.foot-links a:hover{color:#FFFFFF}
.foot-links a.active{color:#FFFFFF;font-weight:500}

/* ============== RESPONSIVE ============== */
@media (max-width:980px){
  :root{--gap:clamp(96px,12vw,160px)}
  .verbs{grid-template-columns:repeat(2,1fr)}
  .verb:nth-child(n+3){margin-top:40px}
  .verb:nth-child(2){padding-inline-end:0}
  .steps{grid-template-columns:1fr;max-width:560px}
  .step{padding-inline-end:0;padding-top:32px}
  .step:first-child{padding-top:40px}
  .triptych{grid-template-columns:1fr;max-width:560px}
  .triptych > div{padding-inline-end:0;padding-top:32px}
  .compare{grid-template-columns:1fr;gap:40px}
}
@media (max-width:640px){
  :root{--gap:clamp(72px,14vw,120px)}
  /* All 5 nav links visible — shrink gap + font, scroll horizontally
     if the user has system text scaling. No more hiding the first link. */
  .nav ul{gap:14px;font-size:12px;flex-wrap:wrap;justify-content:flex-end}
  .hero h1{font-size:clamp(38px,11vw,80px);letter-spacing:-0.04em}
  .hero .pre{font-size:12px;padding:6px 14px}
  h2{font-size:clamp(30px,7.5vw,44px)}
  .cite blockquote{font-size:clamp(18px,4.8vw,24px)}
  .cite-meta{grid-template-columns:1fr;gap:18px;padding:24px 0}
  .convo{padding:20px;border-radius:14px}
  .convo-head{font-size:12px}
  .q-text{font-size:16px}
  .pull p{font-size:clamp(20px,5.5vw,28px)}
  .hero .agents{font-size:12px;gap:6px 14px}
  .cta-group{flex-direction:column;width:100%;align-items:stretch;max-width:340px;margin-left:auto;margin-right:auto}
  .cta-group .btn{justify-content:center}
  .foot-inner{flex-direction:column;align-items:flex-start}
}
@media (max-width:420px){
  .verbs{grid-template-columns:1fr;max-width:380px}
  .verb{padding-inline-end:0}
  .verb:nth-child(n+2){margin-top:32px}
  .nav-inner{padding:12px 18px;height:52px}
  .brand{font-size:20px}
  :root{--pad-x:18px}
}

/* ============== MOTION ============== */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform:translateY(14px);
    transition:opacity .7s ease, transform .7s ease;
  }
  .reveal.on{opacity:1;transform:none}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  html{scroll-behavior:auto}
}
