/* HAYAH+ landing — design tokens from lib/core/theme/app_theme.dart (light only, no dark mode). */

:root {
  --background: #fffdee;
  --card: #ffffff;
  --input: #f4f8f2;
  --navy: #10243a;
  --navy-light: #173a57;
  --primary: #075b4c;
  --secondary: #e1eee5;
  --secondary-foreground: #174438;
  --accent: #b58a3a;
  --accent-light: #f4d47a;
  --on-accent-light: #4b3510;
  --muted: #e3efe5;
  --muted-foreground: #5a655f;
  --border: #d7ddd5;
  --success: #237a4b;
  --error: #b63d3d;
  --radius: 20px;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--navy);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; position: relative; z-index: 10; }

section[id] { scroll-margin-top: 6rem; }

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { line-height: 1.7; }

a { color: var(--primary); }

/* Eight-point star / geometric lattice motif (very low opacity, Islamic pattern). */
.lattice {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%2310243A' stroke-opacity='0.05'%3E%3Crect x='33' y='33' width='30' height='30'/%3E%3Crect x='33' y='33' width='30' height='30' transform='rotate(45 48 48)'/%3E%3Crect x='-15' y='-15' width='30' height='30' transform='rotate(45 0 0)'/%3E%3Crect x='81' y='-15' width='30' height='30' transform='rotate(45 96 0)'/%3E%3Crect x='-15' y='81' width='30' height='30' transform='rotate(45 0 96)'/%3E%3Crect x='81' y='81' width='30' height='30' transform='rotate(45 96 96)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}

/* Fixed cream-blur nav. */
header.nav-blur {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 253, 238, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark { width: 1.9rem; height: 1.9rem; color: var(--primary); }

.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }
@media (min-width: 640px) { .nav-links { display: flex; } }

/* Primary CTA in nav. */
.nav-cta {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
}

/* Hero. */
.hero {
  position: relative;
  padding: 9rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 92vh;
}

.hero-glow {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 560px;
  border-radius: 9999px;
  background: var(--secondary);
  filter: blur(120px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } }

/* Subtle deep-green → navy headline gradient. */
.hero-gradient-text {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, var(--primary), var(--navy));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.6rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); }

.sub {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--muted-foreground);
  max-width: 34rem;
}

.cta-row { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(7, 91, 76, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(7, 91, 76, 0.32); }
.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.store-row { margin-top: 2.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.store-badge {
  display: flex;
  flex-direction: column-reverse;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  line-height: 1.25;
}
.store-badge small { font-size: 0.62rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge strong { font-family: "Manrope", sans-serif; font-size: 0.95rem; }

/* CSS-only phone mockup. */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 280px;
  border-radius: 2.4rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 30px 80px rgba(16, 36, 58, 0.1);
  padding: 0.8rem;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0.8rem; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 20px;
  border-radius: 9999px;
  background: var(--background);
  z-index: 2;
}
.phone-screen {
  border-radius: 1.8rem;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 2.4rem 1rem 1rem;
}
.pt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; }
.pt-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.pt-name { font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.pt-count { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.85rem; color: var(--primary); }
.pt-arc { width: 100%; margin: 0.4rem 0 0.2rem; }
.pt-list { list-style: none; }
.pt-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.pt-list li.active { background: var(--secondary); color: var(--secondary-foreground); font-weight: 700; }
.pt-hijri { margin-top: 0.6rem; font-size: 0.65rem; color: var(--muted-foreground); text-align: center; }

/* Sections. */
.section { position: relative; max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.section-narrow { max-width: 52rem; }
.section-head { text-align: center; margin-bottom: 3.5rem; position: relative; z-index: 10; }
.section-head .sub { margin-left: auto; margin-right: auto; }
.section > .bento, .section > .ai-grid, .section > .steps, .section > .pricing,
.section > .faq-item, .section > .section-head { position: relative; z-index: 10; }

/* Bento grid. */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); } }

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(16, 36, 58, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 45px rgba(16, 36, 58, 0.1);
}
.bento-card h3 { margin: 1rem 0 0.5rem; }
.bento-card p { font-size: 0.92rem; color: var(--muted-foreground); }
.card-icon { width: 1.6rem; height: 1.6rem; color: var(--primary); }

/* HAYAH AI. */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: 0.95rem; color: var(--muted-foreground); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28rem;
  width: 0.95rem; height: 0.95rem;
  border-radius: 9999px;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Mock chat UI. */
.chat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16, 36, 58, 0.08);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.chat-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--success); }
.chat-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.bubble { max-width: 88%; padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.9rem; }
.bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble-ai {
  align-self: flex-start;
  background: var(--input);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.bubble-ai p { font-size: 0.9rem; margin: 0.6rem 0; color: var(--navy); }
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-accent-light);
  background: var(--accent-light);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips-label {
  margin-top: 0.45rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.chip {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-accent-light);
  background: var(--accent-light);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
}
.chat-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1.2rem 1.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--muted-foreground);
  font-size: 0.85rem;
}
.chat-send {
  width: 1.7rem; height: 1.7rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* Steps. */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(16, 36, 58, 0.06);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--muted-foreground); }

/* Pricing. */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 52rem;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 760px) { .pricing { grid-template-columns: 1fr 1fr; } }

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(16, 36, 58, 0.06);
}
.price-pro { border-color: var(--accent); box-shadow: 0 20px 60px rgba(181, 138, 58, 0.18); }
.popular {
  position: absolute;
  top: -0.85rem; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.8rem 0 0.4rem; }
.amount { font-family: "Manrope", sans-serif; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.period { color: var(--muted-foreground); font-size: 0.95rem; }
.price-card .check-list { flex: 1; margin-bottom: 1.6rem; }

.email-form { display: flex; flex-direction: column; gap: 0.7rem; }
.email-form input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
}
.email-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-note { font-size: 0.78rem; color: var(--muted-foreground); text-align: center; }
.form-note.error { color: var(--error); }

.pro-success { text-align: center; padding: 1.4rem 0.6rem; }
.pro-success h4 { font-size: 1.3rem; font-weight: 800; color: var(--success); margin-bottom: 0.5rem; }
.pro-success p { font-size: 0.92rem; color: var(--muted-foreground); }

/* FAQ. */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted-foreground); }

/* Footer. */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
@media (min-width: 760px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.fizyonops-credit { font-size: 0.8rem; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.82rem; color: var(--muted-foreground); }

/* Cookie banner. */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem;
}
.cookie-card {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 40px rgba(16, 36, 58, 0.12);
}
.cookie-card p { font-size: 0.88rem; color: var(--muted-foreground); margin-bottom: 0.9rem; }
.cookie-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

/* Entrance animation. */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* Custom scrollbar. */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-up { animation: none; opacity: 1; transform: none; }
  .bento-card, .btn { transition: none; }
}
