/* Experts group page file: for-experts + consultations (EN + AR). Page-specific pieces only.
   Shared components (registry: team/COMPONENTS.md) come from system.css, home.css, p-individuals.css,
   p-product.css and pg-common.css; never copy them here.
   - .fx-hero h1      caps the hero headline at three lines
   - .fx-book         slim copy column beside the booking .sloop
   - .fx-call         "Meet on video" illustration inside a .sloop shot (labelled Illustration)
   - .fx-ptframe      resets .frame inside a .pt__media so the shared .vpp video pause button attaches
   - .fx-strip        three real crops with short captions ("where clients find you")
   - .fx-lens         phone-only zoom buttons for the anatomy of a request (pg-experts.js)
   - .fx-vis          visibility rows with lit / dimmed place chips
   - .fx-facts        four buyer facts as a ruled list beside a real crop
   - .fx-mkt          marketplace frame + slim expert row */

/* ---------- Hero ---------- */

/* ---------- Booking stepper beside slim copy ---------- */
.fx-book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.fx-book > * { min-width: 0; }
@media (max-width: 960px) { .fx-book { grid-template-columns: minmax(0, 1fr); } }
.fx-book .sloop__steps button { font-size: .8rem; }
@media (max-width: 600px) { .fx-book .sloop__steps { gap: 6px; } .fx-book .sloop__steps button { font-size: .7rem; } }
.fx-note { margin: 10px 0 0; font-size: var(--t-xs); color: var(--ink-3); }
.stage .fx-note, .on-stage .fx-note { color: var(--stage-ink-3); }

