/**
 * Event App Promotion Page - Frontend Styles
 * Pixel-perfect match for demo_app_page designs
 */

:root {
  --eapp-primary: #ff6d09;
  --eapp-primary-hover: #e65e00;
  --eapp-bg-card: #ffffff;
  --eapp-bg-soft: #f4f5f7;
  --eapp-notice-bg: #ffedd8;
  --eapp-notice-text: #3c2a1e;
  --eapp-text-main: #333333;
  --eapp-text-muted: #555555;
  --eapp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.eapp-container {
  font-family: var(--eapp-font-family);
  color: var(--eapp-text-main);
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.eapp-container * {
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 1: THE APP PAGE (HERO)
   ========================================================================== */

.eapp-hero-banner {
  background-color: var(--eapp-primary);
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 28px;
  margin-bottom: 28px;
}

.eapp-hero-banner h1,
.eapp-hero-banner-title {
  margin: 0;
  padding: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.eapp-hero-card {
  background: var(--eapp-bg-card);
  border-radius: 20px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  padding: 42px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 70px;
}

.eapp-hero-mockup-col {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.eapp-hero-content-col {
  flex: 1 1 auto;
}

.eapp-hero-intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--eapp-text-main);
  margin: 0 0 16px 0;
}

.eapp-hero-intro strong {
  font-weight: 700;
  color: #111111;
}

.eapp-hero-note {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--eapp-text-muted);
  margin: 0 0 20px 0;
}

.eapp-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eapp-hero-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.5;
  color: #2b2b2b;
}

.eapp-hero-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #2b2b2b;
}

/* ==========================================================================
   PHONE MOCKUPS
   ========================================================================== */

/* Double phone stack in Hero */
.eapp-dual-phone-wrapper {
  position: relative;
  width: 260px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eapp-phone-back {
  position: absolute;
  left: 0;
  top: 15px;
  width: 215px;
  height: 410px;
  border-radius: 36px;
  border: 7px solid #b8bac0;
  background: #f7f8f9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

.eapp-phone-back .eapp-screen-inner {
  opacity: 0.3;
}

.eapp-phone-front {
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  height: 436px;
  border-radius: 38px;
  border: 8px solid #1a1a1c;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Single phone in Section 3 */
.eapp-single-phone {
  width: 210px;
  height: 420px;
  border-radius: 38px;
  border: 8px solid #1a1a1c;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}

/* Notch & speaker at top of phone */
.eapp-phone-notch {
  width: 90px;
  height: 18px;
  background: #1a1a1c;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eapp-phone-speaker {
  width: 32px;
  height: 3px;
  background: #333336;
  border-radius: 2px;
}

.eapp-phone-camera {
  width: 6px;
  height: 6px;
  background: #242428;
  border-radius: 50%;
  margin-left: 8px;
}

/* Screen Interior */
.eapp-screen-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 18px 20px 18px;
  background: #fafbfc;
  position: relative;
}

.eapp-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8cfb2;
}

.eapp-avatar-circle img,
.eapp-avatar-circle svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Screen Form fields */
.eapp-screen-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.eapp-screen-input {
  width: 100%;
  height: 28px;
  background: #eef0f3;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 10.5px;
  color: #9ea4ab;
  letter-spacing: -0.1px;
}

.eapp-screen-forgot {
  font-size: 9.5px;
  color: #9ea4ab;
  margin: 2px 0 2px 0;
  text-decoration: none;
}

.eapp-screen-login-btn {
  width: 64px;
  height: 22px;
  background: #eef0f3;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #8f959c;
  font-weight: 500;
}

.eapp-screen-footer-text {
  font-size: 8.5px;
  color: #9ea4ab;
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.eapp-screen-footer-text a,
.eapp-screen-footer-text span {
  color: #8f959c;
  text-decoration: none;
}

/* Custom screenshot mode (if user uploads their own image) */
.eapp-screen-custom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 2: APP DOWNLOADS
   ========================================================================== */

.eapp-download-section {
  text-align: center;
  margin-bottom: 75px;
}

.eapp-section-title {
  color: var(--eapp-primary);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px 0;
  line-height: 1.25;
}

.eapp-download-subtitle {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--eapp-text-muted);
  max-width: 660px;
  margin: 0 auto 36px auto;
}

.eapp-store-cards-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.eapp-store-card {
  flex: 1 1 320px;
  background: var(--eapp-bg-card);
  border-radius: 18px;
  padding: 34px 28px 36px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eapp-store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.eapp-store-card-label {
  font-size: 14.5px;
  color: var(--eapp-text-main);
  margin-bottom: 22px;
  font-weight: 400;
}

.eapp-store-badge-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.eapp-store-badge-link:hover {
  opacity: 0.88;
}

.eapp-store-badge-img {
  width: 170px;
  height: auto;
  display: block;
}

/* ==========================================================================
   SECTION 3: HOW TO LOG IN
   ========================================================================== */

.eapp-login-section {
  text-align: center;
  margin-bottom: 60px;
}

.eapp-login-intro {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--eapp-text-muted);
  max-width: 740px;
  margin: 0 auto 26px auto;
  text-align: center;
}

.eapp-login-intro a {
  color: var(--eapp-primary);
  text-decoration: underline;
}

/* Peach Notice Callout */
.eapp-notice-pill {
  background-color: var(--eapp-notice-bg);
  color: var(--eapp-notice-text);
  border-radius: 16px;
  padding: 16px 30px;
  max-width: 770px;
  margin: 0 auto 36px auto;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.eapp-notice-pill strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* Instructions Gray Card */
.eapp-login-card {
  background-color: var(--eapp-bg-soft);
  border-radius: 20px;
  padding: 42px 48px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.eapp-login-instructions-col {
  flex: 1 1 auto;
}

.eapp-login-mockup-col {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eapp-login-instructions-title {
  font-size: 15px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.eapp-login-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eapp-login-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #3b3b3b;
}

.eapp-login-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #2b2b2b;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .eapp-hero-card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 36px;
  }

  .eapp-hero-mockup-col {
    flex: 0 0 auto;
    width: 100%;
  }

  .eapp-store-cards-grid {
    flex-direction: column;
    gap: 20px;
  }

  .eapp-store-card {
    width: 100%;
  }

  .eapp-login-card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 36px;
  }

  .eapp-login-mockup-col {
    flex: 0 0 auto;
    width: 100%;
  }

  .eapp-hero-banner-title {
    font-size: 22px;
  }

  .eapp-section-title {
    font-size: 22px;
  }
}
