/* ===== APP PAGE ===== */

/* Hero */
.app-hero {
  position: relative;
  padding-top: 70px;
  overflow: hidden;
}
.app-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #000;
}
.app-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.7;
}
.app-hero .container {
  position: relative; z-index: 1;
}
.app-hero-inner {
  display: flex; align-items: center; gap: 30px;
  padding: 50px 0 30px;
}
.app-hero-phones {
  flex: 1;
}
.app-hero-phones img {
  width: 100%; max-width: 500px; height: auto;
}
.app-hero-text {
  flex: 1; text-align: center;
}
.app-hero-sub {
  font-size: 1rem; color: #FFF700;
  font-style: italic; margin-bottom: 4px;
}
.app-hero-text h1 {
  margin-bottom: 4px;
}
.app-yellow {
  font-size: 5rem; font-weight: 900; color: #FFF700;
  display: block; line-height: 1.1;
}
.app-hero-platform {
  font-size: 1.3rem; color: #fff; font-weight: 600;
  margin-bottom: 24px; font-style: italic;
}
.app-btn-cta {
  display: inline-block;
  background: #00B84A;
  color: #fff; font-size: 0.95rem; font-weight: 700;
  padding: 14px 36px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,184,74,0.35);
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.app-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,184,74,0.45);
  background: #009e3e;
}
.app-hero-tagline {
  font-size: 0.95rem; color: rgba(255,255,255,0.9);
  margin-top: 16px; font-weight: 700;
}

/* Features Bar */
.app-features-list {
  display: flex; justify-content: center; gap: 16px;
  padding: 20px 0 30px;
}
.app-feature-tag {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.8rem; font-weight: 700; color: #FFF700;
  text-align: center;
  letter-spacing: 0.5px;
  background: #D9D9D933;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== WHY APP SECTION ===== */
.why-app-section {
  background: #fff;
  padding: 40px 0 50px;
}

.why-app-title {
  text-align: center;
  margin-bottom: 30px;
}
.why-app-title-text {
  display: inline-block;
  position: relative;
  font-size: 2.4rem;
  font-weight: 900;
  font-style: italic;
  color: #FFD600;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1;
  padding: 16px 60px;
}
.why-app-title-text::before {
  content: '';
  position: absolute;
  left: -20px; right: -20px;
  top: 50%; transform: translateY(-50%);
  height: 80px;
  background: url('../images/brush-stroke.png') center top / 100% auto no-repeat;
  z-index: -1;
}

/* Wrapper - relative for absolute children */
.why-app-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 700px;
}

/* Center image */
.why-app-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.why-app-center::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,235,220,0.5) 0%, rgba(230,240,230,0.25) 60%, transparent 100%);
  z-index: -1;
}
.why-app-center img {
  height: 580px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Each item */
.why-app-item {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}
.why-app-item-icon {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
}
.why-app-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}
.why-app-item-text {
  max-width: 240px;
}
.why-app-item-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #000 !important;
  margin-bottom: 5px;
  line-height: 1.35;
}
.why-app-item-text p {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/*
  Icon positions form a circle around center.
  Left items: text outside (left), icon inside (right, near center)
  Right items: icon inside (left, near center), text outside (right)
*/

/* Left side: 2 items — spaced at ~25% and ~65% */
/* Right side: 3 items — spaced at ~8%, ~42%, ~76% */

/* Item 1: Upper-left — text left, icon right */
.why-app-item--1 {
  top: 12%;
  left: 0;
  right: auto;
  flex-direction: row-reverse;
  max-width: 390px;
}
.why-app-item--1 h4 { color: #000; }

/* Item 2: Upper-right — icon left, text right */
.why-app-item--2 {
  top: 4%;
  right: 0;
  left: auto;
  flex-direction: row;
  max-width: 390px;
}

/* Item 3: Mid-right — icon left, text right */
.why-app-item--3 {
  top: 42%;
  right: 0;
  left: auto;
  flex-direction: row;
  max-width: 370px;
}

/* Item 4: Lower-left — text left, icon right */
.why-app-item--4 {
  top: 58%;
  left: 0;
  right: auto;
  flex-direction: row-reverse;
  max-width: 390px;
}
.why-app-item--4 h4 { color: #000; }

/* Item 5: Lower-right — icon left, text right */
.why-app-item--5 {
  top: 76%;
  right: 0;
  left: auto;
  flex-direction: row;
  max-width: 390px;
}

/* ===== FEATURES SECTION ===== */
.app-features-section {
  background: #fff;
  padding: 40px 0 50px;
}

.app-feat-row {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-top: 10px;
}
.app-feat-img {
  flex: 0 0 40%;
  max-width: 40%;
}
.app-feat-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.app-feat-content {
  flex: 1;
}
.app-feat-heading {
  font-size: 1.8rem;
  font-weight: 900;
  color: #073380;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.app-feat-item {
  margin-bottom: 18px;
}
.app-feat-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  font-style: normal;
  color: #d42b2b;
  margin-bottom: 4px;
}
.app-feat-item p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.65;
  font-style: italic;
}

/* Reversed row: text left, image right */
.app-feat-row--reverse {
  flex-direction: row-reverse;
}

/* Spacing between feature rows */
.app-feat-row + .app-feat-row {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #eee;
}

/* ===== PROCESS SECTION ===== */
.app-process-section {
  background: linear-gradient(180deg, #eaf6ee 0%, #f5faf7 100%);
  padding: 40px 0 40px;
}

.app-process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.app-process-step {
  flex: 1;
  text-align: center;
  max-width: 220px;
}
.app-process-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.app-process-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-process-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #073380;
  text-transform: uppercase;
  line-height: 1.4;
}

.app-process-arrow {
  display: flex;
  align-items: center;
  padding-top: 36px;
  font-size: 2rem;
  color: #3bb4e5;
}

.app-process-note {
  margin-top: 30px;
  text-align: left;
}
.app-process-note p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
}

