/* FlexPass page styles (modernized).
   Uses @layer pages per css-ada-modernization-plan-v2.md */

@layer pages {
  .flexpass-page {
    --fp-content-width: min(1080px, 92%);
    --fp-olive: var(--header-green);
    --fp-amber: var(--btn-yellow-bg);
    --fp-charcoal: #0c0c0c;
    --fp-card: #1a1a1a;
    --fp-border: #2a2a2a;
    --fp-text: #f2f2f2;
    --fp-muted: #b1b1b1;
    --fp-accent: #d96528;
  }

  /* Hero Section */
  .flexpass-page .fp-hero {
    position: relative;
    padding: 50px 0 60px;
    background:
      radial-gradient(800px 400px at 15% 20%, rgba(140, 149, 0, 0.30), transparent 60%),
      radial-gradient(800px 450px at 85% 0%, rgba(217, 101, 40, 0.28), transparent 65%),
      linear-gradient(180deg, #080808 0%, #0c0c0c 50%, #0a0a0a 100%);
    overflow: hidden;
  }

  .flexpass-page .fp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px);
    opacity: 0.4;
    pointer-events: none;
  }

  /* Screened FlexPass logo in lower-left corner */
  .flexpass-page .fp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/flexpass-logo.webp");
    background-repeat: no-repeat;
    background-size: 380px auto;
    background-position: left -70px bottom -70px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
  }

  .flexpass-page .fp-hero-inner {
    position: relative;
    z-index: 1;
    width: var(--fp-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 40px;
    align-items: center;
  }

  .flexpass-page .fp-hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .flexpass-page .fp-hero-content .site-eyebrow {
    margin-bottom: 4px;
  }

  .flexpass-page .fp-hero-content .site-h1 {
    margin-bottom: 10px;
  }

  .flexpass-page .fp-hero-tagline {
    font-family: var(--font-jost);
    font-size: 17px;
    font-weight: 600;
    color: var(--fp-muted);
    margin-bottom: 16px;
  }

  .flexpass-page .fp-hero-tagline strong {
    color: var(--white);
  }

  .flexpass-page .fp-hero-body {
    max-width: 560px;
  }

  .flexpass-page .fp-hero-body .site-body {
    margin-bottom: 16px;
  }

  .flexpass-page .fp-highlight {
    color: var(--fp-amber);
    font-weight: 500;
  }

  .flexpass-page .fp-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flexpass-page .fp-hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 14px;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.08);
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .flexpass-page .fp-hero-image:hover img {
    transform: scale(1.02) translateY(-3px);
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 35px rgba(237, 173, 1, 0.12);
  }

  .flexpass-page .fp-hero-image::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 30% 30%, rgba(237, 173, 1, 0.10), transparent 55%),
                radial-gradient(ellipse at 70% 70%, rgba(140, 149, 0, 0.08), transparent 55%);
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .flexpass-page .fp-hero-image:hover::after {
    opacity: 1;
  }

  /* Podcast Section */
  .flexpass-page .fp-podcast {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(155deg, #575757 0%, #353535 45%, #121212 100%);
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    overflow: hidden;
  }

  .flexpass-page .fp-podcast::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(650px 250px at 10% 0%, rgba(140, 149, 0, 0.18), transparent 65%),
      radial-gradient(650px 250px at 90% 100%, rgba(217, 101, 40, 0.15), transparent 65%),
      repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
    opacity: 0.8;
    pointer-events: none;
  }

  .flexpass-page .fp-podcast-inner {
    position: relative;
    z-index: 1;
    width: var(--fp-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: 40px;
    align-items: center;
  }

  .flexpass-page .fp-podcast-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flexpass-page .fp-podcast-image img {
    width: 100%;
    max-width: 384px;
    height: auto;
    border-radius: 14px;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .flexpass-page .fp-podcast-image:hover img {
    transform: scale(1.02) translateY(-3px);
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 0 30px rgba(140, 149, 0, 0.12);
  }

  .flexpass-page .fp-podcast-image::before {
    content: "";
    position: absolute;
    inset: -15px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.06), transparent 60%);
    z-index: -1;
    pointer-events: none;
  }

  .flexpass-page .fp-podcast-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .flexpass-page .fp-podcast-content .site-eyebrow {
    margin-bottom: 4px;
  }

  .flexpass-page .fp-podcast-content .site-h2 {
    margin-bottom: 8px;
  }

  .flexpass-page .fp-podcast-tagline {
    font-family: var(--font-jost);
    font-size: 17px;
    font-weight: 600;
    color: var(--fp-text);
    margin-bottom: 14px;
  }

  /* Steps Section */
  .flexpass-page .fp-steps {
    position: relative;
    padding: 60px 0 70px;
    background:
      radial-gradient(900px 400px at 50% 0%, rgba(140, 149, 0, 0.22), transparent 60%),
      linear-gradient(180deg, #0a0a0a 0%, #0e0e0e 50%, #0a0a0a 100%);
    overflow: hidden;
  }

  .flexpass-page .fp-steps::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px);
    opacity: 0.35;
    pointer-events: none;
  }

  .flexpass-page .fp-steps-inner {
    position: relative;
    z-index: 1;
    width: var(--fp-content-width);
    margin: 0 auto;
  }

  .flexpass-page .fp-steps-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .flexpass-page .fp-steps-header .site-h2 {
    margin-bottom: 0;
  }

  .flexpass-page .fp-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
  }

  .flexpass-page .fp-step {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--fp-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .flexpass-page .fp-step-header {
    background: var(--fp-olive);
    padding: 14px 20px;
    text-align: center;
  }

  .flexpass-page .fp-step-label {
    font-family: var(--font-jost);
    font-size: 23px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
  }

  .flexpass-page .fp-step-body {
    padding: 24px 20px 28px;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .flexpass-page .fp-step-body .site-body {
    text-align: center;
  }

  .flexpass-page .fp-step-body a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .flexpass-page .fp-step-body a:hover {
    color: var(--fp-amber);
  }

  .flexpass-page .fp-step-number {
    position: absolute;
    bottom: -22px;
    right: 10px;
    font-family: var(--font-barlow);
    font-size: 140px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
    z-index: 0;
  }

  .flexpass-page .fp-steps-cta {
    text-align: center;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .flexpass-page .fp-hero-inner {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .flexpass-page .fp-hero-image {
      order: -1;
    }

    .flexpass-page .fp-hero-image img {
      max-width: 380px;
    }

    .flexpass-page .fp-podcast-inner {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: left;
    }

    .flexpass-page .fp-podcast-image {
      order: -1;
    }

    .flexpass-page .fp-podcast-image img {
      max-width: 336px;
    }

    .flexpass-page .fp-steps-grid {
      grid-template-columns: 1fr;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }
  }

  @media (max-width: 600px) {
    .flexpass-page .fp-hero {
      padding: 40px 0 50px;
    }

    .flexpass-page .fp-hero::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: url("/images/fp-hero-image.webp");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      filter: grayscale(1.00) saturate(0) contrast(0.8) brightness(0.35);
      opacity: 0.20;
      z-index: 0;
      pointer-events: none;
    }

    .flexpass-page .fp-podcast {
      padding: 50px 0;
    }

    .flexpass-page .fp-podcast::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: url("/images/podcast-image.webp");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      filter: grayscale(1.00) saturate(0) contrast(0.8) brightness(0.35);
      opacity: 0.25;
      z-index: 0;
      pointer-events: none;
    }

    .flexpass-page .fp-steps {
      padding: 50px 0 60px;
    }

    .flexpass-page .fp-hero-image img {
      max-width: 340px;
    }
  }
}
