/* faq.css: the FAQ (plan.md, "FAQ"), with the tokens of system.css only. */

/* ---------- #hero: an owner at her counter after closing, smiling at her phone at the right, still; the headline, the
   search and the topics centered over the dark wall beside her (on a phone, the photo under them) ---------- */
.ph--faq { display: grid; align-items: center; min-height: max(660px, 88svh); padding-top: 150px; padding-bottom: 170px; text-align: center; background: var(--bg-1); }
.fq-hero__pic {
  position: absolute; inset: 0; z-index: 0; margin: 0;
  --deep-shade: radial-gradient(46% 50% at 50% 50%, rgb(2 8 16 / 0.55), rgb(2 8 16 / 0.2) 70%, rgb(2 8 16 / 0) 100%), linear-gradient(180deg, rgb(2 8 16 / 0.45) 0%, rgb(2 8 16 / 0) 22%, rgb(2 8 16 / 0) 72%, var(--bg-1) 100%);
}
/* drawn larger from its left edge, so she sits at the far right, clear of the centered words; a night photo already, so
   the deep's color wash stays light and her lamp keeps its warmth */
.fq-hero__pic > img { object-position: 50% 50%; transform: scale(1.16); transform-origin: 0% 55%; filter: saturate(0.92) contrast(1.04); }
.fq-hero__pic::before { opacity: 0.18; }
/* the stop icon lower than on the other headers, on the dark wall under her lamp, so it never reads as part of it */
@media (min-width: 900px) { .ph--faq .ph__stop { top: 236px; } }
@media (max-width: 899px) {
  .ph--faq { min-height: 0; padding-bottom: 60px; }
  .ph--faq .ph__waves { height: 90px; }
  .fq-hero__pic {
    position: relative; inset: auto; order: 2; height: clamp(260px, 64vw, 420px); margin: 40px calc(var(--gutter) * -1) 0;
    --deep-shade: linear-gradient(180deg, var(--bg-1) 0%, rgb(5 13 26 / 0) 26%, rgb(5 13 26 / 0) 76%, var(--bg-1) 100%);
  }
  /* on a phone the photo is drawn twice as large around her, so she fills it (her lamps above the frame), never a
     small figure under an empty wall */
  .fq-hero__pic { overflow: hidden; }
  .fq-hero__pic > img { object-position: 74% 50%; transform: scale(2); transform-origin: 72% 62%; }
}
.fq-hero { display: grid; justify-items: center; }
.fq-hero .ph__title { max-width: 14ch; }
.fq-hero .ph__line { margin-left: auto; margin-right: auto; }
.fq-search { position: relative; width: min(580px, 100%); margin-top: 34px; }
.fq-search svg { position: absolute; z-index: 1; left: 22px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--accent-bright); pointer-events: none; }
.fq-search input {
  width: 100%; height: 62px; padding: 0 24px 0 56px; border: 0; border-radius: 999px; color: var(--text-bright); font: 400 1.0625rem/1 var(--font-ui);
  background: var(--glass); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25); backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--border-strong), 0 24px 60px -30px rgb(0 0 0 / 0.9);
}
.fq-search input::placeholder { color: var(--text-muted); }
.fq-search input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
/* the five topics on one row on a computer, never four and one */
.fq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 780px; margin-top: 22px; }
.fq-chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; color: var(--text); font: 500 var(--fs-small)/1 var(--font-ui); text-decoration: none;
  background: rgb(10 22 40 / 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.fq-chip:hover, .fq-chip:focus-visible { color: var(--text-bright); box-shadow: inset 0 0 0 1px var(--accent-bright), 0 0 22px -8px var(--glow); }

/* ---------- #faq: each topic's name beside its questions ---------- */
.fq { display: grid; gap: clamp(56px, 6vw, 88px); max-width: var(--max-w); margin: 0 auto; padding-top: clamp(4rem, 2rem + 5vw, 7rem); }
.fq-topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 24px clamp(32px, 4vw, 64px); scroll-margin-top: 110px; }
.fq-topic[hidden] { display: none; }
.fq-topic__title { position: sticky; top: 110px; font: 600 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.15 var(--font-display); letter-spacing: var(--track-h); color: var(--text-bright); text-wrap: balance; }
.fq-topic .faq { max-width: none; margin: 0; }
.fq-none { max-width: 40rem; margin: 0 auto; text-align: center; font-size: var(--fs-lead); color: var(--text-muted); }
.fq-none a { color: var(--accent-bright); }
@media (max-width: 899px) {
  .fq-topic { grid-template-columns: minmax(0, 1fr); }
  .fq-topic__title { position: static; }
}