/* ===== DEMO QR SECTION ===== */
.app-demo-section {
  background: #fff;
  padding: 40px 0 50px;
}

.app-demo-qr {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 10px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 60px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.app-demo-qr-item {
  text-align: center;
}
.app-demo-qr-placeholder {
  width: 200px;
  height: 200px;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.app-demo-qr-placeholder span {
  font-size: 0.9rem;
  color: #999;
  font-weight: 600;
}
.app-demo-qr-item p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

/* Content Sections */
.app-section-white { background: #fff; padding: 40px 0; }
.app-section-gray { background: #f8f9fb; padding: 40px 0; }

.app-block-title {
  font-size: 1.6rem; font-weight: 800; color: #073380;
  margin-bottom: 24px; font-style: italic;
}
.app-block {
  display: flex; align-items: flex-start; gap: 40px;
}
.app-block-img {
  flex: 0 0 33%; max-width: 33%;
}
.app-block-img img {
  width: 100%; height: auto; border-radius: 12px;
}
.app-block-text { flex: 1; }
.app-block-item { margin-bottom: 14px; }
.app-block-item h4 {
  font-size: 0.95rem; font-weight: 800; color: #073380;
  margin-bottom: 4px;
}
.app-block-item p {
  font-size: 0.88rem; color: #444; line-height: 1.6;
}

/* Gradient Button */
.app-btn-wrap {
  text-align: center; padding-top: 30px;
}
.app-gradient-btn {
  display: inline-block;
  background: linear-gradient(134.25deg, #073380 24.58%, #FE05DD 75.42%);
  color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: 16px 44px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(7,51,128,0.3);
  transition: all 0.3s;
}
.app-gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(7,51,128,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .app-features-list { flex-wrap: wrap; }
  .app-feature-tag { flex: 1 1 45%; }
  .app-demo-qr { gap: 40px; padding: 30px 20px; }
}
@media (max-width: 768px) {
  .app-hero-inner { flex-direction: column; padding: 20px 0; min-height: auto; text-align: center; }
  .app-hero-text { max-width: 100%; }
  .app-yellow { font-size: 2.8rem; }
  .app-hero-sub { font-size: 0.9rem; }
  .app-hero-desc { font-size: 1rem; }
  .app-hero-img img { max-width: 80%; height: auto; }
  .app-btn-cta { font-size: 0.9rem; padding: 12px 30px; }
  .app-hero-tagline { font-size: 0.8rem; }
  .app-features-list { flex-wrap: wrap; gap: 10px; padding: 16px 0 20px; }
  .app-feature-tag { flex: 1 1 45%; font-size: 0.7rem; padding: 10px 12px; }
  .app-block { flex-direction: column; }
  .app-block-img { max-width: 100%; }

  .why-app-section { padding: 24px 0 30px; }
  .why-app-title-text { font-size: 1.2rem; padding: 12px 30px; }
  .why-app-wrap {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .why-app-center {
    position: static;
    transform: none;
    text-align: center;
    order: -1;
  }
  .why-app-center img { height: auto; max-height: 280px; }
  .why-app-item {
    position: static !important;
    transform: none !important;
    max-width: 100%;
    flex-direction: row !important;
  }
  .why-app-item-icon { flex: 0 0 55px; width: 55px; height: 55px; }
  .why-app-item-text { max-width: 100%; }
  .why-app-item-text h4 { font-size: 0.9rem; }
  .why-app-item-text p { font-size: 0.8rem; }

  .app-features-section { padding: 24px 0 30px; }
  .app-feat-row, .app-feat-row--reverse { flex-direction: column; gap: 20px; }
  .app-feat-img { max-width: 100%; flex: none; }
  .app-feat-heading { font-size: 1.3rem; }
  .app-feat-item h4 { font-size: 0.9rem; }
  .app-feat-item p { font-size: 0.8rem; }
  .app-feat-row + .app-feat-row { margin-top: 24px; padding-top: 24px; }

  .app-process-section { padding: 24px 0 30px; }
  .app-process-steps { flex-wrap: wrap; gap: 16px; }
  .app-process-arrow { padding-top: 0; font-size: 1.5rem; transform: rotate(90deg); }
  .app-process-step { flex: 1 1 40%; }
  .app-process-step img { width: 50px; height: 50px; }
  .app-process-step p { font-size: 0.8rem; }

  .app-demo-section { padding: 24px 0 30px; }
  .app-demo-qr { flex-direction: column; gap: 20px; padding: 20px; }
  .app-demo-qr-placeholder { width: 160px; height: 160px; margin: 0 auto 10px; }

  .app-section-white, .app-section-gray { padding: 24px 0; }
  .app-gradient-btn { font-size: 0.9rem; padding: 12px 30px; }
}
