/* قياسي — marketing site styles, layered on qiyasi.css tokens */

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); margin: 0; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
a { color: var(--emerald); text-decoration: none; }

/* wordmark */
.q-logo { font-family: 'Aref Ruqaa', serif; font-weight: 700; color: var(--emerald); line-height: 1.3; }
.q-logo .y { color: var(--gold); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.nav .q-logo { font-size: 26px; }
.nav .links { display: flex; gap: 18px; margin-inline-start: auto; align-items: center; }
.nav .links a { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.nav .links a:hover { color: var(--emerald); }
.nav .links a.cta { background: var(--emerald); color: var(--on-emerald); padding: 9px 16px; border-radius: var(--r-md); }
#themeBtn { background: none; border: 1px solid var(--line); border-radius: var(--r-pill); width: 34px; height: 34px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }

/* القدرات / GAT language switch */
.lang-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.lang-seg button { background: none; border: 0; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 12px; line-height: 1; color: var(--muted); padding: 8px 12px; }
.lang-seg button.on { background: var(--emerald); color: var(--on-emerald); }
.lang-seg button:not(.on):hover { color: var(--emerald); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.5; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero p.sub { color: var(--muted); font-size: 17px; line-height: 2; margin: 0 0 22px; max-width: 46ch; }
.hero .fig { display: grid; place-items: center; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 10px 18px; opacity: .55; cursor: default; }
.store-badge .b { display: flex; flex-direction: column; line-height: 1.4; text-align: start; }
.store-badge .b small { font-size: 10px; opacity: .8; }
.store-badge .b strong { font-size: 14px; }
.store-badge .soon-tag { font-size: 10px; background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 2px 8px; font-weight: 700; }

/* differentiator band */
.diff { background: var(--emerald); color: var(--on-emerald); padding: 36px 0; }
[data-theme="dark"] .diff { color: #06150F; }
.diff .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.diff h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.diff p { margin: 6px 0 0; opacity: .9; line-height: 1.9; max-width: 60ch; }

/* sections */
section.block { padding: 56px 0; }
section.block h2 { font-size: 26px; margin: 0 0 6px; }
section.block .lead { color: var(--muted); margin: 0 0 28px; line-height: 1.9; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 20px; }
.fcard .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--emerald-soft); display: grid; place-items: center; color: var(--emerald); margin-bottom: 14px; }
.fcard .ic.gold { background: var(--gold-soft); color: var(--gold); }
.fcard .ic.terra { background: var(--terra-soft); color: var(--terra); }
.fcard h3 { margin: 0 0 8px; font-size: 17px; }
.fcard p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.9; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; position: relative; }
.step::before { counter-increment: st; content: counter(st, arabic-indic); position: absolute; top: -14px; inset-inline-start: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--emerald); color: var(--on-emerald); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step h3 { margin: 6px 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.9; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 26px 20px; text-align: center; position: relative; }
.tier.hot { border-color: var(--emerald); }
.tier .tag { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--gold-soft); color: var(--gold); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 4px 12px; white-space: nowrap; }
.tier .nm { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.tier .pr { font-size: 40px; font-weight: 700; color: var(--emerald); line-height: 1.4; }
.tier .un { color: var(--faint); font-size: var(--fs-xs); }
.tier ul { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 2.1; }

/* FAQ */
details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details p { color: var(--muted); line-height: 2; margin: 12px 0 0; font-size: var(--fs-body); }

/* legal pages */
.legal { padding: 48px 0 72px; max-width: 760px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 19px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); line-height: 2.1; }
.draft-note { background: var(--gold-soft); color: var(--gold); border-radius: var(--r-md); padding: 12px 16px; font-size: var(--fs-sm); font-weight: 600; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--faint); font-size: var(--fs-sm); }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.sub { margin-inline: auto; }
  .badge-row { justify-content: center; }
  .cards3, .steps, .tiers, .trust { grid-template-columns: 1fr; }
  .nav .links a:not(.cta) { display: none; }
}

/* ===================================================================
   Mascot animation — ported from the design bundle (قياسي - الشخصية.html)
   idle float + head bob + autonomous blink + wave loop
   =================================================================== */
