/* ==========================================================================
   ModaScan Landing Page (v2.2 — palette aligned with live app screens)
   2-col hero with text + an in-app home-screen phone mockup. Color system
   updated to match the production app (teal #14B8A6 mint, soft tints, coral
   destructive). Page-specific styles only — tokens come from
   colors_and_type.css.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --fg: #0F1419;            /* near-black for headlines */
  --fg-muted: #6B7280;
  --line: #EDEFF1;
  --card: #F4F5F7;          /* the light-gray card bg used throughout the app */
  --pop: #14B8A6;           /* primary mint-teal from the app */
  --pop-soft: #CFF3EE;      /* soft tint behind icons */
  --pop-bg: #E6F7F4;        /* very soft tint */
  --pop-fg: #FFFFFF;
  --pop-deep: #0E9080;
  --coral: #F26B5C;         /* destructive red — sign out, clear */
  --coral-soft: #FCE4E0;
  --black: #0F1419;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* ===== NAV ===== */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; height: 64px; }
.nav-left { display:flex; align-items:center; gap: 36px; }
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; line-height: 1; letter-spacing: -0.04em; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--pop);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.nav-menu { display:flex; gap: 24px; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--fg); }
.nav-menu a:hover { color: var(--fg-muted); }
.nav-right { display:flex; align-items:center; gap: 12px; }
.lang-btn { display:inline-flex; align-items:center; gap: 6px; font-size: 13px; padding: 6px 10px; }
.login { font-size: 14px; padding: 6px 10px; }
.nav-cta {
  display:inline-flex; align-items:center; gap: 8px;
  background: var(--pop); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background 200ms cubic-bezier(0.22,1,0.36,1), transform 120ms;
}
.nav-cta:hover { background: var(--pop-deep); }
.nav-cta .arrow { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .nav-menu, .lang-btn, .login { display: none; }
}

/* ===== HERO ===== */
.hero { padding: 64px 0 48px; }
.eyebrow {
  display: inline-block;
  font: 600 13px/1 var(--font-ui); letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}
.eyebrow .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pop); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(0,191,179,0.18);
  animation: heroPulse 1.6s ease-in-out infinite;
}
@keyframes heroPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1; letter-spacing: -0.035em;
  margin: 0; color: var(--fg);
  text-wrap: balance;
}
.hero-title .accent { color: var(--pop); }
.hero-sub-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 24px 0 0; color: var(--fg);
  max-width: 14ch;
}
.hero-copy {
  font-size: 18px; line-height: 1.5; color: var(--fg-muted);
  max-width: 56ch; margin: 28px 0 36px;
}
.hero-actions { display:flex; flex-wrap: wrap; gap: 12px; align-items:center; }

/* Store buttons */
.store-btn {
  display:inline-flex; align-items:center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--pop); color: #fff;
  transition: transform 120ms, background 200ms;
}
.store-btn:hover { background: var(--pop-deep); }
.store-btn:active { transform: scale(0.98); }
.store-btn.outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.store-btn.outline:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--fg-muted); }
.store-btn .ico { width: 22px; height: 22px; }
.store-btn .lbl-sm { font: 500 10px/1 var(--font-ui); opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 3px; white-space: nowrap; }
.store-btn .lbl-lg { font: 700 15px/1 var(--font-display); letter-spacing: -0.01em; display: block; white-space: nowrap; }
.store-btn .soon-pill {
  font: 700 9px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--pop); color: var(--pop-fg); padding: 3px 6px; border-radius: 4px; margin-left: 4px;
}

/* ===== Hero layout (2-col with phone mockup) ===== */
.hero-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; margin-top: 24px; }
@media (max-width: 1024px) { .hero-layout { grid-template-columns: 1fr; gap: 32px; } }

/* Small tile strip across the top of the hero — 3 unique category tiles */
.tile-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 72px; }
.tile-strip .tile { height: 220px; border-radius: 12px; }
.tile-strip .tile .label { padding: 6px 12px; font-size: 12px; }
.tile-strip .tile .price-tag { padding: 6px 10px; font-size: 13px; bottom: 12px; right: 12px; }
@media (max-width: 600px) { .tile-strip { grid-template-columns: 1fr; gap: 12px; margin-top: 44px; } .tile-strip .tile { height: 180px; } }

