/* =============================================================
   INSURANCE · Gosu Upskill
   Layers on top of real-estate.css. The markup reuses every
   `re-` component, but this sheet re-skins the page into the
   Oil & Gas world: a warm-white body with clean cuts into
   self-contained blue->black dark bands, safety-amber accent.

   real-estate.css builds one continuous dark glass world (a
   full-height gradient canvas + drifting blooms behind
   transparent zones). Here we switch that off and give each
   colour zone its own background, exactly like oil-and-gas.css.
   ============================================================= */

/* -------------------------------------------------------------
   PALETTE — dark-mode defaults (hero + dark bands)
   ------------------------------------------------------------- */
:root {
  --bg:          #000000;
  --bg-elev:     #141c28;
  --bg-elev-2:   #1f2a3a;
  --ink:         #f4f1ea;
  --ink-muted:   #9aa6b6;
  --ink-dim:     #5e6878;
  --line:        rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.26);

  --amber:       #ffb800;
  --amber-soft:  #ffd66d;
  --accent:      #ffb800;
  --accent-soft: #ffd66d;
  --cyan:        #5ae8ff;

  /* Warm near-white that the light zones reveal */
  --paper:       #f7f4ee;

  /* Glass system (dark band) */
  --glass-bg:     rgba(18, 26, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   14px;
}

/* -------------------------------------------------------------
   LIGHT-ZONE TOKEN OVERRIDES
   Re-scope ink, lines, accent and glass so every card/section
   inside a light zone renders dark-on-light automatically.
   ------------------------------------------------------------- */
.re-zone--light {
  --ink:         #1b2230;
  --ink-muted:   #5a6576;
  --ink-dim:     #97a1b0;
  --line:        rgba(27, 34, 48, 0.12);
  --line-strong: rgba(27, 34, 48, 0.22);

  --amber:       #b8780a;
  --amber-soft:  #e0a83a;
  --accent:      #b8780a;
  --accent-soft: #e0a83a;

  --glass-bg:     rgba(255, 255, 255, 0.62);
  --glass-border: rgba(27, 34, 48, 0.10);
  color: var(--ink);
}

/* -------------------------------------------------------------
   HERO — slate + amber fallback (no video supplied)
   ------------------------------------------------------------- */
.re-hero-fallback {
  background:
    radial-gradient(ellipse 62% 60% at 28% 38%, rgba(31, 42, 58, 0.85), transparent 70%),
    radial-gradient(ellipse 52% 52% at 78% 64%, rgba(255, 184, 0, 0.12), transparent 62%),
    #05070b;
}

/* -------------------------------------------------------------
   BODY + COLOUR ZONES — clean cuts, not a continuous field
   ------------------------------------------------------------- */
.re-body { background: var(--paper); }

/* Switch off the continuous gradient canvas + drifting blooms;
   each zone carries its own background instead. */
.re-canvas,
.re-blooms { display: none; }

/* Light zones reveal the flat warm-white body. */
.re-zone--light { background: transparent; }

