/* ============================================================
   /platforms/ — ورق وحبر. Everything here resolves from tokens.css.
   No gradients, no blur, no shadow but --shadow-offset, no emoji.
   ============================================================ */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: var(--lh-head); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--moss-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }

.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }
.sec { padding-block: var(--section-y); }
.sec--rule { border-top: 1px solid var(--rule); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 18px; height: 18px; }

/* type roles */
.display { font-size: var(--fs-display); line-height: 1.15; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.label { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-label); color: var(--ink-muted); }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.lede { font-size: var(--fs-body); color: var(--ink-muted); max-width: 62ch; }
.head { max-width: 46rem; }
.head .h2 { margin-top: var(--s-3); }
.head .lede { margin-top: var(--s-4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 20px; border-radius: var(--r-input);
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background var(--motion) var(--motion-ease), color var(--motion) var(--motion-ease), transform var(--motion) var(--motion-ease);
}
.btn:hover { background: var(--paper-2); }
.btn:active { transform: translate(1px, 1px); }
.btn--stamp { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); }
.btn--stamp:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--lg { padding: 14px 28px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: -.01em; }
.brand--logo { display: inline-flex; align-items: center; }
.brand--logo img { height: 2.75rem; width: auto; display: block; }
@media (min-width: 768px) { .brand--logo img { height: 3.25rem; } }
.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; }
.nav__links { display: none; gap: var(--s-5); align-items: center; font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: 10px; border-bottom: 1px solid transparent; min-height: var(--tap); display: inline-flex; align-items: center; white-space: nowrap; }
.nav__links a:hover { border-bottom-color: var(--ink); }
.nav__support { color: var(--ink-muted); }
.nav__login { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding-inline: 4px; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 0 !important; }
.nav__login--menu { display: none; }
.nav__cta--menu { display: none; }
/* اللي فوق مكانه هنا، بس `.nav__links a` (كلاس + عنصر) بيغلبه في الترتيب،
   فالنسختين بتوع القايمة كانوا بيبانوا على الديسكتوب: زرارين «ابدأ مجاناً»
   و«دخول» مرتين. الكلاسين هنا بيرجّعوا الأولوية للإخفاء. */
.nav__links .nav__login--menu,
.nav__links .nav__cta--menu { display: none; }
.nav__end { display: flex; align-items: center; gap: var(--s-3); }
.nav__cta { padding: 10px 16px; font-size: var(--fs-small); }
.nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--paper-2); cursor: pointer; }
.nav__toggle .ico--close, .nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.nav__toggle[aria-expanded="true"] .ico--close { display: block; }
@media (max-width: 1023px) {
  .nav__links { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--s-2) var(--s-4) var(--s-4); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links .nav__cta--menu { display: inline-flex; margin-top: var(--s-3); justify-content: center; border-bottom: 0; }
  .nav__links .nav__login--menu { display: inline-flex; }
  .nav__end .nav__cta, .nav__end .nav__login { display: none; }
}
@media (min-width: 1024px) { .nav__links { display: flex; } .nav__toggle { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: var(--s-8) var(--s-8); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero { padding-block: var(--s-9); } .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); } }
.hero .display { margin-top: var(--s-3); }
.hero .lede { margin-top: var(--s-5); font-size: var(--fs-body); }
.hero__more { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-muted); }
.hero__more a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; display: inline-block; padding-block: 12px; margin-block: -8px; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); font-size: var(--fs-small); color: var(--ink-muted); }
.trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
@media (min-width: 768px) { .trust { display: flex; flex-wrap: wrap; gap: var(--s-2) 0; } .trust li { padding-inline: var(--s-3); border-inline-start: 1px solid var(--rule); } .trust li:first-child { padding-inline-start: 0; border-inline-start: 0; } }
.trust .ico { width: 18px; height: 18px; color: var(--moss); }

/* name picker — a form field on paper; the slug is LTR inside an RTL page */
.picker { margin-top: var(--s-6); max-width: 36rem; }
.picker__row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* `flex-wrap` هنا مش للموبايل بس: لاحقة الدومين `white-space: nowrap` وعمرها
   ما بتصغّر، فلما الخانة تضيق (عمود الهيرو عند ١٠٢٤) كانت بتخرج برّه الشاشة.
   باللف، بتنزل سطر لوحدها لوحدها لما مفيش مكان. */