/* ---------- #close: a craftsman at his lathe, his plan in glass at the photo's foot; the glass box at the right, over
   his lamp-lit wall, clear of his face ---------- */
.fq-close { padding-top: clamp(4rem, 2rem + 6vw, 8rem); }
.fq-close__stop { position: absolute; z-index: 3; top: 26px; right: var(--gutter); }
.fq-close__band {
  position: relative; display: grid; align-items: center; justify-items: end; max-width: var(--max-w); min-height: 620px; margin: 0 auto; padding: 48px;
  --deep-shade: linear-gradient(90deg, rgb(2 8 16 / 0) 30%, rgb(2 8 16 / 0.62) 100%), linear-gradient(180deg, rgb(2 8 16 / 0) 50%, rgb(2 8 16 / 0.62) 100%);
}
/* drawn larger from its right edge, so he stands left of center, clear of the box; a warm daylight workshop graded
   into the night by light, the deep's color wash kept faint so his skin keeps its own tone */
.fq-close__band > img { object-position: 50% 40%; transform: scale(1.15); transform-origin: 100% 45%; filter: saturate(0.85) contrast(1.06) brightness(0.68); }
.fq-close__band::before { opacity: 0.12; }
/* the plan itself: new clients month by month, month 1 set-up, then rising; its bars grow once as it lands and hold */
.fq-plan {
  display: grid; gap: 12px; width: 312px; padding: 16px 16px 14px; border-radius: var(--radius-m);
  background: rgb(10 22 40 / 0.74); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--border-strong), 0 24px 60px -24px rgb(0 0 0 / 0.85);
}
.fq-close__cards .fq-plan[data-kit-at] { opacity: min(1, calc(var(--kit-in, 1) * 3)); }
.fq-plan__head { display: flex; align-items: center; gap: 12px; }
.fq-plan__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 5px; height: 78px; padding: 0 2px; }
.fq-plan__bars i {
  display: block; height: max(4%, calc(var(--v) * 1%)); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  transform: scaleY(clamp(0.04, calc(var(--kit-in, 1) * 1.6 - var(--i) * 0.055), 1)); transform-origin: 50% 100%;
}
.fq-plan__foot { display: flex; justify-content: space-between; gap: 10px; font: 500 12.5px/1.2 var(--font-ui); color: var(--text-muted); }
.fq-plan__foot b { font-weight: 700; color: var(--text-bright); }
.fq-close__box {
  position: relative; z-index: 2; width: min(460px, 44%); padding: 38px 36px 32px; border-radius: var(--radius-l); text-align: center;
  background: rgb(5 13 26 / 0.58); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25); backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--border-strong), 0 50px 110px -40px rgb(0 0 0 / 0.9);
}
.fq-close__box .band__title { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem); }
.fq-close__box .part__cta { margin-top: 26px; }
.fq-close__ask { margin-top: 18px; }
.fq-close__cards { position: absolute; z-index: 2; left: 28px; bottom: 28px; display: grid; justify-items: start; gap: 10px; }
.fq-close__cards [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
@media (max-width: 899px) {
  .fq-close__band { display: block; min-height: 0; padding: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .fq-close__band { display: flex; flex-direction: column; align-items: stretch; }
  .fq-close__band > img { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-l); object-position: 30% 40%; transform: none; }
  .fq-close__band::before, .fq-close__band::after { bottom: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-l); }
  /* on a phone the plan and the new client sit at the top of the glass box, one panel with it, under the photo */
  .fq-close__cards {
    position: relative; left: auto; bottom: auto; order: 1; margin-top: 20px; padding: 18px 16px 4px; justify-items: stretch;
    border-radius: var(--radius-l) var(--radius-l) 0 0; background: rgb(5 13 26 / 0.58); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25); backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
    box-shadow: inset 0 1px 0 var(--edge-light), inset 1px 0 0 var(--border-strong), inset -1px 0 0 var(--border-strong);
  }
  .fq-plan { width: auto; }
  /* the panel keeps one height: on a phone the new client stays in place under the plan, never leaving a bare band */
  .fq-close__cards .notice[data-kit-at] { opacity: 1; transform: none; }
  .fq-close__box {
    order: 2; width: auto; margin-top: 0; padding: 26px 22px 26px; border-radius: 0 0 var(--radius-l) var(--radius-l);
    box-shadow: inset 1px 0 0 var(--border-strong), inset -1px 0 0 var(--border-strong), inset 0 -1px 0 var(--border-strong), 0 50px 110px -40px rgb(0 0 0 / 0.9);
  }
}
