/**
 * Learn page — Interactive explainer with adaptive content
 * Depends on theme.css and landing.css
 */

/* ------------------------------------------------------------------ */
/* Hero Section — Split layout matching homepage                       */
/* ------------------------------------------------------------------ */

.learn-hero {
  min-height: auto;
  padding: 7.5rem 0 4rem;
  background: var(--bp-bg, #f7f6f3);
  position: relative;
  overflow: hidden;
}

.learn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(26, 115, 232, 0.04) 0%, transparent 35%);
  pointer-events: none;
}

.learn-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.learn-hero-content {
  position: relative;
  z-index: 1;
}

.learn-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--bp-text);
  margin: 0 0 1rem;
}

.learn-hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--bp-muted);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

.learn-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.learn-hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bp-text);
}

.learn-hero-feature i {
  color: var(--bp-primary);
  font-size: 0.9rem;
}

.learn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learn-hero-cta i {
  font-size: 0.9rem;
  animation: learn-bounce 2s ease-in-out infinite;
}

@keyframes learn-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Hero Visual — Journey preview */
.learn-hero-visual {
  display: flex;
  justify-content: center;
}

.learn-hero-journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl, 1rem);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

.learn-hero-journey-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md, 0.5rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learn-hero-journey-step:hover {
  transform: translateX(4px);
}

.learn-hero-journey-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bp-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.learn-hero-journey-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bp-text);
}

.learn-hero-journey-arrow {
  color: var(--bp-border);
  font-size: 0.75rem;
}

.learn-hero-journey-step--result {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.04) 100%);
  border-color: rgba(26, 115, 232, 0.2);
}

.learn-hero-journey-step--result i {
  color: var(--bp-primary);
  font-size: 1.1rem;
}

.learn-hero-journey-step--result .learn-hero-journey-text {
  color: var(--bp-primary);
}

/* ------------------------------------------------------------------ */
/* Section Layout                                                      */
/* ------------------------------------------------------------------ */

.learn-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: #fff;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.learn-section[hidden] {
  display: none;
}

.learn-section:nth-child(even) {
  background: var(--bp-bg);
}

.learn-section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.learn-section-lead {
  font-size: 1.05rem;
  color: var(--bp-muted);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Choice Cards                                                        */
/* ------------------------------------------------------------------ */

.learn-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto 2rem;
}

.learn-choice-grid--single {
  grid-template-columns: repeat(2, 1fr);
  max-width: 42rem;
}

.learn-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 2px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  cursor: pointer;
  transition: 
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.learn-choice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bp-primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.learn-choice:hover {
  transform: translateY(-2px);
  border-color: #c5d9f8;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.1);
}

.learn-choice:focus-visible {
  outline: 2px solid var(--bp-primary);
  outline-offset: 2px;
}

.learn-choice[aria-pressed="true"] {
  border-color: var(--bp-primary);
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
}

.learn-choice[aria-pressed="true"]::before {
  transform: scaleX(1);
}

.learn-choice[aria-pressed="true"] .learn-choice-icon {
  background: var(--bp-primary);
  color: #fff;
  transform: scale(1.08);
}