.field { flex: 1 1 16rem; display: flex; flex-wrap: wrap; align-items: center; min-width: 0; direction: ltr; text-align: left;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-input); transition: border-color var(--motion) var(--motion-ease); }
.field:focus-within { border-color: var(--ink); }
.field__pre, .field__suf { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink-muted); padding: 0 6px 0 12px; white-space: nowrap; }
.field__suf { padding: 0 12px 0 4px; }
.field input { flex: 1; min-width: 5rem; border: 0; background: transparent; padding: 12px 0; font-family: var(--font-mono); font-size: var(--fs-body); color: var(--ink); outline: none; }
.field input::placeholder { color: var(--ink-muted); opacity: .8; }
.picker__msg { min-height: 1.4em; margin-top: var(--s-2); font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); }
.picker__msg.ok { color: var(--moss); } .picker__msg.bad { color: var(--stamp); }
@media (max-width: 480px) {
  .field { flex-wrap: wrap; }
  .field__suf { flex-basis: 100%; padding: 0 12px 8px; font-size: var(--fs-label); }
  .picker__row .btn { width: 100%; }
}
.hero__visual { padding: var(--s-5) var(--s-3) var(--s-6); }
/* The card is drawn at 340px; on desktop it is shown a third larger so the
   hero's object reads at the same weight as the headline. */
@media (min-width: 1024px) {
  .hero__visual { padding: var(--s-8) var(--s-6); }
  .hero__visual .ac-stack { transform: scale(1.32); transform-origin: center; }
}
/* Compromise on the locked scale: at 1024–1439 the 7/12 column cannot hold
   the display size on one line per phrase, so it steps down one notch. */
@media (min-width: 1024px) and (max-width: 1439px) { .hero .display { font-size: 3.5rem; } }

/* ---------- who it is for ---------- */
.who { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 768px) { .who { grid-template-columns: repeat(3, 1fr); } }
.who__card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.who__card .ico { width: 28px; height: 28px; color: var(--stamp); }
.who__card p { color: var(--ink-muted); }
.who__fit { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--rule); display: flex; gap: var(--s-2); align-items: flex-start; color: var(--ink) !important; font-weight: 500; font-size: var(--fs-small); }
.who__fit .ico { width: 18px; height: 18px; color: var(--moss); margin-top: 3px; }

/* ---------- proof ---------- */
.proof { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 768px) { .proof { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }
.proof__card { margin: 0; background: var(--paper-2); border: 1px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-offset); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.proof__q { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); line-height: 1.5; }
.proof__who { display: grid; gap: 2px; font-size: var(--fs-small); color: var(--ink-muted); margin-top: auto; }
.proof__who b { color: var(--ink); }
.proof__who a { font-size: var(--fs-label); text-decoration: none; }
.proof__demo { margin-top: var(--s-6); text-align: center; }
/* `.btn` كله `white-space: nowrap`، فالسطر الطويل ده كان عرضه ٣٩٧px على شاشة
   ٣٩٠ — والصفحة كلها بقت بتتزحلق أفقياً ٢٣px، فاللوجو في الهيدر بان مقصوص.
   الزرار ده وحده يلف. */
.proof__demo .btn { white-space: normal; max-width: 100%; text-align: center; }

