/* ============================================================================
   NOVA — GLASS OVER THE BLUE LIGHT WALLPAPER, PUBLIC PAGES (4 Dec 2026)
   ----------------------------------------------------------------------------
   The same look as the app (styles.css "Glass over the Blue light wallpaper"):
   the Blue light photo fixed behind the page, fine grain over it, smoked
   glass on CONTAINERS only (never every row), the capsule nav kept.

   Loaded last on /, product, about, privacy, terms and accessibility.

   The homepage particle canvas is transparent (alpha:true, cleared to 0), so
   the wallpaper sits under it with a darker veil while the field is the
   subject, and the sections after it frost what is behind them instead of
   being solid black.
   ========================================================================= */

/* body transparent: an opaque body box paints OVER a negative z-index layer */
html { background: #000 !important; }
body { background: transparent !important; }

/* The wallpaper: fixed, under everything (the GL canvas included). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.35)),
    url(/assets/bg/blue-wave.jpg?v=2) 72% center / cover no-repeat #000;
  animation: ngBeam 1s cubic-bezier(.16,1,.3,1) both;
}
/* Grain, so the photo reads as light rather than a flat gradient. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ngBeam { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Homepage: the particle field is the subject, so the photo stays dimmer
   under it; the GL canvas keeps its own transparent clear. */
body.ng-home::before {
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(0,0,0,.55), rgba(0,0,0,.15) 70%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)),
    url(/assets/bg/blue-wave.jpg?v=2) 72% center / cover no-repeat #000;
}

/* ---- Sections ------------------------------------------------------------
   No more solid black bands: each section is a sheet of dark smoked glass,
   so the light carries down the page. The blur is what keeps the particle
   cloud (fixed behind the whole document) from ever sitting sharp under copy. */
.hs, .hs--tint {
  background: rgba(6,6,8,.62) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.2); backdrop-filter: blur(36px) saturate(1.2);
}
.hs--tint { background: rgba(14,14,18,.58) !important; }
.hs + .hs { border-top: 1px solid rgba(255,255,255,.06); }

/* The three "What Nova does" rows sit in ONE glass panel; the rows inside
   keep their plain hairlines (glass on the container, not on each row). */
.hs__cards {
  padding: 6px clamp(18px, 3vw, 32px); border-radius: 22px;
  background: rgba(16,16,20,.55);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 60px -30px rgba(0,0,0,.9);
}
.hs__cards .hcard:first-child { border-top: 0; }
.hcard { border-top-color: rgba(255,255,255,.08); }

/* Exam board chips: small glass pills with the bright top rim. */
.board, .hs--tint .board {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* The closing call: the button glows white like the featured plan on Pricing. */
.hs--close .btn--primary {
  --btn-bg: #fff; --btn-fg: #0a0a0b; --btn-bd: #fff; border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 0 34px -6px rgba(255,255,255,.45);
}
.hs--close .btn:not(.btn--primary) {
  border-radius: 999px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18);
}

/* ---- Content pages (product, about, privacy, terms, accessibility) ------ */
/* Product's example frames, Privacy's notes: smoked glass panels. */
.frame, .note {
  background: rgba(14,14,18,.62) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 60px -30px rgba(0,0,0,.9) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
}
.endband {
  background: rgba(6,6,8,.55) !important; border-top-color: rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}
/* Long reading (privacy, terms, about, accessibility): the text sits on one
   quiet glass sheet so the bright part of the photo never runs under a
   paragraph. */
.prose {
  padding: clamp(22px, 4vw, 44px); border-radius: 24px;
  background: rgba(8,8,10,.66);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}

/* ---- Footer: frosted, not a solid slab ---------------------------------- */
.footer {
  background: rgba(4,4,6,.72) !important; border-top: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}

/* Phones: a blur over a fixed photo is the costliest thing on the page, so
   the panels go a little more solid instead of frosted. Same for anyone who
   asked their device for less transparency. */
@media (max-width: 760px) {
  .hs, .hs--tint, .frame, .note, .endband, .prose, .footer { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hs { background: rgba(6,6,8,.86) !important; }
  .hs--tint { background: rgba(14,14,18,.84) !important; }
  .frame, .note, .prose { background: rgba(14,14,18,.88) !important; }
  .footer { background: rgba(4,4,6,.92) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .hs, .hs--tint, .frame, .note, .endband, .prose, .footer, .hs__cards { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0c0c0f !important; }
}

/* A note inside the reading sheet is already on glass: no second blur (a blur
   inside a blur is what made the account menu murky), just a faint lift. */
.prose .note { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.04) !important; box-shadow: none !important; }

/* Standard-resolution monitors (6 Dec 2026): one CSS pixel is one device pixel there, so each grain speck
   shows at twice its Retina size and the page reads as grainy. Halve the tile and soften it. */
@media (max-resolution: 1.5dppx) { body::after { background-size: 90px 90px; opacity: .06; } }
