/* ============================================================
   SECTIONS.CSS — Hero, Features, Screenshots, Pricing
   ============================================================ */

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  z-index: 0;
}

/* Radial fade over grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, transparent 30%, var(--color-bg) 80%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  padding-block: var(--space-20);
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: var(--space-16);
    padding-block: var(--space-24);
  }
}

.hero__content {
  flex: 1;
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff8e1;
  border: 1px solid #fde68a;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #92660a;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cta);
  flex-shrink: 0;
}

.hero__title {
  margin-bottom: var(--space-5);
}

.hero__title em {
  font-style: normal;
  color: var(--color-muted);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 440px;
}

@media (min-width: 1024px) {
  .hero__subtitle {
    max-width: 100%;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__stores {
    justify-content: flex-start;
  }
}

.hero__store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.hero__store-badge:hover {
  opacity: 0.85;
}

.hero__store-badge svg {
  width: 18px;
  height: 18px;
}

.hero__store-info {
  display: flex;
  flex-direction: column;
}

.hero__store-sub {
  font-size: 0.6rem;
  opacity: 0.55;
  letter-spacing: 0.03em;
}

.hero__store-name {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Hero visual */
.hero__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__mockup-wrap {
  position: relative;
  width: 280px;
}

@media (min-width: 768px) {
  .hero__mockup-wrap {
    width: 320px;
  }
}

.hero__mockup {
  width: 100%;
  border-radius: 36px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 12px 40px rgba(0,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.08);
  animation: floatPhone 5s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Floating stat cards */
.hero__stat {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: floatPhone 5s ease-in-out infinite;
  white-space: nowrap;
}

.hero__stat--left {
  left: -50px;
  top: 30%;
  animation-delay: -1.5s;
}

.hero__stat--right {
  right: -50px;
  top: 60%;
  animation-delay: -3s;
}

.hero__stat-icon {
  font-size: 1.2rem;
}

.hero__stat-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  display: block;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

/* Hide floating cards on small mobile */
@media (max-width: 480px) {
  .hero__stat { display: none; }
  .hero__mockup-wrap { width: 240px; }
}

/* ---- FEATURES ---- */
.features {
  background: var(--color-surface);
}

.features__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.features__header h2 {
  margin-bottom: var(--space-4);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- SCREENSHOTS ---- */
.screenshots {
  overflow: hidden;
}

.screenshots__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.screenshots__header h2 {
  margin-bottom: var(--space-4);
}

.screenshots__track-wrap {
  position: relative;
}

.screenshots__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-inline: var(--space-6);
  padding-bottom: var(--space-4);
  cursor: grab;
  scrollbar-width: none;
}

.screenshots__track::-webkit-scrollbar {
  display: none;
}

.screenshots__track:active {
  cursor: grabbing;
}

.screenshots__slide {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .screenshots__slide {
    flex: 0 0 260px;
  }
}

.screenshots__img-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshots__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshots__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
}

.screenshots__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.screenshots__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-white);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.screenshots__btn:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.screenshots__btn svg {
  width: 16px;
  height: 16px;
  color: var(--color-text);
}

.screenshots__dots {
  display: flex;
  gap: var(--space-2);
}

.screenshots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  border: none;
}

.screenshots__dot.active {
  background: var(--color-text);
  width: 20px;
  border-radius: 3px;
}

/* ---- PRICING ---- */
.pricing__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.pricing__header h2 {
  margin-bottom: var(--space-4);
}

.pricing__toggle {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-top: var(--space-6);
  gap: 0;
}

.pricing__toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: all var(--transition-base);
  position: relative;
}

.pricing__toggle-btn.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}

.pricing__toggle-save {
  font-size: 0.65rem;
  font-weight: 700;
  color: #92660a;
  background: #fff8e1;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  margin-left: var(--space-1);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