/* ---------- reveal (the one motion) ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--motion) var(--motion-ease), transform var(--motion) var(--motion-ease); }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- footer ---------- */
.foot { background: var(--moss); color: var(--paper); padding-block: var(--s-7) var(--s-5); }
.foot__in { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .foot__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand--foot { color: var(--paper); }
/* The lockup is ink on paper; the footer is moss. It sits on a printed card,
   like the label on a file — same paper, same rule, no glow. */
.foot__logo { display: inline-block; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: var(--s-3) var(--s-4); }
.foot__logo img { display: block; height: 4.5rem; width: auto; }
@media (min-width: 768px) { .foot__logo img { height: 6rem; } }
.foot__credit a { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; display: inline-block; padding-block: 12px; margin-block: -12px; }
/* a page that is a task (signup, status) keeps the footer to one line */
.foot--slim { padding-block: var(--s-5); }
.foot--slim .foot__in { display: none; }
.foot--slim .foot__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.foot__blurb { margin-top: var(--s-3); max-width: 40ch; color: var(--moss-soft); }
.foot h3 { font-size: var(--fs-body); margin-bottom: var(--s-3); }
.foot ul { display: grid; gap: 0; }
.foot a { color: var(--moss-soft); text-decoration: none; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.foot__bottom { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); font-size: var(--fs-small); color: var(--moss-soft); }
.picker__label { display:block; margin-bottom: var(--s-2); }

/* ---------- stats strip ---------- */
.stats { background: var(--moss-soft); border-block: 1px solid var(--rule); }
.stats__row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats__row { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: var(--s-5) var(--s-4); text-align: center; border-top: 1px solid var(--rule); }
.stat:first-child { border-top: 0; }
@media (min-width: 640px) { .stat { border-top: 0; border-inline-start: 1px solid var(--rule); padding-block: var(--s-6); } .stat:first-child { border-inline-start: 0; } }
.stat__n { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1.1; color: var(--stamp); font-variant-numeric: tabular-nums; }
.stat__l { margin-top: var(--s-2); color: var(--ink); }

/* ---------- subjects (was a ticker) ---------- */
.subjects { padding-block: var(--s-5); border-bottom: 1px solid var(--rule); }
.subjects__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) 0; font-weight: 500; color: var(--ink-muted); }
.subjects__list li::after { content: '·'; margin-inline: var(--s-3); color: var(--rule); }
.subjects__list li:last-child::after { content: none; }

/* ---------- how it works: ruled notebook + editorial list ---------- */
.how { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--rule) 40%, transparent) 31px 32px); }
.steps { margin-top: var(--s-7); border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s-4); padding-block: var(--s-6); border-bottom: 1px solid var(--rule); align-items: start; }
@media (min-width: 768px) { .step { grid-template-columns: 6rem 1fr auto; gap: var(--s-6); } }
.step__n { font-family: var(--font-mono); font-size: var(--fs-h3); color: var(--ink-muted); line-height: 1.2; padding-top: 4px; direction: ltr; }
.step__t { margin-top: var(--s-3); max-width: 60ch; color: var(--ink-muted); }
.step__time { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .step__time { grid-column: auto; justify-self: end; margin-top: 4px; } }
.tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--ink-muted); border-radius: var(--r-input); font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted); white-space: nowrap; transform: rotate(-3deg); }

/* ---------- features: spec sheet + receipt ---------- */
.spec-grid { display: grid; gap: var(--s-7); margin-top: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .spec-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); } }
.spec { border-top: 1px solid var(--rule); }
.spec__row { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--rule); align-items: start; }
.spec__row .ico { margin-top: 3px; }
.spec__t { font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.spec__t .label { border: 1px solid var(--rule); border-radius: var(--r-input); padding: 1px 8px; }
.spec__d { color: var(--ink-muted); margin-top: 4px; font-size: var(--fs-small); max-width: 60ch; }

.receipt { position: relative; background: var(--paper-2); border: 1px solid var(--ink); border-radius: var(--r-card) var(--r-card) 0 0; padding: var(--s-5) var(--s-5) var(--s-6); box-shadow: var(--shadow-offset); max-width: 22rem; margin-inline: auto; font-family: var(--font-mono); font-size: var(--fs-small); direction: ltr; text-align: left; }
.receipt__h { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-body); direction: rtl; text-align: right; padding-bottom: var(--s-3); border-bottom: 1px dashed var(--ink-muted); margin-bottom: var(--s-3); }
.receipt__l { display: flex; align-items: baseline; gap: 6px; padding-block: 6px; direction: rtl; }
.receipt__l .k { font-family: var(--font-body); font-size: var(--fs-small); color: var(--ink); white-space: nowrap; }
.receipt__l .dots { flex: 1; border-bottom: 1px dotted var(--ink-muted); transform: translateY(-4px); min-width: 12px; }
.receipt__l .v { font-family: var(--font-mono); direction: ltr; white-space: nowrap; }
.receipt__f { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed var(--ink-muted); font-family: var(--font-body); font-size: var(--fs-label); color: var(--ink-muted); direction: rtl; text-align: right; }
/* perforated bottom edge: notches punched out of the paper */
.receipt::after { content: ''; position: absolute; inset-inline: -1px; bottom: -7px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--paper) 5px, transparent 5.5px) left bottom / 14px 12px repeat-x; }

