/* www.miaad.club. The app's palette (mobile/lib/theme.dart) and the design file's type (design/figma). Logical
   properties throughout, so the Arabic pages mirror by themselves. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.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: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url('/assets/fonts/plex-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: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url('/assets/fonts/plex-arabic-500.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: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url('/assets/fonts/plex-arabic-600.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: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url('/assets/fonts/plex-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; }

:root {
  --teal-dark: #061f24;
  --teal-deep: #0b3a41;
  --teal-mid: #14505a;
  --gold: #d2ad63;
  --gold-light: #f3dda2;
  --gold-dark: #a9823f;
  --ivory: #f6f1e7;
  --canvas: #f7f4ee;
  --outline: #e6dfd2;
  --ink: #0f2a2e;
  --muted: #5b6b6e;
  --brand: radial-gradient(ellipse 70% 60% at 22% 18%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-deep) 55%, var(--teal-dark) 100%);
  --shadow: 0 12px 24px rgba(6, 31, 36, 0.25);
}
[dir='rtl'] {
  --brand: radial-gradient(ellipse 70% 60% at 78% 18%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%),
    linear-gradient(225deg, var(--teal-mid) 0%, var(--teal-deep) 55%, var(--teal-dark) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang='ar'] body { font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.7; }
[lang='ar'] * { letter-spacing: 0 !important; }
a { color: var(--teal-deep); }
img { display: block; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.placeholder { background: #fde7e4; color: #ba1a1a; padding: 0 4px; border-radius: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 244, 238, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--outline); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-deep); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.logo img { width: 38px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--teal-deep); }
.site-nav .lang { color: var(--teal-deep); font-weight: 600; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(11, 58, 65, 0.2); }

/* hero */
.hero { background: var(--brand); color: var(--ivory); }
.hero .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-block: 96px 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(210, 173, 99, 0.55); background: rgba(210, 173, 99, 0.14); color: var(--gold-light); font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.025em; margin: 24px 0 20px; font-weight: 600; }
[lang='ar'] .hero h1 { line-height: 1.28; font-size: clamp(36px, 4.8vw, 56px); }
.lead { font-size: 19px; color: rgba(246, 241, 231, 0.82); max-width: 580px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding-inline: 28px; border-radius: 16px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--teal-dark); box-shadow: 0 8px 20px rgba(210, 173, 99, 0.25); }
.btn.ghost { border: 1px solid rgba(246, 241, 231, 0.35); color: var(--ivory); }
.btn.primary { background: var(--teal-deep); color: var(--ivory); }

/* the card visual in the hero */
.cards { position: relative; height: 360px; }
.cardface { position: absolute; width: min(360px, 100%); border-radius: 24px; padding: 24px; background: var(--brand); border: 1px solid rgba(246, 241, 231, 0.14); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); color: var(--ivory); }
.cardface.back { inset-inline-start: 56px; top: 0; opacity: 0.7; transform: rotate(-5deg); }
[dir='rtl'] .cardface.back { transform: rotate(5deg); }
.cardface.front { inset-inline-start: 0; top: 112px; }
.cardface .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 17px; }
.cardface .digits { direction: ltr; color: rgba(246, 241, 231, 0.65); letter-spacing: 0.12em; font-size: 14px; }
.cardface .bill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 28px; }
.cardface .label { font-size: 12px; color: rgba(246, 241, 231, 0.65); font-weight: 500; }
.cardface .amount { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.soon { color: var(--gold-light); background: rgba(243, 221, 162, 0.14); border: 1px solid rgba(243, 221, 162, 0.5); }
.pill.paid { color: #9edcbc; background: rgba(158, 220, 188, 0.14); border: 1px solid rgba(158, 220, 188, 0.5); }
.pill svg { width: 14px; height: 14px; fill: currentColor; }

/* sections */
.section { padding-block: 96px; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 600; }
.section .sub { color: var(--muted); font-size: 18px; max-width: 660px; margin: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.tile-card { background: #fff; border: 1px solid var(--outline); border-radius: 22px; padding: 26px; }
.tile-card h3 { font-size: 18px; margin: 20px 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.tile-card p { color: var(--muted); margin: 0; font-size: 15px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: rgba(11, 58, 65, 0.07); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 24px; height: 24px; fill: var(--teal-deep); }
.icon-tile.gold { background: rgba(210, 173, 99, 0.16); }
.icon-tile.gold svg { fill: var(--gold-dark); }
.row-card { display: flex; gap: 18px; align-items: flex-start; }
.row-card h3 { margin-top: 2px; }

.halal { background: #fff; border: 1px solid var(--outline); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.halal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.halal li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; font-weight: 500; padding: 18px 20px; border-radius: 18px; background: rgba(210, 173, 99, 0.1); border: 1px solid rgba(210, 173, 99, 0.4); }
.halal li svg { flex: none; width: 24px; height: 24px; fill: var(--gold-dark); }

.cta { background: var(--brand); color: var(--ivory); border-radius: 32px; padding: 64px 40px; text-align: center; box-shadow: var(--shadow); }
.cta h2 { color: var(--ivory); }
.cta p { color: rgba(246, 241, 231, 0.82); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }

/* documents: privacy, terms, help */
.doc { max-width: 780px; margin-inline: auto; padding: 72px 24px 104px; }
.doc h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; font-weight: 600; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; font-weight: 600; }
.doc h3 { font-size: 16px; margin: 24px 0 6px; font-weight: 600; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; font-size: 15px; margin-top: 8px; }
.doc th, .doc td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--outline); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--canvas); font-weight: 600; }
.doc .contact-card { margin-top: 32px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--outline); }

/* footer */
.site-footer { border-top: 1px solid var(--outline); padding-block: 44px 56px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; }
.site-footer .brand img { width: 34px; height: auto; margin-top: 2px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--teal-deep); }
.ltr { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 960px) {
  .hero .grid { grid-template-columns: 1fr; padding-block: 64px 72px; }
  .cards { height: 300px; max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .halal { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
@media (max-width: 620px) {
  .site-nav a:not(.lang) { display: none; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .cta { padding: 44px 24px; border-radius: 24px; }
  .cardface { width: 300px; }
  .cardface.back { inset-inline-start: 40px; }
  .cardface.front { top: 96px; }
  .actions .btn { flex: 1 1 100%; }
}
