/* إنبات website. Colors are the app's light theme (apps/mobile/lib/core/theme.dart). */
:root {
  --ground: #F4F7F2;
  --surface: #FFFFFF;
  --raised: #EDF2EB;
  --ink: #1C2820;
  --muted: #5B6B60;
  --line: #D9E2D6;
  --leaf: #336B45;
  --leaf-dark: #24533A;
  --leaf-soft: #E3EFE4;
  --gold: #A0732A;
  --gold-text: #805918;
  --gold-soft: #F6ECD6;
  --wood: #8B5E2B;
  --soil: #9B7128;
  --fruit: #E2B865;
  /* eight-point star (khatam) tile */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23336B45' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h8M64 36h8M36 0v8M36 64v8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  background-image: var(--pattern);
  color: var(--ink);
  font-family: 'Cairo', system-ui, sans-serif;
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
}
a { color: var(--leaf); }
img { max-width: 100%; height: auto; display: block; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(244, 247, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--leaf-dark); font-weight: 800; font-size: 22px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--leaf); }
.top .get { background: var(--leaf); color: #fff; padding: 6px 16px; border-radius: 999px; }
.top .get:hover { color: #fff; background: var(--leaf-dark); }
@media (max-width: 640px) { .top nav a:not(.get):not(.lang-switch) { display: none; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 36px); color: var(--leaf-dark); text-align: center; margin-bottom: 12px; }
h2::after {
  content: ''; display: block; width: 14px; height: 14px; margin: 14px auto 0;
  background: var(--gold); transform: rotate(45deg); border-radius: 2px;
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 5px var(--gold);
}
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 8px auto 32px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding-top: 40px; min-height: calc(100vh - 70px); }
.eyebrow { display: inline-block; color: var(--gold-text); background: var(--gold-soft); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 68px); font-weight: 800; color: var(--ink); }
.hero h1 span { color: var(--leaf); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 18px 0 28px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-art { display: flex; justify-content: center; }
.tree { width: 100%; max-width: 440px; overflow: visible; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 16px; }
  .hero-art { order: -1; }
  .tree { max-width: 240px; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* store buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 190px;
  padding: 10px 20px; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .2s, background .2s;
}
.store:hover { transform: translateY(-2px); background: var(--leaf-dark); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: .8; line-height: 1.3; }
.store b { display: block; font-size: 18px; line-height: 1.3; direction: ltr; text-align: right; }
.store.soon { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); cursor: default; }
.store.soon:hover { transform: none; }
.store.soon small { color: var(--gold-text); opacity: 1; font-weight: 700; }

/* the growing tree */
.tree .arch { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; opacity: .55; animation: draw 2.2s .2s ease-out forwards; }
.tree .arch-inner { stroke-width: 1; opacity: .35; animation-delay: .5s; }
.tree .halo { opacity: 0; animation: fade 1.6s .4s ease-out forwards; }
.tree .seed { fill: var(--fruit); animation: seed 1.1s .1s cubic-bezier(.5, 0, .8, .6) forwards; }
.tree .soil { fill: var(--soil); }
.tree .ground-line { fill: var(--soil); opacity: .35; }
.tree .wood { fill: none; stroke: var(--wood); stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.tree .trunk { stroke-width: 13; animation: draw 1.3s 1.1s ease-out forwards; }
.tree .b { stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .8s ease-out forwards; }
.tree .b1 { animation-delay: 1.8s; } .tree .b2 { animation-delay: 1.95s; }
.tree .b3 { animation-delay: 2.1s; } .tree .b4 { animation-delay: 2.25s; }
.tree .leaf {
  fill: var(--leaf); transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0);
  animation: leaf .6s calc(2.3s + var(--d) * .09s) cubic-bezier(.3, 1.5, .5, 1) forwards, sway 5s calc(3.8s + var(--d) * .2s) ease-in-out infinite alternate;
}
.tree .l2 { fill: var(--leaf-dark); }
.tree .l3 { fill: #4E8A5F; }
.tree .fruits circle { fill: var(--fruit); stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s calc(3.5s + var(--d) * .12s) cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes seed {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(330px); opacity: 1; }
  100% { transform: translateY(345px); opacity: 0; }
}
@keyframes leaf { to { transform: scale(1); } }
@keyframes sway { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1) rotate(3deg); } }
@keyframes pop { to { transform: scale(1); } }