/* ---------- pricing ---------- */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r-input); overflow: hidden; margin-top: var(--s-5); }
.seg button { padding: 10px 18px; border: 0; background: transparent; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.seg button + button { border-inline-start: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg .label { color: inherit; opacity: .8; }
.plans { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
/* `1fr` معناه `minmax(auto, 1fr)`، والـauto دي أقلها عرض أطول سطر جوّه الكارت —
   فسطر زي «طلاب وكورسات ومدرسين بلا حد» كان بيوسّع العمود والصفحة كلها بتتزحلق
   أفقياً عند ١٠٢٤ بالظبط. `minmax(0, 1fr)` بتخلّي العمود يقدر يصغّر. */
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-4); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s-5); }
.plan--hot { border-color: var(--ink); border-top: 4px solid var(--stamp); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: var(--s-6); }
.plan--hot::after { content: ''; position: absolute; inset-inline: -1px; bottom: -7px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--paper) 5px, transparent 5.5px) left bottom / 14px 12px repeat-x; }
/* the stamp sits on the panel's paper above the name, not on its edge */
.plan__badge { align-self: flex-start; margin: -4px 0 var(--s-3); }
.plan__name { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); }
.plan__tag { color: var(--ink-muted); font-size: var(--fs-small); min-height: 2.6em; margin-top: 4px; }
.plan__price { margin-top: var(--s-4); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan__price b { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-display); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { color: var(--ink-muted); font-size: var(--fs-small); }
.plan__sub { min-height: 1.5em; font-size: var(--fs-small); color: var(--ink-muted); margin-top: 4px; }
.plan__limits { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.plan__limits span { font-size: var(--fs-label); font-weight: 500; color: var(--ink-muted); border: 1px solid var(--rule); border-radius: var(--r-input); padding: 2px 8px; }
.plan ul { margin: var(--s-4) 0 var(--s-5); display: grid; gap: var(--s-2); flex: 1; }
.plan li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-small); line-height: 1.6; min-width: 0; }
.plan li span { min-width: 0; overflow-wrap: anywhere; }
.plan li .ico { color: var(--moss); margin-top: 2px; }
.plan li.off { color: var(--ink-muted); text-decoration: line-through; }
.plan li.off .ico { color: var(--rule); }
.plans__note { margin-top: var(--s-5); color: var(--ink-muted); font-size: var(--fs-small); text-align: center; }
/* on a phone a plan shows its price, limits and three lines; the rest folds */
.plan__more { display: none; }
@media (max-width: 639px) {
  .plan .plan__extra { display: none; }
  .plan--open .plan__extra { display: flex; }
  .plan__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: var(--tap); margin: calc(-1 * var(--s-3)) 0 var(--s-4); padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; font-size: var(--fs-small); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
  .plan--open .plan__more .ico { transform: rotate(45deg); }
  .plan ul { margin-bottom: var(--s-4); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: var(--s-6) auto 0; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; background: none; border: 0; text-align: start; font-weight: 500; font-size: var(--fs-body); cursor: pointer; }
.faq__q .ico--minus, .faq__q[aria-expanded="true"] .ico--plus { display: none; }
.faq__q[aria-expanded="true"] .ico--minus { display: block; }
.faq__a { padding: 0 0 var(--s-4); color: var(--ink-muted); max-width: 65ch; }
.faq__a[hidden] { display: none; }

/* ---------- request a call ---------- */
.call-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .call-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); } }
.ticks { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.ticks li { display: flex; gap: var(--s-3); align-items: flex-start; min-width: 0; }
.ticks li span { min-width: 0; overflow-wrap: anywhere; }
.ticks .ico { color: var(--moss); margin-top: 3px; }
.form { display: grid; gap: var(--s-4); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s-5); }
.form__grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .full { grid-column: 1 / -1; } }
.form label { display: block; margin-bottom: 6px; }
.input { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-input); transition: border-color var(--motion) var(--motion-ease); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--moss-soft); }
.flash { padding: var(--s-3) var(--s-4); border: 1px solid var(--moss); background: var(--moss-soft); border-radius: var(--r-input); }

