/* =====================================================================
   QAYD — COMPONENTS
   Section & component styling. Depends on theme.css + base.css.
   Organized top-to-bottom in page order.
   ===================================================================== */

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
/* When the mobile menu is open, html.nav-locked applies overflow:hidden which
   breaks position:sticky on the header. Switch to fixed so the close (X) button
   stays accessible at the top of the viewport regardless of scroll position. */
html.nav-locked .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand__mark {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.brand__mark img { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 21px; letter-spacing: -.01em; }
.nav__links { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-6); }
.nav__link { font-size: 15px; font-weight: var(--fw-medium); color: var(--text-soft); text-decoration: none; transition: color var(--dur); }
.nav__link:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__toggle { /* mobile menu button */ display: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-12); align-items: center; padding-block: var(--sp-16) var(--sp-10); }
.hero__title { margin-top: var(--sp-6); margin-bottom: var(--sp-5); text-wrap: balance; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text-soft); max-width: 48ch; margin-bottom: var(--sp-4); font-weight: var(--fw-medium); }
.hero__desc { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-faint); max-width: 50ch; margin-bottom: var(--sp-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero__proof { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero__proof span { font-size: var(--fs-sm); color: var(--text-soft); font-weight: var(--fw-semi); }
.hero__proof .muted { color: var(--text-faint); font-weight: var(--fw-regular); }

/* Hero stats — inline KPI row that absorbed the old trust strip + case-study KPIs */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-v {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -.01em;
  color: var(--text);
  font-feature-settings: "tnum";
}
.hero__stat-l { font-size: var(--fs-xs); color: var(--text-soft); }
@media (max-width: 720px) {
  .hero__stats { max-width: none; gap: var(--sp-3); padding-top: var(--sp-4); margin-top: var(--sp-6); }
  .hero__stat-v { font-size: 20px; }
}

/* Phone mockup */
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; }
.hero__glow {
  position: absolute; inset: -40px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(14,138,110,.16), transparent 70%);
  filter: blur(28px);
  animation: pulsering-soft 7s ease-in-out infinite;
}
@keyframes pulsering-soft {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.03); }
}
.hero__halo {
  position: absolute; width: 520px; height: 520px;
  inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(14,138,110,.0) 0deg,
    rgba(14,138,110,.18) 90deg,
    rgba(43,168,224,.14) 180deg,
    rgba(201,162,39,.12) 270deg,
    rgba(14,138,110,.0) 360deg);
  filter: blur(40px);
  animation: spin 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 60%, transparent 100%);
}
.phone {
  position: relative; z-index: 1;
  width: 286px; height: 592px; background: var(--qayd-ink);
  border-radius: 44px; padding: 11px; box-shadow: var(--shadow-deep);
}
.phone--float { animation: floaty 7s ease-in-out infinite; }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: linear-gradient(180deg, #0e2236 0%, var(--qayd-ink) 60%, #06121d 100%);
  border-top: 1px solid rgba(14,138,110,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); padding-block: var(--sp-8); }
.trust-stat { text-align: center; position: relative; }
.trust-stat + .trust-stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 20%; bottom: 20%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.12), transparent);
}
.trust-stat__v {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px; color: #fff;
  letter-spacing: -.01em; font-feature-settings: "tnum";
}
.trust-stat__l { font-size: 13.5px; color: rgba(255,255,255,.65); margin-top: var(--sp-1); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px 28px; box-shadow: var(--shadow-sm); }
.step__n { width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--primary-tint); color: var(--primary-dark); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5); }
.step h3 { margin-bottom: var(--sp-3); }
.step p { font-size: 15.5px; color: var(--text-soft); }

/* ---------- Feature rows (bespoke visuals) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin-bottom: 44px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row__text h3 { margin: var(--sp-3) 0 clamp(14px, 1.4vw, 20px); font-size: var(--fs-h3); }
.feature-row__text p  { font-size: 16.5px; color: var(--text-soft); max-width: 42ch; line-height: 1.7; }
.feature-visual {
  position: relative; isolation: isolate;
  background: linear-gradient(155deg, var(--surface), var(--primary-tint));
  border: 1px solid var(--border); border-radius: var(--r-2xl);
  padding: 26px; box-shadow: var(--shadow-glow);
}
.feature-visual::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--mesh-emerald); opacity: .35; mix-blend-mode: multiply; z-index: -1;
}
.feature-visual--sky { background: linear-gradient(155deg, var(--surface), var(--accent-tint)); }
.feature-visual--sky::after { background: var(--mesh-warm); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); font-size: 14px; }
.panel__head { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 15px; margin-bottom: 14px; display: flex; justify-content: space-between; }
.panel__head small { font-size: 11.5px; color: var(--text-faint); font-weight: var(--fw-medium); }
.row-between { display: flex; align-items: center; justify-content: space-between; }

/* chat + ledger */
.bubble { padding: 11px 16px; border-radius: 16px; font-size: 14.5px; max-width: 82%; }
.bubble--in  { align-self: flex-start; background: var(--accent); color: #fff; border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
/* RTL: swap the flattened corner so bubbles look natural in Arabic direction */
[dir="rtl"] .bubble--in  { align-self: flex-end;   border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .bubble--out { align-self: flex-start;  border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.ledger { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow-sm); }
.ledger__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); margin-bottom: 11px; }
.ledger__row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; }
.ledger__row + .ledger__row { border-top: 1px dashed var(--border); }

/* accounts tree */
.tree__group { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-weight: var(--fw-semi); }
.tree__group .label { display: flex; align-items: center; gap: 9px; }
.tree__bullet { width: 8px; height: 8px; border-radius: 50%; }
.tree__children { padding-inline-start: 18px; border-inline-start: 1.5px solid var(--border); margin-inline-start: 3px; }
.tree__child { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-soft); }

/* balance card */
.balance-card { background: var(--qayd-ink); border-radius: var(--r-lg); padding: 22px; color: #fff; margin-bottom: 14px; }
.balance-card__label { font-size: 13px; color: rgba(255,255,255,.6); }
.balance-card__amt { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px; letter-spacing: -.01em; }
.spark { display: flex; gap: 5px; align-items: flex-end; height: 32px; margin-top: 12px; }
.spark span { flex: 1; background: rgba(255,255,255,.25); border-radius: 3px; }
.spark span.is-now { background: var(--primary); }
.debt-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 15px; font-size: 14px; }
.debt-row + .debt-row { margin-top: 9px; }

