/* Ecommerce mobile app — page-specific UX (uses global :root from styles.css) */

/* —— Creative split hero (distinct from home phone-mockup hero) —— */
.ema-split-hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    linear-gradient(115deg, rgba(43, 108, 255, 0.07) 0%, transparent 42%),
    linear-gradient(295deg, rgba(124, 58, 237, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(43, 108, 255, 0.12), transparent 55%),
    #ffffff;
  overflow: hidden;
}

.ema-split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(226, 232, 240, 0.35) 48px,
    rgba(226, 232, 240, 0.35) 49px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.ema-hero-inner {
  position: relative;
  z-index: 1;
}

.ema-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 20px;
}

.ema-hero-kicker i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ema-hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 15ch;
}

.ema-hero-title .ema-gradient {
  background: linear-gradient(105deg, var(--blue) 0%, var(--purple) 55%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ema-hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 26px;
}

.ema-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.ema-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ema-stat-pill {
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.ema-stat-pill strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.ema-stat-pill span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.ema-hero-art {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ema-orbit {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ema-orbit-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(43, 108, 255, 0.22);
  animation: ema-spin 48s linear infinite;
}

.ema-orbit-ring--slow {
  inset: 0;
  border-color: rgba(124, 58, 237, 0.15);
  animation-duration: 72s;
  animation-direction: reverse;
}

@keyframes ema-spin {
  to {
    transform: rotate(360deg);
  }
}

.ema-orbit-hub {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 2rem;
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 2;
}

.ema-orbit-hub small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ema-orbit-node {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 3;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ema-orbit-node:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(43, 108, 255, 0.2);
  color: var(--blue);
}

.ema-orbit-node--a {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.ema-orbit-node--a:hover {
  transform: translateX(-50%) scale(1.08);
}

.ema-orbit-node--b {
  bottom: 18%;
  right: 4%;
}

.ema-orbit-node--c {
  bottom: 18%;
  left: 4%;
}

.ema-orbit-node--purple {
  color: var(--purple);
}

.ema-orbit-node--green {
  color: var(--green);
}

.ema-orbit-node--orange {
  color: var(--orange);
}

.ema-float-card {
  position: absolute;
  right: 0;
  top: 12%;
  max-width: 200px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  z-index: 4;
}

.ema-float-card i {
  color: var(--blue);
  margin-right: 6px;
}

@media (max-width: 991.98px) {
  .ema-hero-art {
    min-height: 320px;
    margin-top: 24px;
  }

  .ema-float-card {
    display: none;
  }

  .ema-hero-title {
    max-width: none;
  }
}

/* —— Platform connect rail —— */
.ema-connect {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ema-connect-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.ema-connect-head .eyebrow {
  margin-bottom: 10px;
}

.ema-connect-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.ema-connect-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ema-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ema-connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.ema-connect-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}

.ema-connect-card--woo::before {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}

.ema-connect-card--shopify::before {
  background: linear-gradient(90deg, var(--green), #4ade80);
}

.ema-connect-card--api::before {
  background: linear-gradient(90deg, var(--orange), #fb923c);
}

.ema-connect-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.ema-connect-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.ema-connect-card--woo .ema-connect-icon {
  background: #ede9fe;
  color: var(--purple);
}

.ema-connect-card--shopify .ema-connect-icon {
  background: #dcfce7;
  color: var(--green);
}

.ema-connect-card--api .ema-connect-icon {
  background: #ffedd5;
  color: var(--orange);
}

.ema-connect-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.ema-connect-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.ema-connect-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

.ema-connect-cta i {
  transition: transform 0.2s ease;
}

.ema-connect-card:hover .ema-connect-cta i {
  transform: translateX(4px);
}

@media (max-width: 991.98px) {
  .ema-connect-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* —— Discovery: bento industries + mosaic countries (not home panel grids) —— */
.ema-discovery {
  padding: 60px 0 70px;
  background: var(--soft);
}

.ema-discovery-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.ema-discovery-intro h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.ema-discovery-intro p {
  margin: 0;
  color: var(--muted);
}

.ema-discovery-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ema-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}

.ema-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ema-panel-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.ema-panel-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ema-panel-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.ema-panel-link:hover {
  text-decoration: underline;
}

/* Bento industry grid */
.ema-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 12px;
}

.ema-bento a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100px;
  padding: 16px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ema-bento a i {
  font-size: 1.35rem;
  margin-bottom: 8px;
  opacity: 0.95;
}

.ema-bento a span {
  position: relative;
  z-index: 1;
}

.ema-bento a::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: radial-gradient(circle at 80% 20%, currentColor, transparent 55%);
  pointer-events: none;
}

.ema-bento a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ema-bento__hero {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 212px;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe !important;
  color: #312e81;
}

.ema-bento__hero i {
  font-size: 2rem;
  color: var(--purple);
}

.ema-bento__tall {
  grid-row: span 2;
  min-height: 212px;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0 !important;
  color: #065f46;
}

.ema-bento__tall i {
  color: var(--green);
}

.ema-bento__compact {
  min-height: 100px;
  background: #f8fafc;
  border-color: var(--line) !important;
}

.ema-bento__compact i {
  color: var(--blue);
}

.ema-bento__accent {
  background: linear-gradient(155deg, #fff7ed, #ffedd5);
  border-color: #fed7aa !important;
  color: #9a3412;
}

.ema-bento__accent i {
  color: var(--orange);
}

/* Country mosaic */
.ema-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ema-mosaic a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(90deg, #f8fafc 0%, #fff 40%);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ema-mosaic a:hover {
  border-color: rgba(43, 108, 255, 0.45);
  box-shadow: 0 8px 22px rgba(43, 108, 255, 0.1);
}

.ema-mosaic a i {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ema-mosaic a:hover i {
  color: var(--blue);
  transform: translate(2px, -2px);
}

.ema-mosaic__wide {
  grid-column: span 2;
  background: linear-gradient(90deg, #eef3ff, #fff);
  border-color: #c7d2fe;
}

@media (max-width: 991.98px) {
  .ema-discovery-panels {
    grid-template-columns: 1fr;
  }

  .ema-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .ema-bento__hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 140px;
  }

  .ema-bento__tall {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 120px;
  }
}

@media (max-width: 575.98px) {
  .ema-bento {
    grid-template-columns: 1fr;
  }

  .ema-bento__hero,
  .ema-bento__tall {
    grid-column: span 1;
  }

  .ema-mosaic {
    grid-template-columns: 1fr;
  }

  .ema-mosaic__wide {
    grid-column: span 1;
  }
}

/* Extra flags (not on home base stylesheet) */
.flag-sg {
  background: linear-gradient(180deg, #fff 0 50%, #ed2939 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flag-de {
  background: linear-gradient(180deg, #000 0 33%, #dd0000 33% 66%, #ffce00 66%);
}

.faq-wrap {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 10px;
}

.faq-wrap details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.faq-wrap summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-wrap p {
  margin: 10px 0 0;
  color: var(--muted);
}

.text-brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.text-brand-logo span {
  color: var(--blue);
}

.ema-footer-brand {
  display: inline-block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e2e8f0;
  text-decoration: none;
  margin-bottom: 12px;
}

.ema-footer-brand span {
  color: #93c5fd;
}

.ema-footer-brand:hover {
  color: #fff;
}