/* ---------- final ---------- */
.final { text-align: center; border-block: 1px solid var(--rule); }
.final .display { font-size: var(--fs-h2); }
@media (min-width: 1024px) { .final .display { font-size: var(--fs-display); } }
.final .lede { margin: var(--s-4) auto 0; }
.final .btn { margin-top: var(--s-6); }

/* ---------- signup (/platforms/start/) — same paper, one form ---------- */
.st { padding-block: var(--s-7) var(--s-8); }
/* نفس مشكلة `.plans`: عمود الجريد الافتراضي أقله `min-content`، فالنص العربي
   الطويل في العمود الجانبي كان بيوسّع الصفحة عند ٣٢٠px. */
.st__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
@media (min-width: 1024px) { .st__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-7); } }
.st fieldset { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.st legend { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); padding: 0 0 var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--rule); width: 100%; }
.st__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .st__row--2 { grid-template-columns: 1fr 1fr; } }
.st .help { font-size: var(--fs-small); color: var(--ink-muted); margin-top: 6px; }
.st .err { font-size: var(--fs-small); color: var(--stamp); margin-top: 6px; font-weight: 500; }
.st__radio { display: grid; gap: var(--s-2); }
.st__radio label { display: flex; gap: var(--s-3); align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--paper-2); cursor: pointer; font-weight: 500; margin: 0; }
.st__radio label:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow-offset); }
.st__radio input { accent-color: var(--stamp); }
.st__preview { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: 6px; padding: 8px 12px; border: 1px dotted var(--ink-muted); border-radius: var(--r-input); background: var(--paper); font-family: var(--font-mono); font-size: var(--fs-small); }
.st__preview > span:first-child { direction: ltr; unicode-bidi: isolate; }
.st__preview b { font-weight: 400; color: var(--stamp); }
.st__avail { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small); }
.st__avail.ok { color: var(--moss); } .st__avail.bad { color: var(--stamp); }
.st__agree { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); }
.st__agree input { margin-top: 5px; accent-color: var(--stamp); }
.st__agree a { color: var(--ink); font-weight: 500; display: inline-block; padding-block: 10px; margin-block: -10px; }
.st__login { margin-top: var(--s-2); padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--moss-soft); font-size: var(--fs-small); }
.st__login a { font-weight: 500; display: inline-block; padding-block: 10px; margin-block: -10px; }
.st__submit { margin-top: var(--s-5); }
.st__submit:disabled { opacity: .6; cursor: wait; }
.st__side { position: sticky; top: calc(64px + var(--s-4)); }
.st__side h2 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.st__side .ticks { margin-top: 0; }
.st__side .btn { margin-top: var(--s-4); }

