/* ==========================================================================
   Youssef — English tutor, Giza
   Design system + page styles. Mobile first, RTL.
   ========================================================================== */

/* ---------- Fonts (self hosted) ---------- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-400-arabic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-500-arabic.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-500-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-600-arabic.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-600-latin.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-700-arabic.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/plex-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-500-arabic.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-500-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-700-arabic.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-800-arabic.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/tajawal-800-latin.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0F2420;
  --ink-2: #3B4F49;
  --ink-3: #6C7D77;
  --green: #0D5C46;
  --green-2: #0A4737;
  --green-3: #14805F;
  --mint: #E4F1EA;
  --mint-2: #C9E6D9;
  --cream: #FBF7EE;
  --cream-2: #F4EDDC;
  --gold: #A8791F;
  --gold-2: #E4C47C;
  --line: #E7E1D3;
  --line-2: #D8D0BE;
  --white: #fff;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --pill: 999px;

  --sh-1: 0 1px 2px rgba(15, 36, 32, .05);
  --sh-2: 0 2px 4px rgba(15, 36, 32, .04), 0 14px 34px -16px rgba(15, 36, 32, .18);
  --sh-3: 0 26px 60px -28px rgba(15, 36, 32, .3);

  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-head: 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;

  --wrap: 1140px;
  --pad: 20px;
  --header-h: 66px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.28;
  margin: 0;
  letter-spacing: 0;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-3); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(52px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--white { background: var(--white); }
.section--cream2 { background: var(--cream-2); }
.section--dark {
  background: var(--green-2);
  color: #EAF3EF;
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold-2); }
.h2 { font-size: clamp(25px, 5.2vw, 38px); text-wrap: balance; }
.h3 { font-size: clamp(19px, 3vw, 22px); font-weight: 700; text-wrap: balance; }
.lede {
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.95;
  max-width: 62ch;
}
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lede { margin-top: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.8; }
.nowrap { white-space: nowrap; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  text-align: center;
}
.btn svg { width: 21px; height: 21px; flex: none; }
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(13, 92, 70, .75);
}
.btn--primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: #fff; border-color: var(--ink-3); }
.btn--wa {
  background: #1FA855;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 168, 85, .8);
}
.btn--wa:hover { background: #178a45; transform: translateY(-1px); }
.btn--gold {
  background: var(--gold-2);
  color: #3A2A06;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.btn--gold:hover { background: #EFD493; transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 17.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(231, 225, 211, .8);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  padding-bottom: 3px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.brand__sub { font-size: 11.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .01em; }
.nav { display: none; }
.header-cta { display: inline-flex; }
.header-cta .btn { padding: 11px 18px; font-size: 15px; border-radius: 11px; }

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink-2);
  }
  .nav a { position: relative; padding-block: 6px; }
  .nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0; bottom: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
  }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(26px, 5vw, 52px);
  padding-bottom: clamp(34px, 6vw, 68px);
  background:
    radial-gradient(900px 460px at 88% -8%, #DCF0E4 0%, rgba(220, 240, 228, 0) 62%),
    radial-gradient(700px 420px at 4% 8%, #F7EBD3 0%, rgba(247, 235, 211, 0) 58%),
    var(--cream);
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 92, 70, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: radial-gradient(520px 380px at 78% 18%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(520px 380px at 78% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 7.6vw, 55px);
  line-height: 1.22;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero__sub {
  font-size: clamp(16px, 2.6vw, 18.5px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 26px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { margin-bottom: 22px; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list svg { width: 17px; height: 17px; color: var(--green-3); flex: none; }

.hero__art { order: 0; margin-top: 8px; }
.hero__art svg { width: 100%; height: auto; max-width: 520px; margin-inline: auto; }
svg text { direction: ltr; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.06fr .94fr; gap: 40px; }
  .hero__art { margin-top: 0; }
  .hero__art svg { max-width: none; }
}

/* ---------- Facts strip ---------- */
.facts {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.facts__item {
  background: var(--white);
  padding: 18px 14px;
  text-align: center;
}
.facts__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 4.4vw, 26px);
  color: var(--green);
  line-height: 1.2;
}
.facts__label { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
@media (min-width: 720px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .facts__item { padding: 24px 18px; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
}
.photo-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #E9F4EE 0%, #D9EBE2 55%, #EFE6D2 100%);
  box-shadow: var(--sh-2);
  border: 1px solid #DDE9E1;
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.photo-frame.has-photo img { display: block; }
.photo-frame.has-photo .photo-ph { display: none; }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.photo-ph svg { width: 100%; height: 100%; }
.photo-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.photo-note code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #EFE9DA;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  direction: ltr;
  display: inline-block;
}
.about__body p { color: var(--ink-2); }
.about__body p strong { color: var(--ink); font-weight: 600; }
.about__points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.about__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
}
.about__point svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }
.about__point b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.6; }
.about__point span { font-size: 14px; color: var(--ink-3); line-height: 1.7; }

