/* Shared exam-page hero styles — single source of truth.
   Linked by every /exams/<code>/ page; per-page family accent is set inline via
   .am-cert-hero { --amh-accent; --amh-accent-2 }. See memory project_centralize_exam_css. */

/* ==============================================================
       HERO BLOCK — scoped to .am-cert-hero
       ============================================================== */
    .am-cert-hero {
      --amh-cyan:   #50E6FF;
      --amh-blue:   #2B88D8;
      --amh-purple: #9578E0;
      --amh-gold:   #FFB900;
      --amh-accent:   var(--amh-cyan);
      --amh-accent-2: var(--amh-blue);
      --amh-bg:     #050810;
      --amh-card:   #111827;
      --amh-text:   #F0F0F0;
      --amh-muted:  #8B95A5;
      --amh-border: rgba(255,255,255,0.08);
      position: relative;
      isolation: isolate;
      padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 72px);
      font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
      color: var(--amh-text);
      overflow: hidden;
    }
    .am-cert-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 56% 48% at 72% 38%, rgba(80,230,255,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 32% at 28% 70%, rgba(149,120,224,0.10) 0%, transparent 60%);
      z-index: -1;
      pointer-events: none;
    }
    .am-cert-hero__inner {
      max-width: 1080px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 56px;
      align-items: center;
    }
    @media (min-width: 880px) {
      .am-cert-hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
    }
    .am-cert-hero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
    .am-cert-hero__brand {
      display: inline-flex; align-items: center; gap: 14px;
      text-decoration: none;
      width: -moz-fit-content; width: fit-content;
      padding: 8px 18px 8px 8px;
      margin-bottom: -4px;
      border-radius: 999px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--amh-border);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .am-cert-hero__brand:hover {
      background: rgba(80,230,255,0.06);
      border-color: rgba(80,230,255,0.30);
      transform: translateY(-1px);
    }
    .am-cert-hero__brand-icon {
      width: 48px; height: 48px;
      border-radius: 11px;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
    }
    .am-cert-hero__brand-name {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 700;
      font-size: 20px;
      letter-spacing: -0.015em;
      color: var(--amh-text);
    }
    .am-cert-hero__eyebrow {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 600;
      font-size: 12px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--amh-muted);
      margin: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .am-cert-hero__eyebrow::before {
      content: '';
      display: inline-block;
      width: 24px; height: 1px;
      background: var(--amh-accent);
    }
    .am-cert-hero__eyebrow-code { color: var(--amh-accent); letter-spacing: 0.12em; }
    .am-cert-hero__lead {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 700;
      font-size: clamp(28px, 4.4vw, 44px);
      line-height: 1.08;
      letter-spacing: -0.02em;
      color: var(--amh-text);
      margin: 0;
    }
    .am-cert-hero__lead-accent {
      background: linear-gradient(135deg, var(--amh-accent) 0%, var(--amh-accent-2) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
    .am-cert-hero__sub {
      font-family: 'DM Sans', system-ui, sans-serif;
      font-weight: 400;
      font-size: clamp(15px, 1.4vw, 17px);
      line-height: 1.55;
      color: var(--amh-muted);
      margin: 0;
    }
    .am-cert-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
    .am-cert-hero__stat {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--amh-border);
      border-radius: 999px;
      font-size: 13px;
      color: var(--amh-text);
    }
    .am-cert-hero__stat-dot {
      display: inline-block;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--amh-cyan);
      box-shadow: 0 0 8px rgba(80,230,255,0.7);
    }
    .am-cert-hero__stat--gold .am-cert-hero__stat-dot { background: var(--amh-gold); box-shadow: 0 0 8px rgba(255,185,0,0.6); }
    .am-cert-hero__stat--purple .am-cert-hero__stat-dot { background: var(--amh-purple); box-shadow: 0 0 8px rgba(149,120,224,0.6); }
    .am-cert-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; align-items: center; }
    .am-cert-hero__cta {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 28px;
      border-radius: 999px;
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 600;
      font-size: 16px;
      line-height: 1;
      color: #050810;
      background: linear-gradient(135deg, var(--amh-accent) 0%, var(--amh-accent-2) 100%);
      text-decoration: none;
      box-shadow: 0 10px 24px rgba(43,136,216,0.35), 0 0 0 1px rgba(80,230,255,0.4) inset;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .am-cert-hero__cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(43,136,216,0.45), 0 0 0 1px rgba(80,230,255,0.6) inset;
    }
    .am-cert-hero__cta-icon { flex-shrink: 0; }
    .am-cert-hero__small { font-size: 12px; color: var(--amh-muted); }
    .am-cert-hero__device {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      perspective: 1600px;
      min-height: 580px;
    }
    .am-cert-hero__badge {
      position: absolute;
      top: 8%; left: 8%;
      z-index: 4;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      background: rgba(17, 24, 39, 0.86);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(80,230,255,0.45);
      border-radius: 999px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 24px rgba(80,230,255,0.16);
      animation: am-cert-hero-badge-float 5.4s ease-in-out infinite;
    }
    .am-cert-hero__badge-glyph { width: 22px; height: 22px; flex-shrink: 0; }
    .am-cert-hero__badge-glyph path { stroke: var(--amh-accent); }
    .am-cert-hero__badge-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
    .am-cert-hero__badge-code {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 700;
      font-size: 15px;
      color: var(--amh-accent);
      letter-spacing: 0.06em;
    }
    .am-cert-hero__badge-name {
      font-family: 'DM Sans', system-ui, sans-serif;
      font-weight: 500;
      font-size: 11px;
      color: var(--amh-text);
      margin-top: 2px;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .am-cert-hero__score-pill {
      position: absolute;
      bottom: 10%; right: 5%;
      z-index: 4;
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 14px 20px;
      background: rgba(17, 24, 39, 0.92);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border: 1px solid var(--amh-border);
      border-radius: 16px;
      box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 28px rgba(80,230,255,0.12);
      animation: am-cert-hero-pill-float 6.2s ease-in-out infinite;
      animation-delay: -2.1s;
    }
    .am-cert-hero__score-pill-label {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 600;
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--amh-muted);
    }
    .am-cert-hero__score-pill-value {
      font-family: 'Outfit', system-ui, sans-serif;
      font-weight: 700;
      font-size: 22px;
      color: var(--amh-accent);
      letter-spacing: -0.01em;
    }
    .am-cert-hero__score-pill-margin { font-size: 13px; color: var(--amh-muted); font-weight: 500; margin-left: 2px; }
    .am-cert-hero__score-pill-delta { font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; color: #20C020; }
    .am-cert-hero__phone-wrap {
      position: relative;
      transform-style: preserve-3d;
      transform: perspective(1400px) rotateY(-12deg) rotateX(-3deg);
      filter: drop-shadow(0 50px 70px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(80,230,255,0.10));
      animation: am-cert-hero-float 6s ease-in-out infinite;
    }
    .am-cert-hero__phone-frame {
      width: 280px; height: 580px;
      border-radius: 50px;
      background: linear-gradient(160deg, #2a2a2e 0%, #1c1c1f 30%, #111113 60%, #232325 85%, #2a2a2e 100%);
      border: 1.5px solid rgba(255,255,255,0.14);
      position: relative;
      overflow: hidden;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        inset 1px 0 rgba(255,255,255,0.06),
        inset -1px 0 rgba(255,255,255,0.06);
    }
    @media (min-width: 880px) {
      .am-cert-hero__phone-frame { width: 320px; height: 660px; border-radius: 54px; }
    }
    .am-cert-hero__phone-frame::before {
      content: '';
      position: absolute;
      inset: 6px;
      border-radius: 44px;
      border: 1px solid rgba(0,0,0,0.5);
      pointer-events: none;
      z-index: 10;
    }
    @media (min-width: 880px) {
      .am-cert-hero__phone-frame::before { border-radius: 48px; }
    }
    .am-cert-hero__phone-frame::after {
      content: '';
      position: absolute;
      left: -2px; top: 110px;
      width: 3px; height: 36px;
      background: rgba(255,255,255,0.15);
      border-radius: 2px 0 0 2px;
      box-shadow: 0 48px 0 rgba(255,255,255,0.15), 0 -48px 0 rgba(255,255,255,0.10);
    }
    .am-cert-hero__phone-screen {
      position: absolute;
      inset: 8px;
      border-radius: 42px;
      background-color: #0A0E1A;
      background-image: url('/images/cap-home-dashboard.webp');
      background-size: cover;
      background-position: center top;
      overflow: hidden;
    }
    @media (min-width: 880px) {
      .am-cert-hero__phone-screen { border-radius: 46px; }
    }
    .am-cert-hero__phone-screen::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 94px; height: 28px;
      border-radius: 14px;
      background: #000;
      z-index: 20;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
    }
    @media (min-width: 880px) {
      .am-cert-hero__phone-screen::before { width: 108px; height: 32px; border-radius: 16px; }
    }
    .am-cert-hero__phone-screen::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 45%, rgba(255,255,255,0.03) 100%);
      border-radius: inherit;
      pointer-events: none;
      z-index: 15;
    }
    /* Exam-specific CTA masking the baked-in "Book your AZ-104 exam" button so each cert page shows its own code */
    .am-cert-hero__cta-overlay {
      position: absolute;
      left: 11.2%;
      right: 6.4%;
      top: 50.7%;
      height: 5.0%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border-radius: 999px;
      background: linear-gradient(95deg, #1FBE43 0%, #33D2A0 50%, #4FE6FC 100%);
      color: #ffffff;
      font-weight: 600;
      font-size: 13px;
      letter-spacing: 0.1px;
      line-height: 1;
      white-space: nowrap;
      z-index: 5;
    }
    .am-cert-hero__cta-overlay-arrow { font-size: 0.9em; font-weight: 600; }
    @media (max-width: 879px) {
      .am-cert-hero__cta-overlay { font-size: 10.5px; top: 50.4%; gap: 3px; }
    }
    /* Exam retirement notice (revealed by JS within the 30-day window) */
    .am-retire-banner {
      max-width: 1080px;
      margin: 24px auto 0;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      padding: 14px 20px;
      background: linear-gradient(90deg, rgba(247,99,12,0.16) 0%, rgba(247,99,12,0.05) 100%);
      border: 1px solid rgba(247,99,12,0.34);
      border-left: 4px solid var(--warning-orange);
      border-radius: var(--radius-lg);
    }
    .am-retire-banner[hidden] { display: none; }
    .am-retire-banner__icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--warning-orange); }
    .am-retire-banner__text { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
    .am-retire-banner__text strong { color: var(--text-primary); font-weight: 600; }
    .am-retire-banner__cta {
      flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
      padding: 9px 17px; border-radius: 999px;
      background: var(--warning-orange); color: #1c0a00;
      font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
      transition: filter .15s ease, transform .15s ease;
    }
    .am-retire-banner__cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
    @media (max-width: 700px) {
      .am-retire-banner { margin: 16px; padding: 13px 16px; }
      .am-retire-banner__cta { width: 100%; justify-content: center; }
    }
    @keyframes am-cert-hero-float {
      0%, 100% { transform: perspective(1400px) rotateY(-12deg) rotateX(-3deg) translateY(0); }
      50%      { transform: perspective(1400px) rotateY(-12deg) rotateX(-3deg) translateY(-10px); }
    }
    @keyframes am-cert-hero-badge-float {
      0%, 100% { transform: translateY(0); }
      50%      { transform: translateY(-4px); }
    }
    @keyframes am-cert-hero-pill-float {
      0%, 100% { transform: translateY(0); }
      50%      { transform: translateY(-6px); }
    }
    @keyframes am-cert-hero-fade-in {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .am-cert-hero__copy > * {
      opacity: 0;
      animation: am-cert-hero-fade-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    }
    .am-cert-hero__copy > *:nth-child(1) { animation-delay: 0.00s; }
    .am-cert-hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
    .am-cert-hero__copy > *:nth-child(3) { animation-delay: 0.18s; }
    .am-cert-hero__copy > *:nth-child(4) { animation-delay: 0.28s; }
    .am-cert-hero__copy > *:nth-child(5) { animation-delay: 0.38s; }
    .am-cert-hero__copy > *:nth-child(6) { animation-delay: 0.48s; }
    .am-cert-hero__device {
      opacity: 0;
      animation: am-cert-hero-fade-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
    }

    @media (max-width: 879px) {
      .am-cert-hero__device { min-height: 620px; padding-top: 24px; }
      .am-cert-hero__phone-wrap { transform: perspective(1400px) rotateY(-6deg) rotateX(-2deg); }
      @keyframes am-cert-hero-float {
        0%, 100% { transform: perspective(1400px) rotateY(-6deg) rotateX(-2deg) translateY(0); }
        50%      { transform: perspective(1400px) rotateY(-6deg) rotateX(-2deg) translateY(-8px); }
      }
      .am-cert-hero__badge { top: 4%; left: 4%; }
      .am-cert-hero__score-pill { bottom: 4%; right: 4%; }
    }

    @media (prefers-reduced-motion: reduce) {
      .am-cert-hero__phone-wrap,
      .am-cert-hero__badge,
      .am-cert-hero__score-pill { animation: none; }
      .am-cert-hero__copy > *,
      .am-cert-hero__device { opacity: 1; animation: none; }
      * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }
