/* DeenPlanner — direction A, from the app's src/design/tokens.ts */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-style: normal; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500 600; font-style: normal; font-display: swap; src: url(/fonts/playfair-500.woff2) format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 500 600; font-style: normal; font-display: swap; src: url(/fonts/quicksand-600.woff2) format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/quicksand-700.woff2) format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/amiri-basmala.woff2) format("woff2"); }

:root {
  --cream: #FEFAF1; --surface: #FFFCF7; --surface-alt: #F7F1E8; --sand: #F0E3D3;
  --hairline: #E6D9C7;
  --green: #3A4E2F; --green-deep: #2C3B24; --green-tint: #E6ECE0; --on-green: #FBF5ED;
  --hero-ground: #3A4E2F; --hero-edge: #3A4E2F; --on-hero-muted: #E7DFC9; --hero-gold: #D6B878; --hero-track: #59694D;
  --on-hero-button: #2C3B24;
  --gold: #C4A15A; --gold-text: #806220; --gold-tint: #F5EBD6;
  --ink: #262620; --ink-soft: #4A453B; --ink-muted: #6A6457;
  --bezel: #262620; --bezel-edge: #3A3830;
  --shadow: 0 30px 60px -28px rgba(38, 38, 32, .35), 0 12px 24px -16px rgba(38, 38, 32, .25);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --label: "Quicksand", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #161913; --surface: #1E231B; --surface-alt: #252C21; --sand: #252C21;
    --hairline: #323A2D;
    --green: #B4C8A6; --green-deep: #7FA06A; --green-tint: #28331F; --on-green: #FBF5ED;
    --hero-ground: #2F3F27; --hero-edge: #3F5235; --on-hero-muted: #DDD5BF; --hero-gold: #D6B878; --hero-track: #505C47;
    --gold: #D6B878; --gold-text: #D6B878; --gold-tint: #2E2A1E;
    --ink: #F0EBE1; --ink-soft: #CFC8B8; --ink-muted: #A3A395;
    --bezel: #0B0D09; --bezel-edge: #3A4433;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 12px 24px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--hero-ground); color: var(--on-green); font-family: var(--label); font-weight: 700; }
.skip:focus { top: 12px; color: var(--on-green); }

.eyebrow {
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px;
}
.eyebrow-on-green { color: var(--hero-gold); }
.muted { color: var(--ink-muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--hairline); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--cream); } }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 22px; font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { background: var(--surface-alt); color: var(--ink); }

/* Hero */
.hero { padding: 28px 0 48px; overflow-x: hidden; overflow-x: clip; overflow-y: visible; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.basmala { font-family: "Amiri", serif; font-size: 22px; line-height: 1.6; color: var(--gold-text); margin-bottom: 18px; text-align: left; }
.hero h1 { font-size: clamp(38px, 10.5vw, 64px); margin-bottom: 18px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px;
  border-radius: 27px; background: var(--hero-ground); color: var(--on-green);
  font-family: var(--label); font-weight: 700; font-size: 18px; line-height: 1.1;
  border: 1px solid var(--hero-edge);
}
.store-badge small { display: block; font-size: 12px; font-weight: 600; color: var(--on-hero-muted); letter-spacing: .02em; }
.text-link { font-family: var(--label); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform .2s; }

.hero-visual { position: relative; display: grid; justify-items: center; padding-top: 70px; }
.hero-arch { position: absolute; top: 0; left: 50%; width: min(92%, 440px); transform: translateX(-50%); opacity: .95; }
.hero-arch img { width: 100%; }
.phone-hero { position: relative; z-index: 1; }

@media (min-width: 920px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero-visual { padding-top: 90px; }
  .phone-hero { --s: .72; }
}

/* Phone mockups: the app's own screens, scaled */
.phone {
  --s: .62;
  margin: 0; padding: 10px; flex: none;
  width: calc(390px * var(--s) + 20px);
  border-radius: calc(54px * var(--s) + 10px);
  background: var(--bezel);
  box-shadow: inset 0 0 0 1.5px var(--bezel-edge), var(--shadow);
}
.phone-screen {
  position: relative; overflow: hidden;
  width: calc(390px * var(--s)); height: calc(844px * var(--s));
  border-radius: calc(54px * var(--s));
  background: #FEFAF1;
  -webkit-user-select: none; user-select: none; pointer-events: none;
}
.phone-screen > div { transform: scale(var(--s)); transform-origin: 0 0; }
.phone-screen::before { /* dynamic island */
  content: ""; position: absolute; z-index: 2; top: calc(11px * var(--s) + 2px); left: 50%;
  width: calc(120px * var(--s)); height: calc(34px * var(--s)); border-radius: 20px;
  transform: translateX(-50%); background: #0B0D09;
}
.phone-screen > div > div:first-child { padding-top: 40px !important; } /* room under the island */
@media (min-width: 380px) { .phone { --s: .66; } }
@media (min-width: 920px) { .phone { --s: .68; } .phone-hero { --s: .74; } }

/* Intro */
.intro { padding-top: 40px; padding-bottom: 24px; }
.intro p { font-family: var(--display); font-size: clamp(22px, 5.4vw, 30px); line-height: 1.4; max-width: 30em; margin: 0 auto; text-align: center; color: var(--ink); }

/* Features */
.feature { display: grid; gap: 28px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature-media { display: grid; justify-items: center; }
.feature h2 { font-size: clamp(30px, 7.4vw, 42px); margin-bottom: 16px; }
.feature-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 32em; }
.illus { width: min(78%, 360px); }
.illus-small { width: min(52%, 220px); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 88px; padding-bottom: 88px; }
  .feature-flip .feature-media { order: 2; }
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 11px;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A4E2F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4C8A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
}