/* ---------- signup: هوية المنصة ---------- */
.st__brand legend { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h4, 1.1rem); margin-bottom: var(--s-3); padding: 0; }
.st__opt { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--ink-muted); }
.st__presets { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
@media (min-width: 640px) { .st__presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.preset { position: relative; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--paper-2); cursor: pointer; margin: 0; }
.preset input { position: absolute; inset-inline-end: 10px; top: 10px; accent-color: var(--stamp); margin: 0; }
.preset:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow-offset); }
.preset__chip { display: block; height: 44px; border-radius: 6px; border: 1px solid var(--rule); background: var(--pc-bg, #fff); position: relative; overflow: hidden; }
.preset__nav { position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--pc-nav); }
.preset__btn { position: absolute; inset-inline-start: 8px; bottom: 8px; width: 34px; height: 10px; border-radius: 3px; background: var(--pc-accent); }
.preset__name { font-weight: 700; }
.preset__blurb { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; }
.preset--aref  { --pc-nav: #6B3FFF; --pc-accent: #FFB020; --pc-bg: #F6F4FF; }
.preset--ink   { --pc-nav: #1C1A17; --pc-accent: #C8371F; --pc-bg: #F6F1E9; }
.preset--moss  { --pc-nav: #2F4F3E; --pc-accent: #C9A227; --pc-bg: #F4F6F2; }
.preset--night { --pc-nav: #0F0E1A; --pc-accent: #FFB020; --pc-bg: #15131F; }
.st__brandrow { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; align-items: end; margin-top: var(--s-4); }
@media (min-width: 640px) { .st__brandrow { grid-template-columns: auto auto 1fr; } }
.st__color { width: 100%; min-width: 5.5rem; height: 44px; padding: 4px; border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--paper-2); cursor: pointer; }
.st__file { width: 100%; padding: 10px 12px; border: 1px dashed var(--ink-muted); border-radius: var(--r-input); background: var(--paper-2); font-size: var(--fs-small); }
.st__brandprev { grid-column: 1 / -1; --bp-primary: #6B3FFF; --bp-accent: #FFB020; --bp-nav: #6B3FFF; --bp-bg: #fff; --bp-ink: #1C1A17; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--bp-bg); color: var(--bp-ink); }
@media (min-width: 640px) { .st__brandprev { grid-column: auto; } }
.bp__nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bp-nav); color: #fff; font-size: var(--fs-small); }
.bp__logo { font-weight: 700; margin-inline-end: auto; display: flex; align-items: center; min-height: 22px; }
.bp__img { height: 22px; width: auto; display: block; }
.bp__nav i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.bp__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.bp__title { display: block; width: 45%; height: 10px; border-radius: 3px; background: var(--bp-primary); opacity: .85; }
.bp__btn { font-size: var(--fs-small); font-weight: 700; padding: 5px 12px; border-radius: 6px; background: var(--bp-accent); color: #1C1A17; }

/* ---------- signup: الخانات اللي فشلت ---------- */
.st .is-invalid, .st input.is-invalid, .st select.is-invalid, .st textarea.is-invalid { border-color: var(--stamp); box-shadow: 0 0 0 1px var(--stamp) inset; }
.st__errsum { border: 1px solid var(--stamp); border-inline-start-width: 4px; background: var(--paper-2); color: var(--ink); padding: 12px 14px; border-radius: var(--r-input); margin-bottom: var(--s-4); font-size: var(--fs-small); }
.st__errsum b { display: block; margin-bottom: 4px; color: var(--stamp); }
.st__errsum ul { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 0; list-style: none; }
.st__errsum a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- signup: Google first ---------- */
.st__google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid var(--ink); border-radius: var(--r-input); background: var(--paper-2); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-offset); }
.st__google:hover { background: var(--paper); }
.st__or { display: flex; align-items: center; gap: 12px; margin: var(--s-4) 0; color: var(--ink-muted); font-size: var(--fs-small); }
.st__or::before, .st__or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.st__signedin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: var(--s-4); border: 1px solid var(--moss); border-radius: var(--r-input); background: var(--moss-soft); color: var(--moss); }
.st__signedin .i { width: 18px; height: 18px; }
.st__signedin a { margin-inline-start: auto; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; font-size: var(--fs-small); }

/* ---------- signup: الخطوات ---------- */
.steps { display: flex; gap: var(--s-4); padding: 0; margin: 0 0 var(--s-2); list-style: none; font-size: var(--fs-small); color: var(--ink-muted); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps__n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper-2); font-family: var(--font-mono); font-size: .8rem; }
.steps__n .i { width: 14px; height: 14px; }
.steps li.is-current { color: var(--ink); font-weight: 700; }
.steps li.is-current .steps__n { border-color: var(--stamp); color: var(--stamp); }
.steps li.is-done { color: var(--moss); }
.steps li.is-done .steps__n { border-color: var(--moss); background: var(--moss-soft); color: var(--moss); }