/* currency */
.fx-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.fx-row + .fx-row { border-top: 1px solid var(--border); }
.fx-badge { width: 38px; height: 30px; border-radius: var(--r-sm); color: #fff; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.fx-row .name { flex: 1; color: var(--text-soft); }
.fx-convert { margin-top: 14px; background: var(--primary-tint); color: var(--primary-dark); border-radius: var(--r-md); padding: 11px 14px; font-size: 13.5px; font-weight: var(--fw-semi); display: flex; justify-content: space-between; }

/* reports */
.kpis { display: flex; gap: 12px; margin-bottom: 18px; }
.kpi { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 14px; }
.kpi__l { font-size: 11.5px; color: var(--text-faint); margin-bottom: 3px; }
.kpi__v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 19px; }
.chart { display: flex; gap: 20px; align-items: flex-end; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 5px 5px 0 0; }
.chart__cap { font-size: 11px; color: var(--text-faint); margin-top: 8px; text-align: center; }
.donut { position: relative; width: 88px; height: 88px; border-radius: 50%; }
.donut__hole { position: absolute; inset: 13px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---------- Showcase ---------- */
.showcase { background: linear-gradient(180deg, var(--primary-tint), var(--bg)); }
.showcase__phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.showcase__phones--single { gap: 0; }
.phone--lg { max-width: 360px; }
.phone--lg .phone__screen { aspect-ratio: 501 / 1039; }
.phone--sm { width: 230px; height: 478px; border-radius: 38px; padding: 9px; }
.phone--sm .phone__screen { border-radius: 30px; }
.phone--lift { transform: translateY(-18px); }

/* ---------- Security / trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.trust-item__icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: var(--fw-bold); }
.trust-item h3 { margin-bottom: var(--sp-2); font-size: 18px; }
.trust-item p { font-size: 15px; color: var(--text-soft); line-height: 1.65; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface); border-block: 1px solid var(--border); }
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.testi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; }
.testi p { font-size: var(--fs-body); line-height: 1.75; margin: 14px 0 22px; }
.testi__who { display: flex; align-items: center; gap: 13px; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: var(--fw-semi); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.testi__name { font-weight: var(--fw-semi); font-size: 15px; }
.testi__role { font-size: 13px; color: var(--text-faint); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); align-items: stretch; }
.plan {
  background: var(--surface); border-radius: var(--r-xl); padding: 30px 24px;
  position: relative; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.plan--featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: var(--fw-bold); padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow); }
.plan__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 22px; margin-bottom: var(--sp-2); }
.plan__desc { font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: var(--sp-5); min-height: 40px; line-height: 1.5; }
.plan__price { display: flex; align-items: baseline; gap: 7px; margin-bottom: var(--sp-5); }
.plan__amt { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 30px; letter-spacing: -.01em; }
.plan--featured .plan__amt { color: var(--primary); }
.plan__period { font-size: 13px; color: var(--text-faint); }
.plan__sep { height: 1px; background: var(--border); margin: var(--sp-6) 0; }
.plan__feats { display: flex; flex-direction: column; gap: 13px; flex: 1; }
.plan__feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.plan__check { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-dark); font-size: 11px; font-weight: var(--fw-bold); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pricing-note { text-align: center; font-size: 15.5px; color: var(--text-faint); margin-bottom: 44px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq-item.is-open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: start;
}
.faq-q span { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: 17px; flex: 1; color: var(--text); }
.faq-q .icon {
  flex: none; width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--primary-tint); color: var(--primary-dark);
  font-weight: var(--fw-bold); display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
  font-size: 15.5px; line-height: 1.75; color: var(--text-soft);
}
.faq-a__inner { overflow: hidden; padding: 0 24px; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a__inner { padding-bottom: 22px; }
.faq-item.is-open .icon { background: var(--primary); color: #fff; transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact { background: var(--qayd-ink); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: var(--sp-20); }
.contact__title { color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: var(--sp-4); }
.contact__lead { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: var(--sp-6); max-width: 42ch; }
.contact__methods { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.contact__card { background: var(--surface); border-radius: var(--r-2xl); padding: 32px; box-shadow: var(--shadow-lg); }
.field { width: 100%; font-family: var(--font-body); font-size: 15px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); outline: none; margin-bottom: 14px; transition: border-color var(--dur); }
.field:focus { border-color: var(--primary); }
textarea.field { resize: none; }
.form-success { text-align: center; padding: 40px 8px; }
.form-success__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-dark); font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--qayd-footer); color: #fff; }
.site-footer .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: var(--sp-12); }
.site-footer__mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: var(--r-md);
  padding: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 12px rgba(0,0,0,.25);
}
.site-footer__mark img { width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.site-footer__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 18px; }
.site-footer__tag { font-size: 13px; color: rgba(255,255,255,.55); }
.site-footer__rights { margin-inline-start: auto; font-size: 13px; color: rgba(255,255,255,.5); }

/* =====================================================================
   NEW SECTIONS (Phase 3): integrations / comparison / case-study /
   demo / pre-cta / sticky-dock / footer cols / pricing skeleton /
   theme toggle
   ===================================================================== */

/* ---------- Theme toggle (sun/moon) ---------- */
.theme-icon { display: block; }
.theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun  { display: none; }
[data-theme="dark"] .theme-icon--moon { display: block; }
#theme-toggle { width: 38px; height: 38px; padding: 0; }

/* ---------- Integrations strip ---------- */
.integrations { padding-block: var(--sp-12); }
.integrations__eyebrow {
  text-align: center; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: var(--fw-semi); margin-bottom: var(--sp-6);
}
.integrations__row {
  display: flex; justify-content: center; align-items: center; gap: var(--sp-12);
  flex-wrap: wrap; overflow: hidden;
}
.integrations__strip {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-12);
  flex-wrap: wrap;
}
.integration {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); opacity: .6;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.integration svg { width: 32px; height: 32px; fill: currentColor; }
.integration svg * { fill: currentColor; }
.integration:hover { opacity: 1; color: var(--primary); transform: translateY(-2px); }

.integrations__row > .integrations__strip + .integrations__strip { display: none; }

@media (max-width: 768px) {
  .integrations__row { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .integrations__row > .integrations__strip + .integrations__strip { display: flex; }
  .integrations__strip { flex-wrap: nowrap; flex: none; gap: var(--sp-10); animation: marquee 24s linear infinite; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
  [dir="rtl"] .integrations__strip { animation-direction: reverse; }
}

/* ---------- Comparison table ---------- */
.comparison { padding-block: var(--sp-16); }
.compare-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 8px; box-shadow: var(--shadow-glow);
  overflow-x: auto;
}
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 14px;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--border);
  background: transparent;
}
.compare tbody th {
  text-align: start; font-weight: var(--fw-semi); color: var(--text);
  font-size: 15px;
}
.compare__feat { text-align: start; }
.compare__qayd { background: var(--primary-tint); position: relative; }
thead .compare__qayd { color: var(--primary-dark); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare__qayd:first-of-type { border-start-start-radius: var(--r-md); }
.compare tbody tr:last-child .compare__qayd { border-end-start-radius: var(--r-md); border-end-end-radius: var(--r-md); }

.cmp-yes { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: var(--fw-bold); }
.cmp-no  { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(196,69,59,.10); color: var(--neg); font-weight: var(--fw-bold); }
.cmp-mid { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(201,162,39,.15); color: var(--qayd-gold); font-weight: var(--fw-bold); }
.cmp-text { color: var(--text-soft); font-size: 14px; }

@media (max-width: 768px) {
  .compare th, .compare td { padding: 12px 10px; font-size: 13px; }
  .compare tbody th { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; min-width: 130px; }
}

/* ---------- Case study ---------- */
.case-study { padding-block: var(--sp-12) var(--sp-16); }
.case {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-10);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--sp-10);
  box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
}
.case::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--mesh-emerald); opacity: .25; z-index: 0; pointer-events: none;
}
.case > * { position: relative; z-index: 1; }
.case__quote { display: flex; flex-direction: column; gap: var(--sp-5); }
.case__mark {
  font-family: var(--font-display); font-size: 90px; line-height: .8;
  color: var(--primary); opacity: .25;
}
.case blockquote {
  margin: 0; font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--text);
}
.case__who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.case__kpis { display: flex; flex-direction: column; gap: var(--sp-4); justify-content: center; }
.case-kpi {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.case-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.case-kpi__v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 24px; color: var(--primary); margin-bottom: 4px; letter-spacing: -.01em; }
.case-kpi__l { font-size: 14px; color: var(--text-soft); }

@media (max-width: 768px) {
  .case { grid-template-columns: 1fr; padding: var(--sp-6); gap: var(--sp-6); }
  .case__mark { font-size: 64px; }
}