/* ---------- Offers ---------- */
.offers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 780px) {
  .offers__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.offer {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.offer:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--mint-2); }
.offer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.offer__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.offer__icon svg { width: 25px; height: 25px; }
.offer__n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
  background: #FBF3DF;
  border: 1px solid #F0E2BF;
  border-radius: var(--pill);
  padding: 3px 11px;
  line-height: 1.6;
}
.offer h3 { font-size: 21px; margin-bottom: 4px; }
.offer__for { font-size: 13.5px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.offer__desc { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin-bottom: 18px; }
.offer__gets {
  border-top: 1px dashed var(--line-2);
  padding-top: 16px;
  margin-top: auto;
}
.offer__gets-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.offer__gets li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
  padding-block: 4px;
}
.offer__gets svg { width: 17px; height: 17px; color: var(--green-3); flex: none; margin-top: 5px; }

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 780px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
}
.price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
}
.price--home {
  background: linear-gradient(180deg, #FFFDF8 0%, #FBF6EA 100%);
  border-color: #EADFC6;
}
.price__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.price__head svg { width: 24px; height: 24px; color: var(--green); }
.price__head h3 { font-size: 21px; }
.price__tag { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.price__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 42px);
  color: var(--green);
  line-height: 1;
  letter-spacing: -.01em;
}
.price__cur { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.price__per { font-size: 14px; color: var(--ink-3); margin-inline-start: auto; }
.price ul { display: grid; gap: 10px; margin-bottom: 22px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.price li svg { width: 18px; height: 18px; color: var(--green-3); flex: none; margin-top: 4px; }
.price .btn { margin-top: auto; }
.pricing__note {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--mint);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 14.5px;
  color: #14493A;
  line-height: 1.8;
}
.pricing__note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--green); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
.step {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r);
  padding: 24px 20px 22px;
}
.step__n {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gold-2);
  color: #3A2A06;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 17.5px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 14.5px; color: #C8DCD4; line-height: 1.8; margin: 0; }

/* ---------- Test band ---------- */
.test-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--sh-2);
  display: grid;
  gap: 22px;
  align-items: center;
}
@media (min-width: 820px) {
  .test-band { grid-template-columns: 1fr auto; gap: 40px; }
}
.test-band h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 10px; }
.test-band p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }
.test-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.test-band__meta span { display: inline-flex; align-items: center; gap: 6px; }
.test-band__meta svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: border-color .18s ease;
}
.faq__item[open] { border-color: var(--mint-2); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 2px;
  transition: transform .22s ease, background-color .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--mint-2); }
