/* ════════════════════════════════════════════════════════════════
   Home · "How it works" — light 3-up card row.
   Card art: 01 device duo + 03 checkout use real storefront
   screenshots in .ipx frames (markup + frame styles in index.html);
   02 share-ring is drawn here. Dead CSS from the earlier CSS-drawn
   mockups (bench-phone, checkout-card, .feature) removed 2026-06-05.
   ════════════════════════════════════════════════════════════════ */

.hiw2-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hiw2-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: 20px;
  padding: 28px 26px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(44,47,50,0.04);
  transition: transform var(--sd-dur-base) var(--sd-ease),
              box-shadow var(--sd-dur-base) var(--sd-ease);
}
.hiw2-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(44,47,50,0.12);
}
.hiw2-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sd-neutral-950);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sd-font-display);
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
  flex: none;
}
.hiw2-card h3 {
  font-family: var(--sd-font-display);
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 10px;
  color: var(--sd-neutral-950);
}
.hiw2-card > p {
  font-size: 16px; line-height: 1.55;
  color: var(--sd-fg-muted);
  margin: 0 0 20px;
  max-width: 44ch;
}

/* Visual region — bleeds to the card edges, art anchors to the bottom */
.hiw2-viz {
  margin-top: auto;
  margin-left: -26px;
  margin-right: -26px;
  position: relative;
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* ─── 01 — Storefront (device duo: real screenshots in .ipx frames,
       markup + frame styles live in index.html) ──────────────────── */
.hiw2-viz.art-storefront { min-height: 290px; }

/* ─── 02 — Share ring (feature centerpiece) ──────────────────────── */
.hiw2-viz.art-share {
  align-items: center;
  min-height: 290px;
}
.hiw2-viz .share-ring {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto;
}
.share-ring::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1.5px dashed var(--sd-neutral-200);
  border-radius: 50%;
}
.share-ring::after {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1.5px dashed var(--sd-primary-200, #ffd2c9);
  border-radius: 50%;
  opacity: 0.6;
}
.share-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #fef4ee 100%);
  border: 1px solid var(--sd-primary-200, #ffd2c9);
  box-shadow: 0 10px 28px rgba(225,84,57,0.18);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  z-index: 2;
}
.share-center i { width: 22px; height: 22px; color: var(--sd-primary); }
.share-center span { font-size: 9.5px; font-weight: 700; color: var(--sd-neutral-950); letter-spacing: 0.02em; }
.share-pip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: 9999px;
  padding: 7px 12px 7px 8px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 18px rgba(44,47,50,0.08);
  font-size: 10.5px; font-weight: 600;
  color: var(--sd-neutral-950);
  white-space: nowrap;
}
.share-pip i {
  width: 14px; height: 14px;
  color: var(--sd-primary);
  flex: none;
}
.pip-ig   { top: -4px;   left: 50%; transform: translateX(-50%); }
.pip-link { top: 32%;    right: -16px; }
.pip-qr   { bottom: 4px; right: 6px; }
.pip-sms  { bottom: 4px; left: 6px; }
.pip-web  { top: 32%;    left: -16px; }

/* ─── 03 — Unified checkout ──────────────────────────────────────── */
.hiw2-viz.art-checkout {
  align-items: flex-end;
  padding: 0 8px 18px;
}
/* ─── Reveal stagger + responsive ────────────────────────────────── */
.hiw2-card.reveal { transition-delay: 0s; }
.hiw2-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.hiw2-card.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 1024px) {
  .hiw2-row { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