/* ===== Phone mockup ===== */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 360 / 740;
  background: #0d0d0d; border-radius: 48px; padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #1a1f26 0%, #0a0d0e 100%);
  position: relative; color: #fff; font-family: var(--font-ui);
}
.phone .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; border-radius: 24px; background: #000; z-index: 4; }

/* ===== App home-screen recreation inside the phone ===== */
.app-screen { position: absolute; inset: 0; background: #fff; color: var(--fg); font-family: var(--font-ui); padding: 38px 18px 0; overflow: hidden; }
.app-status { position: absolute; top: 8px; left: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font: 600 11px/1 var(--font-ui); color: var(--fg); }
.app-status .icons { display: flex; gap: 4px; align-items: center; }
.app-status .battery { width: 18px; height: 9px; border: 1px solid var(--fg); border-radius: 2px; padding: 1px; position: relative; }
.app-status .battery::after { content: ""; position: absolute; right: -2px; top: 2px; width: 1.5px; height: 4px; background: var(--fg); border-radius: 0 1px 1px 0; }
.app-status .battery .lvl { height: 100%; width: 75%; background: var(--fg); border-radius: 1px; }

.app-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.app-head .logo-orange {
  width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, #FF7A45 0%, #F0560E 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font: 700 7px/1 var(--font-ui); letter-spacing: -0.02em;
}
.app-head .profile { width: 32px; height: 32px; border-radius: 50%; border: 1.6px solid var(--pop); display: flex; align-items: center; justify-content: center; color: var(--pop); background: #fff; }

.app-title { font: 800 24px/1.05 var(--font-display); letter-spacing: -0.025em; margin: 0 0 4px; }
.app-subtitle { font: 14px/1.4 var(--font-ui); color: var(--fg-muted); margin: 0 0 18px; }

/* Hero teal card — the centerpiece of the home screen */
.app-scan-card {
  background: var(--pop); color: #fff; border-radius: 16px;
  padding: 26px 18px; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(20,184,166,0.4);
}
.app-scan-card::before, .app-scan-card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.app-scan-card::before { width: 100px; height: 100px; top: -40px; right: -20px; }
.app-scan-card::after  { width: 70px; height: 70px; bottom: -30px; right: 30px; }
.app-scan-card .cam-circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; position: relative; z-index: 1;
}
.app-scan-card .cam-circle::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  animation: ringPulse 2.4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%     { transform: scale(1.15); opacity: 0; }
}
.app-scan-card .title  { font: 700 18px/1.1 var(--font-display); letter-spacing: -0.02em; text-align: center; margin: 0 0 6px; position: relative; z-index: 1; }
.app-scan-card .desc   { font: 12px/1.4 var(--font-ui); text-align: center; opacity: 0.85; margin: 0; position: relative; z-index: 1; }

.app-gallery {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--pop); font: 600 12px/1 var(--font-ui); padding: 12px 0; margin-bottom: 6px;
}

.app-section-title { font: 700 14px/1 var(--font-display); letter-spacing: -0.01em; margin: 10px 0 10px; }
.app-section-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.app-section-row .see-all { color: var(--pop); font: 600 11px/1 var(--font-ui); }

.app-chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 4px; }
.app-chips .chip {
  padding: 8px 14px; border-radius: 999px; background: var(--card);
  font: 600 11px/1 var(--font-ui); color: var(--fg); white-space: nowrap; flex-shrink: 0;
}