.faq__item[open] summary { color: var(--green); }
.faq__body {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
}
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(700px 340px at 82% 0%, rgba(228, 196, 124, .16) 0%, transparent 62%),
    var(--green-2);
  color: #EAF3EF;
  border-radius: 0;
}
.final-cta__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.final-cta h2 { color: #fff; font-size: clamp(25px, 5vw, 38px); margin-bottom: 14px; }
.final-cta p { color: #C8DCD4; font-size: 16.5px; margin-bottom: 26px; }
.final-cta .btn-row { justify-content: center; }
.final-cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.final-cta .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }

/* ---------- Footer ---------- */
.site-footer {
  background: #082B22;
  color: #9FB8AE;
  padding-block: 36px 30px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}
.site-footer .brand__mark { background: rgba(255, 255, 255, .1); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #8FA89E; }
.site-footer h4 { font-size: 14px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.site-footer a:hover { color: #fff; }
.site-footer li { padding-block: 4px; }
.site-footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7E968C;
}

/* ---------- Sticky WhatsApp FAB ---------- */
.fab {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1FA855;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 18px;
  border-radius: var(--pill);
  box-shadow: 0 12px 28px -10px rgba(31, 168, 85, .7), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab__label { display: none; }
@media (min-width: 480px) { .fab__label { display: inline; } }
@media (min-width: 900px) { .fab { inset-inline-end: 24px; bottom: 24px; padding: 14px 22px; font-size: 16px; } }

/* ==========================================================================
   Test page
   ========================================================================== */
.test-hero {
  background:
    radial-gradient(700px 340px at 85% -10%, #DCF0E4 0%, rgba(220, 240, 228, 0) 60%),
    var(--cream);
  padding-block: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.crumbs a:hover { color: var(--green); }
.crumbs svg { width: 16px; height: 16px; }
.test-hero h1 { font-size: clamp(26px, 6vw, 42px); margin-bottom: 10px; }
.test-hero p { color: var(--ink-2); font-size: clamp(15px, 2.4vw, 17px); margin: 0; max-width: 62ch; }

.test-body { padding-block: clamp(28px, 5vw, 48px) 90px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: clamp(20px, 4vw, 34px);
}
.card--soft { box-shadow: var(--sh-1); }

.start-panel { max-width: 660px; margin-inline: auto; }
.start-panel h2 { font-size: clamp(21px, 4vw, 26px); margin-bottom: 8px; }
.start-panel .lede { margin-bottom: 20px; }
.field-row { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #FCFAF5;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.6;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-3);
  box-shadow: 0 0 0 3px rgba(20, 128, 95, .14);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.8; }
.start-panel .rules {
  display: grid;
  gap: 10px;
  background: #FCFAF5;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.start-panel .rules li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.start-panel .rules svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }

/* timer */
.timerbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 20px;
  box-shadow: var(--sh-1);
}
.timerbar.is-on { display: flex; }
.timerbar__label { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.timerbar__time {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  line-height: 1;
}
.timerbar__progress { flex: 1; height: 6px; background: var(--cream-2); border-radius: 99px; overflow: hidden; min-width: 40px; }
.timerbar__progress i { display: block; height: 100%; width: 100%; background: var(--green-3); border-radius: 99px; transition: width 1s linear, background-color .3s ease; }
.timerbar.is-warn .timerbar__time { color: #B4441F; }
.timerbar.is-warn .timerbar__progress i { background: #D9633A; }

.qset { display: grid; gap: 16px; }
.qset__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 4px;
}
.qset__head:first-child { margin-top: 0; }
.qset__head h2 { font-size: clamp(18px, 3.4vw, 21px); }
.qset__badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--mint);
  border-radius: var(--pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.qset__rule { flex: 1; height: 1px; background: var(--line); }

.q {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 12px;
  box-shadow: var(--sh-1);
}
.q__prompt {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
}
.q__n {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.q__prompt .en { direction: ltr; unicode-bidi: isolate; font-family: var(--font-body); }
.q__prompt.is-en { direction: ltr; text-align: left; }
.q__prompt.is-en .q__n { direction: ltr; }
.reading-passage { font-family: var(--font-body); }
.q__opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .q__opts { grid-template-columns: repeat(3, 1fr); } }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line-2);
  border-radius: 11px;
  padding: 11px 13px;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.6;
  background: #FCFAF5;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--mint-2); background: #fff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__key {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  direction: ltr;
  line-height: 1;
}
.opt__text { direction: ltr; unicode-bidi: isolate; }
.opt__text.ar { direction: rtl; unicode-bidi: isolate; }
.opt:has(input:checked) {
  border-color: var(--green);
  background: var(--mint);
}
.opt:has(input:checked) .opt__key { background: var(--green); border-color: var(--green); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--green-3); outline-offset: 2px; }
/* answer review states */
.q.is-right { border-color: #9FD3BA; background: #F4FBF7; }
.q.is-wrong { border-color: #EBC0AC; background: #FEF7F4; }
.q .opt.is-answer { border-color: var(--green); background: #E4F1EA; }
.q .opt.is-answer .opt__key { background: var(--green); border-color: var(--green); color: #fff; }
.q .opt.is-picked-wrong { border-color: #C4552B; background: #FBEAE3; }
.q .opt.is-picked-wrong .opt__key { background: #C4552B; border-color: #C4552B; color: #fff; }
.q .opt.is-picked-wrong .opt__text { color: #8E3A1A; }
.q__flag { font-size: 13px; font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.q__flag.ok { color: #15704F; }
.q__flag.no { color: #B4441F; }
.q__flag svg { width: 15px; height: 15px; }

.reading-passage {
  background: #FCFAF5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.95;
  direction: ltr;
  text-align: left;
  color: var(--ink-2);
}
.reading-passage b { color: var(--ink); }

.writing-q { margin-bottom: 14px; }
.writing-q:last-child { margin-bottom: 0; }
.writing-q .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.test-actions .progress-note { font-size: 14px; color: var(--ink-3); margin-inline-start: auto; }

/* result */
.result { margin-top: 26px; }
.result__top {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
@media (min-width: 640px) { .result__top { grid-template-columns: auto 1fr; gap: 28px; } }
.score-ring {
  position: relative;
  width: 132px; height: 132px;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--pct, 0) * 1%), var(--cream-2) 0);
  display: grid;
  place-items: center;
  flex: none;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.score-ring__inner { position: relative; text-align: center; line-height: 1.2; }
.score-ring__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  color: var(--green);
  display: block;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.score-ring__of { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.score-wrap { text-align: center; }
.score-caption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.result__verdict h2 { font-size: clamp(21px, 4vw, 27px); margin-bottom: 8px; }
.result__verdict p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }
.result__band {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: #14493A;
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.result__rec {
  background: #FCFAF5;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 4px;
}
.result__rec b { display: block; font-size: 14px; color: var(--gold); margin-bottom: 4px; font-weight: 600; }
.result__rec span { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.result__note { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.8; }

.toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 84px;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  text-align: center;
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: 420px;
  margin-inline: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
