/* =============================================================
   ProjBox marketing site — shared stylesheet
   Plain CSS, no preprocessor or build tooling.
   Theme: dark cosmic / purple-blue, glass cards, soft glow accents.
   ============================================================= */

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Brand palette — cosmic dark */
  --pb-bg-deep:        #05060f;
  --pb-bg-mid:         #0c0e22;
  --pb-bg-soft:        #14163a;
  --pb-accent:         #8a7bff;   /* primary purple */
  --pb-accent-2:       #5cc0ff;   /* secondary blue glow */
  --pb-accent-warm:    #c9b6ff;   /* lighter highlight */
  --pb-text:           #eef0ff;
  --pb-text-dim:       #b6bad6;
  --pb-text-mute:      #8a8fb3;
  --pb-border:         rgba(255, 255, 255, 0.08);
  --pb-border-strong:  rgba(255, 255, 255, 0.16);
  --pb-card-bg:        rgba(20, 22, 58, 0.55);
  --pb-card-bg-strong: rgba(20, 22, 58, 0.75);

  /* Layout */
  --pb-max-width: 1240px;
  --pb-radius-sm: 10px;
  --pb-radius:    16px;
  --pb-radius-lg: 24px;

  /* Typography */
  --pb-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --pb-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                  "Liberation Mono", monospace;

  /* Shadows / glows */
  --pb-glow-purple: 0 0 60px rgba(138, 123, 255, 0.35);
  --pb-glow-blue:   0 0 60px rgba(92, 192, 255, 0.25);
  --pb-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pb-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pb-text);
  background-color: var(--pb-bg-deep);
  /* Layered background:
     1. Cosmic photo (case-sensitive path)
     2. Radial gradients fall back to gracefully if image fails. */
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(138, 123, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(92, 192, 255, 0.18), transparent 60%),
    radial-gradient(1400px 900px at 50% 110%, rgba(80, 60, 180, 0.25), transparent 60%),
    url("../assets/backgrounds/CosmicBackground.png");
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: center, center, center, center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  overflow-x: hidden;
}

/* Subtle stars overlay (cheap CSS-only — no extra image) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%,  rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 72%,  rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 64% 32%,  rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 82% 58%,  rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 44% 88%,  rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 92% 12%,  rgba(255,255,255,0.5), transparent 60%);
  opacity: 0.5;
  z-index: 0;
}

/* Make page content sit above the stars layer */
header, main, footer, .pb-modal { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--pb-accent-warm); text-decoration: none; }
a:hover, a:focus-visible { color: #fff; text-decoration: underline; }

/* Skip-to-content link for keyboard users */
.pb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pb-accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.pb-skip:focus { left: 0; }

/* Visually-hidden helper */
.pb-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw + 0.5rem, 3.8rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.5rem, 2.6rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
p { margin: 0 0 1em; color: var(--pb-text-dim); }
.pb-eyebrow {
  display: inline-block;
  /* Bumped up from 0.78rem for legibility against the cosmic background.
     Still smaller than the H1/H2 below it so it stays a label, not a headline. */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d8d2ff;
  text-shadow: 0 0 18px rgba(138, 123, 255, 0.35);
  margin-bottom: 0.85em;
}
.pb-lede {
  font-size: clamp(1rem, 0.9vw + 0.85rem, 1.18rem);
  color: var(--pb-text-dim);
  max-width: 60ch;
}

/* -------------------------------------------------------------
   4. Layout helpers
   ------------------------------------------------------------- */
.pb-container {
  width: 100%;
  max-width: var(--pb-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.pb-section {
  padding: clamp(36px, 5vw, 72px) 0;
}
.pb-section--tight { padding: clamp(28px, 3.5vw, 52px) 0; }

/* -------------------------------------------------------------
   5. Header / nav
   ------------------------------------------------------------- */
.pb-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 6, 15, 0.55);
  border-bottom: 1px solid var(--pb-border);
  z-index: 50;
}
.pb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.pb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.pb-brand:hover { text-decoration: none; color: #fff; }
.pb-brand__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--pb-glow-purple);
}
.pb-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.pb-nav a {
  color: var(--pb-text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.pb-nav a:hover, .pb-nav a:focus-visible {
  color: #fff;
  text-decoration: none;
}
.pb-nav .pb-btn { padding: 8px 14px; font-size: 0.9rem; }

.pb-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--pb-border-strong);
  color: var(--pb-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.pb-nav-toggle:focus-visible { outline: 2px solid var(--pb-accent); }

@media (max-width: 760px) {
  .pb-nav-toggle { display: inline-flex; }
  .pb-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(12, 14, 34, 0.95);
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--pb-shadow-card);
  }
  .pb-nav.is-open { display: flex; }
  .pb-nav a { padding: 8px 8px; }
}

