:root {
  --bg-white: #FFFFFF;
  --bg-off-white: #FAFBFC;
  --bg-light: #F5F9FF;
  --bg-dark: #0A1628;
  --bg-darker: #050B15;

  --accent: #0C8CE9;
  --accent-hover: #0A7AD4;
  --accent-light: #E8F3FC;
  --accent-glow: rgba(12,140,233,0.15);

  --text-dark: #0A1628;
  --text-body: #3C4758;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.75);
  --text-on-dark-subtle: rgba(255,255,255,0.5);

  --border: #E5E7EB;
  --border-light: #F0F2F5;
  --border-dark: rgba(255,255,255,0.1);

  --radius-btn: 8px;
  --radius-card: 16px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(10,22,40,0.06);
  --shadow-md: 0 8px 24px rgba(10,22,40,0.08);
  --shadow-lg: 0 16px 48px rgba(10,22,40,0.12);
  --shadow-xl: 0 32px 80px rgba(10,22,40,0.18);
  --shadow-glow: 0 0 40px rgba(12,140,233,0.2);

  --level-beginner: #29CC57;
  --level-autonomous: #0C8CE9;
  --level-expert: #F59E0B;
}

/* ===========================================
   WCAG CONTRAST OVERRIDES (page-scoped via :has)
   Only applied when our page is loaded — does not affect other site pages
   =========================================== */
/* Footer: darken from #3AACE3 (2.5:1 fail) to #155B85 (7:1 pass) */
body:has(.frp-page) footer {
  background-color: #155B85 !important;
}
/* My Space button: darken text/border from #3AACE3 to #155B85 for white bg */
body:has(.frp-page) .btn-login {
  color: #155B85 !important;
  border-color: #155B85 !important;
}

/* Scoped reset — only inside .frp-page, does not affect site header/footer */
.frp-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
  background: var(--bg-white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
.frp-page *, .frp-page *::before, .frp-page *::after { box-sizing: border-box; }
.frp-page img, .frp-page svg { display: block; max-width: 100%; }
.frp-page a { text-decoration: none; color: inherit; }
.frp-page button { font-family: inherit; cursor: pointer; }

/* Header/footer styles are handled by the site layout — not included here */

/* ===========================================
   BUTTONS
   =========================================== */
.frp-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.1px;
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}
.frp-page .btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(12,140,233,0.35);
}
.frp-page .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(12,140,233,0.45);
}
.frp-page .btn-outline {
  background: transparent !important;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.frp-page .btn-outline:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.6);
}
.btn-large {
  height: 58px;
  padding: 0 36px;
  font-size: 16px;
}
.btn svg { width: 18px; height: 18px; }

/* ===========================================
   HERO -- CINEMATIC SPLIT (V2: compact, no card overlay)
   =========================================== */
.hero {
  position: relative;
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: 120px 0 80px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/testimage-hero.webp') center center / cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,11,21,0.9) 0%, rgba(5,11,21,0.7) 40%, rgba(5,11,21,0.45) 75%, rgba(5,11,21,0.3) 100%),
    linear-gradient(180deg, rgba(5,11,21,0.45) 0%, rgba(5,11,21,0.15) 30%, rgba(5,11,21,0.15) 70%, rgba(5,11,21,0.75) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12,140,233,0.15);
  border: 1px solid rgba(12,140,233,0.3);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  text-align: left;
}
.highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: rgba(12,140,233,0.18);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
  font-weight: 400;
}
.hero-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0;
  width: 100%;
  gap: 0;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-dark);
}
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--text-on-dark-subtle);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 14px; width: 100%; }
.hero-actions .btn { flex: 1; }

/* V3: micro-line under stats */
.frp-page .hero-microline {
  display: block !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.6) !important;
  font-style: italic !important;
  margin: -8px 0 24px 0 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.5 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Hero visual -- V2: Arthur filming, capped to content height */
.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  background: var(--bg-darker);
  height: 520px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
}

/* ===========================================
   SECTIONS (V2: reduced padding)
   =========================================== */
.section { padding: 72px 0; }
.section-light { background: var(--bg-white); }
.section-tinted { background: var(--bg-off-white); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-dark .section-title { color: var(--text-on-dark); }
.section-sub {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 640px;
}
.section-dark .section-sub { color: var(--text-on-dark-muted); }
.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* ===========================================
   ALTERNATING SECTION
   =========================================== */
.alt-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.alt-text-block { max-width: 540px; }
.alt-list {
  list-style: none;
  margin-top: 24px;
}
.alt-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}
.section-dark .alt-list li { color: var(--text-on-dark-muted); }
.alt-list-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.section-dark .alt-list-check {
  background: rgba(12,140,233,0.2);
  color: var(--accent);
}
.alt-list-check svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 3; fill: none; }
.alt-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 420px;
}
.alt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================
   LESSONS LIST (V2: compact cards)
   =========================================== */
/* V3: lessons intro + outro */
.frp-page .lessons-intro {
  display: block !important;
  font-size: 14px !important;
  color: #0C8CE9 !important;
  font-weight: 600 !important;
  font-style: italic !important;
  margin: 12px 0 0 0 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.5 !important;
  font-family: 'Inter', sans-serif !important;
}
.frp-page .lessons-outro {
  display: block !important;
  max-width: 720px !important;
  margin: 48px auto 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  color: #3C4758 !important;
  line-height: 1.6 !important;
  font-style: italic !important;
  padding: 24px 32px !important;
  border-top: 1px solid #F0F2F5 !important;
  font-family: 'Inter', sans-serif !important;
}

