/* ════════════════════════════════════════════════════════════════════════
   /features family, version 2 (2026-11-15): one shared layout for every
   feature page, rendered from config/feature-pages/<slug>.json by
   app/server/views/frontend/features/frontend_feature_v2.pug. Linked only
   from that view, after editorial.css and mv.css, OUTSIDE any grunt build
   block. After an edit run: node scripts/bump-editorial-css.js (it stamps
   this file in the view).

   Built on the kit (mv.css: sections, rows, facts, phones, cards, rails,
   chips, app screens) and the Editorial tokens (editorial.css :root).
   Class prefix fx-. The hero keeps the my-feat- classes that the phone
   cover hero in mv.css reads. Logical properties only, so Arabic mirrors.
   No words in CSS. Guide: docs/site-v2/feature-pages-guide.md.
   ════════════════════════════════════════════════════════════════════════ */

/* Legacy wrappers: .inner-wrap paints a grey band behind plain sections, and
   .off-canvas-wrap (overflow:hidden) stops position:sticky from holding. */
body.fx .inner-wrap{background:transparent !important}
body.fx .off-canvas-wrap{overflow:clip}

/* ── Hero: words on the left, a photo of a person on the right ────────── */
/* Layout: editorial.css ("FEATURE HERO") on a wide screen, mv.css ("Cover hero") up to 900px. */
body.fx .my-feat-hero{text-align:start}
body.fx .my-feat-hero-inner{position:relative;z-index:1;min-width:0}
body.fx .my-feat-h1{margin:0 0 22px;font:500 clamp(40px,5.2vw,80px)/0.95 var(--ed-disp);letter-spacing:-0.035em;color:#fff !important;text-wrap:balance}
body.fx .my-feat-sub{max-width:540px;margin:0 0 30px;font:400 19px/1.45 var(--ed-sans);color:rgba(255,255,255,0.8);text-wrap:pretty}
body.fx a.my-feat-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:14px 24px;border:1px solid transparent;border-radius:12px;background:#fff;color:var(--ink) !important;font:500 16.5px/1.2 var(--ed-sans);text-decoration:none;box-shadow:none;transition:background-color .15s ease}
body.fx a.my-feat-cta:hover{background:var(--ed-white-hover)}
body.fx a.my-feat-cta::before{border-bottom-color:transparent !important}
/* The arrow mirrors in Arabic from rtl.css (.my-feat-cta::after). */
body.fx a.my-feat-cta::after{content:"\2197";font-size:.9em;line-height:1}
/* 901 to 1024px: the hero is two columns and the fixed bar (64px) rides on it. */
@media (min-width:901px) and (max-width:64em){
  html.mv-js body.fx main>section.my-feat-hero--photo{padding-top:92px !important}
}
@media (max-width:900px){
  body.fx a.my-feat-cta{width:100%;min-height:52px}
}

/* ── Section rhythm ───────────────────────────────────────────────────── */
/* A section is plain (on the page colour, .mv-sec) or a panel (.ed-panel white, mint or ink). */
body.fx .fx-sec.mv-sec{padding-block:clamp(34px,4.4vw,68px)}
body.fx .fx-sec.mv-sec--tight{padding-block:clamp(16px,2vw,28px)}
body.fx .fx-sec.ed-panel{padding-block:clamp(36px,5vw,80px)}
body.fx .fx-answer{padding-block-start:clamp(36px,5vw,76px)}
body.fx .fx-sec .mv-row__text{min-width:0}
body.fx .fx-sec .mv-row__title{max-width:14em}
.ed-panel--ink .mv-row__body{color:var(--ed-on-dark)}
.ed-panel--mint .mv-row__body{color:var(--ed-on-mint)}
.ed-panel--mint .mv-facts>li{border-color:rgba(17,18,18,0.16);color:var(--ed-on-mint)}
.ed-panel--mint .mv-facts>li::before{background:var(--ink)}
.fx-more{margin:22px 0 0}

/* ── Answer: the page in a few sentences, first thing under the hero ──── */
.fx-answer__in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:14px clamp(24px,5vw,80px);align-items:start}
.fx-answer__title{margin:0;max-width:11em;font:500 clamp(28px,3.2vw,46px)/1.02 var(--ed-disp);letter-spacing:-0.035em;color:var(--ink);text-wrap:balance}
.fx-answer__text{margin:0;max-width:33em;font:400 clamp(18px,1.6vw,22px)/1.5 var(--ed-sans);color:var(--ink);text-wrap:pretty}
@media (max-width:900px){.fx-answer__in{grid-template-columns:1fr}}
@media (max-width:640px){.fx-answer__title{font-size:clamp(26px,7.6vw,32px)}.fx-answer__text{font-size:17.5px}}