/* -------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------- */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.pb-btn:focus-visible {
  outline: 2px solid var(--pb-accent-2);
  outline-offset: 2px;
}
.pb-btn--primary {
  background: linear-gradient(135deg, #6e5cff 0%, #8a7bff 50%, #5cc0ff 120%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(110, 92, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.pb-btn--primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 14px 36px rgba(110, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.pb-btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--pb-border-strong);
  color: var(--pb-text);
}
.pb-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
}
.pb-btn--disabled,
.pb-btn[aria-disabled="true"] {
  background: rgba(255,255,255,0.05);
  border-color: var(--pb-border);
  color: var(--pb-text-mute);
  cursor: not-allowed;
  box-shadow: none;
}
.pb-btn--block { width: 100%; }

/* -------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------- */
.pb-hero {
  /* Trimmed top padding so the eyebrow sits just under the sticky header
     instead of leaving a large empty band at the top of the page. */
  padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 56px);
}
.pb-hero__grid {
  display: grid;
  /* Left column gets a bit more horizontal room so the headline can
     breathe (H1 reads as two lines instead of three) and the lede flows
     naturally. The poster's `scale()` makes it visually larger without
     needing to dominate the grid track. */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  /* `start` aligns the poster's top with the eyebrow row of the left
     column; `center` was pushing the poster too far down. */
  align-items: start;
}
@media (max-width: 960px) {
  .pb-hero__grid { grid-template-columns: 1fr; }
}

.pb-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.pb-truth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  /* Slightly opaque dark navy pill so the trust line stays readable
     wherever the cosmic background gets bright. */
  background: rgba(10, 12, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eef0ff;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 0 24px rgba(108, 243, 168, 0.08);
}
.pb-truth__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6cf3a8;
  box-shadow: 0 0 12px #6cf3a8;
}

/* =====================================================================
   Hero visual / video poster — compositing strategy
   =====================================================================
   The previous pass switched from `box-shadow` (rectangular outline) to
   `filter: drop-shadow` (follows PNG alpha). That removed CSS-side
   framing, but the monitor still read as a hard rectangle floating on
   the page because nothing in the scene overlapped its edges.

   This pass adds a foreground cloud band — a pseudo-element on the
   right-column wrapper (.pb-hero__visual) that samples the same
   CosmicBackground.png used as the page background, blurs it, and masks
   it from opaque-at-bottom to transparent-at-top. That cloud band sits
   in front of the monitor's lower edge, dissolving the rectangular
   silhouette into the cosmic scene.

   Why a CSS pseudo-element rather than a second <img>:
   - zero extra HTTP requests — the asset is already loaded for body bg
   - color and texture match the scene exactly by construction
   - no DOM noise

   Layering top to bottom: play badge (z 3) > fog (z 2) > monitor (z 1).
   The fog uses pointer-events: none so the entire poster stays clickable.

   FAILURE MODE TO WATCH FOR:
   If the upper portion of the poster (above the fog band) still shows a
   clearly demarcated rectangle against the cosmic background, then
   RightSide.png itself contains opaque pixels around the monitor on its
   canvas. CSS cannot strip pixels out of an image — re-export the PNG
   with a transparent canvas around the monitor and the page will
   compose correctly with no further changes.
   ===================================================================== */

.pb-poster,
.pb-poster:hover,
.pb-poster:focus,
.pb-poster:focus-visible {
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}
.pb-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  /* Larger and lifted toward the headline so it reads as the page's
     hero subject rather than a thumbnail next to the copy. The right
     column is narrower now (1fr vs 1.1fr left), so scale() does the
     heavy lifting — the monitor reads big and bleeds slightly beyond
     its grid track, matching the GeneralDesignFormat reference where
     the monitor extends toward the right edge of the page. */
  transform: rotate(-3deg) scale(1.22);
  transform-origin: center top;
  margin-top: -8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.pb-poster:hover, .pb-poster:focus-visible {
  transform: rotate(-1.5deg) scale(1.23) translateY(-3px);
}
.pb-poster img {
  width: 100%;
  height: auto;
  background: transparent;
  /* No border-radius / box-shadow: those create a rectangular halo when
     the PNG has transparent regions. drop-shadow follows the alpha,
     and we keep it tight so it can't trace the bounding box if the
     PNG has minor edge-alpha noise. */
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.50))
    drop-shadow(0 0 60px rgba(110, 92, 255, 0.28));
  /* Slight transparency lets cosmic light bleed through faintly so the
     monitor feels integrated into the scene, not stamped on top. */
  opacity: 0.97;
  position: relative;
  z-index: 1;
}