.app-recent { display: flex; gap: 8px; margin-top: 4px; }
.app-recent .thumb {
  aspect-ratio: 4/5; flex: 1; border-radius: 10px; background: var(--card);
  position: relative; overflow: hidden;
}
.app-recent .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.app-recent .thumb.has-bg {
  background: radial-gradient(ellipse at 50% 40%, #2a2d31 0%, #15171a 100%);
}
.app-recent .thumb.has-bg::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 28%; height: 52%;
  background: linear-gradient(180deg, #4a4a4a 0%, #1a1a1a 60%, #0a0a0a 100%);
  clip-path: ellipse(50% 35% at 50% 60%);
}

/* Bottom tab bar */
.app-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
  color: var(--fg-muted);
}
.app-tabbar .tab { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.app-tabbar .tab.active { color: var(--pop); }
.app-tabbar .scan-fab {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--pop);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 0 0 6px #fff, 0 12px 24px rgba(20,184,166,0.4);
  animation: fabBreathe 3s ease-in-out infinite;
}
@keyframes fabBreathe {
  0%,100% { box-shadow: 0 0 0 6px #fff, 0 12px 24px rgba(20,184,166,0.4); }
  50%     { box-shadow: 0 0 0 6px #fff, 0 12px 32px rgba(20,184,166,0.7); }
}

/* legacy viewfinder styles — unused on the home-screen mockup */
.ph-viewfinder { display: none; }

/* reticle (kept for use in features visual A) */
.ph-reticle { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 60%; height: 44%; }
.ph-reticle .c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--pop); }
.ph-reticle .c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.ph-reticle .c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.ph-reticle .c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.ph-reticle .c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.ph-scanline { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--pop); box-shadow: 0 0 12px var(--pop), 0 0 24px var(--pop); top: 6px; animation: lineLoop 1.6s cubic-bezier(0.65,0,0.35,1) infinite alternate; }

.ph-result {
  position: absolute; left: 12px; right: 12px; bottom: 22px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 14px;
  color: var(--black); display: flex; gap: 12px; align-items: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  animation: resultUp 800ms cubic-bezier(0.22,1,0.36,1) 600ms both;
}
@keyframes resultUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ph-result .thumb { width: 44px; height: 52px; border-radius: 6px; background: linear-gradient(135deg, #5a7080, #15202c); flex-shrink: 0; }
.ph-result .info { flex: 1; min-width: 0; }
.ph-result .info .brand { font: 600 9px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 3px; }
.ph-result .info .name { font: 700 13px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-result .info .meta { font: 500 11px/1 var(--font-ui); color: var(--fg-muted); margin-top: 4px; }
.ph-result .price { text-align: right; flex-shrink: 0; }
.ph-result .price .now { font: 700 16px/1 var(--font-mono); color: var(--black); }
.ph-result .price .was { font: 11px/1 var(--font-mono); color: var(--fg-muted); text-decoration: line-through; margin-top: 3px; }

.ph-hint { position: absolute; top: 64px; left: 0; right: 0; text-align: center; font: 600 11px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ph-hint .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); margin-right: 6px; vertical-align: middle; animation: heroPulse 1.2s infinite; }

/* legacy .grid kept for any leftover usage but hidden */
.grid { display: none; }
.tile {
  border-radius: 8px; overflow: hidden; position: relative;
  background: var(--line);
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.tile:hover { transform: translateY(-4px); }
.tile .label {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
  font: 600 12px/1 var(--font-ui); color: var(--black);
  display: flex; align-items: center; gap: 6px;
}
.tile .label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pop); }
.tile .price-tag {
  position: absolute; right: 14px; bottom: 14px;
  background: var(--black); color: #fff; padding: 8px 12px; border-radius: 6px;
  font: 700 14px/1 var(--font-mono); display:flex; align-items:baseline; gap: 6px;
}
.tile .price-tag .was { font: 12px/1 var(--font-mono); opacity: 0.5; text-decoration: line-through; }
.tile.span-2 { grid-column: span 2; }
.tile.row-2 { grid-row: span 2; }

/* ===== Animated SVG fashion placeholders ===== */
.tile { background: #f3f1ee; }
.tile:has(img) > .ph-svg,
.tile:has(img) > .ph-grain,
.tile:has(img) > .ph-shadow { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ph-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ph-shadow {
  position: absolute; left: 18%; right: 18%; bottom: 6%; height: 8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(4px);
  animation: ph-shadow-pulse 6s ease-in-out infinite;
}
@keyframes ph-shadow-pulse {
  0%,100% { transform: scaleX(1) scaleY(1); opacity: 0.7; }
  50%     { transform: scaleX(0.88) scaleY(0.7); opacity: 0.5; }
}

.ph-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background-image:
    radial-gradient(rgba(0,0,0,0.6) 1px, transparent 1.5px),
    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1.5px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}

.ph-svg .float   { transform-origin: 50% 90%; animation: ph-breathe 6s ease-in-out infinite; }
.ph-svg .float-2 { animation: ph-sway 7.5s ease-in-out infinite; }
.ph-svg .float-3 { animation: ph-breathe 8s ease-in-out infinite; animation-delay: -2s; }
@keyframes ph-breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-4px) scale(1.012); }
}
@keyframes ph-sway {
  0%,100% { transform: translateY(0) rotate(-0.6deg); }
  50%     { transform: translateY(-3px) rotate(0.6deg); }
}