/* ── The product in a panel ───────────────────────────────────────────── */
/* A real page in a phone, three pages, a small rail of templates, or close-ups of blocks. An app
   screen uses the kit's figure.mv-shot. The panel colour comes from the tone. */
.fx-vis{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:clamp(22px,3.4vw,48px);border-radius:var(--ed-r-panel);background:#fff;overflow:hidden}
.fx-vis--soft{background:var(--ed-soft)}
.fx-vis--white{background:#fff}
.fx-vis--mint{background:var(--mint)}
.fx-vis--ink{background:var(--ink)}
.fx-vis--sky{background:var(--ed-tint-sky)}
.fx-vis--peach{background:var(--ed-tint-peach)}
.fx-vis--lilac{background:var(--ed-tint-lilac)}
.fx-vis--lemon{background:var(--ed-tint-lemon)}
.fx-vis--rose{background:var(--ed-tint-rose)}
.ed-panel--ink .fx-vis--ink{background:rgba(255,255,255,0.07)}
.ed-panel--ink .mv-shot--ink{background:rgba(255,255,255,0.07)}
.fx-shot{min-width:0}

/* One phone. With "full", the whole page scrolls inside the frame. */
.fx-vis--phone>.mv-phone{width:min(100%,300px);--mv-phone-r:18px}
.fx-vis__hint{margin:14px 0 0;font:400 13.5px/1.4 var(--ed-sans);color:var(--mut);text-align:center}
.fx-vis--ink .fx-vis__hint{color:var(--ed-on-dark-sm)}
.fx-vis--mint .fx-vis__hint{color:var(--ed-on-mint)}

/* Three phones, the middle one a step higher. */
.fx-phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1.4vw,18px);align-items:start;width:100%;max-width:580px}
.fx-phones>.mv-phone{--mv-phone-r:12px}
.fx-phones>.mv-phone:nth-child(odd){margin-block-start:clamp(18px,3vw,40px)}

/* A small rail of template cards inside the panel. */
.fx-vis--rail{align-items:stretch;padding-inline:0}
.fx-rail{--mv-rail-pad:clamp(22px,3.4vw,48px);width:100%;padding-block:8px 6px}
.fx-rail>*{width:min(42vw,176px)}
.fx-rail .mv-phone{--mv-phone-r:12px}

/* Close-ups of blocks, stacked at phone width. */
.fx-stack{display:grid;gap:14px;width:min(100%,390px)}
.fx-stack>img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 0 0 1px var(--mv-ring),var(--mv-sh-phone)}

@media (max-width:640px){
  .fx-vis{padding:22px 18px;border-radius:22px}
  /* Three phones become a row that slides, so each one is large enough to read. */
  .fx-vis--phones{align-items:stretch;padding-inline:0}
  .fx-phones{display:flex;gap:10px;max-width:none;padding-inline:18px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline-start:18px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .fx-phones::-webkit-scrollbar{display:none}
  .fx-phones>.mv-phone{flex:none;width:56%;scroll-snap-align:start}
  .fx-phones>.mv-phone:nth-child(odd){margin-block-start:0}
  .fx-vis--rail{padding-inline:0}
  .fx-rail{--mv-rail-pad:18px}
}

/* ── Facts with no picture: the title on one side, the list on the other ── */
.mv-row.fx-row--list{align-items:start}
.mv-row.fx-row--list>.fx-facts{margin-block-start:0}

/* ── Steps: three in order, joined by a line. No numbers. ─────────────── */
.fx-steps{margin:26px 0 0;padding:0;list-style:none}
.fx-steps>li{position:relative;padding-block-end:22px;padding-inline-start:30px}
.fx-steps>li:last-child{padding-block-end:0}
.fx-steps>li::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:7px;width:11px;height:11px;border-radius:3px;background:#27C99B}
.fx-steps>li::after{content:"";position:absolute;inset-inline-start:5px;inset-block:24px 2px;width:1px;background:var(--line)}
.fx-steps>li:last-child::after{display:none}
.fx-steps h3{margin:0 0 4px;font:500 19px/1.25 var(--ed-disp);letter-spacing:-0.02em;color:var(--ink)}
.fx-steps p{margin:0;max-width:44ch;font:400 16px/1.5 var(--ed-sans);color:var(--mut);text-wrap:pretty}
.ed-panel--ink .fx-steps>li::before{background:var(--mint)}
.ed-panel--ink .fx-steps>li::after{background:var(--ed-line-dark)}
.ed-panel--ink .fx-steps p{color:var(--ed-on-dark)}
.ed-panel--mint .fx-steps>li::before{background:var(--ink)}
.ed-panel--mint .fx-steps p{color:var(--ed-on-mint)}
/* With no picture the three steps stand side by side under the title. */
.mv-row.fx-row--wide{grid-template-columns:minmax(0,1fr)}
.fx-row--wide .fx-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(18px,2.4vw,32px)}
.fx-row--wide .fx-steps>li{padding:22px 0 0;border-block-start:1px solid var(--line)}
.fx-row--wide .fx-steps>li::before{inset-block-start:-6px}
.fx-row--wide .fx-steps>li::after{display:none}
.ed-panel--ink .fx-row--wide .fx-steps>li{border-color:var(--ed-line-dark)}
@media (max-width:900px){
  .fx-row--wide .fx-steps{grid-template-columns:1fr;gap:0}
  .fx-row--wide .fx-steps>li{padding-block-end:22px}
}