.learn-choice-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bp-bg);
  color: var(--bp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.learn-choice-icon--success {
  background: rgba(15, 157, 88, 0.12);
  color: var(--bp-success);
}

.learn-choice[aria-pressed="true"] .learn-choice-icon--success {
  background: var(--bp-success);
  color: #fff;
}

.learn-choice-label {
  font-size: 1rem;
  font-weight: 650;
  color: var(--bp-text);
  letter-spacing: -0.02em;
}

.learn-choice-desc {
  font-size: 0.85rem;
  color: var(--bp-muted);
  line-height: 1.4;
}

.learn-choice--wide {
  flex-direction: row;
  text-align: left;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
}

.learn-choice--wide .learn-choice-icon {
  flex-shrink: 0;
}

.learn-choice--wide .learn-choice-label,
.learn-choice--wide .learn-choice-desc {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Navigation Buttons                                                  */
/* ------------------------------------------------------------------ */

.learn-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.learn-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.learn-next-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.learn-back-btn {
  color: var(--bp-muted);
}

/* ------------------------------------------------------------------ */
/* GBP Explainer Visual — Premium Phone Mockup                         */
/* ------------------------------------------------------------------ */

.learn-gbp-explainer {
  width: 17rem;
  margin: 0 auto 2.5rem;
}

/* Phone frame — iPhone/Samsung premium style */
.learn-gbp-device {
  margin: 0;
  position: relative;
}

.learn-gbp-device-bezel {
  position: relative;
  background: linear-gradient(145deg, #1c1c1e 0%, #0a0a0a 50%, #1c1c1e 100%);
  border-radius: 2.75rem;
  padding: 0.5rem;
  box-shadow:
    /* Outer glow */
    0 2rem 4rem rgba(0, 0, 0, 0.4),
    0 0.75rem 1.5rem rgba(0, 0, 0, 0.3),
    /* Frame edge highlights */
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    /* Titanium/metal edge */
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Power button on right */
.learn-gbp-device-bezel::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 7.5rem;
  width: 3px;
  height: 2.25rem;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 50%, #3a3a3c 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Silent switch on left */
.learn-gbp-device-bezel::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 5.5rem;
  width: 3px;
  height: 1.5rem;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 50%, #3a3a3c 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Volume buttons on left */
.learn-gbp-device::before,
.learn-gbp-device::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 50%, #3a3a3c 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.learn-gbp-device::before {
  top: 7.5rem;
  height: 2.25rem;
}

.learn-gbp-device::after {
  top: 10.5rem;
  height: 2.25rem;
}

/* Dynamic Island (iPhone 14+ style) */
.learn-gbp-device-notch {
  position: relative;
  width: 5.5rem;
  height: 1.65rem;
  margin: 0.35rem auto 0.5rem;
  background: #000;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Front camera lens */
.learn-gbp-device-notch::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: radial-gradient(circle at 35% 35%, #1c3a5c 0%, #0a1628 60%, #000 100%);
  border-radius: 50%;
  box-shadow: 
    inset 0 0 2px rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Face ID sensors indicator */
.learn-gbp-device-notch::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  width: 0.28rem;
  height: 0.28rem;
  background: radial-gradient(circle, #1a1a2e 0%, #000 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.learn-gbp-device-screen {
  position: relative;
  background: #f8f9fa;
  border-radius: 2.25rem;
  overflow: hidden;
  padding: 0.5rem 0.55rem 1.25rem;
  /* Subtle screen glass effect */
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}

/* Home indicator bar */
.learn-gbp-device-screen::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6.5rem;
  height: 0.28rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0.2rem;
}

/* Search bar */
.learn-gbp-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 2rem;
  padding: 0.55rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.learn-gbp-search-icon {
  color: #5f6368;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.learn-gbp-search-text {
  flex: 1;
  font-size: 0.9rem;
  color: #202124;
  font-family: Roboto, Arial, sans-serif;
}

.learn-gbp-search-cursor {
  width: 2px;
  height: 1.1rem;
  background: #4285f4;
  animation: learn-cursor-blink 1s step-end infinite;
}

@keyframes learn-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* GBP Panel */
.learn-gbp-panel {
  background: #fff;
  border-radius: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  font-family: Roboto, Arial, sans-serif;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.learn-gbp-panel-header {
  margin-bottom: 0.85rem;
}

.learn-gbp-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.learn-gbp-panel-name {
  font-size: 1.35rem;
  font-weight: 400;
  color: #202124;
  line-height: 1.25;
  letter-spacing: 0;
}

.learn-gbp-panel-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #5f6368;
  font-size: 1rem;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.learn-gbp-panel-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.learn-gbp-rating-score {
  font-weight: 500;
  color: #202124;
}

.learn-gbp-rating-stars {
  color: #fbbc04;
  letter-spacing: -1px;
  font-size: 0.95rem;
}

.learn-gbp-rating-count {
  color: #1a73e8;
  font-size: 0.875rem;
}

.learn-gbp-panel-category {
  font-size: 0.875rem;
  color: #5f6368;
  margin: 0;
}

/* Action pills */
.learn-gbp-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.learn-gbp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a73e8;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

.learn-gbp-pill i {
  font-size: 0.8rem;
}

.learn-gbp-pill-more {
  color: #5f6368;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

/* Book online button */
.learn-gbp-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: Roboto, Arial, sans-serif;
  color: #fff;
  background: #1a73e8;
  border: none;
  border-radius: 1.75rem;
  cursor: default;
  animation: learn-book-pulse 2.2s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}

.learn-gbp-book-btn i {
  font-size: 1.1rem;
}

@keyframes learn-book-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
  }
}

/* Divider */
.learn-gbp-divider {
  border: 0;
  border-top: 1px solid #e8eaed;
  margin: 1rem 0 0.85rem;
}

/* Details */
.learn-gbp-details {
  margin: 0;
}

.learn-gbp-detail {
  display: flex;
  gap: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.learn-gbp-detail dt {
  font-weight: 500;
  color: #202124;
  flex-shrink: 0;
  margin: 0;
}

.learn-gbp-detail dd {
  margin: 0;
  color: #202124;
}

.learn-gbp-phone {
  color: #1a73e8;
}

.learn-gbp-open {
  color: #188038;
  font-weight: 500;
}

/* Caption */
.learn-gbp-caption {
  margin: 1rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6c757d;
  text-align: center;
}

.learn-gbp-caption strong {
  color: #5f6368;
}

.learn-gbp-disclaimer {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: #9aa0a6;
}

@media (max-width: 575.98px) {
  .learn-gbp-explainer {
    width: 15rem;
  }

  .learn-gbp-device-bezel {
    padding: 0.4rem;
    border-radius: 2.25rem;
  }

  .learn-gbp-device-notch {
    width: 4.5rem;
    height: 1.4rem;
  }

  .learn-gbp-device-notch::before {
    width: 0.4rem;
    height: 0.4rem;
  }

  .learn-gbp-device-screen {
    border-radius: 1.85rem;
    padding: 0.4rem 0.45rem 1rem;
  }

  .learn-gbp-device-screen::after {
    width: 5.5rem;
    height: 0.25rem;
    bottom: 0.35rem;
  }

  /* Hide side buttons on mobile */
  .learn-gbp-device::before,
  .learn-gbp-device::after,
  .learn-gbp-device-bezel::before,
  .learn-gbp-device-bezel::after {
    display: none;
  }

  .learn-gbp-panel {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .learn-gbp-panel-name {
    font-size: 1.05rem;
  }

  .learn-gbp-book-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 1.35rem;
  }

  .learn-gbp-search {
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.55rem;
  }

  .learn-gbp-search-text {
    font-size: 0.8rem;
  }

  .learn-gbp-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-gbp-search-cursor,
  .learn-gbp-book-btn {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Results Section                                                     */
/* ------------------------------------------------------------------ */

.learn-results {
  background: linear-gradient(180deg, #fff 0%, var(--bp-bg) 100%);
  min-height: auto;
  padding-bottom: 4rem;
}

.learn-results .learn-section-header {
  max-width: 42rem;
}

.learn-results-title {
  margin-bottom: 0.75rem;
}

.learn-results-lead {
  margin-bottom: 0;
}

/* Journey Blocks */
.learn-journey-block {
  max-width: 60rem;
  margin: 0 auto 2.5rem;
  padding: 2rem;
  border-radius: var(--bp-radius-xl);
  background: #fff;
  border: 1px solid var(--bp-border);
}

.learn-journey-header {
  text-align: center;
  margin-bottom: 2rem;
}

.learn-journey-header h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
  color: var(--bp-text);
}

.learn-journey-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learn-journey-badge--problem {
  background: rgba(234, 67, 53, 0.1);
  color: #c5221f;
}

.learn-journey-badge--solution {
  background: rgba(15, 157, 88, 0.1);
  color: #0f9d58;
}

/* Flow Visualization */
.learn-journey-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.learn-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-width: 6.5rem;
  max-width: 8rem;
  text-align: center;
  border-radius: var(--bp-radius-md);
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  opacity: 0;
  transform: translateY(12px);
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.learn-journey-flow.is-animated .learn-flow-step {
  opacity: 1;
  transform: translateY(0);
  animation: learn-flow-step-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes learn-flow-step-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.learn-flow-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--bp-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--bp-border);
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.learn-flow-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--bp-text);
  line-height: 1.25;
}

.learn-flow-sublabel {
  font-size: 0.72rem;
  color: var(--bp-muted);
  line-height: 1.3;
}

.learn-flow-dropoff {
  font-size: 0.68rem;
  font-weight: 600;
  color: #c5221f;
  background: rgba(234, 67, 53, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
}

.learn-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9c6be;
  font-size: 0.85rem;
  padding: 0 0.15rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.learn-journey-flow.is-animated .learn-flow-arrow {
  opacity: 1;
  transform: translateX(0);
  animation: learn-arrow-in 0.35s ease forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 200ms);
}

@keyframes learn-arrow-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Step variants */
.learn-flow-step--dropoff {
  background: rgba(234, 67, 53, 0.03);
  border-color: rgba(234, 67, 53, 0.15);
}

.learn-flow-step--dropoff .learn-flow-icon {
  color: #c5221f;
  border-color: rgba(234, 67, 53, 0.25);
}

.learn-flow-step--end {
  background: rgba(234, 67, 53, 0.05);
  border-color: rgba(234, 67, 53, 0.2);
}

.learn-flow-step--end .learn-flow-icon {
  background: rgba(234, 67, 53, 0.1);
  color: #c5221f;
  border-color: rgba(234, 67, 53, 0.3);
}

/* Solution flow variants */
.learn-flow-step--highlight {
  background: #fff;
  border-color: var(--bp-border);
}

.learn-flow-step--highlight .learn-flow-icon {
  color: var(--bp-primary);
}

.learn-flow-step--accent {
  background: linear-gradient(145deg, #f0f7ff 0%, #e3eefa 100%);
  border-color: #c5d9f8;
}

.learn-flow-step--accent .learn-flow-icon {
  background: var(--bp-primary);
  color: #fff;
  border-color: var(--bp-primary);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

.learn-flow-arrow--accent {
  color: var(--bp-primary);
}

.learn-flow-step--success {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #a5d6a7;
}

.learn-flow-step--success .learn-flow-icon {
  background: var(--bp-success);
  color: #fff;
  border-color: var(--bp-success);
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.25);
}

.learn-flow-arrow--success {
  color: var(--bp-success);
}

/* Pulse animation for accent steps */
.learn-journey-flow--solution.is-animated .learn-flow-step--accent .learn-flow-icon {
  animation: learn-icon-pulse 2s ease-in-out 1s infinite;
}

@keyframes learn-icon-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
  }
}

/* Journey insight */
.learn-journey-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(251, 188, 5, 0.08);
  border: 1px solid rgba(251, 188, 5, 0.2);
  border-radius: var(--bp-radius-md);
  font-size: 0.95rem;
  color: var(--bp-text);
}

.learn-journey-insight i {
  color: #b06000;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.learn-journey-insight--success {
  background: rgba(15, 157, 88, 0.06);
  border-color: rgba(15, 157, 88, 0.2);
}

.learn-journey-insight--success i {
  color: var(--bp-success);
}

/* Problem block styling */
.learn-journey-problem {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-color: rgba(234, 67, 53, 0.15);
}

/* Solution block styling */
.learn-journey-solution {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: rgba(26, 115, 232, 0.2);
  box-shadow: 0 12px 40px rgba(26, 115, 232, 0.08);
}

/* ------------------------------------------------------------------ */
/* Key Points                                                          */
/* ------------------------------------------------------------------ */

.learn-key-points {
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.learn-key-points h3 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--bp-text);
}

.learn-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.learn-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.learn-point.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.learn-point-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.1);
  color: var(--bp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.learn-point-icon--success {
  background: rgba(15, 157, 88, 0.1);
  color: var(--bp-success);
}

.learn-point-icon--warning {
  background: rgba(251, 188, 5, 0.15);
  color: #b06000;
}

.learn-point-content h4 {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  color: var(--bp-text);
}

.learn-point-content p {
  font-size: 0.88rem;
  color: var(--bp-muted);
  margin: 0;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* CTA Block                                                           */
/* ------------------------------------------------------------------ */

.learn-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--bp-primary) 0%, #1557b0 100%);
  border-radius: var(--bp-radius-xl);
  color: #fff;
  box-shadow: 0 16px 48px rgba(26, 115, 232, 0.25);
}