/* Right-column wrapper — positioned stage for the foreground cloud band. */
.pb-hero__visual { position: relative; }

/* Foreground cloud band: sampled from CosmicBackground.png, blurred into
   fog, masked from opaque (bottom) to transparent (top). Sits in front
   of the poster's lower portion so the rectangular silhouette dissolves
   into the cosmic scene. */
.pb-hero__visual::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  /* The poster is scaled 1.22 from transform-origin: center top, which
     means the visual bottom of the monitor sits ~22% below the wrapper
     bottom. Push the fog down so it overlaps the actual visible lower
     edge of the (now-larger) monitor and produce the GeneralDesignFormat
     "resting in the clouds" effect. */
  bottom: -12%;
  height: 55%;
  pointer-events: none; /* never block the play button's click target */
  z-index: 2;
  background-image: url("../assets/backgrounds/CosmicBackground.png");
  background-size: cover;
  /* Sample the cloud band toward the bottom of the cosmic image. */
  background-position: center 78%;
  -webkit-mask-image: linear-gradient(to top,
                        rgba(0, 0, 0, 0.96) 0%,
                        rgba(0, 0, 0, 0.85) 25%,
                        rgba(0, 0, 0, 0.45) 55%,
                        transparent 100%);
          mask-image: linear-gradient(to top,
                        rgba(0, 0, 0, 0.96) 0%,
                        rgba(0, 0, 0, 0.85) 25%,
                        rgba(0, 0, 0, 0.45) 55%,
                        transparent 100%);
  filter: blur(6px);
  opacity: 0.85;
}
.pb-poster__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Above the foreground cloud overlay (z 2) so the badge stays visible. */
  z-index: 3;
}
.pb-poster__play span {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--pb-glow-purple);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pb-poster:hover .pb-poster__play span { transform: scale(1.06); background: rgba(20, 20, 60, 0.7); }
.pb-poster__play svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }

/* -------------------------------------------------------------
   8. Glass card (shared)
   ------------------------------------------------------------- */
.pb-card {
  background: var(--pb-card-bg);
  border: 1px solid var(--pb-border-strong);
  border-radius: var(--pb-radius);
  padding: clamp(20px, 2.4vw, 28px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--pb-shadow-card);
}

/* -------------------------------------------------------------
   9. Access form
   Compact horizontal strip: Name | Email | University | Access Code | submit
   Wraps to 2-column at ≤1080px and 1-column on phones.
   ------------------------------------------------------------- */
