/* Deenra landing page: the app's night green, leaf green and crescent gold. Dark-first like the app. */
:root {
  --bg: #09110E;
  --bg-2: #0D1813;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --fg: #F1EEE4;
  --muted: #9DAEA3;
  --leaf: #5CD68A;
  --gold: #E8BE5A;
  --gold-deep: #B8862B;
  --haram: #FF6B6B;
  --doubt: #F2C14E;
  --halal: #5CD68A;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 900px;
  background: radial-gradient(closest-side at 70% 30%, rgba(47, 168, 102, 0.28), transparent 70%),
    radial-gradient(closest-side at 15% 10%, rgba(232, 190, 90, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--leaf); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.shell { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1E1608; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
.kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 18px; margin: 12px auto 0; max-width: 56ch; }
.sub.left { margin-inline: 0; }
.gold { color: var(--gold); }

/* Nav */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(9, 17, 14, 0.72); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 23px; font-weight: 600; }
.brand img { border-radius: 9px; }
.brand .ra { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-cta { color: #1E1608; background: linear-gradient(135deg, #F7DE9A, var(--gold) 45%, var(--gold-deep)); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232, 190, 90, .45); border-radius: 999px; padding: 6px 14px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(92, 214, 138, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(92, 214, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 214, 138, 0); } }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; margin: 20px 0 18px; }
.lede { color: var(--muted); font-size: 19px; max-width: 54ch; margin: 0; }
.trust-row { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.trust-row li::before { content: "✓ "; color: var(--leaf); font-weight: 700; }

/* Waitlist form */
.join { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 28px; max-width: 520px; }
.join.center { margin-inline: auto; }
.get-row { margin-top: 28px; display: grid; gap: 10px; justify-items: start; }
.get-row.center { justify-items: center; text-align: center; }
.get-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; color: #1E1608; background: linear-gradient(135deg, #F7DE9A, var(--gold) 45%, var(--gold-deep)); box-shadow: 0 10px 30px rgba(232, 190, 90, .25); transition: transform .15s ease, box-shadow .15s ease; }
.get-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(232, 190, 90, .35); }
.get-note { margin: 0; font-size: 13px; opacity: .75; }
@media (max-width: 480px) { .get-row { justify-items: stretch; } .get-btn { justify-content: center; font-size: 15px; padding: 0 18px; white-space: nowrap; } }
.join input[type="email"] {
  height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg);
  padding: 0 18px; font: inherit; font-size: 17px; min-width: 0;
}
.join input[type="email"]::placeholder { color: #7D8F84; }
.join input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 190, 90, .2); }
.join button, .btn {
  height: 56px; padding: 0 24px; border: 0; border-radius: 16px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  color: #1E1608; background: linear-gradient(135deg, #F7DE9A, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 10px 28px rgba(232, 190, 90, .25); transition: transform .15s ease, opacity .15s;
}
.join button:hover, .btn:hover { transform: translateY(-1px); }
.join button:active, .btn:active { transform: scale(.98); }
.join button[disabled] { opacity: .7; cursor: progress; }
.join-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.join-note.ok { color: var(--leaf); font-weight: 600; }
.join-note.err { color: var(--haram); font-weight: 600; }
.join.done input, .join.done button { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) { .join { grid-template-columns: 1fr; } .join button { width: 100%; } }

/* Phone mockup */
.phone-wrap { position: relative; justify-self: center; }
.phone {
  width: 300px; height: 610px; border-radius: 48px; padding: 12px; position: relative;
  background: linear-gradient(160deg, #2a3530, #0b120f); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
}
.notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.screen {
  height: 100%; border-radius: 38px; overflow: hidden; padding: 58px 16px 16px; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(120% 60% at 50% 20%, var(--tint, rgba(200, 69, 59, .35)), transparent 70%), #0b100e;
  transition: background .6s ease;
}
.screen[data-verdict="halal"] { --tint: rgba(47, 168, 102, .35); --v: var(--halal); }
.screen[data-verdict="doubtful"] { --tint: rgba(201, 138, 18, .32); --v: var(--doubt); }
.screen[data-verdict="haram"] { --tint: rgba(200, 69, 59, .38); --v: var(--haram); }
.p-head { display: flex; gap: 10px; align-items: center; }
.p-thumb { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.p-brand { font-size: 11px; color: var(--muted); }
.p-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.p-verdict { border-radius: 22px; padding: 18px 10px; text-align: center; background: color-mix(in srgb, var(--v) 14%, transparent); border: 1px solid color-mix(in srgb, var(--v) 45%, transparent); }
.p-icon { width: 38px; height: 38px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #0b100e; font-weight: 900; }
.p-label { font-family: var(--body); font-weight: 900; font-size: 34px; letter-spacing: .04em; color: var(--v); line-height: 1.1; }
.p-reason { font-size: 13px; color: var(--fg); opacity: .9; }
.p-sub { font-size: 11px; color: var(--muted); margin-bottom: -6px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.chip.good { color: var(--leaf); border-color: rgba(92, 214, 138, .35); background: rgba(92, 214, 138, .1); }
.chip.alert { color: #FF9A5C; border-color: rgba(255, 154, 92, .35); background: rgba(255, 154, 92, .1); }
.p-card { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.p-card-title { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.p-card-title span { font-weight: 400; color: var(--muted); font-size: 10px; }
.p-card ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; }
.p-card li { padding: 3px 0 3px 14px; position: relative; }
.p-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--doubt); }
.p-card li.r::before { background: var(--haram); }
.p-card li.g::before { background: var(--halal); }
.p-log { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.p-log span { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.p-log b { flex: 1.4; text-align: center; background: var(--leaf); color: #062015; border-radius: 12px; padding: 9px; font-size: 13px; }
.screen.swap .p-verdict { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { 0% { transform: scale(.85); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.float { position: absolute; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: rgba(13, 24, 19, .92); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.f1 { left: -46px; top: 120px; color: var(--gold); }
.f2 { right: -40px; top: 360px; color: var(--leaf); animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Quiz */
.quiz-sec { padding-block: 80px; background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); text-align: center; }
.quiz { max-width: 640px; margin: 36px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; text-align: left; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.q-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.q-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--leaf), var(--gold)); transition: width .4s ease; }
.q-score b { color: var(--gold); }
.q-card h3 { font-size: 30px; margin: 22px 0 8px; }
.q-ing { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.q-ing mark { background: none; color: var(--fg); font-weight: 700; text-decoration: underline wavy rgba(232, 190, 90, .7); text-underline-offset: 4px; }
.q-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q-choices button { height: 58px; border-radius: 16px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); color: var(--fg); transition: transform .12s, background .2s, border-color .2s, opacity .2s; }
.q-choices button:hover:not([disabled]) { transform: translateY(-2px); }
.c-halal { --c: var(--halal); } .c-doubt { --c: var(--doubt); } .c-haram { --c: var(--haram); }
.q-choices button:hover:not([disabled]) { border-color: var(--c); color: var(--c); }
.q-choices button.picked { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--c); }
.q-choices button.answer { color: var(--c); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.q-choices button[disabled]:not(.picked):not(.answer) { opacity: .4; }
.q-reveal { margin-top: 18px; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--v) 12%, transparent); border: 1px solid color-mix(in srgb, var(--v) 40%, transparent); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.q-verdict { font-weight: 900; font-size: 26px; color: var(--v); letter-spacing: .03em; }
.q-why { margin: 6px 0 14px; color: var(--fg); }
.q-next { height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; background: var(--fg); color: var(--bg); }
.q-done { text-align: center; padding: 18px 0 6px; }
.q-final { font-family: var(--display); font-size: 56px; color: var(--gold); line-height: 1; }
.q-done p { font-size: 18px; margin: 12px auto 22px; max-width: 40ch; }
.q-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.fine { color: var(--muted); font-size: 13px; margin: 18px auto 0; max-width: 60ch; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* How */
.how { padding-block: 70px; text-align: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(232, 190, 90, .14); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.steps b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.steps p { color: var(--muted); margin: 6px 0 0; }

/* About */
.about-sec { padding-block: 80px; background: linear-gradient(180deg, transparent, var(--bg-2) 25%, var(--bg-2) 75%, transparent); }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 60ch; }
.about-copy h2 + p { margin-top: 22px; }
.about-copy .sign { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 20px; margin-top: 26px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 18px; padding: 18px 20px; }
.values b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; }
.values span { color: var(--muted); font-size: 16px; }

/* Features */
.features-sec { padding-block: 70px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; text-align: left; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s; min-width: 0; }
.feat:hover { transform: translateY(-3px); border-color: rgba(232, 190, 90, .35); }
.feat .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(92, 214, 138, .12); color: var(--leaf); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.feat b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }
.feat.big { grid-row: span 2; background: linear-gradient(160deg, rgba(47, 168, 102, .22), rgba(255, 255, 255, .03)); }
.feat.big b { font-size: 30px; }

/* Trust */
.trust-sec { padding-block: 40px; border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.trust-item p { color: var(--muted); margin: 6px 0 0; }

/* Plans */
.plans-sec { padding-block: 70px; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin: 40px auto 0; max-width: 880px; text-align: left; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; }
.plan.pro { border-color: rgba(232, 190, 90, .5); background: linear-gradient(160deg, rgba(232, 190, 90, .12), rgba(255, 255, 255, .03)); }
.plan-name { font-family: var(--display); font-size: 28px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font-family: var(--body); font-size: 12px; font-weight: 700; color: #1E1608; background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--fg); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 800; }
.plan.pro li::before { color: var(--gold); }

/* FAQ */
.faq-sec { padding-block: 70px; text-align: center; }
.faq { max-width: 760px; margin: 36px auto 0; text-align: left; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* Final CTA */
.final { padding-block: 80px 90px; text-align: center; background: radial-gradient(60% 70% at 50% 40%, rgba(47, 168, 102, .25), transparent 70%); }
.final img { border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.final h2 { margin-top: 18px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.brand.small { font-size: 19px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Real app screens: a swipeable row of phones */
.screens-sec { padding-block: 70px; text-align: center; }
.screens {
  list-style: none; margin: 36px 0 0; padding: 8px max(20px, calc((100vw - 1180px) / 2)) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; text-align: left;
}
.screens li { scroll-snap-align: center; }
.screens figure { margin: 0; }
/* Same phone as the hero mockup */
.screens .device {
  position: relative; padding: 9px; border-radius: 42px; margin-top: 8px;
  background: linear-gradient(160deg, #2a3530, #0b120f);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transition: transform .4s ease;
}
/* Soft fade where the screenshot ends, so the screen doesn't stop mid-card */
.screens .device::after {
  content: ""; position: absolute; inset: auto 9px 9px; height: 90px; border-radius: 0 0 33px 33px;
  background: linear-gradient(transparent, #0b100e); pointer-events: none;
}
.screens li:hover .device { transform: translateY(-6px); }
.screens img { display: block; width: 100%; height: auto; border-radius: 33px; background: #0b100e; }
.screens figcaption { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 16px; padding-inline: 4px; }
.screens figcaption b { display: block; color: var(--fg); font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-block: 48px 32px; text-align: left; }
  .phone-wrap { margin-top: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feat.big { grid-row: auto; grid-column: 1 / -1; }
  .steps, .trust-grid, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 550px; }
  .f1 { left: -14px; } .f2 { right: -10px; }
  .quiz { padding: 20px 16px; border-radius: 22px; }
  .q-card h3 { font-size: 26px; }
  .q-choices button { height: 54px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
