/* Wave Studio — brand guidelines v2.0 */
:root {
  --navy: #112C3C;
  --green: #1F6B4F;
  --light-green: #3F9A6E;
  --soft-green: #E2EDE5;
  --off-white: #F8F5EE;
  --sand: #EFE8D9;
  --ink: #16261F;
  --muted: #5E6B64;
  --white: #FFFFFF;
  --wa: #1F6B4F;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 44, 60, .06), 0 8px 24px rgba(17, 44, 60, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Zain', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo img { height: 26px; width: auto; }
.topbar-tag { color: var(--soft-green); font-size: 15px; font-weight: 300; }

/* ---------- hero ---------- */
.hero, .result-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 120px;
  overflow: hidden;
}
.label { margin: 0 0 10px; font-weight: 700; font-size: 13px; letter-spacing: .18em; color: var(--light-green); direction: ltr; text-align: right; }
.diamonds { letter-spacing: .1em; margin-left: 6px; }
h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 11vw, 76px);
  line-height: 1.02;
}
h1 em, h2 em { font-style: normal; color: var(--light-green); }
.hero-sub { margin: 16px 0 20px; font-size: 20px; font-weight: 300; max-width: 560px; color: var(--off-white); }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  font-size: 15px; padding: 6px 12px; border-radius: 999px;
  background: rgba(248, 245, 238, .08); border: 1px solid rgba(248, 245, 238, .14);
}
.hero-points strong { color: var(--light-green); font-weight: 800; }

/* equaliser "pulse" pattern at the bottom of navy sections */
.pulse {
  position: absolute; inset: auto 0 0 0; height: 70px; opacity: .22;
  background:
    repeating-linear-gradient(90deg, var(--light-green) 0 4px, transparent 4px 14px);
  -webkit-mask: linear-gradient(to top, #000 0, transparent 100%);
          mask: linear-gradient(to top, #000 0, transparent 100%);
  clip-path: polygon(0 60%, 5% 30%, 10% 70%, 15% 20%, 20% 55%, 25% 35%, 30% 75%, 35% 10%, 40% 50%, 45% 30%, 50% 65%, 55% 15%, 60% 45%, 65% 25%, 70% 70%, 75% 35%, 80% 55%, 85% 20%, 90% 60%, 95% 40%, 100% 65%, 100% 100%, 0 100%);
}

/* ---------- cards & form ---------- */
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { position: relative; margin-top: -84px; padding: 24px 20px; z-index: 2; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.4; }
.opt { color: var(--muted); font-weight: 300; }
input, select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--off-white); border: 1.5px solid var(--sand); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 52px; outline: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--light-green); background: var(--white); }
input[aria-invalid="true"], select[aria-invalid="true"], .input-prefix:has(input[aria-invalid="true"]) { border-color: var(--navy); background: var(--sand); }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--sand); border-radius: var(--radius-sm); background: var(--off-white); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--light-green); background: var(--white); }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 700; background: var(--sand); }
.input-prefix input { border: 0; border-radius: 0; background: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); margin: 4px 0 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--green); flex: none; }
.form-error { background: var(--sand); color: var(--navy); font-weight: 700; border-right: 4px solid var(--navy); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 14px; font-size: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 20px; text-decoration: none;
  border: 0; border-radius: var(--radius-sm); padding: 14px 22px; min-height: 56px; cursor: pointer;
  transition: transform .12s var(--ease), background .15s var(--ease), opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #0b2030; }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-wa { background: var(--green); color: var(--white); }
.btn-wa:hover { background: #185a42; }
.btn-wa::before { content: ''; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.9 11.9 0 0 0 4.6 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.9 11.9 0 0 0 4.6 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/></svg>") center/contain no-repeat; }
.btn-light { background: var(--off-white); color: var(--navy); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--green); text-decoration: underline; cursor: pointer; }

/* ---------- loading ---------- */
.loading { background: var(--navy); color: var(--white); min-height: calc(100vh - 60px); display: flex; align-items: center; }
.loading-in { text-align: center; padding: 60px 16px; }
.eq { display: flex; gap: 7px; justify-content: center; align-items: flex-end; height: 70px; margin-bottom: 28px; }
.eq i { width: 9px; border-radius: 3px; background: var(--light-green); animation: eq 1.1s var(--ease) infinite alternate; }
.eq i:nth-child(1) { animation-delay: -.9s } .eq i:nth-child(2) { animation-delay: -.3s } .eq i:nth-child(3) { animation-delay: -.6s }
.eq i:nth-child(4) { animation-delay: -.1s } .eq i:nth-child(5) { animation-delay: -.7s } .eq i:nth-child(6) { animation-delay: -.4s } .eq i:nth-child(7) { animation-delay: -.8s }
@keyframes eq { from { height: 14px } to { height: 70px } }
.loading-step { font-size: 26px; font-weight: 800; margin: 0; min-height: 1.6em; transition: opacity .25s; }
.loading-note { color: var(--soft-green); font-weight: 300; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 40px; } }

/* ---------- result hero ---------- */
.result-hero { padding: 32px 0 90px; }
.acc { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--light-green); object-fit: cover; }
.acc-name { margin: 0; font-weight: 800; font-size: 20px; line-height: 1.2; }
.acc-handle { margin: 0; color: var(--soft-green); font-size: 16px; text-align: right; }
.score-row { display: grid; gap: 10px; }
.score { font-weight: 900; line-height: .9; color: var(--light-green); font-size: clamp(92px, 26vw, 150px); direction: ltr; text-align: right; }
.score small { font-size: .3em; color: var(--soft-green); font-weight: 400; margin-left: 4px; }
.verdict { margin: 0; font-size: clamp(22px, 5.4vw, 30px); font-weight: 700; line-height: 1.35; max-width: 620px; }
.notice { margin: 18px 0 0; background: rgba(248, 245, 238, .1); border-right: 4px solid var(--light-green); padding: 12px 14px; border-radius: 6px; font-size: 17px; }