/* ---------- Demo video ---------- */
.demo { padding-block: var(--sp-12); }
.demo__frame {
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--qayd-ink), #1a3148);
  border-radius: var(--r-2xl); overflow: hidden;
  box-shadow: var(--shadow-deep);
  display: flex; align-items: center; justify-content: center;
}
.demo__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55; filter: blur(2px);
}
.demo__play {
  position: relative; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(14,138,110,.6), var(--shadow-deep);
  animation: pulseplay 2s ease-in-out infinite;
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease);
}
.demo__play:hover { background: var(--primary-dark); transform: scale(1.08); }
@keyframes pulseplay {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,138,110,.5), var(--shadow-deep); }
  50%      { box-shadow: 0 0 0 18px rgba(14,138,110,0), var(--shadow-deep); }
}
.demo__caption {
  position: absolute; bottom: 18px; inset-inline-start: 22px; z-index: 2;
  color: #fff; font-size: 14px; font-weight: var(--fw-semi);
  background: rgba(0,0,0,.45); padding: 8px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.demo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Pre-pricing CTA ---------- */
.pre-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark) 60%, #084c3e);
  color: #fff;
  position: relative; overflow: hidden;
}
.pre-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(255,255,255,.16), transparent 60%),
              radial-gradient(60% 80% at 0% 100%, rgba(201,162,39,.18), transparent 60%);
  pointer-events: none;
}
.pre-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); padding-block: var(--sp-12);
  position: relative; z-index: 1;
}
.pre-cta__title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.pre-cta__sub   { color: rgba(255,255,255,.85); font-size: 16px; }
.pre-cta .btn--primary {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
}
.pre-cta .btn--primary:hover { background: #f5fbf8; color: var(--primary-dark); }
@media (max-width: 768px) {
  .pre-cta__inner { flex-direction: column; text-align: center; gap: var(--sp-5); }
}

/* ---------- Pricing skeleton ---------- */
.plan--skel { pointer-events: none; }
.plan--skel .skel {
  background: linear-gradient(90deg, var(--border) 0%, color-mix(in srgb, var(--border) 40%, var(--bg)) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.skel--lg  { height: 22px; width: 50%; }
.skel--md  { height: 14px; width: 70%; }
.skel--xl  { height: 36px; width: 60%; margin-bottom: 18px; }
.skel--btn { height: 44px; width: 100%; border-radius: var(--r-md); margin-bottom: 24px; }
.skel--row { height: 14px; width: 90%; }

/* ---------- Featured plan lift ---------- */
.plan--featured {
  transform: translateY(-12px);
  box-shadow: var(--shadow-glow), 0 30px 60px -30px rgba(14,138,110,.6);
}
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1; opacity: .5; filter: blur(20px);
}

/* ---------- Sticky mobile CTA dock ----------
   True bottom bar: flush to the viewport edge, full width, only the top
   corners rounded, safe-area padding so it clears the iOS home indicator.
   No floating-pill gap — it reads as part of the chrome, not a hovering card. */
.cta-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: var(--sp-2);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-deep);
  transform: translateY(120%);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease);
  opacity: 0;
}
.cta-dock.is-visible { transform: translateY(0); opacity: 1; }
.cta-dock .btn { flex: 1; padding: 12px 14px; }
@media (max-width: 768px) {
  .cta-dock { display: flex; }
}

/* ---------- Hero copy refinements ---------- */
.hero__copy { position: relative; }
.hero__copy::before {
  content: ""; position: absolute; inset-inline-start: -8px; top: 30px; bottom: 30px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  opacity: .0;
  transition: opacity var(--dur-slow) var(--ease);
}
.hero__copy.is-in::before { opacity: .5; }

/* ---------- Section vertical rhythm tighten ---------- */
.section { padding-block: var(--sp-16); }

/* ---------- Showcase: add subtle stagger for phones ---------- */
.showcase__phones .phone--sm { transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-slow) var(--ease-out); }
.js-motion .showcase .reveal:not(.is-in) .phone--sm { opacity: 0; transform: translateY(28px); }
.showcase.is-in .phone--sm:nth-child(1) { transform: translateY(0) rotate(-1deg); }
.showcase.is-in .phone--sm:nth-child(3) { transform: translateY(0) rotate(1deg); }

/* ---------- Steps numbers — entry pop (only animates when JS-motion is on) ---------- */
.step__n { transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
.js-motion .reveal--stagger:not(.is-in) .step__n { transform: scale(.6) rotate(-12deg); opacity: .3; }
.reveal--stagger.is-in .step__n { transform: scale(1) rotate(0); opacity: 1; transition-delay: calc(var(--i, 0) * 80ms + 120ms); }

/* ---------- Footer 3-column ---------- */
.site-footer .container {
  display: block;
  padding-block: var(--sp-8);
}
.site-footer__top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--sp-10);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer__brandbox { display: flex; gap: 14px; align-items: flex-start; }
.site-footer__brandbox > div { display: flex; flex-direction: column; gap: 4px; }
.site-footer__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 18px; color: #fff; }
.site-footer__tag  { font-size: 13px; color: rgba(255,255,255,.55); max-width: 28ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-8); }
.site-footer__col h4 {
  color: #fff; font-family: var(--font-display); font-size: 14px;
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: var(--sp-4);
}
.site-footer__col a {
  display: block; color: rgba(255,255,255,.65); text-decoration: none;
  font-size: 14.5px; padding: 5px 0; transition: color var(--dur) var(--ease);
}
.site-footer__col a:hover { color: var(--primary); }
.site-footer__bottom { padding-top: var(--sp-4); }
.site-footer__rights { font-size: 13px; color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== Inline CTAs (homepage) ===================== */
.inline-cta { padding-block: var(--sp-6); }
.inline-cta--inset { padding-block: 0; margin-top: var(--sp-8); }
.inline-cta__inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-6) var(--sp-8);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: var(--r-xl);
}
.inline-cta__inner--split { justify-content: space-between; text-align: start; }
.inline-cta__lede {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: 18px; color: var(--text);
}
.inline-cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (max-width: 560px) {
  .inline-cta__inner { padding: var(--sp-5) var(--sp-5); text-align: center; }
  .inline-cta__inner--split { flex-direction: column; align-items: center; }
}

/* ===================== Careers page ===================== */
.nav__link--active { color: var(--text); position: relative; }
.nav__link--active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

