/* Homepage — conversion landing */

.hm-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hm-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.hm-header-cart:hover {
  filter: brightness(1.05);
}

/* Hero */
.hm-hero {
  padding: 16px 0 12px;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.hm-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.hm-hero__content {
  text-align: center;
}

.hm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hm-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hm-hero__title em {
  font-style: normal;
  color: #dc2626;
}

.hm-hero__lead {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hm-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 55%, #f97316 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.hm-hero__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hm-hero__mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hm-hero__mini span {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #991b1b;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 5px 10px;
}

.hm-hero__visual {
  position: relative;
  min-height: 240px;
}

.hm-hero__collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.hm-hero__tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f1f5f9;
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s;
}

.hm-hero__tile:hover {
  transform: scale(1.02);
}

.hm-hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-hero__tile--main {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.hm-hero__tile-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.625rem;
  font-weight: 900;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  padding: 4px 8px;
}

/* Trust stats */
.hm-trust-stats {
  padding: 12px 0 20px;
}

.hm-trust-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hm-trust-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.hm-trust-stat__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hm-trust-stat strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.hm-trust-stat span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}

/* Sections */
.hm-section {
  padding: 28px 0;
}

.hm-section--alt {
  background: #fff;
}

.hm-section-head {
  margin-bottom: 18px;
  text-align: center;
}

.hm-section-head--left {
  text-align: left;
}

.hm-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 900;
  color: #0f172a;
}

.hm-section-head p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hm-grid--3 {
  grid-template-columns: 1fr;
}

/* Product cards */
.hm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.hm-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
}

.hm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hm-card:hover .hm-card__img {
  transform: scale(1.05);
}

.hm-card__img--empty {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.hm-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.hm-badge {
  font-size: 0.625rem;
  font-weight: 900;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
}

.hm-badge--disc {
  background: #ca8a04;
}

.hm-badge--deal {
  background: #7c3aed;
}

.hm-card__trust-pills {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}

.hm-pill {
  font-size: 0.5625rem;
  font-weight: 800;
  color: #991b1b;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 3px 7px;
}

.hm-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.hm-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.hm-card__title a:hover {
  color: #dc2626;
}

.hm-card__sold {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #ea580c;
}

.hm-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.hm-price-now {
  font-size: 1.375rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1;
}

.hm-price-old {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.hm-disc-tag {
  font-size: 0.625rem;
  font-weight: 900;
  color: #ca8a04;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 2px 7px;
}

.hm-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.hm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: filter 0.15s;
}

.hm-btn--primary {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.hm-btn--ghost {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.hm-btn:hover {
  filter: brightness(1.05);
}

/* Why us */
.hm-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hm-why-item {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.hm-why-item__icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.hm-why-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.hm-why-item span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}

/* Reviews */
.hm-reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hm-review {
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.hm-review__stars {
  margin-bottom: 10px;
}

.hm-review__text {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
  font-weight: 600;
}

.hm-review__author {
  font-size: 0.8125rem;
  font-weight: 900;
  color: #0f172a;
}

/* Process timeline */
.hm-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}

.hm-process__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.hm-process__step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 17px;
  bottom: 2px;
  font-size: 0.875rem;
  color: #cbd5e1;
  font-weight: 900;
}

.hm-process__num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hm-process__copy strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  color: #0f172a;
}

.hm-process__copy span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

/* Campaign */
.hm-campaign {
  margin: 8px 0 0;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #991b1b 0%, #c2410c 50%, #ea580c 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(153, 27, 27, 0.25);
}

.hm-campaign h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
}

.hm-campaign p {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  opacity: 0.95;
  font-weight: 600;
}

.hm-campaign .hm-hero__cta {
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Footer */
.hm-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 32px;
}

.hm-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 40px 16px 32px;
}

.hm-footer h3 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-footer li {
  margin-bottom: 10px;
}

.hm-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.hm-footer a:hover {
  color: #fb923c;
}

.hm-footer__muted {
  font-size: 0.875rem;
  color: #64748b;
}

.hm-footer__bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
}

.hm-footer__bottom p {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #64748b;
}

.hm-footer__trust {
  font-weight: 700;
  color: #94a3b8 !important;
}

/* Sticky mobile bar */
.hm-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  display: none;
}

.hm-sticky-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.hm-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: hm-shimmer 1.2s infinite;
}

@keyframes hm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hm-empty {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
}

.hm-empty h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 900;
}

.hm-empty p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

body.hm-page {
  padding-bottom: 72px;
}

@media (min-width: 640px) {
  .hm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hm-trust-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-process {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 8px;
  }

  .hm-process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 120px;
    padding-bottom: 0;
  }

  .hm-process__step:not(:last-child)::after {
    content: "→";
    left: auto;
    right: -8px;
    top: 14px;
    bottom: auto;
  }
}

@media (min-width: 768px) {
  .hm-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hm-hero__content {
    text-align: left;
  }

  .hm-hero__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hm-hero__mini {
    justify-content: flex-start;
  }

  .hm-trust-stats__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-why-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hm-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-card__title {
    font-size: 0.9375rem;
  }

  .hm-price-now {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hm-sticky-bar {
    display: block;
  }

  body.hm-page {
    padding-bottom: 80px;
  }

  .hm-hero {
    padding-top: 8px;
  }

  .hm-hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hm-hero__visual {
    order: -1;
  }

  .hm-hero__title {
    font-size: 1.5rem;
  }

  .hm-hero__lead {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }

  .hm-hero__collage {
    max-width: none;
  }

  .hm-card__actions {
    grid-template-columns: 1fr;
  }

  .hm-btn {
    min-height: 48px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1024px) {
  .hm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-card,
  .hm-hero__cta,
  .hm-hero__tile,
  .hm-skeleton {
    animation: none !important;
    transition: none !important;
  }
}
