/* === PUBLISH PART — Mobile App Section ===
   All rules are scoped to .publish-part so they never bleed into other sections.
*/

/* --- Animations --- */
@keyframes ppFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes ppGlow {
  0%, 100% { opacity: 0.5; transform: scaleX(1); }
  50%       { opacity: 0.2; transform: scaleX(0.75); }
}
@keyframes ppBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* --- Section wrapper --- */
.publish-part {
  background: #f0f3f5;
  padding: 0px 0;
  position: relative;
  overflow-x: clip;
}

/* --- Left: text content --- */
.publish-part .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-left: 24px;
  padding-right: 30px;
}

.publish-part .mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.publish-part h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  color: #0f0f1a;
  margin-bottom: 27px;
}

.publish-part h1 .highlight-text {
  color: #4f46e5;
}

.publish-part p {
  font-size: 1rem;
  line-height: 1.75;
  color: #000;
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 460px;
}

.publish-part .buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.publish-part .store-btn img {
  height: 55px;
  display: block;
  transition: transform 0.2s ease;
}

.publish-part .store-btn:hover img {
  transform: scale(1.06);
}

/* --- Feature icon cards --- */
.publish-part .feature-icons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: nowrap;
  width: 100%;
}

.publish-part .feature-icon-item {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 14px 10px;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.publish-part .feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 18px;
  background: #ede9fe;
  color: #6c5ce7;
}

.publish-part .feature-icon-box.analytics  { background: #d1fae5; color: #059669; }
.publish-part .feature-icon-box.analytics2 { background: #dbeafe; color: #2563eb; }
.publish-part .feature-icon-box.fast       { background: #ffedd5; color: #ea580c; }

.publish-part .feature-label {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a2e;
  margin: 0 0 3px;
}

.publish-part .feature-desc {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* --- Right: phone visuals container --- */
.publish-part .visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem 0 1rem;
  overflow: visible;
}

/* Phone wrapper — upright standup, width fills column */
.publish-part .phone {
  position: relative;
  width: 100%;
  max-width: 530px;
  z-index: 2;
  animation: ppFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(99, 102, 241, 0.20))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.10));
}

/* Ground glow that breathes with the float */
.publish-part .phone::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 10%;
  right: 10%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.28) 0%, transparent 72%);
  border-radius: 50%;
  animation: ppGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.publish-part .pb-back { z-index: 2; }

/* Image — width 100% + height auto = perfect aspect ratio, no blur */
.publish-part .video-mock {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* --- Decorative dots --- */
.publish-part .deco-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 6;
  pointer-events: none;
}

.publish-part .deco-dot-pink {
  width: 16px;
  height: 16px;
  background: #f87171;
  top: 20px;
  left: -4px;
}

.publish-part .deco-dot-blue {
  width: 12px;
  height: 12px;
  background: #6366f1;
  top: 8px;
  right: -4px;
}

.publish-part .deco-dot-gray {
  width: 20px;
  height: 20px;
  background: #cbd5e1;
  bottom: 48px;
  right: -10px;
}

/* --- Refresh icon --- */
.publish-part .deco-refresh {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #6366f1;
  font-size: 18px;
  right: -22px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
}

/* --- Sales Growth floating badge --- */
.publish-part .sales-badge {
  position: absolute;
  bottom: 22px;
  right: -10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
  z-index: 10;
  animation: ppBadge 4s ease-in-out infinite;
  animation-delay: 1.2s;
}

.publish-part .sales-badge-icon {
  width: 34px;
  height: 34px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 15px;
  flex-shrink: 0;
}

.publish-part .sales-title {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.publish-part .sales-value {
  font-size: 19px;
  font-weight: 800;
  color: #059669;
  margin: 0;
  line-height: 1.1;
}

/* === Responsive Breakpoints === */

/* Large desktop ≤1199px */
@media (max-width: 1199px) {
  .publish-part h1    { font-size: 2.4rem; }
  .publish-part .phone { max-width: 460px; }
}

/* Tablet landscape ≤992px — stack: phones on top, text below */
@media (max-width: 992px) {
  .publish-part                { padding: 50px 0 60px; }
  .publish-part .row           { flex-direction: column-reverse; }
  .publish-part .content {
    text-align: center;
    align-items: center;
    padding: 30px 20px 0;
  }
  .publish-part p              { max-width: 600px; }
  .publish-part .buttons       { justify-content: center; }
  .publish-part .feature-icons { justify-content: center; max-width: 520px; }
  .publish-part .phone         { max-width: 480px; }
  .publish-part .sales-badge   { right: 0; bottom: 30px; }
  .publish-part .deco-refresh  { right: -10px; }
}

/* Tablet portrait ≤767px */
@media (max-width: 767px) {
  .publish-part                { padding: 40px 0 50px; }
  .publish-part h1             { font-size: 1.9rem; line-height: 1.22; }
  .publish-part p              { font-size: 0.95rem; max-width: 100%; }
  .publish-part .store-btn img { height: 44px; }
  .publish-part .feature-icons { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .publish-part .feature-icon-item { flex: none; width: calc(50% - 4px); }
  .publish-part .phone         { max-width: 380px; }
  .publish-part .deco-dot-pink { width: 12px; height: 12px; }
  .publish-part .deco-dot-blue { width: 9px;  height: 9px; }
  .publish-part .deco-dot-gray { width: 15px; height: 15px; }
  .publish-part .deco-refresh  { width: 36px; height: 36px; font-size: 15px; right: -14px; }
  .publish-part .sales-badge   { right: -8px; bottom: 20px; padding: 8px 10px; gap: 8px; }
  .publish-part .sales-value   { font-size: 16px; }
  .publish-part .sales-title   { font-size: 10px; }
  .publish-part .sales-badge-icon { width: 28px; height: 28px; font-size: 13px; }
  .publish-part .visuals{
    padding: 0;
  }
  .publish-part .content{
    padding: 0 20px 0;
  }
}

/* Mobile ≤480px */
@media (max-width: 480px) {
  .publish-part                { padding: 32px 0 40px; }
  .publish-part h1             { font-size: 1.55rem; }
  .publish-part .store-btn img { height: 38px; }
  .publish-part .phone         { max-width: 320px; }
  .publish-part .deco-dot-blue { display: none; }
  .publish-part .deco-dot-gray { display: none; }
  .publish-part .deco-refresh  { display: none; }
  .publish-part .sales-badge   { right: -4px; bottom: 14px; padding: 6px 9px; gap: 6px; }
  .publish-part .sales-badge-icon { width: 24px; height: 24px; font-size: 11px; }
  .publish-part .sales-value   { font-size: 14px; }
  .publish-part .sales-title   { font-size: 9px; }
  .publish-part .feature-icon-item { padding: 10px 6px; }
  .publish-part .feature-icon-box  { width: 36px; height: 36px; font-size: 15px; }
}

/* Very small ≤360px */
@media (max-width: 360px) {
  .publish-part h1             { font-size: 1.35rem; }
  .publish-part .phone         { max-width: 270px; }
  .publish-part .sales-badge   { display: none; }
  .publish-part .deco-dot-pink { display: none; }
}