/* --- Drench hero --- */
.careers-drench {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(72px, 12vw, 140px);
  background:
    radial-gradient(70% 80% at 100% 0%, color-mix(in srgb, #0a3a30 60%, var(--primary)), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--primary) 70%, #000), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #000) 0%, color-mix(in srgb, var(--primary) 78%, #000) 100%);
  color: #fff;
}
.careers-drench::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 35%, transparent 75%);
}
.careers-drench .chip--on-dark {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.careers-drench .chip__dot--on-dark { background: #fff; }
.careers-drench__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-top: var(--sp-5);
  text-wrap: balance;
}
.careers-drench__accent {
  color: color-mix(in srgb, var(--qayd-gold, #f5c45e) 88%, #fff);
}
.careers-drench__sub {
  margin-top: var(--sp-5);
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}
.careers-drench__actions {
  margin-top: var(--sp-8);
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
}
.btn--on-dark.btn--primary {
  background: #fff; color: var(--primary); border-color: #fff;
}
.btn--on-dark.btn--primary:hover {
  background: rgba(255,255,255,.92); color: var(--primary);
}
.btn--ghost--on-dark {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.32);
  padding: 11px 18px;
  font-family: inherit; font-weight: var(--fw-medium); font-size: 15px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--dur), border-color var(--dur);
}
.btn--ghost--on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* --- Manifesto --- */
.manifesto {
  padding-block: clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
}
.manifesto .eyebrow { text-align: start; }
.manifesto__title {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2;
  margin-bottom: var(--sp-6); text-wrap: balance;
}
.manifesto__body { display: flex; flex-direction: column; gap: var(--sp-4); }
.manifesto__body p {
  font-size: 17.5px; line-height: 1.75; color: var(--text);
  max-width: 64ch;
  text-wrap: pretty;
}
.manifesto__kicker {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: 19px !important; color: var(--primary) !important;
  margin-top: var(--sp-2);
}
.manifesto__sign {
  margin-top: var(--sp-6);
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: 15px; color: var(--text-soft); letter-spacing: .02em;
}

/* --- Culture pillars (paragraphs, NOT cards) --- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(40px, 6vw, 80px); row-gap: clamp(36px, 4vw, 56px);
}
.pillar { max-width: 50ch; }
.pillar__h {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 20px; line-height: 1.3;
  color: var(--text); margin-bottom: var(--sp-3);
  position: relative; padding-inline-start: 22px;
}
.pillar__h::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 12px;
  width: 10px; height: 2px; background: var(--primary); border-radius: 2px;
}
.pillar__p {
  font-size: 15.5px; line-height: 1.7; color: var(--text-soft);
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; row-gap: var(--sp-7); }
}

/* --- Job cards (expanded) --- */
.jobs-list { display: flex; flex-direction: column; gap: var(--sp-8); }
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: var(--sp-7);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.job-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow-glow);
}
.job-card__meta {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.job-card__level {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-size: 12.5px; font-weight: var(--fw-semi);
  color: var(--text-soft);
  background: color-mix(in srgb, var(--text-soft) 8%, transparent);
  border-radius: 999px;
  letter-spacing: .01em;
}
.job-card__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: var(--sp-5); text-wrap: balance;
}
.job-card__why {
  padding-inline-start: var(--sp-4);
  border-inline-start: 2px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  margin-bottom: var(--sp-2);
}
.job-card__why-h {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary); font-weight: var(--fw-bold);
  margin-bottom: 6px;
}
.job-card__why-p {
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  text-wrap: pretty;
}
.job-card__body {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
  padding-top: var(--sp-6); border-top: 1px solid var(--border);
}
.job-card__col h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-soft); margin-bottom: var(--sp-3); font-weight: var(--fw-bold);
}
.job-card__ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.job-card__ul li {
  font-size: 14.5px; color: var(--text); line-height: 1.6;
  padding-inline-start: 20px; position: relative;
}
.job-card__ul li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.job-card > .btn { align-self: flex-start; }
[dir="rtl"] .job-card > .btn { align-self: flex-end; }

@media (max-width: 800px) {
  .job-card__body { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* --- Honest FAQ (no accordion — open by default, easy to scan) --- */
.hfaq {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(36px, 5vw, 72px); row-gap: var(--sp-7);
}
.hfaq__item { max-width: 50ch; }
.hfaq__q {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 17px; line-height: 1.35;
  color: var(--text); margin-bottom: var(--sp-3);
  position: relative; padding-inline-start: 24px;
}
.hfaq__q::before {
  content: '?'; position: absolute; inset-inline-start: 0; top: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: var(--fw-bold);
  border-radius: 50%;
}
.hfaq__a {
  font-size: 15px; line-height: 1.7; color: var(--text-soft);
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .hfaq { grid-template-columns: 1fr; row-gap: var(--sp-6); }
}

/* File picker — styled wrapper around hidden <input type="file"> */
.file-picker { position: relative; }
.file-picker__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 16px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: var(--r-md);
  font-family: inherit; font-size: 14.5px; font-weight: var(--fw-medium);
  color: var(--text); cursor: pointer; transition: background var(--dur), border-color var(--dur);
}
.file-picker__btn:hover {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border-color: var(--primary);
}
.file-picker__btn svg { color: var(--primary); flex: none; }
.file-picker__name {
  margin-top: 8px; font-size: 13.5px; color: var(--text-soft);
  padding-inline-start: 4px;
}
.file-picker__error {
  margin-top: 8px; font-size: 13.5px; color: var(--neg);
  padding-inline-start: 4px;
}

.apply-list { list-style: none; padding: 0; margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
.apply-list li {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.6;
  padding-inline-start: 22px; position: relative;
}
.apply-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--primary); font-weight: 700;
}

select.field {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
                    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-inline-end: 38px;
}
[dir="rtl"] select.field {
  background-position: 18px 22px, 13px 22px;
  padding-inline-end: 38px;
}

.form-disclaimer {
  margin-top: var(--sp-4); font-size: 12.5px; color: var(--text-faint);
  text-align: center; line-height: 1.6;
}

