/* The Rundown — landing page */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--scan);
  box-shadow: 0 0 0 0 var(--scan-glow);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--scan-glow); }
  50%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
}
.hero-trust strong { color: var(--black); font-weight: 500; }

/* ----- Hero visual: animated shoe sole scanner ----- */

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  padding: 0 60px;
}

.scan-frame {
  position: absolute; left: 60px; right: 60px; top: 0; bottom: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  /* overflow visible so annotations can sit just outside the frame */
}

.scan-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(58, 125, 150, 0.3);
  border-radius: 18px;
  pointer-events: none;
}

.scan-sole {
  position: absolute;
  inset: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-sole svg {
  width: 100%;
  height: 100%;
}

/* The traveling scan line — stays within the frame visually */
.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  z-index: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--scan) 20%,
    var(--scan) 80%,
    transparent 100%
  );
  box-shadow: 0 0 20px var(--scan-glow), 0 0 40px var(--scan-glow);
  top: 10%;
  animation: scanTravel 3.6s var(--ease) infinite;
}
@keyframes scanTravel {
  0%   { top: 10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* Wear-zone dots that "light up" as the line passes */
.zone-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--scan);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: zonePop 3.6s var(--ease) infinite;
  box-shadow: 0 0 0 0 var(--scan-glow);
}
@keyframes zonePop {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); box-shadow: 0 0 0 0 var(--scan-glow); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 8px transparent; }
}
.zone-dot.heel-lat   { left: 38%; top: 22%; animation-delay: 0.4s; }
.zone-dot.midfoot    { left: 52%; top: 48%; animation-delay: 1.4s; }
.zone-dot.fore-med   { left: 60%; top: 70%; animation-delay: 2.2s; }
.zone-dot.toe        { left: 50%; top: 84%; animation-delay: 2.8s; }

/* Floating annotation chip */
.scan-annotation {
  position: absolute;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: annotFloat 3.6s var(--ease) infinite;
}
.scan-annotation::before {
  content: '';
  position: absolute;
  width: 24px; height: 1px;
  background: var(--scan);
  left: -28px; top: 50%;
}
.scan-annotation.heel { top: 18%; right: -56px; animation-delay: 0.6s; }
.scan-annotation.fore { top: 66%; left: -56px; animation-delay: 2.4s; }
.scan-annotation.fore::before { left: auto; right: -28px; }
.scan-annotation::before { z-index: 1; }
@keyframes annotFloat {
  0%, 25%, 100% { opacity: 0; transform: translateX(-8px); }
  35%, 75% { opacity: 1; transform: none; }
}

/* ========== How it works ========== */

.how {
  padding: 120px var(--gutter);
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 28px;
  background: var(--cream);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ========== Honesty section ========== */

.honesty {
  padding: 120px var(--gutter);
  background: var(--cream);
}
.honesty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 880px) { .honesty-grid { grid-template-columns: 1fr; gap: 32px; } }

.honesty p { margin-bottom: 16px; color: var(--dark); font-size: 1.05rem; line-height: 1.65; }

.sample-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.sample-card .sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sample-card h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sample-card p {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.sample-card cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gray);
  font-family: var(--font-mono);
}

/* ========== Final CTA ========== */

.final-cta {
  padding: 160px var(--gutter);
  text-align: center;
  background: var(--black);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--scan);
}
.final-cta .btn-scan {
  font-size: 1.1rem;
  padding: 20px 36px;
}

/* ========== Footer ========== */

.footer {
  padding: 56px var(--gutter) 40px;
  background: var(--black);
  color: var(--light-gray);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer a { color: var(--cream); transition: color .25s var(--ease); }
.footer a:hover { color: var(--scan); }
.footer .small { font-size: 0.85rem; color: var(--gray); }
