/* islamicazkar.net landing page (/, /ar/, /fr/), built by tools/build_landing.py.
   Values follow .claude/skills/redesign-existing-projects: one Latin face (Manrope), the skill's dark
   palette, spacing scale and Tailwind type and radius steps; Arabic text keeps an Arabic face (IBM Plex
   Sans Arabic for the interface, Amiri for the Quran and duas) and the gold accent is the brand's own. */
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  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: "Manrope"; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; src: url(/fonts/ibmplexsansarabic_medium.ttf) format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(/fonts/ibmplexsansarabic_semibold.ttf) format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(/fonts/amiri_regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(/fonts/amiri_bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

/* Layout: one 1200px column, a hero that opens on the reading side with an overlapping phone,
   features in a zig zag. Colors: the app's deep green shading down, its geometric pattern, gold frames
   and gold calligraphy (the owner's choice over the redesign skill's flat dark palette). */
:root {
  color-scheme: dark;
  --bg: #08231a;        /* deep green, as in the app */
  --surface: rgba(16, 52, 39, .72); /* raised blocks over the pattern */
  --surface-2: #123b2c; /* chips */
  --line: rgba(214, 179, 106, .28); /* thin gold frames */
  --text: #FFFFFF;
  --muted: #a9b8b1;     /* green grey */
  --accent: #d9b66c;    /* Islamic Azkar gold */
  --gold: #d6b36a; --gold-light: #f1dba3;
  --on-accent: #0a1c15;
  --font: "Manrope", "Plex Arabic", ui-sans-serif, system-ui, sans-serif;
  --arabic: "Amiri", "Geeza Pro", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dir: 1;             /* -1 in Arabic: arrows and nudges point the other way */
  --z-nav: 20; --z-menu: 30;
}
[dir="rtl"] { --font: "Plex Arabic", "Manrope", ui-sans-serif, system-ui, sans-serif; --dir: -1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #061710; }
body { margin: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'><g fill='none' stroke='%23b7d9c6' stroke-opacity='.07' stroke-width='1.2'><rect x='20' y='20' width='56' height='56'/><path d='M48 8 L88 48 L48 88 L8 48 Z'/><path d='M0 0 L20 20 M96 0 L76 20 M0 96 L20 76 M96 96 L76 76'/></g></svg>") repeat, linear-gradient(180deg, #0c3a2a 0%, #08231a 45%, #051510 100%) fixed; background-color: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 24px; font-weight: 400;
  -webkit-font-smoothing: antialiased; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* Texture instead of a gradient: a faint grain over the flat ground. */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.wrap { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.skip { position: absolute; inset-inline-start: 16px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: var(--z-menu); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* Named text styles (landing-page-design B1). Arabic gets no tracking (it would break the joins)
   and more line height for its tall letters. */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .heading-1 { line-height: 1.35; }
[dir="rtl"] .heading-2, [dir="rtl"] .tagline p { line-height: 1.4; }
[dir="rtl"] .heading-4 { line-height: 1.5; }
[dir="rtl"] .body-3, [dir="rtl"] .body-6, [dir="rtl"] .sub { line-height: 1.8; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.ar { font-family: var(--arabic); direction: rtl; }

/* Buttons: full state set */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--text); }
.btn-text { color: var(--text); }
.btn-text:hover { color: var(--accent); }
.btn-text .nudge { display: inline-flex; transition: transform 500ms var(--ease); }
.btn-text:hover .nudge { transform: translateX(calc(4px * var(--dir))); }

/* Floating navigation */
.nav { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 0; right: 0; margin-inline: auto; width: max-content; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 16px; padding-block: 8px; padding-inline: 16px 8px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(19, 18, 9, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); max-width: calc(100% - 32px); white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .ar { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .langs a { padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"], .langs a:hover { color: var(--text); background: var(--surface-2); }
.langs { display: flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); }
.langs a { padding: 4px 8px; border-radius: 4px; }
.langs a[aria-current="true"] { color: var(--on-accent); background: var(--accent); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-btn i:nth-child(1) { top: 14px; } .menu-btn i:nth-child(2) { top: 19px; } .menu-btn i:nth-child(3) { top: 24px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(19, 18, 9, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 300ms; }
.menu.open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.menu > a { font-size: 30px; line-height: 36px; font-weight: 600; padding: 12px 0; opacity: 0; transform: translateY(24px); transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu.open > a { opacity: 1; transform: none; }
.menu.open > a:nth-child(2) { transition-delay: 60ms; } .menu.open > a:nth-child(3) { transition-delay: 120ms; } .menu.open > a:nth-child(4) { transition-delay: 180ms; }
.menu .langs { align-self: flex-start; margin-top: 24px; }
.menu .langs a { padding: 8px 16px; }
.menu-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 24px); inset-inline-end: 24px; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding-block: 160px 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 680px; min-width: 0; }
.grad { background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .grad { background-image: linear-gradient(270deg, #FFFFFF, #9B9B9B); }
.hero .basmala { font-size: 24px; line-height: 40px; color: var(--accent); text-align: left; }
[dir="rtl"] .hero .basmala { text-align: right; }
.hero .sub { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 680px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .ic { color: var(--accent); width: 16px; height: 16px; }
.stage { position: relative; padding-bottom: 48px; }
.phone { width: 288px; padding: 8px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 32px 64px rgba(19, 18, 9, .8); }
.phone img { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 1320 / 2868; }
.stage .float { position: absolute; inset-inline-start: -96px; bottom: 0; width: 192px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(19, 18, 9, .8); }
.stage .float img { display: block; width: 100%; height: auto; border-radius: 8px; aspect-ratio: 1320 / 2868; }

/* Numbers that are true today (data/azkar.json) */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-block: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 36px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Tagline reveal */
.tagline { padding-block: 96px; }
.tagline p { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; max-width: 880px; }
.tagline .w { color: rgba(255, 255, 255, .3); transition: color 300ms var(--ease); }
.tagline .w.on { color: var(--text); }

/* Features, zig zag */
section { scroll-margin-top: 96px; }
.features { display: flex; flex-direction: column; gap: 96px; padding-block: 64px 96px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature:nth-child(even) .media { order: -1; }
.feature .copy { display: flex; flex-direction: column; gap: 16px; max-width: 520px; min-width: 0; }
.feature .label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.feature ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--muted); }
.feature li .ic { color: var(--accent); margin-top: 2px; }
.feature li b { color: var(--text); font-weight: 600; }
.media { display: flex; justify-content: center; }
.media .phone { width: 264px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sources span { padding: 4px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }

/* How it works: a real order */
.howto { padding-block: 64px 96px; }
.steps-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.step { padding: 24px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.step .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.step .ar { font-size: 24px; line-height: 40px; color: var(--accent); }

/* Download */
.download { padding-block: 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.download .lead { display: flex; flex-direction: column; gap: 16px; }
.free { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.free span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); }
.free .ic { color: var(--accent); width: 16px; height: 16px; }
.platforms { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.platform { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line);
  transition: background-color 300ms var(--ease); }
.platform:first-child { border-top: 0; }
a.platform:hover { background: var(--surface); }
.platform > .ic { width: 24px; height: 24px; }
.platform .go { display: inline-flex; color: var(--muted); transition: transform 500ms var(--ease), color 300ms var(--ease); }
a.platform:hover .go { transform: translateX(calc(4px * var(--dir))); color: var(--accent); }
.platform .soon { color: var(--accent); }

/* FAQ, side by side */
.faq { padding-block: 64px 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 32px; }
.faq dt { margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--muted); }
.faq dd a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Dedication: the app's sadaqa jariyah card */
.dedication { padding-block: 64px; }
.ded-card { max-width: 640px; margin: 0 auto; padding: 48px 32px; border-radius: 32px; border: 1px solid rgba(214, 179, 106, .5);
  background: rgba(8, 35, 26, .6); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ded-card .ar { direction: rtl; }
.ded-card .bas { font-size: 30px; line-height: 48px; color: var(--gold); }
.rule { display: flex; align-items: center; gap: 12px; width: 80%; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: rgba(214, 179, 106, .55); }
.rule i { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.ded-card .big { font-family: var(--arabic); font-size: 96px; line-height: 128px; font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ded-card .tr { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .4em; color: #c9a95f; }
.ded-card .names { font-size: 30px; line-height: 40px; font-weight: 500; max-width: 440px; }
.ded-card .names.ar { font-family: var(--arabic); font-size: 30px; line-height: 52px; }
.ded-card .nw { white-space: nowrap; }
.ded-card .dua { font-family: var(--arabic); font-size: 30px; line-height: 48px; color: var(--gold); }
.ded-card .mean { color: var(--muted); font-size: 18px; line-height: 28px; }
.ded-card .hadith { font-family: var(--arabic); font-size: 20px; line-height: 36px; color: rgba(255, 255, 255, .55); }
.ded-card .hmean { color: rgba(169, 184, 177, .8); font-size: 14px; line-height: 20px; max-width: 460px; }
@media (max-width: 720px) {
  .ded-card { padding: 32px 16px; border-radius: 24px; }
  .ded-card .big { font-size: 60px; line-height: 96px; }
  .ded-card .names, .ded-card .names.ar { font-size: 24px; line-height: 36px; }
  .ded-card .dua { font-size: 24px; line-height: 40px; }
}

/* Final call and footer */
.final { padding-block: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; border-top: 1px solid var(--line); }
footer { padding-block: 32px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a { transition: color 300ms var(--ease); }
footer a:hover { color: var(--text); }

/* Scroll reveal: only sections below the first screen start lowered (landing.js), so the page is complete at rest. */
.reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.below { opacity: 0; transform: translateY(32px); }

@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 128px 64px; gap: 48px; }
  .stage { justify-self: center; }
  .feature, .download, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature:nth-child(even) .media { order: 0; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav .langs, .nav .btn-primary { display: none; }
  .menu-btn { display: block; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2, .tagline p { font-size: 30px; line-height: 36px; }
  .heading-4 { font-size: 24px; line-height: 32px; }
  [dir="rtl"] .heading-1, [dir="rtl"] .heading-2, [dir="rtl"] .tagline p, [dir="rtl"] .heading-4 { line-height: 1.5; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts b { font-size: 30px; line-height: 36px; }
  .faq dl { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stage .float { inset-inline-start: -32px; width: 144px; }
  .phone { width: 240px; }
  .tagline, .download, .final { padding-block: 64px; }
  .features { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.below { transform: none; }
  .tagline .w { color: var(--text); transition: none; }
  .menu > a, .btn, .btn-text .nudge, .platform .go, .menu-btn i { transform: none !important; }
}

/* Green theme details */
.grad { background-image: linear-gradient(90deg, #FFFFFF, #cfe0d6); }
[dir="rtl"] .grad { background-image: linear-gradient(270deg, #FFFFFF, #cfe0d6); }
.nav { background: rgba(8, 35, 26, .78); }
.menu { background: rgba(6, 23, 16, .95); }
.phone, .stage .float { background: #0d2f23; border-color: rgba(214, 179, 106, .45); box-shadow: 0 32px 64px rgba(2, 8, 5, .6); }
.step, .platforms, .faq dl > div { border: 1px solid var(--line); }
.platforms { background: rgba(8, 35, 26, .55); }
.faq dl > div { padding: 16px; border-radius: 16px; background: rgba(8, 35, 26, .45); }
.sources span, .free span { background: rgba(18, 59, 44, .8); }
.btn-primary { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.btn-primary:hover { background: var(--text); }
