/* دليل ALCPT — موقع تعريفي. الألوان من lib/core/theme/app_colors.dart والخط Readex Pro من assets/fonts. */
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #E9EFF7;          /* AppColors.background */
  --bg-alt: #F4F7FB;
  --card: #FFFFFF;
  --ink: #19283E;         /* textPrimary */
  --body: #2C3E57;        /* textBody */
  --muted: #4A5D74;       /* textSecondary */
  --line: #D3DEEC;        /* border */
  --navy: #152444;        /* لون الشعار */
  --action: #3069AD;      /* primary */
  --action-ink: #164C8B;  /* primaryPressed */
  --tint: #E3EFFF;        /* selectedBg */
  --good: #286348; --good-bg: #DFEFE7;
  --bad: #984354;  --bad-bg: #F8E4E9;
  --wash: #A1C9EF;

  --nav: 72px;
  --gut: 80px;
  --padt: 120px;
  --padb: 72px;
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px; --r-btn: 999px;
  --shadow: 0 1px 2px rgba(25,40,62,.06), 0 12px 32px -12px rgba(70,97,142,.22);
  --ease: cubic-bezier(.23, 1, .32, 1);

  --t-h1: 64px; --t-h2: 40px; --t-h3: 22px; --t-lead: 20px; --t-body: 17px; --t-small: 14px; --t-label: 13px;
  color-scheme: light;
}
@media (max-width: 1023px) { :root { --gut: 48px; --t-h1: 52px; --t-h2: 34px; } }
@media (max-width: 639px)  { :root { --nav: 60px; --gut: 20px; --padt: 96px; --padb: 48px; --t-h1: 38px; --t-h2: 28px; --t-h3: 20px; --t-lead: 18px; --t-body: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--body);
  font: 400 var(--t-body)/1.7 "Readex Pro", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: 1.18; }
