/* Home page (site/pages/home.php): only what the chapter system does not already give. */
.fs-demos{padding-block:var(--chapter-pad) 0}
.fs-demos .chapter-head{margin-bottom:var(--s5)}
@media (max-width:899px){.fs-demos{padding-bottom:var(--s7)}}
.home-how-link{margin:var(--s6) 0 0}
/* #1 (owner-approved 7 Oct 2026): "What you send your clients" between the demos and the steps; three items, quiet. */
.fs-send .chapter-head{margin-bottom:var(--s6)}
.home-send figcaption h3{margin:var(--s4) 0 4px;font-size:1.3125rem}
.home-send figcaption p{margin:0;font-size:1.0625rem;color:var(--ink-2)}
/* Phones: shorter pictures, so the three items stay about two screens (#1: keep the home page short). */
@media (max-width:767px){
  .home-send{gap:var(--s5)}
  .home-send .dv-chat{aspect-ratio:auto;padding:var(--s4)}
  .home-send .dv-board,.home-send .dv-browser{aspect-ratio:3/2}
  .home-send figcaption h3{margin-top:var(--s3)}
}
/* #121: the closing band's quiet price line and buttons at reading size. */
.home-close .button{font-size:16px}

/* The hero's three choices (hero_paths()): see it, how it works, upload. Glass tiles over the clip; the upload tile in
   the accent. Stacked and compact on phones, one row from 768 px. */
/* .layout-site h1.display-xl (vizwalk.css) is more specific than .hero-home .display-xl, so these sizes never applied:
   the home title stayed at 40 px on phones and up to 104 px on wide screens (owner, 7 Oct 2026: "fix the sizes of the home in mobile"). */
