/*
  Flygen — consent banner + preferences panel (public/flygen-consent.js). Shared by the homepage and the Next pages.
  The Flygen system only: Instrument Sans with the serif italic accent, paper ground, hairlines, straight corners,
  one cobalt state line that draws in along the top edge (left → right, with the header's leading-edge light).
  Controls stay rounded (the pill buttons and the switches). Accept is filled; Reject sits beside it at the same size, on
  the first layer, one click away — so refusing is as easy as accepting.
  Overlays only (position: fixed), so nothing on the page shifts. Reduced motion: the same states, nothing travels.
*/
.fgc { --fgc-ink: #121219; --fgc-cobalt: #2146D8; --fgc-cobalt-h: #1C39B0; --fgc-paper: #FCFBF7; --fgc-ice: #EEF2FC; --fgc-lilac: #C9B8FF; --fgc-muted: rgba(18,18,25,.64);
  --fgc-ease: cubic-bezier(.16,.84,.24,1); --fgc-gutter: clamp(20px, 4.4vw, 68px);
  font-family: var(--font-sans, "Instrument Sans"), "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--fgc-ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.fgc *, .fgc *::before, .fgc *::after { box-sizing: border-box; }
.fgc [hidden] { display: none !important; }
.fgc em { font-family: var(--font-serif, "Instrument Serif"), "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: 0; }
.fgc a { color: var(--fgc-cobalt); text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; transition: color .18s ease; }
.fgc a:hover { color: var(--fgc-cobalt-h); }
.fgc a:focus-visible { outline: 1px solid var(--fgc-cobalt); outline-offset: 3px; }

/* ── the cobalt state line along a top edge (banner + panel) ── */
.fgc-banner::before, .fgc-panel::before,
.fgc-banner::after, .fgc-panel::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none; }
.fgc-banner::before, .fgc-panel::before { background: var(--fgc-cobalt); clip-path: inset(0 100% 0 0); }
.fgc-banner::after, .fgc-panel::after { z-index: 1; opacity: 0; background: linear-gradient(90deg, rgba(178,199,248,0) calc(100% - 22px), #7E98F6 calc(100% - 4px), #D6E0FC 100%); }
.fgc-banner[data-in]::before, .fgc-panel[data-in]::before { clip-path: inset(0 0 0 0); transition: clip-path .4s var(--fgc-ease) .08s; }
.fgc-banner[data-in]::after, .fgc-panel[data-in]::after { animation: fgc-glint .5s .08s both; }
@keyframes fgc-glint {
  0% { opacity: 1; transform: translateX(calc(-100% + 22px)); animation-timing-function: var(--fgc-ease); }
  70% { opacity: 1; transform: translateX(0); animation-timing-function: ease-out; }
  100% { opacity: 0; transform: translateX(0); }
}

/* ── pill actions: all identical ── */
.fgc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fgc-btn { -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer; font: inherit; font-size: 14.5px; line-height: 1; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(6,16,47,.32); background: transparent; color: var(--fgc-ink); white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: border-color .32s var(--fgc-ease), color .32s ease, background-color .32s ease; }
.fgc-btn:hover, .fgc-btn:focus-visible { border-color: var(--fgc-cobalt); color: var(--fgc-cobalt); background: rgba(33,70,216,.04); }
.fgc-btn:focus-visible { outline: 1px solid var(--fgc-cobalt); outline-offset: 3px; }
.fgc-btn--primary { background: var(--fgc-ink); border-color: var(--fgc-ink); color: var(--fgc-paper); }
.fgc-btn--primary:hover, .fgc-btn--primary:focus-visible { background: var(--fgc-cobalt); border-color: var(--fgc-cobalt); color: #fff; }

/* ── banner: a calm bar on the bottom edge, over the page (never over the header, never blocking it) ── */
.fgc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--fgc-paper); border-top: 1px solid rgba(18,18,25,.1);
  opacity: 0; transform: translateY(14px); }
.fgc-banner[data-in] { opacity: 1; transform: none; transition: opacity .32s ease, transform .36s var(--fgc-ease); }
/* steps aside (below the edge) while it would cover the showreel's controls */
.fgc-banner[data-in][data-yield] { transform: translateY(calc(100% + 2px)); visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s; }
.fgc-banner-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 64px;
  padding: 24px max(var(--fgc-gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--fgc-gutter), env(safe-area-inset-left)); }
.fgc-copy { min-width: 0; max-width: 66ch; }
.fgc-b-title { margin: 0; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.fgc-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(18,18,25,.78); }
.fgc-trust { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--fgc-muted); }
.fgc-trust > * + *::before { content: "·"; display: inline-block; margin: 0 10px; color: rgba(18,18,25,.4); box-shadow: none; }
.fgc-trust a { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fgc-trust a::before { text-decoration: none; }
.fgc-banner .fgc-actions { flex: none; }

/* desktop: a compact card in the bottom-left corner instead of a full-width bar — the page stays in view */
@media (min-width: 900px) {
  .fgc-banner { left: var(--fgc-gutter); right: auto; bottom: 24px; width: min(440px, calc(100vw - 2 * var(--fgc-gutter)));
    border: 1px solid rgba(18,18,25,.12); box-shadow: 0 18px 48px -24px rgba(6,16,47,.28); }
  .fgc-banner-in { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 24px 22px; }
  .fgc-b-title { font-size: 21px; }
  .fgc-text { font-size: 14.5px; }
  .fgc-banner .fgc-actions { gap: 8px; }
  .fgc-banner .fgc-actions > .fgc-btn { flex: 1 1 auto; padding: 0 16px; }
}
/* while the settings panel is open, the banner steps out of the way (no duplicate buttons behind the scrim) */
.fgc-banner[data-behind] { visibility: hidden; }

/* ── panel: a modal sheet on the paper, straight corners ── */
.fgc-scrim { position: fixed; inset: 0; z-index: 480; background: rgba(6,16,47,.36); opacity: 0; }
.fgc-scrim[data-in] { opacity: 1; transition: opacity .3s ease; }
.fgc-panel { position: fixed; z-index: 490; left: 50%; top: 50%; width: min(640px, calc(100vw - 2 * var(--fgc-gutter)));
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--fgc-paper); border: 1px solid rgba(18,18,25,.1);
  padding: clamp(24px, 3vw, 36px); transform: translate(-50%, -50%); outline: none;
  clip-path: inset(0 0 100% 0); }