.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.reciters { margin-top: 24px; padding: 6px 0; max-width: 26em; }
.card-label { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); padding: 12px 18px 4px; }
.reciters ul { list-style: none; margin: 0; padding: 0; }
.reciters li { padding: 12px 18px; font-size: 16px; }
.reciters li + li { border-top: 1px solid var(--hairline); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.chips li { padding: 8px 16px; border-radius: 18px; background: var(--gold-tint); color: var(--gold-text); font-family: var(--label); font-weight: 700; font-size: 15px; }

/* Privacy hero card */
#privacy { padding-top: 40px; padding-bottom: 32px; scroll-margin-top: 72px; }
#features { scroll-margin-top: 40px; }
.hero-card { border-radius: 24px; background: var(--hero-ground); color: var(--on-green); border: 1px solid var(--hero-edge); }
.privacy { padding: 32px 22px; display: grid; gap: 28px; }
.privacy h2 { font-size: clamp(32px, 8vw, 46px); margin-bottom: 10px; }
.privacy-head p:last-child { color: var(--on-hero-muted); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.promises li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--hero-track); }
.promises li:first-child { border-top: 0; }
.promises strong { display: block; font-family: var(--label); font-weight: 700; font-size: 17px; color: var(--on-green); }
.promises li > span:last-child { color: var(--on-hero-muted); font-size: 16px; }
.tile { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(251, 245, 237, .1); }
.tile svg { width: 20px; height: 20px; fill: none; stroke: var(--hero-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 820px) {
  .privacy { grid-template-columns: .8fr 1.2fr; padding: 56px; gap: 56px; align-items: start; }
}

/* Support */
.support-card { display: flex; flex-direction: column; gap: 20px; padding: 28px 22px; border-radius: 24px; background: var(--gold-tint); border: 1px solid var(--hairline); }
.support-card img { width: 72px; }
.support-card h2 { font-size: clamp(26px, 6.4vw, 34px); margin-bottom: 12px; }
.support-card p:not(.eyebrow) { color: var(--ink-soft); max-width: 40em; }
@media (min-width: 720px) { .support-card { flex-direction: row; align-items: center; gap: 36px; padding: 40px 48px; } .support-card img { width: 96px; } }

.closing { text-align: center; padding-top: 72px; padding-bottom: 88px; }
.closing h2 { font-size: clamp(30px, 7.4vw, 44px); margin-bottom: 12px; }
.closing p { color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface-alt); padding: 40px 0 48px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid .brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.credits h2 { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.credits ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-soft); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* Reveal on scroll — only when JS is running and motion is welcome */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .text-link span { transition: none; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 120px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(34px, 9vw, 52px); margin-bottom: 12px; }
.notfound p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 25px; background: var(--hero-ground); color: var(--on-green); text-decoration: none; font-family: var(--label); font-weight: 700; font-size: 16px; }
.button:hover { color: var(--on-green); background: var(--green-deep); }
@media (prefers-color-scheme: dark) { .button:hover { background: #3F5235; } }