h2 { font-size: var(--t-h2); line-height: 1.3; max-width: 22ch; }
h2 .muted { display: block; color: var(--muted); font-size: .62em; line-height: 1.6; font-weight: 400; margin-top: 8px; max-width: 46ch; }
h3 { font-size: var(--t-h3); line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }
[lang="en"] { unicode-bidi: isolate; }
span[lang="en"], b[lang="en"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- nav ---------- */
.skip-link { position: absolute; inset-inline-start: 0; top: -100px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 20; text-decoration: none; }
.skip-link:focus { top: 14px; }
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); z-index: 10; }
.nav__row { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand img { width: 36px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-inline-end: auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; position: relative; padding-block: 12px; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cta { margin-inline-start: auto; } }
@media (max-width: 480px) {
  .nav__row { gap: 12px; }
  .brand { font-size: 17px; white-space: nowrap; gap: 8px; }
  .brand img { width: 30px; }
  .nav__cta { height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: var(--r-btn); font: 500 16px/1 inherit; font-family: inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s; white-space: nowrap; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #24375a; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(25,40,62,.6); }
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: #b7c7dc; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--xl { height: 56px; padding: 0 34px; font-size: 18px; }
.nav__cta { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--body); text-decoration: none; background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat; transition: background-size .25s var(--ease); padding-block: 10px; }
.link:hover { background-size: 100% 1px; }

/* ---------- sections ---------- */
.section { min-height: 100svh; padding: var(--padt) 0 var(--padb); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--auto { min-height: 0; padding-bottom: var(--padt); }
.section > .wrap > h2 { margin-bottom: 48px; }
@media (max-width: 639px) { .section > .wrap > h2 { margin-bottom: 32px; } }

/* ---------- hero: headline + the live learn screen ---------- */
.hero { min-height: 100svh; padding: calc(var(--nav) + 40px) 0 40px; display: flex; align-items: center; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__text { max-width: 600px; }
.hero__lead { font-size: var(--t-lead); line-height: 1.75; color: var(--body); margin: 20px 0 32px; max-width: 32em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 28px; font-size: 15px; color: var(--muted); }
.hero__facts span:not(:last-child)::after { content: "·"; margin: 0 10px; color: #A8B6C9; }
.hero__try { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 30em; }
.hero__try p { font-size: 16px; line-height: 1.7; color: var(--body); }
.hero__try b { color: var(--ink); font-weight: 500; }
.try__reset { border: 0; background: none; font: inherit; font-size: 15px; color: var(--action-ink); cursor: pointer; min-height: 44px; padding: 0; }
.hero__device { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__device .stores { justify-content: center; }
@media (min-width: 481px) { .hero__device .stores { flex-wrap: nowrap; } }
@media (max-width: 480px) { .hero__device .stores { width: 100%; } }
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav) + 32px); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { max-width: none; }
}

/* ---------- store marks ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 22px; border-radius: 14px; background: #0B0F17; color: #fff; text-decoration: none; border: 1px solid #0B0F17; transition: transform .18s var(--ease), background-color .18s; }
.store img { width: auto; height: 28px; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: 12px; color: rgba(255,255,255,.8); }
.store__text b { font-size: 20px; font-weight: 500; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
a.store:hover { transform: translateY(-1px); background: #1B2333; }
a.store:active { transform: scale(.97); }
.store--soon { background: #fff; color: var(--muted); border-color: var(--line); cursor: default; }
.store--soon img { filter: grayscale(1); opacity: .45; }
.store--soon .store__text small { color: var(--muted); }
.store--soon .store__text b { color: #7D8DA3; }
.store__tag { position: absolute; top: -10px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #fff; background: var(--action); border-radius: 999px; padding: 2px 10px 2px 9px; }
.store__tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stores--dark .store { background: #fff; color: var(--navy); border-color: #fff; }
.stores--dark .store img[src*="apple"] { filter: invert(1); }
.stores--dark .store__text small { color: var(--muted); }
.stores--dark a.store:hover { background: #E3EFFF; }
.stores--dark .store--soon { background: transparent; border-color: rgba(255,255,255,.3); }
.stores--dark .store--soon .store__text small, .stores--dark .store--soon .store__text b { color: #A9B9D2; }
@media (max-width: 480px) { .stores .store { flex: 1 1 100%; justify-content: center; } }

/* ---------- phone frame ---------- */
.phone { --pw: 300px; width: var(--pw); padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .175); background: #111826; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 30px 60px -28px rgba(21,36,68,.5); position: relative; flex: none; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #1a2232; border-radius: 2px; }
.phone::before { inset-inline-end: -3px; top: 24%; height: 9%; box-shadow: 0 calc(var(--pw) * .22) 0 #1a2232; }
.phone::after  { inset-inline-start: -3px; top: 30%; height: 14%; }
.phone__screen { display: block; position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: calc(var(--pw) * .145); overflow: hidden; background: var(--bg); padding: 0; border: 0; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone--try { --pw: clamp(270px, calc((100svh - 240px) * .447), 340px); }
@media (max-width: 860px) { .phone--try { --pw: min(340px, 86vw); } }

/* ---------- the simulated app screen: drawn at 440 pt like the app, scaled by --k ---------- */
.phone__screen:has(.sim) { container-type: inline-size; }
.sim {
  --s-bg: #E9EFF7; --s-ink: #19283E; --s-body: #2C3E57; --s-muted: #4A5D74; --s-line: #D3DEEC;
  --s-blue: #3069AD; --s-blue-ink: #164C8B; --s-tint: #E3EFFF; --s-good: #286348; --s-good-bg: #DFEFE7; --s-bad: #984354; --s-bad-bg: #F8E4E9;
  position: absolute; top: 0; left: 0; width: 440px; height: 956px;
  transform: scale(var(--k, .68)); transform-origin: 0 0;
  direction: rtl; text-align: right;
  font-family: "Readex Pro", system-ui, sans-serif; color: var(--s-ink); font-size: 17px; line-height: 1.5;
  background: radial-gradient(120% 50% at 70% 0%, #DCE8F7 0%, transparent 60%), linear-gradient(#EAF0F8, #E9EFF7);
  overflow: hidden; user-select: none; -webkit-user-select: none;
}
.sim button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.sim button:disabled { cursor: default; }
.sim .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sim .ltr { direction: ltr; unicode-bidi: isolate; }
.sim :focus-visible { outline: 3px solid var(--s-blue); outline-offset: 2px; border-radius: 12px; }

.s-status { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px 0 42px; direction: ltr; position: relative; z-index: 5; }
.s-time { font-weight: 600; font-size: 18px; color: #000; width: 60px; text-align: center; }
.s-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.s-icons { display: flex; align-items: center; gap: 6px; }
.s-icons svg { height: 12px; width: auto; fill: #000; }
.s-batt { width: 27px; height: 13px; border: 1.5px solid rgba(0,0,0,.4); border-radius: 4px; padding: 1.5px; position: relative; }
.s-batt span { display: block; height: 100%; width: 80%; background: #000; border-radius: 1.5px; }
.s-view { position: absolute; inset: 62px 0 0; display: flex; flex-direction: column; }
.s-home { position: absolute; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(0,0,0,.85); z-index: 30; pointer-events: none; }

/* list */
.s-list { display: flex; flex-direction: column; height: 100%; }
.s-scroll { flex: 1; overflow-y: auto; padding: 12px 20px 24px; scrollbar-width: none; overscroll-behavior: contain; }
.s-scroll::-webkit-scrollbar { display: none; }
.s-list__top { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.s-h1 { font-size: 34px; font-weight: 600; margin: 0; color: var(--s-ink); letter-spacing: 0; }
.s-count { font-size: 15px; color: var(--s-muted); }
.s-sub { font-size: 15px; color: var(--s-muted); margin: 4px 0 16px; }
.s-search { display: flex; align-items: center; gap: 10px; height: 54px; border-radius: 27px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); padding: 0 18px; color: var(--s-muted); box-shadow: 0 1px 2px rgba(70,97,142,.08); }
.s-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; color: var(--s-ink); outline: none; min-width: 0; direction: rtl; }
.s-search input::placeholder { color: var(--s-muted); }
.s-search input::-webkit-search-cancel-button { display: none; }
.s-seg { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 18px; background: #DDE7F4; }
.s-seg__b { flex: 1; height: 50px; border-radius: 14px !important; font-size: 17px !important; font-weight: 500; color: var(--s-ink) !important; text-align: center !important; }
.s-seg__b.on { background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--s-blue-ink), 0 2px 6px rgba(70,97,142,.15); color: var(--s-blue-ink) !important; }
.s-note { font-size: 14px; color: var(--s-muted); margin: 12px 0 14px; }
.s-form { display: block; width: 100%; background: rgba(255,255,255,.62) !important; border: 1px solid rgba(255,255,255,.95) !important; border-radius: 22px; padding: 16px 18px !important; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(70,97,142,.08), 0 8px 20px -14px rgba(70,97,142,.35); transition: transform .15s; }
.s-form:active { transform: scale(.985); }
.s-form__head { display: flex; align-items: center; gap: 10px; }
.s-form__name { font-size: 20px; font-weight: 600; color: var(--s-ink); }
.s-form__chev { margin-inline-start: auto; color: var(--s-muted); display: flex; }
.s-form__meta { display: block; font-size: 15px; color: var(--s-body); margin-top: 4px; }
.s-form__meta b { font-weight: 600; color: var(--s-ink); }
.s-form__meta .sep { display: inline-block; width: 10px; }
.s-form--sub small { display: block; font-size: 14px; color: var(--s-muted); }
.s-form--sub .s-form__name { font-size: 19px; }
.s-sub__icons { margin-inline-start: auto; display: flex; gap: 14px; color: var(--s-muted); }
.s-chip { font-size: 13px; font-weight: 600; color: var(--s-blue-ink); background: var(--s-tint); border-radius: 999px; padding: 3px 12px; }
.s-chip--lock { display: inline-flex; align-items: center; gap: 4px; color: var(--s-muted); background: #E4EBF5; }
.s-chip--lock .i { width: 14px; height: 14px; }
.is-locked .s-form__name, .is-locked .s-form__meta { opacity: .62; }
.s-track { display: flex; gap: 4px; margin-top: 12px; direction: rtl; }
.s-track i { flex: 1; height: 7px; border-radius: 4px; background: rgba(48,105,173,.14); }
.s-track i.good { background: var(--s-good); } .s-track i.bad { background: var(--s-bad); } .s-track i.part { background: rgba(48,105,173,.55); }
.s-key { display: flex; gap: 16px; font-size: 13px; color: var(--s-muted); margin: 8px 0 0; }
.s-key span { display: inline-flex; align-items: center; gap: 5px; }
.s-key .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(48,105,173,.55); }
.s-key .dot.good { background: var(--s-good); } .s-key .dot.bad { background: var(--s-bad); }
.s-empty { text-align: center; color: var(--s-muted); padding: 40px 24px; font-size: 16px; }
.s-tabs { display: flex; gap: 4px; margin: 0 14px 28px; padding: 6px; border-radius: 30px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 10px 30px -16px rgba(70,97,142,.5); }
.s-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px !important; border-radius: 22px; font-size: 13px; font-weight: 500; color: var(--s-body) !important; }
.s-tabs button.on { background: rgba(227,239,255,.95) !important; color: var(--s-blue-ink) !important; }
.s-tabs .i { width: 24px; height: 24px; }

/* question */
.s-q { display: flex; flex-direction: column; height: 100%; position: relative; }
.s-qbar { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 6px 12px 10px; }
.s-x { width: 44px; height: 44px; display: grid !important; place-items: center; color: var(--s-ink); border-radius: 50% !important; }
.s-x .i { width: 24px; height: 24px; }
.s-qtitle { text-align: center !important; display: flex !important; flex-direction: column; align-items: center; }
.s-qtitle b { font-size: 17px; font-weight: 600; }
.s-qtitle span { font-size: 13px; color: var(--s-body); display: inline-flex; align-items: center; gap: 4px; }
.s-qtitle span .i { width: 14px; height: 14px; }
.s-prev { justify-self: end; display: inline-flex !important; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: var(--s-blue-ink) !important; }
.s-prev .i { width: 16px; height: 16px; }
.s-progress { direction: ltr; height: 4px; margin: 0 16px; border-radius: 2px; background: #D4DEEB; overflow: hidden; }
.s-progress i { display: block; height: 100%; background: var(--s-blue); border-radius: 2px; margin-inline-start: 0; transition: width .3s; }
.s-qbody { flex: 1; overflow-y: auto; padding: 18px 16px 16px; display: flex; flex-direction: column; scrollbar-width: none; }
.s-qbody::-webkit-scrollbar { display: none; }
.s-hint { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--s-muted); margin: 0 0 12px; }
.s-hint__chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--s-blue); }
.s-hint__chip .i { width: 16px; height: 16px; }
.s-card { background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); border-radius: 22px; padding: 18px; box-shadow: 0 1px 2px rgba(70,97,142,.08); }
.s-prompt__en { font-size: 22px; font-weight: 600; line-height: 1.45; color: var(--s-ink); text-align: right; margin: 0; }
.s-tr { font-size: 19px; line-height: 1.6; color: var(--s-blue-ink); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--s-line); }
.s-pill { display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 46px; width: 100%; margin-top: 12px; border-radius: 23px !important; border: 1.5px solid var(--s-blue) !important; background: rgba(255,255,255,.6) !important; color: var(--s-blue-ink) !important; font-size: 16px !important; font-weight: 600; }
.s-pill.on { background: var(--s-blue) !important; color: #fff !important; }
.s-pill:disabled { opacity: .45; }
.s-pill.half { margin-top: 0; }
.s-pill .i { width: 18px; height: 18px; }
.s-audio__row { display: flex; align-items: center; gap: 16px; direction: ltr; }
.s-play { width: 62px; height: 62px; border-radius: 50% !important; background: var(--s-tint) !important; color: var(--s-blue-ink) !important; display: grid !important; place-items: center; flex: none; box-shadow: 0 0 0 6px rgba(227,239,255,.6); }
.s-play .i { width: 24px; height: 24px; }
.s-wave { flex: 1; min-width: 0; }
.s-bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.s-bars i { flex: 1; border-radius: 2px; background: #DCDCE4; }
.s-bars i.on { background: var(--s-blue); }
.s-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--s-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.s-audio__tools { display: flex; gap: 8px; margin: 12px 0; }
.s-mini { display: inline-flex !important; align-items: center; gap: 6px; height: 38px; padding: 0 14px !important; border-radius: 12px !important; background: rgba(255,255,255,.85) !important; border: 1px solid var(--s-line) !important; font-size: 15px; font-weight: 600; direction: rtl; }
.s-mini .i { width: 16px; height: 16px; }
.s-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-transcript { font-size: 18px; line-height: 1.5; color: var(--s-ink); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--s-line); text-align: left; }
.s-opts { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.s-opt { display: flex !important; align-items: center; gap: 12px; direction: ltr; text-align: left !important; min-height: 60px; padding: 10px 14px !important; border-radius: 18px !important; background: rgba(255,255,255,.72) !important; border: 1.5px solid var(--s-line) !important; transition: background-color .15s, border-color .15s; }
.s-opt__key { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1.5px solid var(--s-line); background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--s-blue); }
.s-opt__key .i { width: 18px; height: 18px; stroke-width: 3; }
.s-opt__txt { display: flex; flex-direction: column; font-size: 18px; color: var(--s-ink); line-height: 1.35; flex: 1; }
.s-opt__ar { direction: rtl; text-align: left; font-size: 15px; color: var(--s-body); margin-top: 2px; }
.s-opt__label { direction: rtl; font-size: 14px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.s-opt.sel { border-color: var(--s-blue) !important; background: rgba(227,239,255,.95) !important; }
.s-opt.sel .s-opt__key { background: var(--s-blue); border-color: var(--s-blue); color: #fff; }
.s-opt.good { border-color: #9FCDB4 !important; background: var(--s-good-bg) !important; }
.s-opt.good .s-opt__key { background: var(--s-good); border-color: var(--s-good); color: #fff; }
.s-opt.good .s-opt__label { color: var(--s-good); }
.s-opt.bad { border-color: #E2AEBB !important; background: var(--s-bad-bg) !important; }
.s-opt.bad .s-opt__key { background: var(--s-bad); border-color: var(--s-bad); color: #fff; }
.s-opt.bad .s-opt__label { color: var(--s-bad); }
.s-opt.dim { opacity: .55; }
.s-opt[aria-disabled="true"] { cursor: default; }
.s-foot { padding: 12px 16px 34px; border-top: 1px solid rgba(211,222,236,.7); background: rgba(233,239,247,.9); position: relative; z-index: 3; }
.s-cta { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 28px !important; background: var(--s-ink) !important; color: #fff !important; font-size: 19px !important; font-weight: 600; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(25,40,62,.6); text-align: center !important; }
.s-cta:disabled { background: #D4DEEB !important; color: #7D8DA3 !important; box-shadow: none; }
.s-cta .i { width: 20px; height: 20px; }
.s-cta:active:not(:disabled) { transform: scale(.98); }

/* result sheet */
.s-sheet { position: absolute; left: 0; right: 0; bottom: 102px; max-height: 56%; display: flex; flex-direction: column; background: rgba(244,247,251,.98); border-radius: 30px 30px 0 0; box-shadow: 0 -12px 30px -12px rgba(25,40,62,.25); z-index: 2; animation: sheet-up .35s cubic-bezier(.23,1,.32,1); }
.s-sheet.min .s-sheet__body { display: none; }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
.s-grab { display: block !important; width: 100%; height: 22px; }
.s-grab i { display: block; width: 44px; height: 5px; border-radius: 3px; background: #C3CFDF; margin: 9px auto 0; }
.s-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 12px; }
.s-res { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 600; margin: 0; }
.s-res.good { color: var(--s-good); } .s-res.bad { color: var(--s-bad); }
.s-res__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.s-res.good .s-res__ic { background: var(--s-good); } .s-res.bad .s-res__ic { background: var(--s-bad); }
.s-res__ic .i { width: 18px; height: 18px; stroke-width: 3; }
.s-tag { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #E4EBF5; color: var(--s-body); white-space: nowrap; }
.s-tag.good { background: #CFE7DA; color: var(--s-good); } .s-tag.bad { background: #F1D3DB; color: var(--s-bad); }
.s-sheet__body { overflow-y: auto; padding: 0 20px 16px; scrollbar-width: none; }
.s-sheet__body::-webkit-scrollbar { display: none; }
.s-why { border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid transparent; }
.s-why.bad { background: var(--s-bad-bg); border-color: #EBC3CD; } .s-why.good { background: var(--s-good-bg); border-color: #B7D9C6; }
.s-why.plain { background: #fff; border-color: var(--s-line); }
.s-why__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.s-why.bad .s-why__h { color: var(--s-bad); } .s-why.good .s-why__h { color: var(--s-good); }
.s-why__l { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--s-line); display: inline-grid; place-items: center; font-size: 13px; color: var(--s-blue); }
.s-why__ans { font-size: 18px; font-weight: 600; margin: 0 0 4px; text-align: right; }
.s-why__b { font-size: 16px; line-height: 1.65; color: var(--s-ink); margin: 0; }
.s-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.s-link { height: 40px; padding: 0 16px !important; border-radius: 14px !important; border: 1px solid var(--s-line) !important; background: #fff !important; color: var(--s-blue-ink) !important; font-size: 15px; font-weight: 600; }
.s-link--plain { border: 0 !important; background: none !important; width: 100%; margin-top: 6px; text-align: center !important; }

/* overlays */
.s-scrim { position: absolute; inset: 0; background: rgba(15,25,45,.35); z-index: 10; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.s-modal { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; background: #F4F7FB; border-radius: 32px 32px 0 0; padding: 22px 22px 44px; animation: sheet-up .35s cubic-bezier(.23,1,.32,1); }
.s-modal__head { display: flex; align-items: center; justify-content: space-between; }
.s-modal h3 { font-size: 22px; font-weight: 600; margin: 0; color: var(--s-ink); }
.s-modal__sub { font-size: 14px; color: var(--s-muted); margin: 4px 0 14px; }
.s-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; direction: ltr; }
.s-num { height: 34px; border-radius: 8px !important; background: #fff !important; border: 1px solid var(--s-line) !important; font-size: 13px !important; font-weight: 600; text-align: center !important; color: var(--s-body) !important; }
.s-num.good { background: var(--s-good) !important; border-color: var(--s-good) !important; color: #fff !important; }
.s-num.bad { background: var(--s-bad) !important; border-color: var(--s-bad) !important; color: #fff !important; }
.s-num.cur { box-shadow: 0 0 0 2px var(--s-blue-ink); }
.s-modal--pay { text-align: center; padding-top: 30px; }
.s-pay__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--s-tint); color: var(--s-blue-ink); display: grid; place-items: center; }
.s-pay__icon .i { width: 30px; height: 30px; }
.s-modal--pay p { font-size: 16px; line-height: 1.7; color: var(--s-body); margin: 10px 0 20px; }
.s-toast { position: absolute; left: 24px; right: 24px; bottom: 120px; z-index: 20; background: rgba(25,40,62,.94); color: #fff; font-size: 15px; line-height: 1.5; text-align: center; padding: 12px 16px; border-radius: 16px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; }
.s-toast.on { opacity: 1; transform: none; }
.s-loading { flex: 1; display: grid; place-items: center; }
.s-loading span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #C9D7EA; border-top-color: var(--s-blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; min-width: 0; transition: transform .25s var(--ease); }
.step:hover { transform: translateY(-2px); }
.step h3 { margin: 6px 0 8px; }
.step__num { font-size: var(--t-label); font-weight: 500; color: var(--action-ink); margin-top: 24px; }
.step__ui { background: var(--bg); border-radius: var(--r-md); padding: 18px; height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; }
.opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; color: var(--ink); direction: rtl; }
.opt small { margin-inline-start: auto; font-size: 13px; font-weight: 500; }
.opt__key { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; color: #fff; }
.opt--bad { background: var(--bad-bg); border-color: #e5b7c2; } .opt--bad .opt__key { background: var(--bad); } .opt--bad small { color: var(--bad); }
.opt--good { background: var(--good-bg); border-color: #acd3bf; } .opt--good .opt__key { background: var(--good); } .opt--good small { color: var(--good); }
.opt__note { font-size: 14px; line-height: 1.6; color: var(--body); padding-inline: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); }
.chip--on { border-color: var(--action); color: var(--action-ink); background: var(--tint); }
.mrow { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mrow small { font-size: 13px; color: var(--muted); }
.mrow [lang="en"] { display: block; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; direction: ltr; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.step__ui--exam { align-items: center; gap: 12px; }
.timer { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--action-ink); font-variant-numeric: tabular-nums; direction: ltr; }
.timer small { font-size: 13px; font-weight: 400; color: var(--muted); direction: rtl; }
.timer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); animation: pulse 2.6s ease-in-out infinite; }
.ring { --p: 78; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--action) calc(var(--p) * 1%), #d4deeb 0); -webkit-mask: radial-gradient(circle, transparent 46px, #000 47px); mask: radial-gradient(circle, transparent 46px, #000 47px); position: relative; }
.ring span { position: absolute; }
.step__ui--exam .ring { -webkit-mask: none; mask: none; }
.step__ui--exam .ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.ring span { z-index: 1; font-size: 26px; font-weight: 600; color: var(--ink); }
.pass { font-size: 13px; font-weight: 500; color: var(--good); background: var(--good-bg); padding: 5px 12px; border-radius: 999px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; padding: 32px; position: relative; }
.plan__price { font-size: 40px; font-weight: 500; color: var(--ink); margin: 14px 0 2px; line-height: 1.2; }
.plan__price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan__sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.plan .list { margin-bottom: 28px; }
.plan__btn { margin-top: auto; width: 100%; }
.plan--main { border: 2px solid var(--action); box-shadow: 0 24px 48px -24px rgba(48,105,173,.45); }
.plan__badge { position: absolute; top: -14px; inset-inline-start: 28px; background: var(--action); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 14px; border-radius: 999px; }
.plans__fine { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 70ch; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-inline-start: 22px; line-height: 1.6; }
.list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--action); }
.list--check li { padding-inline-start: 30px; }
.list--check li::before { width: 20px; height: 20px; top: .2em; inset-inline-start: 0; background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- what's inside ---------- */
.why { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
.why__head h2 { margin-bottom: 16px; }
.why__head p { font-size: var(--t-lead); line-height: 1.7; max-width: 26em; }
.why__list { margin: 0; border-top: 1px solid var(--line); }
.why__list > div { display: grid; grid-template-columns: 15em 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why__list dt { font-size: 18px; font-weight: 500; color: var(--ink); }
.why__list dd { margin: 0; }
.section__lead { font-size: var(--t-lead); line-height: 1.7; max-width: 36em; margin: -32px 0 40px; }
@media (max-width: 1023px) { .why { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 639px) { .why__list > div { grid-template-columns: 1fr; gap: 4px; } .section__lead { margin-top: -20px; } }

/* ---------- closing ---------- */
.closing { background: var(--navy); color: #C9D6EA; padding: var(--padt) 0 40px; }
.closing > .wrap { display: flex; flex-direction: column; gap: 120px; }
@media (max-width: 639px) { .closing > .wrap { gap: 72px; } }
.close { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.close__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); margin-bottom: 8px; }
.close h2 { color: #fff; font-size: calc(var(--t-h2) * 1.4); max-width: none; }
.close p { font-size: var(--t-lead); color: #C9D6EA; margin-bottom: 16px; }
.closing .btn--primary { background: #fff; color: var(--navy); }
.closing .btn--primary:hover { background: #E3EFFF; }
.directory { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: center; }
.directory__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 18px; }
.directory__brand img { width: 32px; height: auto; }
.directory__links { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-self: end; }
.support { grid-column: 1 / -1; padding: 24px 0 8px; }
.support h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.support__items { display: flex; flex-wrap: wrap; gap: 12px; }
.contact { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; transition: background-color .18s, transform .18s var(--ease); }
.contact:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.contact svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #B4CEFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact span { display: flex; flex-direction: column; line-height: 1.35; }
.contact small { font-size: 13px; color: #A9B9D2; }
.contact b { font-size: 16px; font-weight: 500; unicode-bidi: isolate; }
@media (max-width: 639px) { .contact { flex: 1 1 100%; } }
.closing .link { color: #DDE6F3; font-size: 15px; }
.legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; color: #A9B9D2; }

/* ---------- responsive grids ---------- */
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  /* minmax(0, 1fr): a plain 1fr grows to its widest line, and the step
     cards pushed a 375px phone 41px wide. */
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px 22px; }
  .card { padding: 22px; }
  .directory { grid-template-columns: 1fr; }
  .directory__links { justify-self: start; flex-direction: column; gap: 0; }
  .close .btn { width: 100%; }
}

/* ---------- hero entrance (once, on load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero[data-enter] .hero__text > * { animation: rise .8s var(--ease) both; }
  .hero[data-enter] .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero[data-enter] .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero[data-enter] .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero[data-enter] .hero__text > :nth-child(5) { animation-delay: .24s; }
  .hero[data-enter] .hero__text > :nth-child(6) { animation-delay: .3s; }
  .hero[data-enter] .phone--try { animation: rise-phone 1.1s .1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes rise-phone { from { opacity: 0; transform: translateY(40px) scale(.97); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- guide links on the home page ---------- */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide__card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); text-decoration: none; color: var(--body); transition: transform .2s var(--ease), border-color .2s; }
.guide__card b { color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; }
.guide__card span { font-size: 15px; line-height: 1.7; color: var(--muted); }
.guide__card:hover { transform: translateY(-2px); border-color: #B7C7DC; }
@media (max-width: 1023px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .guide { grid-template-columns: 1fr; } }

/* ---------- article pages ---------- */
.article { padding: calc(var(--nav) + 40px) 0 96px; background: var(--bg); }
.article__wrap { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--action-ink); text-decoration: none; padding: 12px 0; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(30px, 3.2vw + 14px, 46px); line-height: 1.3; }
.article__meta { font-size: 14px; color: var(--muted); margin: 14px 0 24px; }
.article__lead { font-size: var(--t-lead); line-height: 1.8; color: var(--ink); margin-bottom: 32px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 40px; }
.toc > p { font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 2px; }
.toc a { color: var(--action-ink); text-decoration: none; display: inline-block; padding: 8px 0; }
.toc a:hover { text-decoration: underline; }
.article section { margin-bottom: 40px; scroll-margin-top: calc(var(--nav) + 16px); }
.article h2 { font-size: clamp(24px, 1.2vw + 18px, 30px); max-width: none; margin-bottom: 16px; }
.article h3 { font-size: 19px; margin-bottom: 6px; }
.article p, .article li { font-size: 17px; line-height: 1.9; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { padding-inline-start: 22px; margin: 12px 0; display: grid; gap: 8px; }
.article a:not(.btn):not(.rel) { color: var(--action-ink); }
.article strong { color: var(--ink); font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.article .table-wrap--fit table { min-width: 0; }
.article th, .article td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.article th { background: var(--bg-alt); color: var(--ink); font-weight: 500; }
.article tr:last-child td { border-bottom: 0; }
.example { margin: 16px 0; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--action); border-radius: var(--r-md); }
.example p { font-weight: 500; color: var(--ink); text-align: left; }
.example ol { text-align: left; padding-left: 24px; padding-right: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 48px; padding: 28px; border-radius: var(--r-lg); background: var(--navy); color: #C9D6EA; }
.cta__title { color: #fff; font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.cta p { font-size: 16px !important; line-height: 1.7 !important; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.article__faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.article__faq > div:first-of-type { border-top: 1px solid var(--line); }
.article__source { font-size: 14px !important; color: var(--muted); margin-top: 32px; }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.6; transition: transform .2s var(--ease); }
.rel b { color: var(--ink); font-size: 16px; font-weight: 500; }
.rel:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .related__grid { grid-template-columns: 1fr; } .cta { padding: 22px; } .cta__actions .btn { flex: 1 1 100%; } }