/* ---------- Dark theme: surface-level overrides ---------- */
[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .brand__mark img { filter: brightness(0) invert(1); }
[data-theme="dark"] .feature-visual {
  background: linear-gradient(155deg, var(--qayd-card), color-mix(in srgb, var(--primary) 20%, var(--qayd-card)));
}
[data-theme="dark"] .feature-visual--sky {
  background: linear-gradient(155deg, var(--qayd-card), color-mix(in srgb, var(--accent) 18%, var(--qayd-card)));
}
[data-theme="dark"] .panel { background: var(--qayd-paper); }
[data-theme="dark"] .ledger { background: var(--qayd-paper); }
[data-theme="dark"] .debt-row { background: var(--qayd-paper); }
[data-theme="dark"] .kpi { background: var(--qayd-paper); }
[data-theme="dark"] .donut__hole { background: var(--qayd-paper); }
[data-theme="dark"] .fx-convert { background: rgba(14,138,110,.18); color: #95e3c8; }
[data-theme="dark"] .testi { background: var(--qayd-paper); }
[data-theme="dark"] .testimonials { background: var(--qayd-card); }
[data-theme="dark"] .case-kpi { background: var(--qayd-paper); }
[data-theme="dark"] .compare-wrap { background: var(--qayd-card); }
[data-theme="dark"] .compare__qayd { background: rgba(14,138,110,.16); }
[data-theme="dark"] .pre-cta { background: linear-gradient(135deg, #0a6b56, #084c3e); }
[data-theme="dark"] .showcase { background: linear-gradient(180deg, rgba(14,138,110,.10), var(--bg)); }
[data-theme="dark"] .hero__dots { opacity: .15; }
[data-theme="dark"] .integration { color: rgba(255,255,255,.55); }
[data-theme="dark"] .integration:hover { color: #5ed1a8; }
[data-theme="dark"] .skip-link { color: #fff; }
[data-theme="dark"] .field { background: var(--qayd-paper); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .step  { background: var(--qayd-card); }
[data-theme="dark"] .trust-item { background: var(--qayd-card); }
[data-theme="dark"] .plan  { background: var(--qayd-card); }
[data-theme="dark"] .faq-item { background: var(--qayd-card); }
[data-theme="dark"] .cta-dock { background: var(--qayd-card); }
[data-theme="dark"] .balance-card { background: #051018; }

/* =====================================================================
   RESPONSIVE — single source of truth
   Breakpoints: 1024 / 860 / 720 / 560 / 400
   Mobile-first defaults stay above; this block overrides for narrower
   viewports. All layout collapses to one column by 720px.
   ===================================================================== */

/* ---- Cage decorative absolutes so they NEVER push page width ---- */
.hero { position: relative; overflow: clip; }
.hero__art { overflow: clip; }
.hero__halo, .hero__glow, .hero__dots { max-width: 100%; }

/* CTA dock spans the viewport edge-to-edge; no width clamp needed. */

/* === ≤1024px : tablet === */
@media (max-width: 1024px) {
  .pricing-grid     { grid-template-columns: repeat(2, 1fr); }
  .hero             { gap: var(--sp-8); }
  .feature-row      { gap: 36px; }
}

/* === ≤860px : nav collapses to hamburger === */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }                /* drawer carries the CTA */
  .nav__toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--r-md);
    cursor: pointer; gap: 5px; padding: 0;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .nav__toggle-bar {
    width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle:hover { border-color: var(--primary); color: var(--primary-dark); }
}

/* === Mobile drawer (all widths — only revealed when .is-open) === */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--sp-5) clamp(16px, 4vw, 32px) var(--sp-6);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.mobile-menu.is-open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.mobile-menu__link {
  display: block; padding: 14px 4px;
  font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-semi);
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur);
}
.mobile-menu__link:last-of-type { border-bottom: none; }
.mobile-menu__link:hover { color: var(--primary); }
.mobile-menu__cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: var(--sp-4);
}
.mobile-menu__cta .btn { min-width: 0; }

/* === ≤860px nav refinements (cosmetic only — hamburger declared above) === */
@media (max-width: 860px) {
  .nav { gap: var(--sp-3); }
  .nav__actions { gap: var(--sp-2); margin-inline-start: auto; }
  #lang-toggle, #theme-toggle { flex: none; }
}

/* === ≤720px : single-column collapse for everything === */
@media (max-width: 720px) {
  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 28px; padding-bottom: 8px;
    gap: var(--sp-6);
  }
  .hero__copy { padding-inline: 4px; }
  .hero__lead, .hero__desc { margin-inline: auto; }
  .hero__cta, .hero__proof { justify-content: center; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { width: 100%; min-height: 48px; }
  .hero__proof  { flex-direction: column; gap: 6px; text-align: center; }
  .hero__art { min-height: 440px; }
  .hero__copy::before { display: none; }
  .hero__halo { width: 340px; height: 340px; }
  .phone { width: 252px; height: 522px; border-radius: 38px; padding: 9px; }
  .phone__screen { border-radius: 30px; }
  .phone__notch  { width: 80px; height: 22px; }

  /* Feature rows */
  .feature-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .feature-row__visual { order: 2; }
  .feature-row__text   { text-align: start; }
  .feature-row__text p { max-width: 56ch; }
  .feature-visual { padding: 18px; border-radius: var(--r-xl); }

  /* Grids → 1 col */
  .steps, .trust-grid, .testi-grid { grid-template-columns: 1fr; }
  .step { padding: 28px 22px; }

  /* Trust strip 2-col */
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-3); padding-block: var(--sp-6); }
  .trust-stat__v { font-size: 28px; }
  .trust-stat + .trust-stat::before { display: none; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .plan { padding: 26px 22px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; gap: var(--sp-8); padding-block: var(--sp-12); }
  .contact__card { padding: 22px; border-radius: var(--r-xl); }
  .contact__methods .btn { flex: 1 1 auto; min-width: 0; min-height: 48px; }

  /* Section heads breathe */
  .section-head { margin-bottom: var(--sp-8); }

  /* Pre-pricing CTA stacks centered */
  .pre-cta__inner { padding-block: var(--sp-10); }
  .pre-cta .btn  { width: 100%; }

  /* Inline CTA blocks */
  .inline-cta__inner { padding: var(--sp-5); }
  .inline-cta__inner--split { flex-direction: column; align-items: stretch; text-align: center; }
  .inline-cta__actions { justify-content: center; }
  .inline-cta__actions .btn { flex: 1 1 auto; }

  /* Showcase phones stack neatly */
  .showcase__phones { gap: 18px; }
  .phone--sm { width: 200px; height: 416px; padding: 8px; border-radius: 32px; }
  .phone--sm .phone__screen { border-radius: 26px; }
  .phone--lift { transform: translateY(-10px); }

  /* Leave room for sticky dock */
  main { padding-bottom: 96px; }

  /* Footer */
  .site-footer__top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }

  /* Comparison: still horizontal-scroll inside its wrap; clamp cell padding */
  .compare th, .compare td { padding: 10px 8px; font-size: 12.5px; }
  .compare tbody th { min-width: 120px; }
}

/* === ≤560px : phones, real tightening === */
@media (max-width: 560px) {
  .nav__actions .btn--sm { padding: 8px 12px; font-size: 13px; }
  .brand__name { font-size: 19px; }
  .hero__halo  { width: 280px; height: 280px; }
  .phone       { width: 232px; height: 482px; border-radius: 36px; padding: 8px; }
  .phone__screen { border-radius: 28px; }

  /* Case-study quote shouldn't shout */
  .case blockquote { font-size: 19px; line-height: 1.5; }
  .case            { padding: var(--sp-6); border-radius: var(--r-xl); }
  .case__mark      { font-size: 56px; }

  /* CTA dock: tighter inside */
  .cta-dock { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cta-dock .btn { padding: 11px 10px; font-size: 13.5px; }

  /* FAQ */
  .faq-q   { padding: 16px 16px; gap: 10px; }
  .faq-q span { font-size: 15.5px; }
  .faq-a__inner { padding: 0 16px; }
  .faq-item.is-open .faq-a__inner { padding-bottom: 18px; }

  /* Pricing — featured plan badge stays inside card */
  .plan__badge { inset-inline-start: 16px; }
}

/* === ≤400px : super-narrow safety net === */
@media (max-width: 400px) {
  .hero__title { font-size: 28px; line-height: 1.18; letter-spacing: -0.01em; }
  .section-head p { font-size: 15.5px; }
  .balance-card__amt { font-size: 28px; }
  .ledger, .panel { padding: 14px 14px; font-size: 13px; }
}

/* === Tap targets: every interactive control ≥44px on touch === */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav__link, .mobile-menu__link { min-height: 44px; display: inline-flex; align-items: center; }
  .faq-q { min-height: 56px; }
}

/* =====================================================================
   MOTION PASS — intentional, restrained, brand-appropriate.
   Every animation honors prefers-reduced-motion via the global override
   in base.css. Nothing here gates content visibility.
   ===================================================================== */

/* Step connector — a hairline that draws between the 3 numbered cards when
   the how-it-works section reveals. RTL: draws from right (step 1) toward left. */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 60px;          /* aligns to the centre of .step__n */
  inset-inline: 18%;  /* between cards, not over them */
  height: 2px;
  background: linear-gradient(
    to var(--connector-dir, left),
    var(--primary) 0%,
    color-mix(in srgb, var(--primary) 35%, transparent) 100%
  );
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 900ms var(--ease-out) 350ms;
  pointer-events: none;
  z-index: 0;
}
:root[lang="en"] .steps::before { --connector-dir: right; transform-origin: left center; }
.steps.is-in::before, :where(html:not(.js-motion)) .steps::before { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
@media (max-width: 880px) {
  /* Stack vertical: connector becomes vertical line on the side of the numbers */
  .steps::before {
    top: 0; bottom: 0; height: auto;
    inset-inline: auto;
    inset-inline-end: 22px;
    width: 2px;
    background: linear-gradient(
      to bottom,
      var(--primary) 0%,
      color-mix(in srgb, var(--primary) 25%, transparent) 100%
    );
    transform-origin: top center;
    transform: scaleY(0);
  }
  .steps.is-in::before, :where(html:not(.js-motion)) .steps::before { transform: scaleY(1); }
}

/* Hero stat numbers — subtle confidence weight when revealed (no bounce) */
.hero__stat-v {
  display: inline-block;
  transition: transform 520ms var(--ease-out), color 520ms var(--ease-out);
}
.js-motion .hero__stat-v:not(.is-counted) { transform: translateY(4px); }
.hero__stat-v.is-counted { transform: none; }

/* Primary CTA — calm-confident ambient glow that breathes (not pulses) */
.hero__cta .btn--primary { position: relative; }
.hero__cta .btn--primary::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--primary);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity 600ms var(--ease-out);
  pointer-events: none;
}
.js-motion .hero__cta .btn--primary::after {
  animation: cta-breathe 4.5s ease-in-out 1.2s infinite;
}
@keyframes cta-breathe {
  0%, 100% { opacity: .18; }
  50%      { opacity: .42; }
}
.hero__cta .btn--primary:hover::after { opacity: .55; animation: none; }