/* ayah */
.ayah {
  position: relative; text-align: center; max-width: 820px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 44px 24px 32px;
}
.ayah::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); border-radius: 22px; pointer-events: none; }
.ayah .star { position: absolute; top: -18px; left: 50%; width: 36px; height: 36px; margin-left: -18px; background: var(--ground); }
.ayah .star::before, .ayah .star::after { content: ''; position: absolute; inset: 6px; background: var(--gold); border-radius: 3px; }
.ayah .star::after { transform: rotate(45deg); }
.ayah-text { font-family: 'Amiri Quran', 'Amiri', serif; font-size: clamp(24px, 4vw, 36px); color: var(--leaf-dark); line-height: 2.1; margin: 0; }
.ayah-ref { color: var(--gold-text); font-size: 15px; margin: 4px 0 12px; }
.ayah-note { color: var(--muted); margin: 0 auto; max-width: 560px; }

/* why */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pain { background: var(--surface); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.pain b { display: block; color: var(--leaf-dark); font-size: 18px; margin-bottom: 8px; }
.pain p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .pains { grid-template-columns: 1fr; } }

/* steps */
.steps ol { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps li { text-align: center; counter-increment: s; position: relative; padding: 0 8px; }
.steps li img { margin: 0 auto 10px; background: var(--surface); border-radius: 50%; padding: 10px; width: 96px; height: 96px; border: 1px solid var(--line); }
.steps li b { display: block; font-size: 20px; }
.steps li b::before { content: counter(s, arabic-indic) ". "; color: var(--gold); }
.steps li p { margin: 4px 0 0; color: var(--muted); }
.steps ol::before { content: ''; position: absolute; top: 48px; right: 16%; left: 16%; border-top: 2px dashed var(--line); z-index: -1; }
@media (max-width: 640px) { .steps ol { grid-template-columns: 1fr; gap: 28px; } .steps ol::before { display: none; } }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; padding: 28px 0; }
.feature:nth-of-type(even) > :first-child { order: 2; }
.feature h3 { font-size: clamp(22px, 3vw, 30px); color: var(--leaf-dark); margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 18px; margin: 0; }
.arch-frame {
  justify-self: center; width: min(100%, 340px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 170px 170px 24px 24px; background: var(--leaf-soft);
  border: 6px solid var(--surface); box-shadow: 0 0 0 1.5px var(--gold), 0 20px 40px -24px rgba(36, 83, 58, .45);
  display: flex; align-items: flex-end; justify-content: center; padding: 24px 12px 0;
}
.arch-frame img { width: 100%; }
.phone {
  justify-self: center; width: min(72%, 270px); border-radius: 38px; padding: 9px;
  background: #1C2820; box-shadow: 0 30px 60px -30px rgba(28, 40, 32, .55);
}
.phone img { border-radius: 30px; width: 100%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .feature:nth-of-type(even) > :first-child { order: 0; }
}

/* promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.promise-grid div { background: var(--surface); border-radius: 24px; padding: 20px 20px 24px; text-align: center; border: 1px solid var(--line); }
.promise-grid img { width: 150px; margin: 0 auto 8px; }
.promise-grid b { display: block; font-size: 20px; color: var(--leaf-dark); }
.promise-grid p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 820px) { .promise-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 14px; color: var(--muted); }

/* final call */
.final { text-align: center; background: var(--leaf-dark); color: #fff; border-radius: 32px; padding: 48px 20px; margin: 40px 0 56px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); filter: invert(1); opacity: .5; pointer-events: none; }
.final > * { position: relative; }
.final img { margin: 0 auto 8px; background: var(--gold-soft); border-radius: 50%; padding: 14px 14px 10px; width: 132px; height: 132px; }
.final h2 { color: #fff; }
.final h2::after { box-shadow: 0 0 0 4px var(--leaf-dark), 0 0 0 5px var(--gold); }
.final p { color: #D5E4D8; margin: 8px 0 24px; }
.final .cta { justify-content: center; }
.final .store { background: #fff; color: var(--ink); }
.final .store.soon { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.final .store.soon small { color: var(--fruit); }

/* legal pages */
.doc { max-width: 820px; margin: 0 auto; padding: 24px 0 48px; }
.doc h1 { color: var(--leaf-dark); font-size: 34px; margin: 16px 0 6px; }
.doc h2 { font-size: 21px; text-align: start; margin: 28px 0 6px; color: var(--ink); }
.doc h2::after { display: none; }
.doc .lead { margin: 0 0 8px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc section { padding: 0; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px 40px; border-top: 1px solid var(--line); }
footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
footer a { color: var(--muted); }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tree *, .tree .leaf, .tree .fruits circle { animation: none !important; }
  .tree .arch, .tree .wood { stroke-dashoffset: 0; }
  .tree .halo { opacity: 1; }
  .tree .seed { display: none; }
  .tree .leaf, .tree .fruits circle { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
html[dir="ltr"] .store b { text-align: left; }
.lang-switch { font-weight: 600; }