/* ---------- sections ---------- */
.section { margin-top: 36px; }
#r-body > .section:first-child { margin-top: -60px; position: relative; z-index: 2; }
h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; font-weight: 800; font-size: 26px; color: var(--navy); line-height: 1.25; }
h2 .num { font-weight: 900; color: var(--light-green); font-size: 30px; direction: ltr; }
h2 .en { font-size: 12px; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
h2.on-dark { color: var(--white); }
h2.on-dark .en { color: var(--soft-green); }
h2.big { display: block; font-size: clamp(34px, 8vw, 48px); font-weight: 900; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-weight: 900; font-size: 34px; line-height: 1.05; color: var(--green); direction: ltr; text-align: right; }
.stat.bad b { color: var(--navy); }
.stat.bad { background: var(--sand); }
.stat span { display: block; font-size: 15px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* problems */
.problems { display: grid; gap: 14px; }
.problem { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.problem-head { display: flex; gap: 12px; align-items: flex-start; }
.problem-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.problem h3 { margin: 2px 0 6px; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.problem p { margin: 0; }
.evidence { margin-top: 12px; background: var(--soft-green); border-right: 4px solid var(--green); border-radius: 6px; padding: 10px 12px; font-size: 16px; }
.evidence b { color: var(--green); }
.evidence a { color: var(--green); font-weight: 700; white-space: nowrap; }

/* video */
.video-card { background: var(--navy); border-radius: var(--radius); padding: 20px 16px 16px; }
.video-card video { width: 100%; max-height: 78vh; border-radius: var(--radius-sm); background: #000; aspect-ratio: 9 / 16; object-fit: contain; }
@media (min-width: 640px) { .video-card video { max-width: 380px; margin: 0 auto; } }

/* fixes */
.fixes { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 10px; }
.fixes li { counter-increment: f; position: relative; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px 58px 14px 16px; font-size: 18px; }
.fixes li::before { content: counter(f); position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 8px; background: var(--soft-green); color: var(--green); font-weight: 900; display: grid; place-items: center; }

/* ideas */
.ideas { display: grid; gap: 12px; }
@media (min-width: 700px) { .ideas { grid-template-columns: repeat(3, 1fr); } }
.idea { background: var(--sand); border-radius: var(--radius); padding: 16px; }
.idea q { display: block; font-weight: 800; font-size: 20px; color: var(--navy); line-height: 1.35; quotes: '«' '»'; margin-bottom: 8px; }
.idea p { margin: 0; font-size: 16px; color: var(--ink); }

/* dims */
.dims { padding: 8px 18px; }
.dim { padding: 12px 0; border-bottom: 1px solid var(--sand); }
.dim:last-child { border-bottom: 0; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dim-top b { font-size: 18px; color: var(--navy); }
.dim-top span { font-weight: 900; color: var(--green); direction: ltr; }
.bar { height: 8px; background: var(--soft-green); border-radius: 99px; margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; width: 0; transition: width .9s var(--ease); }
.bar.low i { background: var(--muted); }
.dim p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* packages */
.packages-section { margin-top: 44px; background: var(--navy); color: var(--white); padding: 40px 0 44px; }
.pk-sub { margin: -6px 0 22px; color: var(--soft-green); font-weight: 300; font-size: 18px; }
.packages { display: grid; gap: 14px; }
@media (min-width: 760px) { .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pk { position: relative; display: flex; flex-direction: column; background: var(--off-white); color: var(--ink); border-radius: var(--radius); padding: 20px 18px 18px; border: 2px solid transparent; }
.pk.rec { border-color: var(--light-green); background: var(--white); }
.pk-badge { position: absolute; top: -13px; right: 16px; background: var(--light-green); color: var(--white); font-weight: 800; font-size: 14px; padding: 2px 12px; border-radius: 999px; }
.pk h3 { margin: 4px 0 2px; font-size: 24px; font-weight: 900; color: var(--navy); }
.pk-tag { margin: 0 0 10px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.pk-price { font-weight: 800; color: var(--green); margin: 0 0 10px; font-size: 18px; }
.pk ul { margin: 0 0 14px; padding: 0 18px 0 0; font-size: 16px; }
.pk ul li { margin-bottom: 4px; }
.pk-why { background: var(--soft-green); border-right: 4px solid var(--green); border-radius: 6px; padding: 8px 10px; font-size: 15px; margin: 0 0 14px; }
.pk .btn { margin-top: auto; font-size: 18px; min-height: 52px; }

/* limits */
.limits { margin-bottom: 24px; padding: 16px 18px; font-size: 15px; color: var(--muted); }
.limits p { margin: 0 0 10px; }
.limits strong { color: var(--ink); }

/* sticky CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--off-white) 70%, rgba(248, 245, 238, 0)); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { font-size: 18px; min-height: 52px; max-width: 728px; margin: 0 auto; display: flex; box-shadow: 0 8px 24px rgba(17, 44, 60, .25); }

/* footer */
.footer { background: var(--navy); color: var(--off-white); padding: 26px 0 30px; margin-top: 40px; }
#view-result:not([hidden]) ~ .footer { margin-top: 0; }
.footer-in { text-align: center; }
.footer-logo { height: 24px; width: auto; margin: 0 auto 10px; }
.footer-line { margin: 0 0 6px; font-weight: 700; }
.footer-contact { margin: 0; font-size: 14px; color: var(--soft-green); text-align: center; }
.footer-contact a { text-decoration: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* الباقات أعرض على الديسكتوب */
@media (min-width: 760px) { .packages-section .wrap { max-width: 1040px; } }
.topbar-tag b { color: var(--light-green); font-weight: 800; direction: ltr; unicode-bidi: isolate; }