/* Comparison table — row-by-row reveal stagger.
   The table is wrapped in .compare-wrap (which gets .reveal via tagReveals).
   Each row fades+slides in once the table is observed. */
.compare tbody tr {
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}
.js-motion .compare-wrap:not(.is-in) tbody tr {
  opacity: 0;
  transform: translateY(8px);
}
.compare-wrap.is-in tbody tr:nth-child(1)  { transition-delay:  60ms; }
.compare-wrap.is-in tbody tr:nth-child(2)  { transition-delay: 110ms; }
.compare-wrap.is-in tbody tr:nth-child(3)  { transition-delay: 160ms; }
.compare-wrap.is-in tbody tr:nth-child(4)  { transition-delay: 210ms; }
.compare-wrap.is-in tbody tr:nth-child(5)  { transition-delay: 260ms; }
.compare-wrap.is-in tbody tr:nth-child(6)  { transition-delay: 310ms; }
.compare-wrap.is-in tbody tr:nth-child(7)  { transition-delay: 360ms; }
.compare-wrap.is-in tbody tr:nth-child(8)  { transition-delay: 410ms; }
.compare-wrap.is-in tbody tr:nth-child(9)  { transition-delay: 460ms; }
.compare tbody tr {
  position: relative;
}
.compare tbody tr::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to left,
    transparent,
    color-mix(in srgb, var(--primary) 8%, transparent) 50%,
    transparent
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.compare tbody tr:hover::after { opacity: 1; }

/* Pricing card hover — gentle lift + emerald edge */
.plan {
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out),
    border-color 360ms var(--ease-out);
}
.plan:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.plan.is-hot:hover {
  box-shadow: var(--shadow-glow), 0 30px 60px -30px rgba(14,138,110,.6);
}

/* Theme toggle — smoother sun↔moon morph instead of a hard swap */
#theme-toggle .theme-icon {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
#theme-toggle {
  position: relative;
  overflow: hidden;
}
.theme-icon--moon {
  display: block; /* override the display:none hide; we use opacity instead */
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  opacity: 0;
  transform: rotate(-90deg) scale(.7);
}
.theme-icon--sun {
  display: block;
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-icon--sun  {
  display: block;
  opacity: 0;
  transform: rotate(90deg) scale(.7);
}
[data-theme="dark"] .theme-icon--moon {
  display: block;
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Phone — single showcase phone gets a gentle ambient float and emerald floor */
.showcase__phones--single .phone--lg {
  animation: floaty 7s ease-in-out infinite;
}
.showcase__phones--single { position: relative; padding-block: var(--sp-8); }
.showcase__phones--single::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 80px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(14,138,110,.20), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.showcase__phones--single .phone--lg { position: relative; z-index: 1; }

/* Section-anchor smoothing — when user clicks #features etc, leave room
   for the sticky header so titles aren't hidden under it */
:where(section[id], main[id]) {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* Reduced-motion: kill the ambient loops explicitly (base.css already nukes
   transitions, but infinite animations need the iteration-count override) */
@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__halo,
  .showcase__phones--single .phone--lg,
  .hero__cta .btn--primary::after { animation: none !important; }
  .steps::before { transform: none !important; }
}

/* =====================================================================
   LIVE DEMO — "قيد أثناء العمل" animated section.
   Token-only, RTL-safe (logical properties throughout).
   ===================================================================== */

/* Stage: 2-col on desktop (phone | ledger), stacks on mobile. */
.live-demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: var(--sp-10);
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-inline: auto;
  transition: opacity 800ms var(--ease-out);
}
.live-demo__stage.is-fading { opacity: 0; }

/* Phone shell — inherits .phone base; override height to fill screen. */
.live-demo__phone { width: 280px; justify-self: center; }

/* Screen interior — column layout so thread grows and input sticks to bottom. */
.live-demo__screen {
  display: flex;
  flex-direction: column;
  padding: var(--sp-3);
  gap: var(--sp-2);
  overflow: hidden;
}

/* Chat thread — scrollable bubble list. Bubbles stack from the bottom up. */
.live-demo__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-2);
  overflow: hidden;
  min-height: 0;
}

/* Bubbles inserted by JS inherit existing .bubble / .bubble--in / .bubble--out. */
.live-demo__thread .bubble {
  max-width: 85%;
  font-size: 13px;
  animation: none; /* JS manages entrance */
  opacity: 1;
  transform: none;
}
.live-demo__bubble-new {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

/* Thinking dots */
.live-demo__thinking { display: flex; align-items: center; gap: 5px; padding: 10px 14px !important; }
@media (prefers-reduced-motion: no-preference) {
  .live-demo__thinking span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-soft);
    animation: thinking-dot 1.2s ease-in-out infinite;
  }
  .live-demo__thinking span:nth-child(2) { animation-delay: .18s; }
  .live-demo__thinking span:nth-child(3) { animation-delay: .36s; }
}
@keyframes thinking-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Input row — fake chat input bar at the bottom of the phone screen. */
.live-demo__input-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 12px;
  color: var(--text);
  flex: none;
  overflow: hidden;
}

/* Blinking cursor. */
.live-demo__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--primary);
  vertical-align: text-bottom;
  margin-inline-start: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .live-demo__caret { animation: caret-blink 1s step-end infinite; }
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Ledger panel — reuses .ledger base; dimension-reserved to prevent CLS. */
.live-demo__ledger {
  min-width: 0;
  min-height: 112px; /* reserve space: prevents layout shift when rows appear */
}
.live-demo__ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}

/* Ledger rows — hidden until JS adds .is-in. */
.live-demo__ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.live-demo__ledger-row.is-in { opacity: 1; transform: none; }

/* Amount badges. */
.live-demo__amt { font-weight: var(--fw-semi); }
.live-demo__amt--pos { color: var(--pos, #1a8a60); }

/* Posted badge — hidden until JS adds .is-on; subtle pulse while on. */
.live-demo__posted {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--primary);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.live-demo__posted.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .live-demo__posted.is-on {
    animation: posted-pulse 1.8s ease-in-out infinite;
  }
}
@keyframes posted-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Hint text. */
.live-demo__hint { font-size: var(--fs-sm); max-width: 52ch; margin-inline: auto; }

/* Dark-mode surface adjustments (inherit token pattern). */
[data-theme="dark"] .live-demo__input-row { background: var(--qayd-paper); }

/* Responsive — stack on ≤720px. */
@media (max-width: 720px) {
  .live-demo__stage { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-6); }
  .live-demo__phone { width: 252px; }
  .live-demo__ledger { width: 100%; max-width: 360px; }
}

/* =====================================================================
   FORM VALIDATION — phone group, inline error states.
   Visual language matches existing .field; no new colors introduced.
   ===================================================================== */

/* Phone group: country-code select + phone number input share one row.
   The group is forced to LTR so the dial code ALWAYS sits on the left
   (international phone-number convention). On the page's RTL flow the
   Arabic placeholder inside the input is still right-aligned via the
   text-align rule below, so the field reads naturally in both languages. */