.ph-svg .sheen { animation: ph-sheen 5.5s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes ph-sheen {
  0%       { opacity: 0; transform: translateX(-60%) skewX(-20deg); }
  35%, 55% { opacity: 0.55; }
  100%     { opacity: 0; transform: translateX(60%) skewX(-20deg); }
}

.ph-scan {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  padding: 4px 8px; border-radius: 999px;
  font: 600 9px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; opacity: 0;
  animation: ph-scan-fade 6s ease-in-out infinite;
}
.ph-scan .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--pop);
  box-shadow: 0 0 8px var(--pop);
  animation: heroPulse 1.2s infinite;
}
@keyframes ph-scan-fade {
  0%,15%,85%,100% { opacity: 0; transform: translateY(-4px); }
  25%,75%         { opacity: 1; transform: translateY(0); }
}
.tile:nth-child(2) .ph-scan { animation-delay: -1s; }
.tile:nth-child(3) .ph-scan { animation-delay: -2s; }
.tile:nth-child(4) .ph-scan { animation-delay: -3s; }
.tile:nth-child(5) .ph-scan { animation-delay: -4s; }

.img-jacket  { background: radial-gradient(ellipse at 50% 30%, #f0f3f7 0%, #c0cad6 60%, #94a3b3 100%); }
.img-sneaker { background: radial-gradient(ellipse at 50% 30%, #faf3e3 0%, #e2cfa8 60%, #b89a6e 100%); }
.img-bag     { background: radial-gradient(ellipse at 50% 30%, #f4ebd9 0%, #d8c3a0 60%, #a98860 100%); }
.img-watch   { background: radial-gradient(ellipse at 50% 30%, #3a3e44 0%, #1a1d22 60%, #0a0c0e 100%); }
.img-dress   { background: radial-gradient(ellipse at 50% 30%, #fae3dc 0%, #d49a8a 60%, #9a5a4a 100%); }
.img-coat    { background: radial-gradient(ellipse at 50% 30%, #4a4338 0%, #2a241c 60%, #14110d 100%); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 220px); }
  .tile.span-2 { grid-column: span 2; }
  .tile.row-2 { grid-row: auto; }
}

/* ===== TICKER ===== */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin-top: 80px; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 64px; align-items: center; white-space: nowrap;
  animation: tickerLoop 40s linear infinite;
}
@keyframes tickerLoop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--fg);
  display: flex; align-items: center; gap: 64px; flex-shrink: 0;
}
.ticker-item::after { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); }

/* ===== HOW SECTION ===== */
section.how { padding: 120px 0; }
.section-head { display:flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-tag { font: 600 13px/1 var(--font-ui); letter-spacing: 0.02em; color: var(--fg-muted); margin-bottom: 16px; }
.section-tag .dot { display:inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); margin-right: 8px; vertical-align: middle; }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0; max-width: 14ch;
}
.section-title .accent { color: var(--pop); }
.section-aside { max-width: 38ch; color: var(--fg-muted); font-size: 16px; line-height: 1.55; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--line); border-radius: 8px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px; min-height: 320px;
  transition: border-color 200ms, background 200ms;
}
.step:hover { border-color: var(--black); }
.step .step-num {
  font: 700 14px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-muted);
}
.step .step-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--black); color: #fff;
  display:flex; align-items:center; justify-content:center;
}
.step:nth-child(2) .step-icon { background: var(--pop); color: #fff; }
.step .step-title {
  font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -0.025em; margin: auto 0 0;
}
.step .step-desc { color: var(--fg-muted); font-size: 15px; line-height: 1.55; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ===== STATS BAND ===== */
.stats {
  background: var(--pop); color: #fff; border-radius: 16px;
  padding: 64px 48px; margin: 0 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative; overflow: hidden;
}
.stats::before, .stats::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.stats::before { width: 280px; height: 280px; top: -100px; right: -60px; }
.stats::after  { width: 180px; height: 180px; bottom: -80px; left: 10%; }
.stat { position: relative; z-index: 1; }
.stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em;
  color: #fff;
}
.stat .num .accent { color: rgba(255,255,255,0.6); }
.stat .lbl { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 28px; } }

/* ===== FEATURES SPLIT ===== */
.features-split { padding: 120px 0; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 64px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row.flip .feature-text { order: 2; }
.feature-num { font: 700 13px/1 var(--font-mono); color: var(--fg-muted); margin-bottom: 16px; letter-spacing: 0.06em; }
.feature-h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.feature-p { color: var(--fg-muted); font-size: 17px; line-height: 1.55; max-width: 42ch; margin: 0 0 24px; }
.feature-list { list-style: none; padding: 0; margin: 0; display:flex; flex-direction: column; gap: 12px; }
.feature-list li { display:flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.feature-list li .check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--pop); flex-shrink: 0;
  display:flex; align-items:center; justify-content:center; margin-top: 2px;
}
.feature-visual {
  aspect-ratio: 4/3; border-radius: 8px; background: var(--line);
  overflow: hidden; position: relative;
}
/* Visual A: phone with reticle on top of jacket */
.visual-scan {
  background: radial-gradient(ellipse at 30% 30%, #4a5460 0%, #1a1f26 100%);
}
.visual-scan .reticle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 50%; height: 60%;
}
.visual-scan .reticle .corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--pop); }
.visual-scan .reticle .tl { top:0; left:0; border-right:0; border-bottom:0; border-top-left-radius: 6px; }
.visual-scan .reticle .tr { top:0; right:0; border-left:0; border-bottom:0; border-top-right-radius: 6px; }
.visual-scan .reticle .bl { bottom:0; left:0; border-right:0; border-top:0; border-bottom-left-radius: 6px; }
.visual-scan .reticle .br { bottom:0; right:0; border-left:0; border-top:0; border-bottom-right-radius: 6px; }
.visual-scan .reticle .scanline {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--pop);
  box-shadow: 0 0 16px var(--pop), 0 0 32px var(--pop);
  top: 8px; animation: lineLoop 1.6s cubic-bezier(0.65,0,0.35,1) infinite alternate;
}
@keyframes lineLoop { from { top: 8px; } to { top: calc(100% - 16px); } }
.visual-scan .meta {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: #fff; padding: 8px 12px; border-radius: 6px;
  font: 500 12px/1.2 var(--font-mono); display:flex; align-items:center; gap: 8px;
}
.visual-scan .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pop); animation: heroPulse 1.2s infinite; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot,
  .visual-scan .meta .dot,
  .ph-hint .dot,
  .ph-scan .dot,
  .app-scan-card .cam-circle::before,
  .app-tabbar .scan-fab { animation: none; }
  .visual-scan .reticle .scanline,
  .ph-scanline { animation: none; top: 50%; }
  .ticker-track { animation: none; }
  .ph-svg .float, .ph-svg .float-2, .ph-svg .float-3,
  .ph-svg .sheen,
  .ph-shadow,
  .ph-scan,
  .ph-result,
  .sim-float, .sim-sheen,
  .visual-similar .item .sim-match::before { animation: none; }
}

