/* =========================================================
   APP PAGE V2
   Learning Rewired Lab
   Page-specific styling only
   Header and footer are injected by shared JS
   ========================================================= */

.app-page-v2 {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(87, 112, 255, 0.10), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(19, 186, 174, 0.10), transparent 30%),
    #ffffff;
  color: #080b12;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-page-v2 *,
.app-page-v2 *::before,
.app-page-v2 *::after {
  box-sizing: border-box;
}

.app-hero-section,
.app-position-section,
.app-preview-section,
.app-ecosystem-section,
.app-roadmap-section,
.app-final-cta-section {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.app-hero-inner,
.app-preview-shell,
.app-roadmap-shell,
.app-final-cta-card {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.app-position-inner,
.app-ecosystem-inner {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.app-eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3159f5;
}

/* Hero */

.app-hero-section {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 124px);
}

.app-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.app-hero-copy h1,
.app-section-header h2,
.app-preview-copy h2,
.app-roadmap-copy h2,
.app-final-cta-card h2 {
  margin: 0;
  color: #07111f;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.app-hero-copy h1 {
  max-width: 850px;
  font-size: clamp(3.15rem, 6.15vw, 6.05rem);
  padding-bottom: 0.12em;
  overflow: visible;
}

.app-hero-copy h1 span,
.app-section-header h2 span,
.app-preview-copy h2 span,
.app-roadmap-copy h2 span,
.app-final-cta-card h2 span {
  display: block;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, #1c4cff 0%, #6c3cff 46%, #00a99d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-hero-intro {
  max-width: 690px;
  margin: 28px 0 0;
  color: #4e5a6d;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.72;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.app-btn:hover {
  transform: translateY(-2px);
}

.app-btn-primary {
  color: #ffffff;
  background: linear-gradient(100deg, #1d4cff 0%, #6845ff 56%, #00a99d 120%);
  box-shadow: 0 18px 44px rgba(29, 76, 255, 0.24);
}

.app-btn-secondary {
  color: #101827;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 24, 39, 0.13);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.app-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.app-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(49, 89, 245, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #344154;
  font-size: 0.84rem;
  font-weight: 760;
}

/* Phone visual */

.app-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-hero-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(49, 89, 245, 0.18), transparent 58%),
    radial-gradient(circle at 75% 25%, rgba(0, 169, 157, 0.16), transparent 44%);
  filter: blur(4px);
  z-index: 0;
}

.app-phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  min-height: 690px;
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(145deg, #101827, #111b31);
  box-shadow:
    0 32px 90px rgba(12, 20, 38, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-phone-top {
  display: flex;
  justify-content: center;
  height: 28px;
}

.app-phone-top span {
  width: 86px;
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.app-phone-screen {
  min-height: 620px;
  padding: 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 111, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  overflow: hidden;
}

.app-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.app-screen-header p {
  margin: 0;
  color: #677287;
  font-size: 0.83rem;
  font-weight: 850;
}

.app-screen-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #0d1628;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.app-screen-card {
  border-radius: 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
}

.app-screen-card-featured {
  background:
    linear-gradient(145deg, rgba(29, 76, 255, 0.96), rgba(102, 67, 255, 0.92)),
    #1d4cff;
  color: #ffffff;
}

.app-screen-label {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

.app-screen-card h2 {
  margin: 0;
  font-size: 1.58rem;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.app-screen-card p:last-child {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.app-screen-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.app-screen-list div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 24, 39, 0.08);
  color: #273245;
  font-size: 0.9rem;
  font-weight: 760;
}

.app-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4cff, #00a99d);
}

.app-screen-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  border-radius: 999px;
  background: #101827;
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 850;
}

/* Shared sections */

.app-position-section,
.app-preview-section,
.app-ecosystem-section,
.app-roadmap-section,
.app-final-cta-section {
  padding-top: clamp(68px, 8vw, 116px);
  padding-bottom: clamp(68px, 8vw, 116px);
}

.app-section-header {
  max-width: 780px;
  margin: 0 auto clamp(34px, 4vw, 52px);
  text-align: center;
}

.app-section-header h2,
.app-preview-copy h2,
.app-roadmap-copy h2,
.app-final-cta-card h2 {
  font-size: clamp(2.35rem, 4.7vw, 4.6rem);
}

.app-section-header p,
.app-preview-copy p,
.app-roadmap-copy p,
.app-final-cta-card p {
  margin: 22px auto 0;
  color: #526074;
  font-size: 1.04rem;
  line-height: 1.72;
}

/* Cards */

.app-position-grid,
.app-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.app-position-card,
.app-ecosystem-card {
  min-height: 220px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.app-position-card h3,
.app-ecosystem-card h3,
.app-roadmap-list h3 {
  margin: 16px 0 0;
  color: #111827;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.app-position-card p,
.app-ecosystem-card p,
.app-roadmap-list p {
  margin: 12px 0 0;
  color: #5b6678;
  font-size: 0.96rem;
  line-height: 1.65;
}

.app-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4cff, #00a99d);
  font-size: 0.82rem;
  font-weight: 900;
}

/* Store preview */

.app-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(248, 250, 255, 0.94), rgba(255, 255, 255, 0.96)),
    #ffffff;
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
}