.phone-group {
  display: flex;
  gap: var(--sp-2);
  align-items: stretch;
  direction: ltr;
}
.phone-group .field--code {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
  max-width: 116px;
  padding: 0 26px 0 var(--sp-3);
  font-variant-numeric: tabular-nums;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-group .field--phone {
  flex: 1 1 auto;
  min-width: 0;
  /* Arabic placeholder reads RTL; entered digits remain LTR (they're neutral
     characters so they always render left-to-right regardless of dir). */
  direction: rtl;
  text-align: right;
}
:root[lang="en"] .phone-group .field--phone {
  direction: ltr;
  text-align: left;
}

/* Inline error messages — small red text under the field they describe. */
.field-error {
  font-size: 13px;
  color: var(--qayd-neg);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
  font-weight: var(--fw-medium);
}
.field-error[hidden] { display: none; }

/* Invalid state — red border + tinted background. Reuses --qayd-neg. */
.field--invalid,
.phone-group.is-invalid .field {
  border-color: var(--qayd-neg);
  background-color: color-mix(in srgb, var(--qayd-neg) 4%, var(--surface));
}
.field--invalid:focus,
.phone-group.is-invalid .field:focus {
  outline-color: var(--qayd-neg);
  border-color: var(--qayd-neg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--qayd-neg) 18%, transparent);
}

/* Slightly tighter form field spacing when paired with an error row underneath */
.contact__card .field + .field-error,
.contact__card .phone-group + .field-error,
.contact__card .file-picker + .field-error {
  margin-bottom: var(--sp-3);
}

/* =====================================================================
   BLOG — index cards + long-form article (prose / TOC / share / CTA)
   Reuses theme tokens only. RTL-first; LTR handled via [dir] flips.
   ===================================================================== */

/* ---------- Blog index header ---------- */
.blog-hero { padding-block: var(--sp-16) var(--sp-8); }

/* ---------- Post cards grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 22% 18%, rgba(14,138,110,.30), transparent 60%),
    radial-gradient(60% 80% at 82% 88%, rgba(43,168,224,.22), transparent 65%),
    var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-card__thumb .post-card__glyph {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 40px; color: var(--primary-dark); opacity: .85;
  letter-spacing: -.02em;
}
.post-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--text-faint);
}
.post-card__cat {
  font-weight: var(--fw-semi); color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 3px 10px; border-radius: var(--r-pill);
}
.post-card__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 20px; line-height: var(--lh-snug); color: var(--text); margin: 0;
}
.post-card__excerpt { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-soft); margin: 0; }
.post-card__more {
  margin-top: auto; font-size: var(--fs-sm); font-weight: var(--fw-semi);
  color: var(--primary-dark);
}

/* ---------- Article shell ---------- */
.article { padding-block: var(--sp-12) var(--sp-16); }
.article__inner { max-width: 720px; margin-inline: auto; }
.article__crumb { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--primary-dark); text-decoration: none; }
.article__crumb:hover { color: var(--primary); }
.article__cat {
  display: inline-block; margin-top: var(--sp-6);
  font-weight: var(--fw-semi); font-size: var(--fs-xs); color: var(--primary-dark);
  background: var(--primary-tint); padding: 4px 12px; border-radius: var(--r-pill);
}
.article__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-h1); line-height: 1.18; margin: var(--sp-4) 0 var(--sp-5); text-wrap: balance;
}
.article__byline {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--text-faint);
  padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border);
}
.article__byline-author { color: var(--text-soft); font-weight: var(--fw-semi); }
.article__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

/* ---------- Table of contents ---------- */
.toc {
  margin: var(--sp-8) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}
.toc__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 var(--sp-3);
}
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.toc__list a {
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-soft); text-decoration: none;
  border-inline-start: 2px solid var(--border); padding-inline-start: var(--sp-3);
  transition: color var(--dur), border-color var(--dur);
}
.toc__list a:hover { color: var(--primary-dark); border-inline-start-color: var(--primary); }

/* ---------- Prose ---------- */
.prose { font-size: 17px; line-height: var(--lh-body); color: var(--text); }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-h3); line-height: var(--lh-snug);
  margin-top: var(--sp-12); scroll-margin-top: calc(var(--header-h) + var(--sp-5));
}
.prose h3 {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h4); margin-top: var(--sp-8);
  scroll-margin-top: calc(var(--header-h) + var(--sp-5));
}
.prose p { color: var(--text); }
.prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose ul, .prose ol { padding-inline-start: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.prose li { line-height: var(--lh-body); }
.prose strong { font-weight: var(--fw-bold); color: var(--text); }
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-6);
  background: var(--primary-tint);
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  border-radius: var(--r-lg);
  color: var(--text); font-weight: var(--fw-medium);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 480px; }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: var(--fs-sm);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--primary-tint); color: var(--primary-dark); font-weight: var(--fw-semi); }
.prose tbody tr:last-child td { border-bottom: none; }
.prose code {
  font-family: var(--font-display); font-size: .92em;
  background: var(--primary-tint); color: var(--primary-dark);
  padding: 2px 7px; border-radius: var(--r-sm);
}
/* Callout box — for the "type this in Qayd" examples */
.callout {
  margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-6);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.callout__label {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 var(--sp-2);
}
.callout__chat {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg);
  font-weight: var(--fw-medium);
}
[dir="ltr"] .callout__chat { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm); }

/* ---------- Share row ---------- */
.share {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin: var(--sp-10) 0; padding-block: var(--sp-6);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.share__label { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--text-soft); margin-inline-end: var(--sp-2); }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; cursor: pointer;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.share__btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.share__btn svg { width: 16px; height: 16px; }
.share__btn.is-copied { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); }

/* ---------- Article FAQ ---------- */
.article-faq { margin-top: var(--sp-12); }
.article-faq__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-h3); margin-bottom: var(--sp-6);
}
.article-faq__item {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6); background: var(--surface);
}
.article-faq__item + .article-faq__item { margin-top: var(--sp-3); }
.article-faq__q {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: 17px; margin: 0 0 var(--sp-2); color: var(--text);
}
.article-faq__a { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-soft); }

/* ---------- End-of-article CTA card ---------- */
.article-cta {
  margin-top: var(--sp-12);
  background:
    var(--mesh-emerald),
    var(--qayd-ink);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-deep);
}
.article-cta__title {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-h2); line-height: var(--lh-snug); margin: 0 0 var(--sp-3); color: #fff;
}
.article-cta__sub { font-size: var(--fs-body); line-height: var(--lh-body); color: rgba(255,255,255,.78); max-width: 52ch; margin: 0 auto var(--sp-6); }
.article-cta__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Blog footer cols share index footer pattern; nothing extra ---------- */
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   PHASE-1 NEW COMPONENTS (T1.10)
   Reusable building blocks for the multi-page architecture (feature,
   use-case, compare, glossary, hub pages). RTL-safe (logical properties
   only), light/dark via tokens. Compose these per the design wireframes.
   ===================================================================== */

/* Breadcrumb — hierarchy + BreadcrumbList partner. Use on every non-home page. */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center;
  font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--text-faint); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Compact page hero — title + answer-first lede + one CTA (no phone art). */
.hero--page { padding-block: var(--sp-12) var(--sp-8); }
.hero--page .hero__title { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.hero--page .hero__lede { font-size: var(--fs-lead); color: var(--text-soft);
  line-height: var(--lh-body, 1.7); max-width: 60ch; margin-bottom: var(--sp-6); }

/* Audience split — the للأعمال / للمحاسبين fork (home + features hub). */
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  margin-block: var(--sp-8); }
.audience-split__card { display: block; padding: var(--sp-6); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); background: var(--surface); text-decoration: none;
  color: var(--text); transition: border-color var(--dur), transform var(--dur); }