.fgc-panel[data-in] { clip-path: inset(-2px -2px -2px -2px); transition: clip-path .38s var(--fgc-ease); }
.fgc-panel:focus-visible { outline: 1px solid var(--fgc-cobalt); outline-offset: 3px; }
.fgc-panel::before, .fgc-panel::after { top: 0; }
.fgc-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fgc-title { margin: 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.025em; font-weight: 400; }
.fgc-close { -webkit-appearance: none; appearance: none; margin: 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--fgc-ink);
  cursor: pointer; box-shadow: inset 0 -1px 0 rgba(18,18,25,.3); transition: color .18s ease, box-shadow .18s ease; }
.fgc-close:hover, .fgc-close:focus-visible { color: var(--fgc-cobalt); box-shadow: inset 0 -1px 0 var(--fgc-cobalt); }
.fgc-close:focus-visible { outline: 1px solid var(--fgc-cobalt); outline-offset: 4px; }
.fgc-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--fgc-muted); max-width: 52ch; }

.fgc-cats { list-style: none; margin: clamp(20px, 2.4vw, 28px) 0 0; padding: 0; border-top: 1px solid rgba(18,18,25,.12); }
.fgc-cat { padding: 18px 0 20px; border-bottom: 1px solid rgba(18,18,25,.12); }
.fgc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fgc-cat-name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.fgc-cat-ctl { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.fgc-state { font-size: 13px; line-height: 1; color: var(--fgc-muted); min-width: 2.2em; text-align: right; }
.fgc-cat-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--fgc-muted); max-width: 54ch; }

/* switches: real buttons with role="switch" */
.fgc-switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 24px; margin: 0; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(6,16,47,.4); background: transparent; -webkit-tap-highlight-color: transparent;
  transition: background-color .28s var(--fgc-ease), border-color .28s ease; }
.fgc-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--fgc-ink);
  transition: transform .28s var(--fgc-ease), background-color .28s ease; }
.fgc-switch[aria-checked="true"] { background: var(--fgc-cobalt); border-color: var(--fgc-cobalt); }
.fgc-switch[aria-checked="true"] .fgc-knob { transform: translateX(20px); background: var(--fgc-paper); }
.fgc-switch:not(:disabled):hover { border-color: var(--fgc-cobalt); }
.fgc-switch:focus-visible { outline: 1px solid var(--fgc-cobalt); outline-offset: 3px; }
.fgc-switch:disabled { cursor: default; opacity: .45; }

.fgc-actions--panel { margin-top: clamp(22px, 2.6vw, 30px); }
.fgc-links { display: flex; gap: 22px; margin: 20px 0 0; font-size: 14px; }

/* ── narrow screens: stacked banner, equal-width actions, panel as a bottom sheet ── */
@media (max-width: 899px) {
  .fgc-banner-in { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 20px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .fgc-text { font-size: 14.5px; }
}
@media (max-width: 599px) {
  /* a bottom sheet: the three actions share one row, sized by their labels, same style */
  .fgc-actions { gap: 8px; }
  .fgc-actions > .fgc-btn { flex: 1 1 auto; }
  .fgc-btn { padding: 0 14px; font-size: 14px; }
  .fgc-b-title { font-size: 19px; }
  .fgc-text { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .fgc-trust { margin-top: 6px; font-size: 12.5px; }
  .fgc-banner-in { gap: 14px; padding-top: 18px; }
  .fgc-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; max-height: calc(100dvh - 24px); border-width: 1px 0 0;
    padding: 24px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .fgc-panel-head { align-items: center; }
}

/* ── reduced motion: the same states, nothing travels ── */
@media (prefers-reduced-motion: reduce) {
  .fgc-banner, .fgc-banner[data-in] { opacity: 1; transform: none; transition: none; }
  .fgc-banner[data-in][data-yield] { transform: translateY(calc(100% + 2px)); transition: none; }
  .fgc-panel, .fgc-panel[data-in] { clip-path: none; transition: none; }
  .fgc-scrim, .fgc-scrim[data-in] { opacity: 1; transition: none; }
  .fgc-banner::before, .fgc-panel::before { clip-path: none; transition: none; }
  .fgc-banner::after, .fgc-panel::after { animation: none; opacity: 0; }
  .fgc-btn, .fgc-switch, .fgc-knob { transition: none; }
}