.lessons-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lesson-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.lesson-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.lesson-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.lesson-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.lesson-card-meta {
  flex: 1;
  min-width: 0;
}
.lesson-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.lesson-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.lesson-pill.beginner { background: rgba(41,204,87,0.12); color: var(--level-beginner); }
.lesson-pill.autonomous { background: rgba(12,140,233,0.12); color: var(--level-autonomous); }
.lesson-pill.expert { background: rgba(245,158,11,0.12); color: var(--level-expert); }
.lesson-pill.duration { background: var(--bg-light); color: var(--text-muted); }
.lesson-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.lesson-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Vimeo embed — direct iframe with Vimeo's own thumbnail (dynamic) */
.vimeo-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-darker);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vimeo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================================
   ROD SECTION (V2: circle photo, compact, credibility)
   =========================================== */
.section-dark.cinematic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/Canyon-de-Estat-0.webp') center center / cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}
.section-dark.cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-dark) 0%, rgba(10,22,40,0.95) 35%, rgba(10,22,40,0.4) 65%, transparent 100%),
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, transparent 20%, transparent 80%, rgba(10,22,40,0.6) 100%);
  z-index: 1;
}
.section-dark.cinematic-bg .container {
  position: relative;
  z-index: 2;
}

/* V2: Rod compact layout — circle photo left, text right */
.rod-compact {
  display: flex;
  align-items: center;
  gap: 48px;
}
.rod-portrait-circle {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.1), 0 0 60px rgba(12,140,233,0.2);
}
.rod-portrait-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rod-text-block {
  flex: 1;
}
.rod-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 4px;
}
.rod-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.rod-bio {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  max-width: 520px;
}
.rod-stats-inline {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}
.rod-stats-inline .rod-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 4px;
}
.rod-stats-inline .rod-stat-label {
  font-size: 11px;
  color: var(--text-on-dark-subtle);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* ===========================================
   PROGRESSION VISUAL (V2: slightly larger descriptions)
   =========================================== */
.progression {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.prog-step {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.prog-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prog-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.prog-bar.beginner { background: var(--level-beginner); }
.prog-bar.autonomous { background: var(--level-autonomous); }
.prog-bar.expert { background: var(--level-expert); }
.prog-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.prog-step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.prog-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================
   FINAL CTA -- CINEMATIC (V2: compact)
   =========================================== */
.final-cta {
  position: relative;
  padding: 100px 0;
  color: var(--text-on-dark);
  overflow: hidden;
  text-align: center;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/joinus.webp') center/cover no-repeat;
  z-index: 0;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,11,21,0.92) 0%, rgba(10,22,40,0.85) 50%, rgba(12,140,233,0.5) 100%);
  z-index: 1;
}
.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.final-cta-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(12,140,233,0.15);
  border: 1px solid rgba(12,140,233,0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}
.final-cta-sub {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.final-cta .btn-primary {
  background: #FFFFFF;
  color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.final-cta .btn-primary:hover {
  background: var(--accent-light);
}
.final-cta-mention {
  font-size: 13px;
  color: var(--text-on-dark-subtle);
  letter-spacing: 0.3px;
}

/* Footer styles handled by the site layout */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .progression { grid-template-columns: 1fr; }
  /* Footer responsive already handled below */
  /* Tablet: hero CTA side by side */
  .hero-actions { display: flex; flex-direction: row; gap: 12px; }
  .hero-actions .btn { flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  /* Header handled by site layout */
  /* Mobile: tighter top + bottom padding so the whole hero fits in
     the viewport without scrolling. */
  .hero { padding: 56px 0 32px; min-height: auto; }
  /* V3: show Arthur filming on mobile too, lighter overlay */
  .hero::before { background: url('/images/testimage-hero-mobile.webp') center center / cover no-repeat; opacity: 0.85; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: block; height: 280px; order: -1; }
  /* Anchor the crop to the top so Arthur (filming at top of source
     image) stays in frame, with the canyoner still visible below. */
  .hero-visual img { object-position: center 15%; }
  /* Hero stats: keep grid on mobile */
  .hero-stats { border-radius: 10px; }
  .hero-stat { padding: 16px 8px; }
  .hero-stat-num { font-size: 20px; }
  .hero-stat-label { font-size: 9px; letter-spacing: 0.5px; }
  .alt-section { grid-template-columns: 1fr; gap: 40px; }
  .alt-image { height: auto; aspect-ratio: 4/3; }
  .section { padding: 56px 0; }
  /* Lesson cards: align number + pills on same row */
  .lesson-card { padding: 20px; }
  .lesson-card-head { flex-direction: row; align-items: center; gap: 14px; }
  .lesson-number { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .lesson-pills { margin-bottom: 4px; }
  .vimeo-embed { aspect-ratio: 16/9; }
  /* Rod: column layout but stats stay horizontal, better bg */
  .section-dark.cinematic-bg::before { background: url('/images/learnwithus.webp') center center / cover no-repeat; opacity: 0.25; }
  .rod-compact { flex-direction: column; text-align: center; gap: 28px; }
  .rod-bio { margin: 0 auto; }
  .rod-stats-inline { display: flex; flex-direction: row; justify-content: center; gap: 28px; }
  .final-cta { padding: 72px 0; }
}
@media (max-width: 600px) {
  /* Footer handled by site layout */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  /* Stats compact on phone */
  .hero-stat { padding: 14px 6px; }
  .hero-stat-num { font-size: 17px; }
  .hero-stat-label { font-size: 8px; }
  /* Rod stats: stay horizontal */
  .rod-stats-inline { flex-direction: row; gap: 20px; }
  .rod-stats-inline .rod-stat-num { font-size: 20px; }
  .rod-stats-inline .rod-stat-label { font-size: 10px; }
  .container { padding: 0 20px; }
  .lesson-title { font-size: 18px; }
  /* Header/footer handled by site layout */
}