.idle { animation: q-float 4.2s ease-in-out infinite; will-change: transform; }
@keyframes q-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.idle .qav-head-g { animation: q-bob 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes q-bob { 0%,100% { rotate: -1.3deg; } 50% { rotate: 1.3deg; } }
.qav-lid { transform-box: fill-box; transform-origin: center top; transform: scaleY(0); }
.idle .qav-lid { animation: q-blink 4.6s ease-in-out infinite; }
@keyframes q-blink { 0%,93%,100% { transform: scaleY(0); } 95.5%,97% { transform: scaleY(1); } }
.qav-wave { animation: q-wave 1.7s ease-in-out infinite; }
@keyframes q-wave { 0%,100% { rotate: 0deg; } 22% { rotate: -17deg; } 58% { rotate: 9deg; } }
@media (prefers-reduced-motion: reduce) {
  .idle, .idle .qav-head-g, .idle .qav-lid, .qav-wave { animation: none; }
  .qav-lid { transform: scaleY(0); }
}

/* ===================================================================
   App tour — sliding phone mockups (scroll-snap carousel)
   =================================================================== */
.tour { padding: 56px 0 64px; background: var(--surface); }
.tour h2 { font-size: 26px; margin: 0 0 6px; }
.tour .lead { color: var(--muted); margin: 0 0 26px; line-height: 1.9; }
.tour-wrap { position: relative; }
.tour-track {
  display: flex; gap: 26px; overflow-x: auto; padding: 18px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-slide { scroll-snap-align: center; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tour-cap { text-align: center; max-width: 250px; }
.tour-cap b { display: block; font-size: 15px; margin-bottom: 2px; }
.tour-cap span { color: var(--muted); font-size: var(--fs-xs); line-height: 1.8; }

/* phone frame */
.phone {
  width: 272px; height: 552px; background: var(--surface);
  border: 7px solid #1E2A2C; border-radius: 38px; overflow: hidden;
  position: relative; box-shadow: 0 24px 50px -22px rgba(30,42,44,.45);
  display: flex; flex-direction: column;
}
[data-theme="dark"] .phone { border-color: #0a1512; box-shadow: 0 24px 50px -22px rgba(0,0,0,.7); }
.phone::before { content: ""; position: absolute; top: 8px; right: 50%; transform: translateX(50%); width: 78px; height: 18px; background: #1E2A2C; border-radius: 10px; z-index: 5; }
[data-theme="dark"] .phone::before { background: #0a1512; }
.ph-body { flex: 1; padding: 38px 13px 10px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; font-size: 11.5px; }
.ph-body .opt { padding: 8px 9px; font-size: 10.5px; border-radius: 9px; gap: 7px; }
.ph-body .opt .opt-k { width: 19px; height: 19px; font-size: 10px; border-radius: 6px; }
.ph-body .pill { font-size: 9.5px; padding: 4px 8px; }
.ph-body .timer { font-size: 10px; padding: 3px 8px; }
.ph-body .card { padding: 9px 11px; border-radius: 12px; }
.ph-logo { font-family: 'Aref Ruqaa', serif; font-weight: 700; font-size: 17px; color: var(--emerald); text-align: center; line-height: 1.4; }
.ph-logo .y { color: var(--gold); }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-greet { font-size: 10px; color: var(--muted); }
.ph-greet b { display: block; font-size: 14px; color: var(--ink); }
.ph-challenge { background: var(--emerald); border-radius: 14px; padding: 12px; color: var(--on-emerald); }
[data-theme="dark"] .ph-challenge { color: #06150F; }
.ph-challenge .t { font-weight: 600; font-size: 11px; }
.ph-challenge .h { font-weight: 700; font-size: 14px; }
.ph-challenge .s { font-size: 9px; opacity: .85; }
.ph-cta { background: #fff; color: var(--emerald-deep); border-radius: 9px; text-align: center; font-weight: 700; font-size: 11px; padding: 8px; margin-top: 9px; }
.ph-label { font-size: 9.5px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.ph-qtype { color: var(--gold); font-weight: 600; font-size: 9.5px; }
.ph-stem { font-weight: 600; font-size: 13px; text-align: center; padding: 4px 0; }
.ph-stem .colon { color: var(--gold); margin: 0 6px; }
.ph-verdict { display: flex; gap: 8px; align-items: center; background: var(--emerald-soft); border-radius: 11px; padding: 9px 10px; }
.ph-verdict .vt { font-weight: 700; font-size: 11px; color: var(--emerald); }
.ph-verdict .vs { font-size: 9px; color: var(--muted); }
.ph-pts { text-align: center; }
.ph-pts .n { font-size: 21px; font-weight: 700; color: var(--gold); }
.ph-pts .k { font-size: 9px; color: var(--muted); }
.ph-trow { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 9px; }
.ph-trow.me { background: var(--emerald-soft); }
.ph-trow .r { width: 14px; text-align: center; font-weight: 700; color: var(--faint); font-size: 9.5px; }
.ph-trow .n { flex: 1; font-weight: 600; font-size: 10.5px; }
.ph-trow .p { font-weight: 700; color: var(--gold); font-size: 9.5px; }
.ph-band { background: var(--emerald); color: var(--on-emerald); border-radius: 11px; text-align: center; padding: 8px; }
[data-theme="dark"] .ph-band { color: #06150F; }
.ph-band .lg { font-weight: 700; font-size: 12px; }
.ph-band .lh { font-size: 9.5px; opacity: .9; }
.ph-shop-row { display: flex; gap: 7px; overflow: hidden; }
.ph-shop-item { flex: none; width: 64px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-shop-item.eq { border-color: var(--emerald); background: var(--emerald-soft); }
.ph-shop-item .nm { font-size: 8.5px; font-weight: 600; }
.ph-shop-item .c { font-size: 8.5px; color: var(--gold); font-weight: 700; }
.ph-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line-soft); padding-top: 7px; }
.ph-nav span { font-size: 8.5px; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-nav span.on { color: var(--emerald); }
.ph-nav .icon { width: 16px; height: 16px; }
/* الساحة — segmented control + global group chat */
.ph-seg { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ph-seg span { flex: 1; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--muted); padding: 5px 4px; border-radius: 7px; }
.ph-seg span.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ph-pin { display: flex; gap: 5px; align-items: center; background: var(--gold-soft); border-radius: 8px; padding: 5px 8px; font-size: 8.5px; color: var(--ink); }
.ph-pin .icon { width: 12px; height: 12px; flex: none; color: var(--gold); }
.ph-chat { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ph-msg { max-width: 80%; padding: 6px 9px; border-radius: 12px; font-size: 10px; line-height: 1.65; }
.ph-msg .who { font-size: 8px; font-weight: 700; margin-bottom: 1px; opacity: .85; }
.ph-msg.mine { align-self: flex-end; background: var(--emerald); color: var(--on-emerald); border-bottom-left-radius: 4px; }
[data-theme="dark"] .ph-msg.mine { color: #06150F; }
.ph-msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.ph-msg .qatt { display: flex; gap: 5px; align-items: center; margin-top: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; font-size: 8px; color: var(--ink); }
.ph-msg .qatt .icon { width: 11px; height: 11px; flex: none; color: var(--gold); }
.ph-msg.mine .qatt { background: rgba(255,255,255,.16); border-color: transparent; color: inherit; }
.ph-input { margin-top: auto; display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 5px 7px; }
.ph-input .icon { width: 15px; height: 15px; flex: none; color: var(--muted); }
.ph-input .fld { flex: 1; font-size: 9.5px; color: var(--faint); }
.ph-input .snd { background: var(--emerald); color: #fff; border-radius: 8px; font-size: 9px; font-weight: 700; padding: 5px 10px; }
.ph-exp { background: var(--gold-soft); color: var(--gold); border-radius: 9px; font-size: 9.5px; font-weight: 700; text-align: center; padding: 7px; }
.ph-note { font-size: 9px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; line-height: 1.7; }
.ph-meterc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }

/* carousel arrows + dots */
.tour-btn {
  position: absolute; top: 42%; z-index: 6; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 6px 16px -6px rgba(30,42,44,.3);
}
.tour-btn:hover { color: var(--emerald); border-color: var(--emerald); }
.tour-btn.prev { inset-inline-start: -8px; }
.tour-btn.next { inset-inline-end: -8px; }
.tour-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.tour-dots i.on { width: 18px; border-radius: 4px; background: var(--emerald); }
@media (max-width: 640px) { .tour-btn { display: none; } }