.layout-site .hero-home h1.display-xl{font-size:clamp(2.25rem,1rem + 4.2vw,4.75rem);max-width:17ch}
.hero-home .lead-media{margin-bottom:0}
.hero-paths{display:grid;gap:10px;margin-top:var(--s5);max-width:62rem}
@media (min-width:768px){.hero-paths{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:var(--s6)}}
.hero-path{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;border:1px solid rgba(245,242,235,.28);border-radius:var(--r-lg);
  background:rgba(13,18,17,.5);color:#F5F2EB;text-decoration:none;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  transition:background-color .2s var(--ease),border-color .2s var(--ease),transform .2s var(--ease)}
@media (min-width:768px){.hero-path{min-height:84px;padding:16px 18px}}
.hero-path-n{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:rgba(245,242,235,.1);color:var(--accent)}
.hero-path-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;line-height:1.3}
.hero-path-copy strong{font-size:1.0625rem;font-weight:600}
.hero-path-copy span{font-size:.875rem;color:#D5D1C8}
.hero-path>.icon{opacity:.6;transition:transform .2s var(--ease),opacity .2s var(--ease)}
.hero-path.is-main{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.hero-path.is-main .hero-path-n{background:rgba(13,18,17,.12);color:var(--on-accent)}
.hero-path.is-main .hero-path-copy span{color:var(--on-accent);opacity:.78}
.hero-path.is-main>.icon{opacity:1}
@media (hover:hover) and (pointer:fine){
  .hero-path:hover{background:rgba(13,18,17,.72);border-color:rgba(245,242,235,.6);transform:translateY(-2px)}
  .hero-path.is-main:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
  .hero-path:hover>.icon{transform:translateX(3px);opacity:1}
}
.hero-note{margin:var(--s4) 0 0;font-size:.875rem;letter-spacing:.02em;color:#D5D1C8;text-shadow:0 1px 8px rgba(0,0,0,.5)}
@media (max-width:767px){.hero-home .hero-eyebrow{margin-bottom:var(--s3)}.hero-home.fs-hero{padding-bottom:40px}.hero-home>.scroll-cue{display:none}}

/* Phones (owner, 6 Oct 2026: "the home is much crowded"): the title, one line and three short choices; no label above
   the title, no second line on the choices, no file types; the chat button waits until the choices have scrolled away. */
@media (max-width:767px){
  .hero-home .hero-note,.hero-path-copy span{display:none}
  .layout-site .hero-home h1.display-xl{font-size:clamp(1.875rem,8.4vw,2.4rem);max-width:15ch;margin-bottom:.35em}
  .hero-home .lead-media{font-size:1rem}
  .hero-paths{gap:8px;margin-top:var(--s4)}
  .hero-path{min-height:54px;padding:8px 14px;gap:12px}
  .hero-path-n{width:36px;height:36px}
  .hero-path-copy strong{font-size:1rem}
  html.js body.page-home:has(.sticky-cta:not(.is-shown)) .vzc-launch,html.js body.page-home:not(.has-sticky) .vzc-launch.vzc-wait{opacity:0;visibility:hidden;pointer-events:none}
}
/* Phones (owner, 7 Oct 2026, a Galaxy S21 FE: the "Pause video" pill sat on top of the "who it is for" line). On a short
   screen the bottom-aligned copy grew up into the pill. Now the pause control is a small round button at the top right,
   under the menu, and the copy always keeps clear of it (the hero grows taller instead of overlapping). The "who it is
   for" line is plain text, not a two-line pill. */
@media (max-width:767px){
  html body .fs-hero.hero-home>.media-toggle{top:calc(var(--head-h) + 8px);bottom:auto;inset-inline-start:auto;inset-inline-end:var(--gutter);width:40px;height:40px;padding:0;gap:0;border-radius:50%}
  .hero-home>.media-toggle .media-toggle-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hero-home>.fs-inner{padding-top:calc(var(--head-h) + 60px)}
  html body .fs-hero.hero-home .hero-eyebrow{display:block;padding:0;border-radius:0;background:none;font-size:15px;line-height:1.35;max-width:30ch;margin-bottom:10px}
  .hero-home .hero-actions{margin-top:var(--s4)}
  html body .hero-home .hero-actions .button{min-height:50px;font-size:1rem}
  .hero-try{box-shadow:0 6px 24px rgba(213,181,141,.3)}
}

/* The hero's one invitation (owner, 6 Oct 2026): a big "Walk inside now", a quiet "How it works" */
.hero-home .hero-actions{align-items:center;gap:20px}
.hero-try{min-height:60px;padding:0 32px;font-size:18px;box-shadow:0 10px 40px rgba(213,181,141,.35)}
.hero-how{color:#F5F2EB;font-weight:600;text-decoration:underline;text-underline-offset:4px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
@media (max-width:767px){.hero-home .hero-actions{flex-direction:column;align-items:stretch;gap:10px}.hero-try{width:100%}.hero-how{text-align:center}}

/* #4: who it is for, above the headline: sentence case and large enough to read. */
.hero-home .hero-eyebrow{text-transform:none;letter-spacing:0;font-size:clamp(15px,.9rem + .3vw,18px);font-weight:600;text-shadow:0 1px 10px rgba(0,0,0,.65),0 0 2px rgba(0,0,0,.5)}
.hero-home .hero-note{font-size:16px}
.hero-home .hero-note .hero-how{margin-inline-start:6px}

/* Owner-approved 28 Oct 2026 (clearer first screen): the price as one small pill between the line and the buttons, on every
   screen size (the generic .hero-caption sits at the bottom right on wide screens). */
.hero-home .hero-caption{position:static;display:inline-flex;margin:var(--s3) 0 0;padding:6px 14px;border-radius:var(--r-pill);background:rgba(13,18,17,.6);
  font-size:1rem;font-weight:600;letter-spacing:0;max-width:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@media (max-width:767px){.hero-home .hero-caption{margin-top:10px}.hero-home .hero-actions{margin-top:14px}}
/* Phones held sideways (812 x 375): the title, line, price and both buttons in the first screen. */
@media (max-height:500px) and (orientation:landscape){
  .layout-site .hero-home h1.display-xl{font-size:clamp(1.4rem,3.6vw,1.8rem);max-width:30ch;margin-bottom:.2em}
  .hero-home .lead-media{font-size:.9375rem;margin-top:0;max-width:60ch}
  html body .fs-hero.hero-home{padding-bottom:12px}
  .hero-home>.fs-inner{padding-top:calc(var(--head-h) + 4px);padding-bottom:0}
  .hero-home>.scroll-cue{display:none}
  .hero-home .hero-caption{margin-top:6px;padding:4px 12px}
  .hero-home .hero-actions{margin-top:10px;gap:12px}
  html body .hero-home .hero-actions .button,.hero-try{min-height:46px;font-size:1rem}
  .hero-home .hero-note{display:none}
  html body .fs-hero.hero-home>.media-toggle{top:calc(var(--head-h) + 8px);bottom:auto;inset-inline-start:auto;inset-inline-end:var(--gutter);width:40px;height:40px;padding:0;gap:0;border-radius:50%}
  .hero-home>.media-toggle .media-toggle-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* ---- Funnel redesign, 4 Nov 2026 (jobs/_funnel-4nov/DIAGNOSIS.md): the first question and the one offer. ---- */
.hero-home .hero-note{margin-top:var(--s3);font-size:1rem;color:var(--ink)}
.hero-home .hero-how{display:inline-flex;align-items:center;min-height:44px;margin-inline-start:4px;color:var(--accent);font-weight:600;text-underline-offset:3px}
#start,#how,#pricing,#faq{scroll-margin-top:calc(var(--head-h,64px) + 8px)}
.fs-start,.fs-how,.fs-offer,.fs-faq{padding-block:clamp(40px,8vw,88px)}
.start-card{display:grid;gap:12px;max-width:34rem;margin-inline:auto}
.start-card h2{margin:0 0 8px;font-size:clamp(1.625rem,1.2rem + 1.6vw,2.25rem);line-height:1.2;text-wrap:balance}
.start-more{border:1px solid var(--line-2);border-radius:var(--r-lg)}
.start-more summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 16px;font-weight:600;cursor:pointer;list-style:none}
.start-more summary::-webkit-details-marker{display:none}
.start-more summary .icon{flex:none;transition:transform .2s var(--ease)}
.start-more[open] summary .icon{transform:rotate(180deg)}
.start-more>div{display:grid;gap:12px;padding:0 16px 16px}
.start-more p{margin:0;color:var(--ink-2)}
.offer{display:grid;gap:16px;max-width:56rem}
@media (min-width:768px){.offer{grid-template-columns:1fr 1.25fr;align-items:start}}
.offer-free,.offer-paid{padding:clamp(18px,3vw,28px);border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--bg-2)}
.offer-free{border-color:var(--accent)}
.offer-tag{margin:0;font-weight:600;color:var(--ink-2)}
.offer-big{margin:4px 0 8px;font-size:2.5rem;line-height:1.1;font-weight:600;color:var(--accent)}
.offer-note{margin:0 0 16px;color:var(--ink-2);font-size:1rem;line-height:1.5}
.offer-paid .offer-note{margin:14px 0 0}
.offer-paid h3{margin:0 0 12px;font-size:1.25rem}
.offer-rows{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.offer-rows a{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 12px;border:1px solid var(--line-2);border-radius:var(--r);color:var(--ink);text-decoration:none;transition:border-color .2s var(--ease),background-color .2s var(--ease)}
.offer-rows a:hover,.offer-rows a:focus-visible{border-color:var(--accent);background:var(--bg-3)}
.offer-rows .is-main a{border-color:var(--accent)}
.offer-row-copy{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}
.offer-price{font-weight:600;white-space:nowrap}
.offer-rows .icon{flex:none;opacity:.6}
html[dir=rtl] .offer-rows .icon,html[dir=rtl] .hero-how .icon{transform:scaleX(-1)}
.home-lang{margin:var(--s5) 0 0;text-align:center}
.pricing-offer .chapter-head{margin-bottom:var(--s5)}

.offer-price{direction:ltr;unicode-bidi:isolate}

/* The free first project and the price were hidden on phones, where 91% of visits are. */
.hero-home .hero-note{display:block !important;margin-bottom:0}
@media (max-width:767px){.hero-home .hero-note{margin-top:10px;line-height:1.45}.hero-home .hero-how{min-height:36px}}

/* 7 Nov 2026 review: a price never breaks between "EGP" and the number on a phone (it read "EGP / 2,500") */
.price-table td bdi{white-space:nowrap}