/* Numbers + Audiences + Skills + Games — tall band, blue -> black */
.re-zone--navy {
  background:
    radial-gradient(55% 26% at 82% 8%, rgba(255, 184, 0, 0.10), transparent 60%),
    radial-gradient(50% 30% at 12% 52%, rgba(70, 150, 235, 0.10), transparent 62%),
    linear-gradient(180deg,
      #1a4478 0%,
      #123257 20%,
      #0c2440 42%,
      #08192e 64%,
      #050f1f 82%,
      #04080f 100%);
}

/* Process + CTA close — same blue at the cut, gradient to black */
.re-zone--dark {
  background:
    radial-gradient(58% 24% at 78% 10%, rgba(255, 184, 0, 0.10), transparent 60%),
    linear-gradient(180deg,
      #1a4478 0%,
      #102a4c 32%,
      #0a1c34 62%,
      #05101f 86%,
      #04080f 100%);
}

/* Amber cursor spotlight (real-estate.js toggles re-spotlight-on) */
.re-spotlight {
  background: radial-gradient(200px 200px at var(--mx) var(--my),
    rgba(255, 196, 90, 0.10), transparent 70%);
}

/* Softer drop shadows for glass sitting on white */
.re-zone--light .stat-chip,
.re-zone--light .re-tile,
.re-zone--light .re-compliance-card {
  box-shadow: 0 12px 30px rgba(20, 30, 50, 0.07);
}

/* -------------------------------------------------------------
   COMPLIANCE SECTION — drop real-estate's green theming for amber
   ------------------------------------------------------------- */
.re-compliance {
  background:
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(255, 184, 0, 0.05), transparent 70%);
}
.re-compliance .section-label .label-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.re-compliance .label-index { color: var(--accent); }
.re-compliance .re-section-heading em {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* -------------------------------------------------------------
   CTA — sit on the dark zone gradient instead of its own band
   ------------------------------------------------------------- */
.re-cta-section {
  background: transparent;
  border-top: none;
}

/* Footer line */
.re-footer { border-top-color: var(--bg-elev-2); }

/* -------------------------------------------------------------
   SKILLS — four audience tracks (grid + per-track colour)
   ------------------------------------------------------------- */
.offerings-grid--two { grid-template-columns: repeat(2, 1fr); }

.re-skills .offering-card[data-track="claims"]       { --c: #4cc9ff; }
.re-skills .offering-card[data-track="underwriting"] { --c: #ffb800; }
.re-skills .offering-card[data-track="producers"]    { --c: #4fd98a; }
.re-skills .offering-card[data-track="csr"]          { --c: #b98bff; }

/* -------------------------------------------------------------
   GAMES — category colour wiring (vivid on the dark band)
   ------------------------------------------------------------- */
.re-game-card[data-cat="claims"]       { --c: #4cc9ff; }  /* control cyan */
.re-game-card[data-cat="underwriting"] { --c: #ffb800; }  /* safety amber */
.re-game-card[data-cat="producers"]    { --c: #4fd98a; }  /* go green     */
.re-game-card[data-cat="csr"]          { --c: #b98bff; }  /* human violet */
.re-game-card[data-cat="compliance"]   { --c: #ff7a3c; }  /* hi-vis orange*/
.re-game-card[data-cat="fraud"]        { --c: #ff4b4b; }  /* alarm red    */

/* -------------------------------------------------------------
   COMPLIANCE + TRUST cards — theme colour wiring (read on white)
   ------------------------------------------------------------- */
.re-compliance-card[data-theme="annuity"]   { --c: #b8780a; }
.re-compliance-card[data-theme="cyber"]      { --c: #2f7fd6; }
.re-compliance-card[data-theme="aml"]        { --c: #11a37f; }
.re-compliance-card[data-theme="privacy"]    { --c: #8a5cf0; }
.re-compliance-card[data-theme="fraud"]      { --c: #d83a3a; }
.re-compliance-card[data-theme="conduct"]    { --c: #c98a12; }
.re-compliance-card[data-theme="fines"]      { --c: #e2592a; }
.re-compliance-card[data-theme="lms"]        { --c: #2f7fd6; }
.re-compliance-card[data-theme="sso"]        { --c: #11a37f; }
.re-compliance-card[data-theme="security"]   { --c: #d83a3a; }
.re-compliance-card[data-theme="analytics"]  { --c: #b8780a; }

/* -------------------------------------------------------------
   FOUR-UP TILE GRIDS — audiences, built-for
   (real-estate's .re-tiles-grid is 3-up by default)
   ------------------------------------------------------------- */
.re-audiences-grid,
#built-for .re-tiles-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* -------------------------------------------------------------
   010 · THE RESEARCH — source ledger
   Rows of named sources as citation chips. Deliberately NOT the
   4-up tile grid that "Built For" (011) uses, so the two adjacent
   sections read differently. Lives in a light zone.
   ------------------------------------------------------------- */
.re-research-ledger {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}
.re-research-row {
  --c: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.6rem;
  padding: 2.1rem 1.4rem 2.1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out);
}
.re-research-row::before {
  content: '';
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.re-research-row:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.re-research-row:hover::before { transform: scaleY(1); }

.re-research-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--c) 70%, var(--ink-dim));
}
.re-research-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.re-research-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 62ch;
  margin-bottom: 1.05rem;
}
.re-research-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.re-source-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.42em 0.85em;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 6px 16px rgba(20, 30, 50, 0.05);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.re-source-chip:hover {
  border-color: color-mix(in srgb, var(--c) 55%, var(--glass-border));
  color: color-mix(in srgb, var(--c) 75%, var(--ink));
  transform: translateY(-2px);
}

.re-research-row[data-domain="regulatory"] { --c: #b8780a; }
.re-research-row[data-domain="workforce"]  { --c: #2f7fd6; }
.re-research-row[data-domain="fraud"]      { --c: #d83a3a; }
.re-research-row[data-domain="benchmarks"] { --c: #11a37f; }

@media (max-width: 680px) {
  .re-research-row { grid-template-columns: 1fr; gap: 0.55rem; padding: 1.7rem 1rem; }
  .re-research-index { font-size: 1.7rem; }
}

/* -------------------------------------------------------------
   RESPONSIVE — collapse the 4-up grids (real-estate.css only
   knows about its own 3-up grid, so re-state our own steps and
   beat its max-width:900 rule via later source order)
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .re-audiences-grid,
  #built-for .re-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .offerings-grid--two,
  .re-audiences-grid,
  #built-for .re-tiles-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   006 · SEE IT LIVE — live game proof (dark band)
   ------------------------------------------------------------- */
.re-live-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}
.re-live-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0a1018;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.re-live-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.re-live-media:hover img { transform: scale(1.03); }
.re-live-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #07090d;
  background: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.re-live-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.re-live-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.re-live-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.re-live-desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.86;
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.re-live-aside {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.re-live-aside a,
.re-cta-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 820px) {
  .re-live-feature { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* -------------------------------------------------------------
   013 · CTA — commercial / pricing note
   ------------------------------------------------------------- */
.re-cta-note {
  margin: 1.4rem auto 0;
  max-width: 54ch;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Trust: ownership card accent */
.re-compliance-card[data-theme="ownership"] { --c: #c98a12; }