.audience-split__card:hover { border-color: var(--primary); transform: translateY(-2px); }
.audience-split__card h3 { font-size: var(--fs-h4); margin: 0 0 var(--sp-2); }
.audience-split__card p { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; }

/* Card grid + card — hub indexes (features / use-cases / compare children). */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4); }
.card { display: block; padding: var(--sp-6); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); background: var(--surface); text-decoration: none;
  color: var(--text); transition: border-color var(--dur), transform var(--dur); }
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card__title { font-size: var(--fs-h4); margin: 0 0 var(--sp-2); }
.card__desc { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; }

/* Related rail — internal-linking mesh at the foot of content pages. */
.related { margin-block: var(--sp-10); }
.related__title { font-size: var(--fs-h4); margin-bottom: var(--sp-4); color: var(--text); }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3); }
.related__card { display: block; padding: var(--sp-4); border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface); text-decoration: none;
  color: var(--text); font-weight: var(--fw-semi); transition: border-color var(--dur); }
.related__card:hover { border-color: var(--primary); color: var(--primary); }

/* Glossary card (hub) + inline term link (in prose/body). */
.glossary-card { display: block; padding: var(--sp-5); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--text);
  transition: border-color var(--dur); }
.glossary-card:hover { border-color: var(--primary); }
.glossary-card__term { font-size: var(--fs-h4); margin: 0 0 var(--sp-1); color: var(--text); }
.glossary-card__def { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; }
.term-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; }
.term-link:hover { color: var(--primary-dark); }

@media (max-width: 560px) {
  .audience-split { grid-template-columns: 1fr; }
}

/* =====================================================================
   CONSISTENCY PASS — missing classes & aliases
   Fills gaps between layout templates (feature.njk, usecase.njk,
   compare.njk) and the component stylesheet. RTL-safe throughout.
   ===================================================================== */

/* ---------- Hero slogan — home tagline between h1 and hero__lead ---------- */
.hero__slogan {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-soft);
  margin: var(--sp-2) 0 var(--sp-3);
  line-height: var(--lh-snug);
}
.hero__slogan .accent { color: var(--primary); }

/* ---------- Audience-split title — h2 variant used on hub and compare pages ---------- */
.audience-split__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  color: var(--text);
  margin: 0 0 var(--sp-3);
  line-height: var(--lh-snug);
}

/* ---------- Card arrow — features hub card grid ---------- */
.card__arrow {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: 18px;
  color: var(--primary);
  transition: transform var(--dur) var(--ease-out);
}
.card:hover .card__arrow { transform: translateX(-4px); }
:root[lang="en"] .card:hover .card__arrow { transform: translateX(4px); }

/* ---------- Feature deep-dive rows (feature.njk + usecase.njk layout) ----------
   Default: single-column prose block. Add .feature--with-visual for the
   two-column split when a screenshot exists. This way text-only feature
   sections (use-cases, feature pages without screenshots) read as proper
   content blocks rather than a broken half-width grid. */
.feature {
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--border);
}
.feature:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.feature--with-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--sp-16);
}
.feature--with-visual:last-child { margin-bottom: 0; }
.feature--with-visual.feature--flip .feature__visual { order: -1; }

.feature__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.feature__copy > h2 {
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  font-size: var(--fs-h3);
}
.feature__copy > p {
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 56ch;
}
/* Full width when text-only */
.feature:not(.feature--with-visual) .feature__copy > p { max-width: 68ch; }

.feature__visual {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(155deg, var(--surface), var(--primary-tint));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__visual img { width: 100%; height: auto; display: block; }

/* ---------- Step sub-elements — feature.njk uses step__num/copy/title ----------
   Home uses step__n (the circle badge). Feature-page steps use different
   class names that need their own rules. */
.step__num {
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-bottom: var(--sp-3);
}
.step__copy { display: flex; flex-direction: column; gap: var(--sp-2); }
.step__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h4);
  color: var(--text);
}

/* ---------- Testimonial aliases — usecase.njk uses different class names ---------- */
.testi__body { font-size: var(--fs-body); line-height: 1.75; margin: var(--sp-3) 0 var(--sp-5); color: var(--text); }
.testi__author { display: flex; flex-direction: column; gap: 2px; }
.testi__author strong { font-weight: var(--fw-semi); font-size: 15px; color: var(--text); }
.testi__author span { font-size: 13px; color: var(--text-faint); }

/* ---------- KPI strip — standalone use-case stats outside hero ---------- */
.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-10);
  justify-content: center;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: var(--sp-2);
}
.kpi-strip .hero__stat { text-align: center; }
.kpi-strip .hero__stat-v { font-size: clamp(28px, 3.5vw, 40px); }
.kpi-strip .hero__stat-l { font-size: var(--fs-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature--with-visual {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-8);
  }
  .feature--with-visual.feature--flip .feature__visual { order: unset; }
}

@media (max-width: 720px) {
  .feature { margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); }
  .kpi-strip { gap: var(--sp-8); }
}

/* ============================================================
   PLATFORM AVAILABILITY — desktop web · android native · ios web
   ============================================================ */
.platforms { background: var(--surface); border-block: 1px solid var(--border); }

.platform-grid {
  list-style: none; padding: 0; margin: var(--sp-8) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.platform-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "device meta state"
    "body   body body";
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.platform-card:hover {
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-card--soon { background: var(--surface); }

.platform-card__device {
  grid-area: device;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: var(--r-md);
}
.platform-card--soon .platform-card__device { color: var(--text-soft); background: color-mix(in oklab, var(--text-soft) 8%, transparent); }
.platform-card__device svg { display: block; }

.platform-card__meta {
  grid-area: meta;
  display: flex; flex-direction: column; min-width: 0;
}
.platform-card__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h5, 1.15rem);
  color: var(--text);
  line-height: var(--lh-snug);
}
.platform-card__sub {
  font-size: var(--fs-xs); color: var(--text-faint);
  margin-top: 2px;
}

.platform-card__state {
  grid-area: state;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  border-radius: var(--r-pill);
  white-space: nowrap;
  line-height: 1;
}
.platform-card__state--live {
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
}
.platform-card__state--soon {
  color: var(--text-soft);
  background: color-mix(in oklab, var(--text-soft) 8%, transparent);
  border: 1px solid var(--border);
}
.platform-card__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .platform-card__dot {
    animation: platform-pulse 2.2s var(--ease) infinite;
  }
}
@keyframes platform-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklab, var(--primary) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 0%, transparent); }
}

.platform-card__body {
  grid-area: body;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: var(--lh-body);
}

@media (max-width: 520px) {
  .platform-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "device meta"
      "state  state"
      "body   body";
    gap: var(--sp-3) var(--sp-4);
  }
  .platform-card__state { justify-self: start; }
}

/* ============================================================
   PERSONA TESTIMONIALS — richer card with quote mark + avatar
   ============================================================ */
.testi-grid--persona {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.testi--persona {
  position: relative;
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.testi--persona:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow-sm);
}
.testi__mark {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-start: var(--sp-5);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--primary);
  opacity: .18;
  pointer-events: none;
  user-select: none;
}
.testi--persona .testi__body {
  position: relative;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 var(--sp-5);
  flex: 1;
}
.testi--persona .testi__who {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.testi--persona .testi__avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.testi--persona .testi__author { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.testi--persona .testi__name { font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--text); }
.testi--persona .testi__role { font-size: var(--fs-xs); color: var(--text-faint); }