.learn-cta-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.learn-cta-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
}

.learn-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.learn-cta-actions .btn-primary {
  background: #fff;
  color: var(--bp-primary);
  border-color: #fff;
}

.learn-cta-actions .btn-primary:hover {
  background: #f0f7ff;
  border-color: #f0f7ff;
}

.learn-cta-actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.learn-cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.learn-cta-badge {
  flex-shrink: 0;
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--bp-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.learn-cta-badge-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.learn-cta-badge-price {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.learn-cta-badge-note {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

/* ------------------------------------------------------------------ */
/* Restart Button                                                      */
/* ------------------------------------------------------------------ */

.learn-restart {
  text-align: center;
  padding-top: 1rem;
}

.learn-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: transparent;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bp-muted);
  cursor: pointer;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.learn-restart-btn:hover {
  background: var(--bp-bg);
  border-color: #d0ccc4;
  color: var(--bp-text);
}

/* ------------------------------------------------------------------ */
/* Section Transitions                                                 */
/* ------------------------------------------------------------------ */

.learn-section.is-entering {
  animation: learn-section-enter 0.5s ease forwards;
}

@keyframes learn-section-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
  .learn-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-journey-flow {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem 0.5rem 1.5rem;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .learn-flow-step {
    flex: 0 0 auto;
    min-width: 5.5rem;
  }

  .learn-flow-arrow {
    margin-top: 1.5rem;
    padding: 0 0.1rem;
  }

  .learn-cta-block {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .learn-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .learn-hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .learn-hero-lead {
    max-width: none;
  }

  .learn-hero-features {
    justify-content: center;
  }

  .learn-hero-journey {
    max-width: 20rem;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .learn-hero {
    padding: 6.5rem 0 2.5rem;
  }

  .learn-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .learn-hero-features {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .learn-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .learn-hero-journey {
    padding: 1.5rem 1.25rem;
  }

  .learn-hero-journey-step {
    padding: 0.75rem 0.85rem;
  }

  .learn-choice-grid,
  .learn-choice-grid--single {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }

  .learn-choice--wide {
    flex-direction: column;
    text-align: center;
  }

  .learn-nav-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .learn-nav-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .learn-journey-block {
    padding: 1.5rem 1rem;
  }

  .learn-flow-step {
    min-width: 5rem;
    padding: 0.75rem 0.5rem;
  }

  .learn-flow-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }

  .learn-flow-label {
    font-size: 0.72rem;
  }

  .learn-flow-sublabel,
  .learn-flow-dropoff {
    font-size: 0.65rem;
  }

  .learn-points-grid {
    grid-template-columns: 1fr;
  }

  .learn-cta-badge {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .learn-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .learn-gbp-mockup {
    font-size: 0.9em;
  }

  .learn-gbp-result-actions {
    flex-direction: column;
  }

  .learn-gbp-action {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ */
/* Reduced Motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .learn-hero-cta i,
  .learn-journey-flow--solution.is-animated .learn-flow-step--accent .learn-flow-icon {
    animation: none;
  }

  .learn-flow-step,
  .learn-flow-arrow,
  .learn-point {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .learn-journey-flow.is-animated .learn-flow-step,
  .learn-journey-flow.is-animated .learn-flow-arrow {
    animation: none;
  }

  .learn-choice:hover {
    transform: none;
  }

  .learn-section.is-entering {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
