/* =================================================================
   APP PAGE STYLES — css/app.css
   Page-specific styles for the ACSA EPA 608 Study App landing page.
   Loaded alongside css/styles.css to inherit site-wide nav, footer,
   typography, theme variables, and layout utilities.
   ================================================================= */

/* -----------------------------------------------------------------
   APP PAGE — VARIABLES & OVERRIDES
   ----------------------------------------------------------------- */
:root {
  --app-max-width: 1200px;
}

/* -----------------------------------------------------------------
   APP PAGE — LAYOUT WRAPPER
   ----------------------------------------------------------------- */
.app-page {
  padding-top: var(--nav-h, 72px);
}

/* -----------------------------------------------------------------
   HERO
   ----------------------------------------------------------------- */
.app-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background atmosphere */
.app-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,95,150,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(200,151,58,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(26,95,150,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.app-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Theme backgrounds */
[data-theme="dark"] .app-hero { background: var(--navy, #0f1e2e); }
[data-theme="light"] .app-hero { background: var(--navy, #0f1e2e); }

.app-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero content (left side) */
.app-hero__content {
  max-width: 540px;
}

.app-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(200,151,58,0.12);
  border: 1px solid rgba(200,151,58,0.2);
  margin-bottom: 28px;
}

.app-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8973a;
  animation: app-pulse 2s ease-in-out infinite;
}

@keyframes app-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.app-hero__badge-text {
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #c8973a;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.app-hero__kicker {
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #c8973a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.app-hero__title {
  font-family: 'Barlow Condensed', 'Rajdhani', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.app-hero__title em {
  font-style: normal;
  color: #e8c06a;
}

.app-hero__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  color: #a0b4c8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 13px;
}

.app-store-badge:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.app-store-badge svg {
  height: 54px;
  width: auto;
}

/* Hero stats row */
.app-hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.app-hero__meta-item {
  display: flex;
  flex-direction: column;
}

.app-hero__meta-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.app-hero__meta-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  color: #7a8a9a;
  letter-spacing: 0.3px;
}

.app-hero__meta-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* -----------------------------------------------------------------
   PHONE MOCKUP
   ----------------------------------------------------------------- */
.app-hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 620px;
  background: #0f1e2e;
  border-radius: 44px;
  border: 3px solid #2a3e54;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 30px;
  background: #0f1e2e;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-mockup__screen {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 40px;
  overflow: hidden;
  background: #f4f6f9;
}

/* App screen simulation */
.app-sim {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-sim__header {
  background: #0f1e2e;
  padding: 44px 20px 22px;
  border-radius: 0 0 18px 18px;
}

.app-sim__kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #c8973a;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.app-sim__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
}

.app-sim__sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #a0b4c8;
  margin-top: 3px;
}

.app-sim__body {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.app-sim__stats {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.app-sim__stat {
  flex: 1;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid #eef1f5;
}

.app-sim__stat-icon { font-size: 13px; margin-bottom: 3px; }
.app-sim__stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #1e2a38; }
.app-sim__stat-label { font-family: 'Source Sans 3', sans-serif; font-size: 8px; color: #7a8a9a; text-transform: uppercase; letter-spacing: 0.4px; }

.app-sim__section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e2a38;
  margin-bottom: 8px;
}

.app-sim__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #eef1f5;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-sim__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
}

.app-sim__card-icon--core { background: #1a5f96; }
.app-sim__card-icon--type1 { background: #2ecc71; }
.app-sim__card-icon--type2 { background: #e67e22; }
.app-sim__card-icon--type3 { background: #9b59b6; }

.app-sim__card-text h4 { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700; color: #1e2a38; margin: 0 0 2px; }
.app-sim__card-text p { font-family: 'Source Sans 3', sans-serif; font-size: 9px; color: #7a8a9a; margin: 0; }

.app-sim__progress { margin-top: 6px; height: 3px; background: #eef1f5; border-radius: 2px; overflow: hidden; }
.app-sim__progress-bar { height: 100%; background: #c8973a; border-radius: 2px; }

.app-sim__tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px 20px;
  background: #ffffff;
  border-top: 1px solid #eef1f5;
}

.app-sim__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.app-sim__tab-icon { font-size: 16px; }
.app-sim__tab-label { font-family: 'Source Sans 3', sans-serif; font-size: 8px; font-weight: 600; }
.app-sim__tab--active .app-sim__tab-icon,
.app-sim__tab--active .app-sim__tab-label { color: #c8973a; }
.app-sim__tab--inactive .app-sim__tab-icon,
.app-sim__tab--inactive .app-sim__tab-label { color: #c8d0da; }

/* -----------------------------------------------------------------
   FEATURES SECTION
   ----------------------------------------------------------------- */
.app-features {
  padding: 100px 24px;
  max-width: var(--app-max-width);
  margin: 0 auto;
}

.app-features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.app-section-kicker {
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #c8973a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.app-section-title {
  font-family: 'Barlow Condensed', 'Rajdhani', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

[data-theme="dark"] .app-section-title { color: #f4f6f9; }
[data-theme="light"] .app-section-title { color: #1e2a38; }

.app-section-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

[data-theme="dark"] .app-section-desc { color: #c8d0da; }
[data-theme="light"] .app-section-desc { color: #3a4a5a; }

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

.feature-card {
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-card { background: #1a3a5c; border-color: rgba(255,255,255,0.06); }
[data-theme="light"] .feature-card { background: #ffffff; border-color: #eef1f5; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a5f96, #c8973a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

[data-theme="dark"] .feature-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
[data-theme="light"] .feature-card:hover { box-shadow: 0 16px 48px rgba(15,30,46,0.08); }

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__icon--blue { background: rgba(26,95,150,0.12); color: #1a5f96; }
.feature-card__icon--green { background: rgba(42,157,92,0.12); color: #2a9d5c; }
.feature-card__icon--gold { background: rgba(200,151,58,0.12); color: #c8973a; }
.feature-card__icon--purple { background: rgba(155,89,182,0.12); color: #9b59b6; }
.feature-card__icon--navy { background: rgba(15,30,46,0.1); color: #1a3a5c; }
.feature-card__icon--teal { background: rgba(46,139,192,0.12); color: #2e8bc0; }

[data-theme="dark"] .feature-card__icon--navy { background: rgba(255,255,255,0.08); color: #a0b4c8; }

.feature-card__title {
  font-family: 'Rajdhani', 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

[data-theme="dark"] .feature-card__title { color: #f4f6f9; }
[data-theme="light"] .feature-card__title { color: #1e2a38; }

.feature-card__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

[data-theme="dark"] .feature-card__desc { color: #c8d0da; }
[data-theme="light"] .feature-card__desc { color: #3a4a5a; }

/* -----------------------------------------------------------------
   DIVIDER
   ----------------------------------------------------------------- */
.app-divider {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.app-divider__line {
  height: 1px;
}

[data-theme="dark"] .app-divider__line { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
[data-theme="light"] .app-divider__line { background: linear-gradient(90deg, transparent, #c8d0da, transparent); }

/* -----------------------------------------------------------------
   CTA SECTION
   ----------------------------------------------------------------- */
.app-cta {
  padding: 0 24px 100px;
}

.app-cta__card {
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: #0f1e2e;
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(26,95,150,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(200,151,58,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.app-cta__content { position: relative; z-index: 2; }

.app-cta__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.app-cta__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: #a0b4c8;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.app-cta__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-cta__platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #c8d0da;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.app-cta__platform svg { opacity: 0.6; }

/* -----------------------------------------------------------------
   PRIVACY POLICY
   ----------------------------------------------------------------- */
.app-privacy {
  padding: 100px 24px;
  max-width: 840px;
  margin: 0 auto;
}

.app-privacy__header {
  margin-bottom: 48px;
}

.app-privacy__date {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
}

[data-theme="dark"] .app-privacy__date { color: #7a8a9a; }
[data-theme="light"] .app-privacy__date { color: #7a8a9a; }

.app-privacy__section {
  margin-bottom: 36px;
}

.app-privacy__section h3 {
  font-family: 'Rajdhani', 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f5edda;
}

[data-theme="dark"] .app-privacy__section h3 { color: #f4f6f9; border-color: rgba(200,151,58,0.2); }
[data-theme="light"] .app-privacy__section h3 { color: #1e2a38; border-color: #f5edda; }

.app-privacy__section p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

[data-theme="dark"] .app-privacy__section p { color: #c8d0da; }
[data-theme="light"] .app-privacy__section p { color: #3a4a5a; }

.app-privacy__section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.app-privacy__section ul li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

[data-theme="dark"] .app-privacy__section ul li { color: #c8d0da; }
[data-theme="light"] .app-privacy__section ul li { color: #3a4a5a; }

.app-privacy__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8973a;
}

.app-privacy__contact {
  border-radius: 16px;
  padding: 28px;
  border: 1px solid transparent;
  margin-top: 40px;
}

[data-theme="dark"] .app-privacy__contact { background: #1a3a5c; border-color: rgba(255,255,255,0.06); }
[data-theme="light"] .app-privacy__contact { background: #ffffff; border-color: #eef1f5; }

.app-privacy__contact h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

[data-theme="dark"] .app-privacy__contact h3 { color: #f4f6f9; }
[data-theme="light"] .app-privacy__contact h3 { color: #1e2a38; }

.app-privacy__contact p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

[data-theme="dark"] .app-privacy__contact p { color: #c8d0da; }
[data-theme="light"] .app-privacy__contact p { color: #3a4a5a; }

.app-privacy__contact a {
  color: #2e8bc0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-privacy__contact a:hover { color: #1a5f96; }

/* -----------------------------------------------------------------
   SECTION BACKGROUNDS
   ----------------------------------------------------------------- */
[data-theme="dark"] .app-features { background: transparent; }
[data-theme="light"] .app-features { background: transparent; }

[data-theme="dark"] .app-page { background: #0f1e2e; }
[data-theme="light"] .app-page { background: #f4f6f9; }

/* -----------------------------------------------------------------
   SCROLL ANIMATIONS
   ----------------------------------------------------------------- */
.app-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.app-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 968px) {
  .app-hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding: 60px 24px;
  }

  .app-hero__content { max-width: 100%; order: 2; }
  .app-hero__phone { order: 1; }
  .app-hero__desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .app-hero__meta { justify-content: center; }

  .app-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .app-hero__inner { padding: 40px 20px; }
  .phone-mockup { width: 260px; height: 540px; }
  .app-features__grid { grid-template-columns: 1fr; }
  .app-cta__card { padding: 40px 24px; border-radius: 20px; }

  .app-hero__meta { flex-wrap: wrap; gap: 16px; }
  .app-hero__meta-divider { display: none; }
  .app-hero__meta-item { align-items: center; }
}

@media (max-width: 380px) {
  .phone-mockup { width: 240px; height: 500px; }
  .app-sim__header { padding: 38px 16px 18px; }
  .app-sim__title { font-size: 17px; }
  .app-sim__body { padding: 10px; }
}