.app-feature-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.app-feature-list li {
  position: relative;
  padding-left: 28px;
  color: #293446;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.app-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3159f5, #00a99d);
}

.app-preview-panel {
  display: grid;
  gap: 18px;
}

.app-store-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.app-store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, #1d4cff, #6845ff 54%, #00a99d);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.app-store-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.app-store-card p {
  margin: 7px 0 0;
  color: #5d687a;
  font-size: 0.93rem;
  line-height: 1.45;
}

.app-rating-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-rating-row div {
  padding: 18px;
  border-radius: 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 39, 0.09);
}

.app-rating-row strong,
.app-rating-row span {
  display: block;
}

.app-rating-row strong {
  color: #111827;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.app-rating-row span {
  margin-top: 6px;
  color: #677287;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.app-preview-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-preview-shot {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(160deg, rgba(29, 76, 255, 0.92), rgba(104, 69, 255, 0.88) 56%, rgba(0, 169, 157, 0.82));
  box-shadow: 0 18px 42px rgba(29, 76, 255, 0.15);
}

.app-preview-shot:nth-child(2) {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(160deg, rgba(13, 22, 40, 0.94), rgba(29, 76, 255, 0.84));
}

.app-preview-shot:nth-child(3) {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(160deg, rgba(0, 169, 157, 0.88), rgba(49, 89, 245, 0.86));
}

.app-preview-shot p {
  margin: 0;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* Ecosystem */

.app-card-kicker {
  margin: 0;
  color: #3159f5;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-ecosystem-card.featured {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #101827, #1d4cff 58%, #00a99d 125%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 74px rgba(29, 76, 255, 0.22);
}

.app-ecosystem-card.featured .app-card-kicker,
.app-ecosystem-card.featured h3,
.app-ecosystem-card.featured p {
  color: #ffffff;
}

.app-ecosystem-card.featured p {
  opacity: 0.84;
}

/* Roadmap */

.app-roadmap-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.app-roadmap-list {
  display: grid;
  gap: 16px;
}

.app-roadmap-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.app-roadmap-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: #101827;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-roadmap-list h3 {
  margin-top: 0;
}

/* Final CTA */

.app-final-cta-card {
  padding: clamp(34px, 5vw, 64px);
  border-radius: 42px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 12%, rgba(49, 89, 245, 0.16), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(0, 169, 157, 0.16), transparent 30%),
    linear-gradient(145deg, #f8faff, #ffffff);
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 28px 84px rgba(15, 23, 42, 0.10);
}

.app-final-cta-card p {
  max-width: 720px;
}

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

/* Responsive */

@media (max-width: 980px) {
  .app-hero-inner,
  .app-preview-shell,
  .app-roadmap-shell {
    grid-template-columns: 1fr;
  }

  .app-hero-copy {
    text-align: center;
  }

  .app-hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .app-hero-actions,
  .app-status-row {
    justify-content: center;
  }

  .app-position-grid,
  .app-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .app-preview-copy {
    text-align: center;
  }

  .app-feature-list {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .app-hero-section,
  .app-position-section,
  .app-preview-section,
  .app-ecosystem-section,
  .app-roadmap-section,
  .app-final-cta-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.35rem);
    letter-spacing: -0.058em;
    line-height: 1.04;
    padding-bottom: 0.14em;
  }

  .app-section-header h2,
  .app-preview-copy h2,
  .app-roadmap-copy h2,
  .app-final-cta-card h2 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
    letter-spacing: -0.055em;
    line-height: 1.04;
  }

  .app-hero-actions,
  .app-cta-actions {
    flex-direction: column;
  }

  .app-btn {
    width: 100%;
  }

  .app-phone-shell {
    width: min(100%, 318px);
    min-height: 640px;
  }

  .app-phone-screen {
    min-height: 574px;
    padding: 18px;
  }

  .app-rating-row,
  .app-preview-shot-grid {
    grid-template-columns: 1fr;
  }

  .app-preview-shot {
    min-height: 170px;
  }

  .app-roadmap-list article {
    grid-template-columns: 1fr;
  }
}
