/* FAQ with the screen beside it (campusai.app #faq).
   Rebuilt from the elevation card c4a-faq-screen in plain CSS. Keeps the live FAQ's own look
   (.fq / .fa sizes, the coral plus that turns 45deg in 250ms) and adds the screen.
   Timings, from the card: answer opens 300ms easeOutQuint, folds 200ms.
   Screen swap: outgoing 140ms (fades, lifts 6px), incoming 240ms rising 12px.
   Above 860px the screen sits in a sticky panel beside the list; at 860px and below it sits
   inside the open answer. Reads the page's :root tokens (--ink, --muted, --coral, --line,
   --card, --disp, --sans) and falls back to the same values if they are missing. */

.fqs {
  --fqs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fqs-ink: var(--ink, #f7f4f4);
  --fqs-muted: var(--muted, #9c9294);
  --fqs-coral: var(--coral, #f0435c);
  --fqs-line: var(--line, rgba(255, 255, 255, 0.09));
  --fqs-card: var(--card, #0e0d0e);
  --fqs-disp: var(--disp, "Inter Tight", "Inter", sans-serif);
}

/* Without JS (no .is-ready) it is today's single centred column, every answer showing. */
.fqs-grid { max-width: 760px; margin: 0 auto; }
.fqs .fqs-side { display: none; }
.fqs.is-ready .fqs-grid {
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.fqs.is-ready .fqs-side { display: block; position: sticky; top: 96px; }

/* The list: today's .faqlist / .fitem, restated here so the old rules can go. */
.fqs .fqs-list { max-width: none; margin: 0; border-top: 1px solid var(--fqs-line); }
.fqs-item { position: relative; border-bottom: 1px solid var(--fqs-line); }
.fqs-item::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--fqs-coral);
  opacity: 0;
  transition: opacity 200ms ease;
}
.fqs-item.is-open::before { opacity: 1; }

.fqs-h { margin: 0; font: inherit; }
.fqs-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: 0;
  color: var(--fqs-ink);
  font-family: var(--fqs-disp);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.fqs-q:focus-visible { outline: 2px solid var(--fqs-coral); outline-offset: 3px; border-radius: 6px; }
.fqs-x { color: var(--fqs-coral); font-size: 26px; font-weight: 300; line-height: 1; transition: transform 250ms ease; flex: none; }
.fqs-item.is-open .fqs-x { transform: rotate(45deg); }

.fqs-a { overflow: hidden; }
.fqs-a[hidden] { display: none; }
.fqs-a.is-moving { transition: height 300ms var(--fqs-ease), opacity 300ms var(--fqs-ease); }
.fqs-a.is-moving.is-closing { transition-duration: 200ms; }
.fqs-a p { margin: 0; color: var(--fqs-muted); font-size: 15.5px; line-height: 1.62; padding: 0 4px 22px; max-width: 64ch; }
.fqs-a .fqs-screen { padding: 0 4px 24px; }

/* The panel beside the list */
.fqs-fig { margin: 0; display: grid; gap: 12px; transition: opacity 240ms var(--fqs-ease), transform 240ms var(--fqs-ease); }
.fqs-fig.is-dim { opacity: 0.35; }
.fqs-fig.is-out { opacity: 0; transform: translateY(-6px); transition-duration: 140ms; transition-timing-function: ease; }
.fqs-fig.is-pre { opacity: 0; transform: translateY(12px); transition: none; }
.fqs-fig figcaption { font-size: 13px; line-height: 1.45; color: var(--fqs-muted); border-left: 2px solid var(--fqs-coral); padding-left: 10px; }

/* The screens: real product captures, frameless, in the site's own shadow and phone shape */
.fqs-web {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0b0c;
  box-shadow: 0 24px 60px -30px rgba(226, 24, 51, 0.6);
}
.fqs-web.is-ask { aspect-ratio: 1200 / 900; object-fit: cover; object-position: top; }
.fqs-phonewrap { display: flex; justify-content: center; }
/* the site's phone shape (.fphone3 / .swphone): black body, 8px edge, rounded screen */
.fqs-phone {
  width: 46%;
  max-width: 220px;
  aspect-ratio: 506 / 1100;
  padding: 7px;
  border-radius: 34px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -30px rgba(226, 24, 51, 0.6);
}
.fqs-phone img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; border-radius: 27px; background: #0a0a0c; }
.fqs-both { position: relative; padding-right: 12%; padding-bottom: 14%; }
.fqs-phone.is-small { position: absolute; right: 0; bottom: 0; width: 23%; max-width: none; padding: 4px; border-radius: 20px; }
.fqs-phone.is-small img { border-radius: 16px; }

.fqs-sec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fqs-sec li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--fqs-card); border: 1px solid var(--fqs-line); color: var(--fqs-coral); }
.fqs-sec li svg { flex: none; margin-top: 2px; }
.fqs-sec li span { display: grid; gap: 2px; color: var(--fqs-muted); font-size: 13.5px; line-height: 1.45; }
.fqs-sec li b { color: var(--fqs-ink); font-weight: 600; font-size: 14.5px; }

.fqs-mail { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-radius: 14px; background: var(--fqs-card); border: 1px solid var(--fqs-line); color: var(--fqs-coral); flex-wrap: wrap; }
.fqs-mail svg { flex: none; }
.fqs-mail-addr { color: var(--fqs-ink); font-weight: 600; font-size: 15.5px; flex: 1 1 auto; white-space: nowrap; }
.fqs-mail-addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.fqs-mail-addr:focus-visible, .fqs-copy:focus-visible { outline: 2px solid var(--fqs-coral); outline-offset: 3px; border-radius: 6px; }
.fqs-copy {
  font: inherit;
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--fqs-ink);
  color: #160b0d;
  cursor: pointer;
  transition: transform 140ms var(--fqs-ease);
}
.fqs-copy:focus-visible { border-radius: 999px; }
.fqs-copy:active { transform: scale(0.97); }
.fqs-copy .fqs-i-check { display: none; }
.fqs-copy.is-copied .fqs-i-copy { display: none; }
.fqs-copy.is-copied .fqs-i-check { display: block; }
.fqs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Phone and narrow tablet: one column, the screen inside the open answer */
@media (max-width: 860px) {
  .fqs.is-ready .fqs-grid { display: block; max-width: 760px; }
  .fqs.is-ready .fqs-side { display: none; }
  .fqs-item::before { left: -10px; }
  .fqs-phone { width: 52%; max-width: 200px; }
  .fqs-mail { padding: 14px 14px; gap: 10px; }
  .fqs-mail-addr { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fqs-x, .fqs-item::before, .fqs-a.is-moving, .fqs-fig, .fqs-copy { transition: none !important; }
}
