/* Namaa web — "Sunset Bloom" palette ported from the app (garden/lib/palette.dart). */
:root {
  --bg: #FFF4E6;
  --card: #FFFFFF;
  --card-glass: rgba(255, 255, 255, 0.72);
  --ink: #5C2E1D;
  --muted: #B06A3F;
  --muted2: #8A4A28;
  --line: rgba(92, 46, 29, 0.13);
  --accent: #E07856;
  --accent-ink: #FFFFFF;
  --gold: #E8A317;
  --gold-soft: rgba(232, 163, 23, 0.16);
  --leaf: #6FA866;
  --leaf-soft: rgba(111, 168, 102, 0.16);
  --sky1: #FFEFD9;
  --sky-mid: #FFDDB8;
  --sky2: #FFC9A0;
  --shadow: 0 10px 24px rgba(92, 46, 29, 0.10);
  --ground1: #F2A86F;
  --ground2: #E78A5E;
  --r-control: 12px;
  --r-button: 18px;
  --r-card: 24px;
  --r-sheet: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* "Night bloom" */
    --bg: #2A1C3E;
    --card: #3A2850;
    --card-glass: rgba(58, 40, 80, 0.72);
    --ink: #FFEBD8;
    --muted: #C9A0A8;
    --muted2: #E8C8B8;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #FFA45C;
    --accent-ink: #4A2410;
    --gold: #FFCB5C;
    --gold-soft: rgba(255, 203, 92, 0.2);
    --leaf: #7FB374;
    --leaf-soft: rgba(127, 179, 116, 0.2);
    --sky1: #251A45;
    --sky-mid: #4A2850;
    --sky2: #7A3C53;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --ground1: #4A2D55;
    --ground2: #5E3A60;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

html[lang="ar"] body { font-family: "Cairo", "Nunito", system-ui, sans-serif; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.lang-pill {
  display: flex;
  gap: 2px;
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-pill button {
  border: 0;
  background: transparent;
  color: var(--muted2);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-pill button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky1), var(--sky-mid) 55%, var(--sky2));
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding: 56px 24px 0;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  max-width: 21ch;
  margin: 0 auto 14px;
}

.hero p {
  color: var(--muted2);
  font-size: 17px;
  max-width: 48ch;
  margin: 0 auto 26px;
}

.hero .cta { margin-bottom: 8px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-button);
  padding: 13px 26px;
  box-shadow: 0 8px 18px rgba(92, 46, 29, 0.18);
  cursor: pointer;
}

.soon {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted2);
  background: var(--card-glass);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 12px;
}

/* The day's flower, growing stage by stage: one cell per prayer. */
.stages {
  display: flex;
  gap: 2px;
  max-width: 660px;
  margin: 22px auto 0;
  padding-bottom: 18px;
}

.stage {
  flex: 1;
  margin: 0;
  animation: bloom 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: 50% 92%;
}

.stage:nth-child(1) { animation-delay: 0.10s; }
.stage:nth-child(2) { animation-delay: 0.25s; }
.stage:nth-child(3) { animation-delay: 0.40s; }
.stage:nth-child(4) { animation-delay: 0.55s; }
.stage:nth-child(5) { animation-delay: 0.70s; }

.stage svg { display: block; width: 100%; height: auto; }
.stage .g1 { fill: var(--ground1); }
.stage .g2 { fill: var(--ground2); }

.stage figcaption {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted2);
  margin-top: 4px;
}

@keyframes bloom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; }
}

/* Sections */
section { padding: 44px 0 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-control);
  background: var(--leaf-soft);
  margin-bottom: 14px;
  font-size: 22px;
}

.card:nth-child(2) .icon { background: var(--gold-soft); }
.card:nth-child(3) .icon { background: var(--sky-mid); }

.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted2); font-size: 15px; }

/* Verse / quote band */
.quote {
  text-align: center;
  padding: 52px 0 8px;
}

.quote blockquote {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  max-width: 34ch;
  margin: 0 auto;
}

.quote .who {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* Footer */
footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted2);
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted2); }

/* Text pages (privacy / legal) */
.page { max-width: 720px; margin: 0 auto; padding-top: 10px; }
.page h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; margin-bottom: 8px; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.page h2 { font-size: 20px; font-weight: 800; margin: 30px 0 8px; }
.page p, .page li { color: var(--muted2); font-size: 16px; }
.page ul { padding-inline-start: 22px; }
.page .todo {
  background: var(--gold-soft);
  border-radius: var(--r-control);
  padding: 12px 16px;
  font-size: 15px;
}
