/* Try Apply challenge page — single-column offer layout, baby-blue palette */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0E1F3F;
  --navy-2: #16305E;
  --blue: #3A9BD0;
  --blue-deep: #1F6FA3;
  --baby: #89CFF0;
  --soft: #E8F6FD;
  --bg: #F6FAFD;
  --ink: #12233F;
  --muted: #5B6B82;
  --line: #E3ECF4;
  --mint: #1E9E7A;
  --mint-bg: #E4F7F0;
  --tag: #1F6FA3;
  --font: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink);
  background: #fff; direction: rtl; text-align: right; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { line-height: 1.5; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 680px; margin: 0 auto; }

/* ---------- header + hero ---------- */
.hd {
  background: radial-gradient(circle at 70% 0%, rgba(137,207,240,.28), transparent 55%), linear-gradient(180deg, var(--navy-2), var(--navy));
  padding: 26px 18px; text-align: center; max-width: 820px; margin: 0 auto; color: #fff;
}
.hd .brand { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.hd .brand b { color: var(--baby); font-weight: 900; }
.hd small { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.7); margin-top: 2px; }

.hero { background: linear-gradient(180deg, var(--soft), #fff); max-width: 820px; margin: 0 auto; padding: 30px 18px 12px; text-align: center; }
.hero p.lead { font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 700; line-height: 1.9; max-width: 38rem; margin: 0 auto 18px; }
.hero mark { background: none; color: var(--blue-deep); font-weight: 900; }
.hero-photo { width: min(100%, 300px); margin: 0 auto 6px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(14,31,63,.55); border: 6px solid #fff; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.hero-meta span { font-size: .85rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 34px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 900; font-size: 1.08rem; line-height: 1.35; text-align: center;
  background: linear-gradient(180deg, var(--baby), var(--blue)); color: var(--navy);
  box-shadow: 0 14px 28px -14px rgba(58,155,208,.9); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn small { font-size: .8rem; font-weight: 600; opacity: .85; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(58,155,208,1); }
.cta-row { text-align: center; margin: 18px 0 8px; }

/* ---------- sections ---------- */
section { padding: 34px 0; }
.sec-title {
  display: flex; align-items: center; gap: 10px; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 900; margin-bottom: 20px;
}
.sec-title::before { content: ''; width: 5px; height: 1.6em; background: var(--blue); border-radius: 4px; flex-shrink: 0; }
.sec-sub { color: var(--muted); font-size: .98rem; margin: -10px 0 20px; }

/* ---------- product cards ---------- */
.pc {
  display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(14,31,63,.04), 0 14px 30px -22px rgba(14,31,63,.35);
}
.pc .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pill { font-size: .72rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; line-height: 1.7; }
.pill--g { background: var(--mint-bg); color: var(--mint); }
.pill--b { background: var(--soft); color: var(--blue-deep); }
.pill--tag { background: var(--tag); color: #fff; }
.pc h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: 4px; }
.pc p { font-size: .92rem; color: var(--muted); line-height: 1.8; }
.pc .art {
  display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; font-size: 2.6rem; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 25% 15%, rgba(137,207,240,.7), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy));
}
@media (max-width: 560px) { .pc { grid-template-columns: 1fr 96px; padding: 14px; gap: 12px; } .pc .art { font-size: 1.8rem; } }

.more { margin: 8px 0 22px; }
.more h4 { font-size: .95rem; font-weight: 900; margin-bottom: 8px; }
.more li { list-style: none; display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.more li::before { content: '←'; color: var(--blue); font-weight: 900; }

.dark-pill { display: inline-block; background: var(--navy); color: #fff; font-weight: 900; font-size: .95rem; padding: 8px 20px; border-radius: 10px; margin: 10px 0 16px; }
.bonus {
  display: grid; grid-template-columns: 1fr; gap: 4px; background: linear-gradient(180deg, #fff, var(--soft)); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
}
.bonus .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bonus h3 { font-size: 1.02rem; font-weight: 900; }
.bonus p { font-size: .9rem; color: var(--muted); }

/* ---------- steps strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.step { border-radius: 14px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 14px; text-align: center; }
.step b { display: block; color: var(--blue-deep); font-weight: 900; margin-bottom: 4px; }
.step span { font-size: .88rem; color: var(--muted); display: block; line-height: 1.7; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- price ---------- */
.price-line { text-align: center; font-size: 1.15rem; font-weight: 900; margin: 6px 0 22px; }
.price-line b { color: var(--blue-deep); }
.join-tag { text-align: center; font-size: .78rem; font-weight: 900; color: var(--blue-deep); margin-bottom: 4px; }
.pick-title { text-align: center; font-size: 1.35rem; font-weight: 900; margin-bottom: 18px; }
.plan {
  position: relative; max-width: 420px; margin: 0 auto 26px; text-align: center; background: #fff; border: 2px solid var(--blue);
  border-radius: 16px; padding: 26px 18px 18px; box-shadow: 0 18px 40px -22px rgba(58,155,208,.9);
}
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-deep); color: #fff; font-size: .78rem; font-weight: 900; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan .name { font-weight: 800; color: var(--muted); font-size: .95rem; }
.plan .amount { font-size: 2.6rem; font-weight: 900; color: var(--blue-deep); line-height: 1.3; }
.plan .note { font-size: .85rem; color: var(--muted); }

/* ---------- order form ---------- */
.order-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -26px rgba(14,31,63,.45); overflow: hidden; }
.order-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid var(--blue); }
.order-tabs div { padding: 10px 8px; text-align: center; font-size: .85rem; font-weight: 800; color: var(--muted); }
.order-tabs div.on { color: var(--blue-deep); }
.order-tabs div small { display: block; font-weight: 500; font-size: .72rem; }
.order-body { padding: 18px; }
.summary-box { margin: 0 0 14px; background: var(--bg); border-radius: 12px; padding: 14px; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.summary-box .row { display: flex; justify-content: space-between; gap: 12px; }
.summary-box .row span:last-child { color: var(--ink); font-weight: 700; }
.summary-box .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.summary-box .total span:first-child { color: var(--ink); font-weight: 900; }
.summary-box .total span:last-child { color: var(--blue-deep); font-weight: 900; font-size: 1.4rem; }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.field input {
  width: 100%; border: 1px solid #cfdbe8; border-radius: 10px; padding: 12px 14px; font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(137,207,240,.45); }
.field input[dir="ltr"] { text-align: left; }
.form-error { display: none; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 9px 12px; font-size: .85rem; margin-bottom: 10px; }
.form-error.is-on { display: block; }
.btn-pay {
  width: 100%; cursor: pointer; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; padding: 15px 20px; font-size: 1.05rem; font-weight: 900; margin-top: 4px;
  box-shadow: 0 12px 24px -14px rgba(14,31,63,.9); transition: transform .2s, filter .25s;
}
.btn-pay:hover { filter: brightness(1.15); }
.btn-pay:disabled { opacity: .62; cursor: progress; }
.btn-pay .glyph { display: grid; place-items: center; width: 22px; height: 22px; }
.btn-pay .spinner { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.32); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-pay.is-busy .spinner { display: block; }
.btn-pay.is-busy .glyph { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-wa-alt { display: block; text-align: center; margin-top: 10px; border: 1px solid #cfdbe8; color: var(--navy-2); border-radius: 12px; padding: 12px; font-size: .95rem; font-weight: 700; transition: border-color .25s; }
.btn-wa-alt:hover { border-color: var(--blue); }
.secure-note { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; color: var(--muted); }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-shot { display: block; width: 100%; cursor: zoom-in; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; padding: 0; box-shadow: 0 14px 28px -22px rgba(14,31,63,.5); transition: transform .3s var(--ease); }
.proof-shot:hover { transform: translateY(-3px); }
.proof-shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.proof-intro { text-align: center; color: var(--muted); font-size: .95rem; margin: -6px auto 20px; max-width: 34rem; }

/* ---------- trainer ---------- */
.trainer { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; background: var(--soft); border-radius: 18px; padding: 20px; }
.trainer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; }
.trainer h3 { font-size: 1.3rem; font-weight: 900; }
.trainer .role { color: var(--blue-deep); font-weight: 800; margin-bottom: 6px; }
.trainer p.bio { font-size: .92rem; color: #33445e; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badges div { background: #fff; border-radius: 10px; padding: 6px 12px; font-size: .8rem; line-height: 1.5; border: 1px solid var(--line); }
.badges b { display: block; color: var(--blue-deep); font-size: .95rem; }
@media (max-width: 600px) { .trainer { grid-template-columns: 1fr; text-align: center; } .trainer img { max-width: 220px; margin: 0 auto; } .badges { justify-content: center; } }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--blue-deep); display: grid; place-items: center; transition: transform .3s; }
.faq-plus svg { width: 12px; height: 12px; }
.faq[open] .faq-plus { transform: rotate(45deg); }
.faq-body { overflow: hidden; transition: height .3s var(--ease), opacity .3s; }
.faq-body-inner { padding: 0 16px 16px; color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.75); text-align: center; padding: 28px 18px; font-size: .82rem; line-height: 1.9; margin-top: 30px; }
footer .brand { font-size: 1.4rem; font-weight: 900; color: #fff; display: block; margin-bottom: 6px; }
footer .brand b { color: var(--baby); }
footer p { max-width: 46rem; margin: 0 auto 6px; }
.foot-links { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }

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

.fab-wa { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 18px; z-index: 200; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(37,211,102,.7); }

.img-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 18px; }
.img-modal.is-open { display: flex; }
.img-modal img { max-height: 92vh; max-width: min(96vw, 520px); border-radius: 12px; background: #fff; }
.img-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* Illustrated curriculum tiles */
.pc .art { position: relative; overflow: hidden; font-size: 0; aspect-ratio: 16 / 10; }
.pc .art .tile-svg { width: 100%; height: 100%; display: block; }
.pc .art .day-no {
  position: absolute; top: 6px; inset-inline-start: 7px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 900; line-height: 1; color: var(--navy); background: #fff;
}