/* ---------- "Meet on video" illustration (sits in a .sloop__shot like a crop) ---------- */
.fx-call { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 3%; padding: 3.2% 3.6% 3%; background: #0b0a14; color: #fff; font-size: clamp(9px, 1.25vw, 14px); }
.fx-call__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-call__top b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-call__top span { color: rgba(255,255,255,.62); white-space: nowrap; }
.fx-call__time { margin-inline-start: auto; padding: .35em .8em; border-radius: 999px; background: #6723ff; font-family: var(--f-mono); font-size: .9em; direction: ltr; }
.fx-call__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4%; min-height: 0; }
.fx-call__tiles figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #1a1830; min-height: 0; }
.fx-call__tiles figure:first-child { box-shadow: inset 0 0 0 2px #8b5cff; }
.fx-call__tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fx-call__tiles figcaption { position: absolute; inset-inline-start: 4%; bottom: 5%; display: grid; padding: .35em .7em; border-radius: 7px; background: #6723ff; font-weight: 650; line-height: 1.25; }
.fx-call__tiles figcaption small { font-weight: 500; font-size: .82em; color: rgba(255,255,255,.8); }
.fx-call__bar { display: flex; justify-content: center; gap: 1.2%; }
.fx-call__bar i { width: 2.6em; height: 2em; border-radius: 8px; display: grid; place-items: center; background: #2a2840; }
.fx-call__bar i:first-child, .fx-call__bar i:nth-child(2) { background: #6723ff; }
.fx-call__bar i:last-child { background: #d92d2d; }
.fx-call__bar svg { width: 1em; height: 1em; fill: none; stroke: #fff; stroke-width: 2; }
.fx-call__tag { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0b0a14; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
[lang="ar"] .fx-call__tag { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.sloop__shot:has(.fx-call) .sloop__badge { bottom: auto; top: 14px; }
.sloop__shot:has(.fx-call) .fx-call__tag { top: auto; bottom: 12px; }

/* ---------- Product cards that hold a video: let the shared .vpp attach ---------- */
.fx-ptframe { border: 0; border-radius: 0; box-shadow: none; background: none; height: 100%; }
.pt.fx-pt { text-decoration: none; }
.pt.fx-pt:hover { transform: none; }
.fx-pt .pt__txt .btn { justify-self: start; margin-top: 6px; }
.fx-pt .ticks { margin: 4px 0 0; }

/* ---------- Strip of three real crops ---------- */
.fx-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fx-strip li { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fx-strip .crop { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.fx-strip b { display: block; font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.fx-strip p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.fx-strip__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-ink); }
[lang="ar"] .fx-strip__k { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 700; }
@media (max-width: 860px) { .fx-strip { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* ---------- Anatomy lens (phones): one zoomed detail per note ---------- */
.fx-lens { display: none; }
@media (max-width: 600px) {
  .fx-anat.is-lens .pin { display: none; }
  .fx-anat.is-lens .notes { display: none; }
  .fx-anat.is-lens .fx-lens { display: grid; gap: 12px; margin-top: 14px; }
  .fx-lens__btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .fx-lens__btns button { min-height: 44px; border-radius: 10px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); color: var(--stage-ink-2); font-family: var(--f-mono); font-size: 12px; cursor: pointer; }
  .fx-lens__btns button[aria-pressed="true"] { background: #cdbfff; border-color: #cdbfff; color: #05040b; }
  .fx-lens__btns button:focus-visible { outline: 2px solid #c9b8ff; outline-offset: 2px; }
  .fx-lens__txt { margin: 0; min-height: 4.5em; color: var(--stage-ink-2); font-size: var(--t-sm); }
  .fx-lens__txt b { display: block; color: var(--stage-ink); font-size: 1.05rem; }
  .fx-anat .crop > img { transition: transform .45s var(--ease), object-position .45s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .fx-anat .crop > img { transition: none !important; } }

/* ---------- Visibility rows ---------- */
.fx-vis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fx-vis li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fx-vis__name { display: grid; gap: 2px; }
.fx-vis__name b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }
.fx-vis__name small { font-size: var(--t-xs); color: var(--ink-3); }
.fx-vis__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fx-vis__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; border: 1px solid var(--line-2); color: var(--ink-3); background: transparent; }
.fx-vis__chips span svg { width: 13px; height: 13px; }
.fx-vis__chips .on { background: var(--violet-soft); border-color: transparent; color: var(--violet-ink); }
.fx-vis__chips .off { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); background: var(--bg); }
@media (max-width: 560px) { .fx-vis li { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } .fx-vis__chips { justify-content: flex-start; flex-wrap: nowrap; gap: 4px; } .fx-vis__chips span { padding: 5px 8px; font-size: .74rem; gap: 4px; white-space: nowrap; } .fx-vis__chips span svg { width: 11px; height: 11px; } }

/* ---------- Four buyer facts beside a real crop ---------- */
.fx-facts { margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.fx-facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fx-facts dt { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.fx-facts dd { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.fx-facts dd b { color: var(--ink); }
@media (max-width: 520px) { .fx-facts > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Marketplace: frame first, slim row of real experts under it ---------- */
.fx-mkt .experts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fx-mkt .expert { aspect-ratio: 1 / 1.15; border-radius: 14px; }
.fx-mkt__cap { margin: 14px 0 12px; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 1020px) { .fx-mkt .experts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .fx-mkt .experts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .fx-mkt .expert { scroll-snap-align: start; }
}

/* ---------- Small fixes ---------- */
.stack > .btn { justify-self: start; }
.fx-hero .h1 { max-width: none; font-size: clamp(2.5rem, 1.3rem + 3.3vw, 4rem); }
/* Courses card on phones: zoom the learner screen to the lessons so it reads (EN content sits left of centre; AR course column spans 12–69% of the shot, so scale 1.46 around 46%) */
@media (max-width: 600px) {
  .fx-pt.m-c .pt__media img { aspect-ratio: 4 / 3; object-position: 58% 0; transform: scale(1.7); transform-origin: 58% 0; }
  [lang="ar"] .fx-pt.m-c .pt__media img { object-position: 0 0; transform: scale(1.46); transform-origin: 46% 0; }
}
