:root {
  --bg: #e9fbf5;
  --soft: #f7fffc;
  --card: #fff;
  --ink: #143d32;
  --muted: #668278;
  --line: rgba(20, 61, 50, .14);
  --green: #13825f;
  --green-2: #0f6c52;
  --aqua: #57d7c1;
  --cream: #fff9e8;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(17, 92, 72, .14);
  --font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(87, 215, 193, .4), transparent 30rem),
    linear-gradient(180deg, var(--bg), #f7fffc 46%, var(--bg));
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; font-weight: 900; letter-spacing: 0; }
p { color: var(--muted); font-size: 15px; }

.shell { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 0; }
.section-tight { padding: 18px 0; }
.soft { background: rgba(255, 255, 255, .5); border-block: 1px solid var(--line); }
.dark-break {
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(87, 215, 193, .24), transparent 18rem),
    linear-gradient(180deg, #143d32, #0f6c52 72%, #143d32);
  border-block: 1px solid rgba(255, 255, 255, .12);
}
.dark-break h2,
.dark-break h3 { color: #fff; }
.dark-break p,
.dark-break .eyebrow { color: rgba(255, 255, 255, .78); }
.dark-break .card {
  color: #143d32;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .94);
}
.dark-break .wide-visual {
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .22);
}
.section-head { display: grid; gap: 8px; text-align: center; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(25px, 7vw, 38px); }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 900; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px max(16px, calc((100vw - 600px) / 2 + 16px));
  background: rgba(247, 255, 252, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-size: 18px; font-weight: 900; }
.brand span { color: var(--green); }
.topbar nav { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; }
.top-cta { padding: 8px 13px; color: #fff; background: var(--green); border-radius: 999px; }

.urgency {
  position: sticky;
  top: 62px;
  z-index: 70;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--green-2), var(--green), var(--aqua));
  font-size: 12px;
  font-weight: 900;
}
.urgency b { direction: ltr; padding: 0 8px; background: rgba(0, 0, 0, .18); border-radius: 999px; }

.hero { padding-top: 32px; }
.hero-grid { display: grid; gap: 22px; }
.hero-copy { display: grid; gap: 14px; text-align: center; }
.hero h1 { font-size: clamp(36px, 11vw, 58px); }
.hero p { font-size: 17px; }
.hero-actions { display: grid; gap: 8px; }
.hero-actions small,
.order-card small { color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.hero-media,
.image-card,
.product-card,
.wide-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #e6faf4);
  box-shadow: var(--shadow);
}
.hero-media img,
.image-card img,
.wide-visual img { width: 100%; height: auto; }
.product-card { padding: 22px; }
.product-card img { margin: 0 auto; max-height: 420px; object-fit: contain; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #20a97e, var(--green) 60%, var(--green-2));
  box-shadow: 0 14px 28px rgba(19, 130, 95, .24);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.04); }

.badge-grid,
.problem-grid,
.ingredient-grid,
.signal-grid,
.review-grid {
  display: grid;
  gap: 12px;
}
.badge-grid { grid-template-columns: repeat(2, 1fr); }
.badge-grid span,
.card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(17, 92, 72, .1);
  font-weight: 900;
}
.badge-grid span { text-align: center; font-size: 12px; }
.badge-grid span::before,
.check-list li::before { content: "✓ "; color: var(--green); }

.card p { margin-top: 5px; font-size: 13px; }
.split { display: grid; gap: 22px; align-items: center; }
.pillar-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.pillar-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}
.pillar-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}
.check-list li { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 900; }

.card,
.quiz,
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.quiz,
.order-card { display: grid; gap: 13px; padding: 18px; }
.quiz label,
.order-card label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 900; }
.quiz input,
.quiz select,
.order-card input,
.order-card select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 61, 50, .24);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.recommendation,
.summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid rgba(242, 184, 75, .38);
  text-align: center;
}
.recommendation strong,
.summary b { color: var(--green); font-size: 20px; }