/* ── Blocks: the words stay in view, the close-ups run beside them ────── */
/* Each picture is a slice of a real page, 390px wide, on that page's own background. */
body.fx .fx-sec--blocks.ed-panel{overflow:visible}
.fx-blocks{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(24px,4vw,64px);align-items:start}
.fx-blocks--flip{grid-template-columns:minmax(0,8fr) minmax(0,4fr)}
.fx-blocks--flip>.fx-blocks__text{order:2}
.fx-blocks__text{position:sticky;inset-block-start:32px}
.fx-blocks__list{margin:0;padding:0;list-style:none;columns:2;column-gap:clamp(14px,1.8vw,24px)}
.fx-blocks__list>li{break-inside:avoid;margin:0 0 clamp(22px,2.4vw,34px)}
.fx-blocks__list>li:last-child{margin-block-end:0}
.fx-block{margin:0}
.fx-block>img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 0 0 1px var(--mv-ring)}
.fx-block figcaption{padding:12px 2px 0}
.fx-block h3{margin:0 0 3px;font:500 17.5px/1.25 var(--ed-disp);letter-spacing:-0.02em;color:var(--ink)}
.fx-block p{margin:0;font:400 15px/1.5 var(--ed-sans);color:var(--mut);text-wrap:pretty}
@media (min-width:901px) and (max-width:64em){.fx-blocks__text{inset-block-start:88px}}
@media (max-width:900px){
  .fx-blocks,.fx-blocks--flip{grid-template-columns:minmax(0,1fr)}
  .fx-blocks--flip>.fx-blocks__text{order:0}
  .fx-blocks__text{position:static}
}
@media (max-width:640px){
  .fx-blocks__list{columns:1}
  .fx-block>img{border-radius:14px}
  .fx-block h3{font-size:17px}
  .fx-block p{font-size:15.5px}
}

/* ── Templates: a rail on phones, one row of six on a wide screen ─────── */
.fx-chips{margin-block-end:14px}
@media (min-width:1100px){
  .fx-tpl{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;max-width:1280px;margin-inline:auto;padding:8px 0 30px;overflow:visible}
  .fx-tpl>li{width:auto}
  .fx-tpl .mv-phone{--mv-phone-r:14px}
}
@media (min-width:641px) and (max-width:1099px){.fx-tpl>li{width:min(30vw,250px)}}
body.fx .fx-sec--tpl{padding-block-end:clamp(14px,2vw,30px)}

/* ── Plan: one sentence ───────────────────────────────────────────────── */
.fx-plan{position:relative;display:inline-block;margin:0;padding:16px 22px;padding-inline-start:46px;border-radius:16px;background:#fff;font:500 17px/1.45 var(--ed-sans);color:var(--ink)}
.fx-plan::before{content:"";position:absolute;inset-inline-start:22px;inset-block-start:23px;width:10px;height:10px;border-radius:2px;background:#27C99B}
@media (max-width:640px){.fx-plan{display:block;font-size:16.5px}}

/* ── Questions, related pages, the closing panel ──────────────────────── */
body.fx .fx-faq{margin-block-start:clamp(8px,1.4vw,20px)}
.fx-related__title{margin:0 0 14px;font:500 13px/1.2 var(--ed-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ed-label)}
body.fx .fx-sec--related{padding-block:clamp(18px,2.4vw,32px) clamp(26px,3.4vw,44px)}
.fx-final .ed-h2{max-width:900px}
.fx-final .ed-lead{margin-block:16px 26px;max-width:52ch;color:var(--ed-on-dark)}