.pb-access {
  margin-top: 24px;
  /* Tighter padding so the card reads as a strip, not a chunky panel. */
  padding: 18px 20px;
}
.pb-access__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.pb-access__title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-accent-warm);
  margin: 0;
}
.pb-access__helper {
  font-size: 0.85rem;
  color: var(--pb-text-mute);
  margin: 0;
}
.pb-access__row-fields {
  display: grid;
  /* 4 equal field cells + auto-width submit on the right. */
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.pb-access__submit { display: flex; align-items: stretch; }
.pb-access__submit .pb-btn { padding: 11px 22px; height: 100%; }

@media (max-width: 1080px) {
  .pb-access__row-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pb-access__submit {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
@media (max-width: 600px) {
  .pb-access__row-fields { grid-template-columns: 1fr; }
  .pb-access__submit { justify-content: stretch; }
  .pb-access__submit .pb-btn { width: 100%; }
}

.pb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-field label {
  font-size: 0.85rem;
  color: var(--pb-text-dim);
  font-weight: 500;
}
.pb-field input,
.pb-field textarea {
  font: inherit;
  color: var(--pb-text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--pb-border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pb-field input::placeholder,
.pb-field textarea::placeholder { color: var(--pb-text-mute); }
.pb-field input:focus,
.pb-field textarea:focus {
  border-color: var(--pb-accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(138,123,255,0.18);
}
.pb-field textarea { resize: vertical; min-height: 80px; }
.pb-access__note {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(92, 192, 255, 0.1);
  border: 1px solid rgba(92, 192, 255, 0.35);
  color: var(--pb-text);
  font-size: 0.92rem;
}
.pb-access__note.is-visible { display: block; }
.pb-access__note code {
  font-family: var(--pb-font-mono);
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 6px;
}

.pb-access__status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid var(--pb-border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--pb-text);
}
.pb-access__status.is-visible { display: block; }
.pb-access__status a { color: var(--pb-accent-warm); }

/* -------------------------------------------------------------
   10. How it works
   ------------------------------------------------------------- */
.pb-howgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
@media (max-width: 820px) { .pb-howgrid { grid-template-columns: 1fr; } }
.pb-howcard__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(138,123,255,0.5), rgba(92,192,255,0.4));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid var(--pb-border-strong);
}
.pb-howcard h3 { margin-bottom: 6px; }
.pb-howcard p { margin: 0; color: var(--pb-text-dim); }

/* -------------------------------------------------------------
   11. Proof cards (Everything ProjBox gives you)
   ------------------------------------------------------------- */
.pb-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
@media (max-width: 760px) { .pb-proof { grid-template-columns: 1fr; } }

.pb-proofcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.pb-proofcard__media {
  position: relative;
  /* Soft purple glow inside the media frame so screenshots don't sit on a
     flat black slab; the bezel feels like part of the cosmic theme. */
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(138, 123, 255, 0.10), transparent 70%),
    #0b0d22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* Reserve a consistent media area so cards align even with mixed image sizes */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.pb-proofcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* `contain` avoids stretching screenshots with very different intrinsic aspect ratios.
     The 4thBoxPhoto.png in particular is much smaller than the others. */
  object-fit: contain;
  object-position: center;
  padding: 14px;
  /* Very subtle lift for darker screenshots so detail stays readable. */
  filter: brightness(1.04);
}
.pb-proofcard__body { padding: 20px 22px 22px; }
.pb-proofcard__body h3 { margin-bottom: 6px; }
.pb-proofcard__body p { margin: 0; color: #c8ccea; }

/* -------------------------------------------------------------
   12. FAQ / Privacy / Download page styles
   ------------------------------------------------------------- */
.pb-page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(20px, 3vw, 36px);
  text-align: left;
}
.pb-page-hero h1 { margin-bottom: 12px; }
.pb-page-hero p { max-width: 60ch; }

.pb-faqlist { display: grid; gap: 14px; margin-top: 8px; }
.pb-faqlist details {
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-border-strong);
  background: var(--pb-card-bg);
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pb-faqlist details[open] { background: var(--pb-card-bg-strong); }
.pb-faqlist summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pb-faqlist summary::-webkit-details-marker { display: none; }
.pb-faqlist summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--pb-accent-warm);
  line-height: 1;
  transition: transform 0.2s ease;
}
.pb-faqlist details[open] summary::after { content: "−"; }
.pb-faqlist .pb-faq__body {
  padding: 0 18px 18px;
  color: var(--pb-text-dim);
}
.pb-faqlist .pb-faq__body p { margin: 0 0 0.8em; }
.pb-faqlist .pb-faq__body ul { margin: 0 0 0.6em 1.2em; padding: 0; }

.pb-prose { max-width: 70ch; }
.pb-prose h2 { margin-top: 1.6em; }
.pb-prose h3 { margin-top: 1.4em; }
.pb-prose ul { padding-left: 1.2em; }
.pb-prose li { margin-bottom: 0.3em; }

.pb-download__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.pb-download__buttons .pb-btn { padding: 14px 22px; font-size: 1rem; min-width: 220px; }

/* -------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------- */
.pb-footer {
  border-top: 1px solid var(--pb-border);
  margin-top: clamp(40px, 6vw, 80px);
  padding: 36px 0 56px;
  background: rgba(5, 6, 15, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pb-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
}
.pb-footer__links {
  display: flex; flex-wrap: wrap; gap: 18px;
}
.pb-footer__links a {
  color: var(--pb-text-dim);
  font-size: 0.95rem;
  text-decoration: none;
}
.pb-footer__links a:hover { color: #fff; }
.pb-footer__trust {
  color: var(--pb-text-mute);
  font-size: 0.85rem;
  margin: 0;
}

/* -------------------------------------------------------------
   14. Video modal
   ------------------------------------------------------------- */
.pb-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 3, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 24px;
}
.pb-modal.is-open { display: flex; }
.pb-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--pb-radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--pb-border-strong);
}
.pb-modal__dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.pb-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pb-border-strong);
  background: rgba(10, 10, 30, 0.7);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.pb-modal__close:hover { background: rgba(30, 30, 80, 0.9); }
.pb-modal__close:focus-visible { outline: 2px solid var(--pb-accent-2); }
body.pb-no-scroll { overflow: hidden; }

/* -------------------------------------------------------------
   15. Scroll-in animation (respects prefers-reduced-motion)
   ------------------------------------------------------------- */
.pb-fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pb-fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .pb-fade-in { opacity: 1; transform: none; transition: none; }
}