/* Visual B: price comparison list */
.visual-prices { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.visual-prices .item-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line);
}
.visual-prices .item-row.best { background: var(--black); color: #fff; border-color: var(--black); }
.visual-prices .item-row.best .store { color: #fff; }
.visual-prices .item-row.best .price { color: var(--pop); }
.visual-prices .store { font: 600 15px/1 var(--font-display); letter-spacing: -0.01em; color: var(--fg); }
.visual-prices .stock { font: 500 12px/1 var(--font-ui); color: var(--fg-muted); }
.visual-prices .price { font: 700 18px/1 var(--font-mono); color: var(--fg); }
.visual-prices .best-tag {
  font: 700 9px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--pop); color: var(--black); padding: 4px 7px; border-radius: 4px;
  justify-self: end; align-self: center;
}

/* Visual C: similar items grid — 3 cols × 2 rows, first item spans both rows.
   Rows use 1fr so each tile gets an equal share of the container height;
   we deliberately don't put aspect-ratio on items so the grid resolves
   cell sizes without conflict (with aspect-ratio set, CSS Grid stretches
   the tracks to compromise between two different ratios and the images
   end up overlapping their neighbors). */
.visual-similar {
  background: #fff; padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.visual-similar .item {
  border-radius: 6px; position: relative;
  overflow: hidden;
}
.visual-similar .item:first-child { grid-column: 1; grid-row: 1 / span 2; }
.visual-similar .item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.visual-similar .item svg.sim-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-similar .item .sim-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.visual-similar .item .sim-match {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
  color: var(--black); padding: 3px 6px; border-radius: 3px;
  font: 700 9px/1 var(--font-mono); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 4px;
}
.visual-similar .item .sim-match .pct { color: var(--pop); }
.visual-similar .item .sim-match::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pop);
  animation: simPulse 1.4s ease-in-out infinite;
}
@keyframes simPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
.visual-similar .item .sim-float { animation: simFloat 5s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes simFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-0.6deg); } }
.visual-similar .item .sim-sheen {
  animation: simSheen 6s ease-in-out infinite; transform: translateX(-30px); mix-blend-mode: screen;
}
.visual-similar .item:nth-child(2) .sim-sheen { animation-delay: 1s; }
.visual-similar .item:nth-child(3) .sim-sheen { animation-delay: 2s; }
.visual-similar .item:nth-child(4) .sim-sheen { animation-delay: 3s; }
.visual-similar .item:nth-child(5) .sim-sheen { animation-delay: 4s; }
@keyframes simSheen {
  0%, 60%, 100% { transform: translateX(-30px); opacity: 0; }
  65% { opacity: .35; }
  90% { transform: translateX(120px); opacity: 0; }
}
.visual-similar .item:has(img) svg.sim-svg,
.visual-similar .item:has(img) .sim-grain,
.visual-similar .item:has(img) .sim-match { display: none; }
.visual-similar .item:first-child::after {
  content: "ORIGINAL"; position: absolute; top: 8px; left: 8px; z-index: 3;
  background: var(--pop); color: var(--black); padding: 3px 6px;
  font: 700 9px/1 var(--font-ui); letter-spacing: 0.08em; border-radius: 3px;
}

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-text { order: 0; }
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--pop); color: #fff;
  padding: 120px 40px; border-radius: 16px;
  margin: 0 24px 48px;
  position: relative; overflow: hidden; text-align: center;
}
@media (min-width: 900px) { .final-cta { margin: 0 40px 80px; } }
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.1); pointer-events: none;
}
.final-cta::before { width: 360px; height: 360px; top: -120px; right: -80px; }
.final-cta::after  { width: 220px; height: 220px; bottom: -80px; left: -40px; }
.final-cta > * { position: relative; }
.final-cta h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(48px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.05em;
  margin: 0 0 24px; color: #fff;
  text-wrap: balance;
}
.final-cta h2 .accent { color: rgba(255,255,255,0.85); font-style: italic; font-weight: 800; }
.final-cta p { color: rgba(255,255,255,0.65); font-size: 18px; max-width: 48ch; margin: 0 auto 40px; }
.final-cta .stores { display:flex; gap: 12px; justify-content:center; flex-wrap: wrap; }
.final-cta .store-btn { background: #fff; color: var(--fg); }
.final-cta .store-btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.final-cta .store-btn:hover { background: var(--fg); color: #fff; }

/* ===== FOOTER ===== */
footer { padding: 64px 24px 32px; }
@media (min-width: 900px) { footer { padding: 64px 40px 32px; } }
.footer-top {
  display: flex; gap: 64px; justify-content: space-between; align-items: flex-end;
  padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
  flex-wrap: wrap;
}
.foot-wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 12vw, 180px); line-height: 0.95; letter-spacing: -0.04em;
  color: var(--fg); margin: 0;
}
.foot-wordmark .accent { color: var(--pop); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; min-width: 280px; }
.foot-cols h5 { font: 600 12px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 16px; }
.foot-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--fg); }
.foot-cols a:hover { color: var(--fg-muted); }
.foot-bottom {
  display:flex; justify-content:space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--fg-muted);
}
.foot-bottom .social { display:flex; gap: 8px; }
.foot-bottom .social a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display:inline-flex; align-items:center; justify-content:center; color: var(--fg);
}
.foot-bottom .social a:hover { background: var(--black); color: #fff; border-color: var(--black); }
@media (max-width: 720px) { .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
