/* ============================================================
   KickScanner — Landing Page styles
   Built on Lattice (dark by default), lime accent, mono tickers
   ============================================================ */

@import url('lattice/fonts.css');
@import url('lattice/colors_and_type.css');

:root {
  /* Surface ramp — dark by default (override Lattice .dark class via :root) */
  --background: oklch(0.145 0 0);          /* near black */
  --bg-deep:    oklch(0.10  0 0);          /* full black */
  --bg-card:    oklch(0.205 0 0);          /* card */
  --bg-raised:  oklch(0.235 0 0);          /* raised surface */
  --foreground: oklch(0.985 0 0);
  --muted-fg:   oklch(0.715 0 0);
  --dim-fg:     oklch(0.556 0 0);
  --hairline:   oklch(1 0 0 / 0.10);
  --hairline-strong: oklch(1 0 0 / 0.18);

  --primary: var(--brand);
  --primary-foreground: oklch(0.145 0 0);

  --tracking-tight: -0.02em;
  --tracking-tighter: -0.035em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; letter-spacing: inherit; }

/* ---- Tickers / mono labels ---- */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Hairlines ---- */
.hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ---- Containers ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: oklch(0.145 0 0);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-10); border-color: var(--brand-10); }
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.05); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---- Section frame ---- */
section { position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-fg);
}
.section-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px oklch(0.963 0.166 113.862 / 0.18);
}

/* ---- Display type ---- */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--tracking-tighter);
  line-height: 0.95;
}
.display-italic { font-style: italic; font-weight: 400; }

/* ---- Marquee / ticker bar ---- */
.ticker {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.ticker-track {
  display: flex; gap: 48px;
  padding: 12px 0;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-fg);
  display: inline-flex; align-items: center; gap: 12px;
}
.ticker-item .price { color: var(--brand); }
.ticker-item .delta-up { color: oklch(0.741 0.199 147.068); }
.ticker-item .delta-dn { color: oklch(0.65 0.226 27.094); }
.ticker-item .sep { color: var(--dim-fg); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Hairline grid background ---- */
.bg-grid {
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.card-flat {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

/* ---- Form ---- */
.input {
  display: block; width: 100%;
  padding: 14px 16px;
  background: oklch(1 0 0 / 0.04);
  color: var(--foreground);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: inherit;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}
.input::placeholder { color: var(--dim-fg); }
.input:focus { border-color: var(--brand); background: oklch(1 0 0 / 0.06); }

/* ---- Phone visual (hero) ---- */
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  background: #0a0a0a;
  border-radius: 44px;
  border: 1px solid oklch(1 0 0 / 0.14);
  padding: 12px;
  box-shadow:
    0 0 0 6px #1a1a1a,
    0 30px 60px -20px oklch(0 0 0 / 0.6),
    0 0 80px -10px oklch(0.963 0.166 113.862 / 0.25);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 5;
}

/* ---- Scanner overlay ---- */
.scan-frame {
  position: absolute;
  inset: 80px 28px 180px 28px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px oklch(0 0 0 / 0.45);
}
.scan-frame::before, .scan-frame::after,
.scan-frame .c1, .scan-frame .c2 {
  content: '';
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--brand);
}
.scan-frame::before { top: -2px; left: -2px;  border-right: 0; border-bottom: 0; }
.scan-frame::after  { top: -2px; right: -2px; border-left: 0;  border-bottom: 0; }
.scan-frame .c1     { bottom: -2px; left: -2px;  border-right: 0; border-top: 0; }
.scan-frame .c2     { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; }
.scan-line {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 12px var(--brand);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%   { top: 4%;  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

/* ---- Confidence pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-brand { background: var(--brand); color: #111; }
.pill-success { background: oklch(0.741 0.199 147.068 / 0.18); color: oklch(0.85 0.15 147.068); border: 1px solid oklch(0.741 0.199 147.068 / 0.4); }
.pill-warn { background: oklch(0.875 0.165 91.772 / 0.18); color: oklch(0.92 0.16 91.772); border: 1px solid oklch(0.875 0.165 91.772 / 0.4); }
.pill-dim { background: oklch(1 0 0 / 0.06); color: var(--muted-fg); border: 1px solid var(--hairline); }

/* ---- Big numbered steps ---- */
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.04em;
}

/* ---- Shoe placeholder card (streetwear/StockX style) ---- */
.shoe-card {
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.shoe-photo {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 70%, oklch(1 0 0 / 0.04) 0%, transparent 60%),
    repeating-linear-gradient(45deg, oklch(1 0 0 / 0.015) 0 12px, transparent 12px 24px),
    var(--bg-deep);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.shoe-photo .ph-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim-fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- FAQ ---- */
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 20px; font-weight: 500; letter-spacing: var(--tracking-tight);
}
.faq-a {
  margin-top: 12px;
  color: var(--muted-fg);
  font-size: 16px; line-height: 1.6;
  max-width: 720px;
}
.faq-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease, background 120ms ease;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--foreground);
}
.faq-item.open .faq-toggle { background: var(--brand); color: #111; border-color: var(--brand); transform: rotate(180deg); }

/* ---- Feature list ---- */
.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.feature-row:last-child { border-bottom: 1px solid var(--hairline); }
.feature-row .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim-fg);
}
.feature-row .name {
  font-size: 18px; font-weight: 500;
  letter-spacing: var(--tracking-tight);
}
.feature-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Quotes ---- */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  height: 100%;
}
.quote-card .stars {
  color: var(--brand);
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}
.quote-card blockquote {
  margin: 0;
  font-size: 22px; line-height: 1.35;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}
.quote-card .by {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.5 0 0), oklch(0.3 0 0));
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px;
  border: 1px solid var(--hairline);
}

/* ---- Highlight (lime swatch behind text) ---- */
.hl {
  background: var(--brand);
  color: #111;
  padding: 0 0.18em;
  border-radius: 2px;
  font-style: italic;
  font-weight: 500;
}

/* ---- Helpers ---- */
.kbd {
  display: inline-block;
  padding: 2px 6px;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Timeline ---- */
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.2); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .phone { transform: scale(0.85); transform-origin: center; }
  .timeline-row {
    grid-template-columns: 56px 1fr !important;
    gap: 20px !important;
  }
  .timeline-row > div:nth-child(2),
  .timeline-row > div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: auto !important;
    padding-bottom: 24px !important;
  }
  .timeline-row > div:nth-child(3) { padding-bottom: 56px !important; }
}