.field-hint { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.field-error { color: #c0392b; font-size: 12px; font-weight: 800; }
.field-error:empty { display: none; }
.form-alert {
  padding: 11px 13px;
  border-radius: 12px;
  background: #fdecea;
  border: 1px solid rgba(192, 57, 43, .35);
  color: #a93226;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.form-alert[hidden] { display: none; }
.order-card button[disabled] { opacity: .6; cursor: progress; }

.wide-visual { margin-bottom: 20px; max-height: 760px; }
.wide-visual img { object-fit: cover; }

.offers { background: linear-gradient(180deg, #f8fffc, #e3faf3); border-block: 1px solid var(--line); }
.country-card {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 92, 72, .1);
}
.country-card span { color: var(--green); font-size: 13px; font-weight: 900; }
.country-card select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 61, 50, .24);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.country-card small { color: var(--muted); font-size: 12px; }
.country-card b { color: var(--ink); }
.offer-grid { display: grid; gap: 12px; }
.offer-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(20, 61, 50, .18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: right;
  box-shadow: 0 8px 22px rgba(17, 92, 72, .1);
}
.offer-card.is-selected { border-color: var(--green); box-shadow: var(--shadow); }
.offer-card img { width: 80px; height: 92px; object-fit: contain; grid-row: span 4; }
.offer-card span { font-weight: 900; }
.offer-card del { color: rgba(20, 61, 50, .45); font-size: 12px; }
.offer-card strong { color: var(--green); font-size: 20px; }
.offer-card em { justify-self: end; padding: 4px 8px; border-radius: 999px; color: #fff; background: var(--green); font-style: normal; font-size: 11px; font-weight: 900; }
.offer-card small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}
.offer-card.is-popular { border-color: var(--green); }
.offer-card.is-best { border-color: var(--green-2); }

.faq-list { display: grid; gap: 10px; }
.faq {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 92, 72, .1);
}
.faq button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: right;
  font-weight: 900;
}
.faq button span { color: var(--green); font-size: 20px; transition: transform .2s ease; }
.faq.is-open button span { transform: rotate(45deg); }
.faq p { max-height: 0; overflow: hidden; padding: 0 14px; transition: max-height .25s ease, padding .25s ease; }
.faq.is-open p { max-height: 160px; padding-bottom: 14px; }

footer { padding: 30px 0 84px; background: var(--ink); color: rgba(255, 255, 255, .78); text-align: center; }
footer .shell { display: grid; gap: 10px; }
footer strong { color: #fff; }
footer nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
footer a { text-decoration: underline; font-size: 13px; }
footer small { font-size: 12px; }

.sticky-cta {
  position: fixed;
  inset: auto 16px 14px 82px;
  z-index: 90;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow);
  font-weight: 900;
}
.sticky-cta.is-visible { display: flex; }
body.no-whatsapp .sticky-cta { inset: auto 16px 14px 16px; }
.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: #1fae63;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 900;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.policy-modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 61, 50, .48); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 9vh auto;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.modal-card button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 130, 95, .12);
  color: var(--green);
  font-size: 22px;
}

.thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.thanks-wrap { width: 100%; max-width: 600px; padding: 0 16px; }
.thanks-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks-card img { max-height: 280px; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  .shell { max-width: 1060px; }
  .hero-grid,
  .split { grid-template-columns: 1fr 1fr; }
  .hero-copy { text-align: right; align-content: center; }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-grid,
  .ingredient-grid,
  .signal-grid,
  .review-grid,
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { justify-items: start; }
  .btn { width: auto; min-width: 230px; }
  .order-card,
  .quiz { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 390px) {
  .shell { padding-inline: 12px; }
  .topbar { padding-inline: 12px; }
  .brand { font-size: 16px; }
  .topbar nav { gap: 8px; font-size: 12px; }
  .urgency { gap: 6px; font-size: 10.5px; }
  .offer-card { grid-template-columns: 64px 1fr; }
  .offer-card img { width: 64px; height: 74px; }
  .offer-card em { grid-column: 2; justify-self: start; }
}
