/*
 * KicksAlert marketing site — design tokens echoed from the iOS app.
 * Source of truth: design-system/DESIGN_SYSTEM.md §2 (which mirrors
 * KicksAlert/Styling/AppColors.swift). Light values are the defaults;
 * dark values override under prefers-color-scheme: dark.
 */

:root {
  /* Chrome */
  --accent: #212126;
  --on-accent: #ffffff;
  --secondary-text: #66666b;
  --text: #17171a;

  /* Signals */
  --hype-high: #c7450d;
  --hype-ultra: #d6290f;
  --price: #148040;
  --resale-premium: #1a8c4d;

  /* Background — warm radial gradient (feed atmosphere) */
  --bg-tint: #fff2e0;
  --bg-edge: #f2f2f7;

  /* Card surfaces */
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);

  /* Radius scale (design-system §4) */
  --r-16: 16px;
  --r-14: 14px;
  --r-12: 12px;
  --r-10: 10px;

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f0f0f5;
    --on-accent: #1c1c21;
    --secondary-text: #a3a3a8;
    --text: #f5f5f7;

    --hype-high: #ff941f;
    --hype-ultra: #ff522e;
    --price: #4dd173;
    --resale-premium: #5cd98c;

    --bg-tint: #2e2114;
    --bg-edge: #000000;

    --card: #1a1a1d;
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  font-size: 17px;
  /* Fixed warm radial gradient, matching the app feed background. */
  background:
    radial-gradient(120% 80% at 50% 0%, var(--bg-tint) 0%, var(--bg-edge) 60%)
    no-repeat;
  background-attachment: fixed;
  background-color: var(--bg-edge);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg-edge) 70%, transparent);
  border-bottom: 1px solid var(--card-border);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
  text-decoration: none;
}

.brand .flame {
  color: var(--hype-ultra);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 15px;
}

.nav-links a {
  color: var(--secondary-text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-14);
  border: none;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hype-high);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero .lede {
  font-size: 19px;
  color: var(--secondary-text);
  margin: 0 0 28px;
  max-width: 40ch;
}

.hero .lede strong {
  color: var(--text);
}

/* ---- Compare strip ---- */
.compare {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 4px;
}

.compare .pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 14px;
  color: var(--secondary-text);
}

.compare .pill b {
  color: var(--text);
  font-weight: 700;
}

.compare .pill .price {
  color: var(--price);
  font-weight: 700;
}

/* ---- Sections ---- */
section.block {
  padding: 44px 0;
}

.section-head {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 34px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
}

.section-head p {
  color: var(--secondary-text);
  margin: 0;
}

/* ---- Value props ---- */
.props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.prop {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-16);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.prop .icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.prop h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.prop p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 15px;
}

/* ---- How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-16);
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 15px;
}

/* ---- Compare table (vs curated aggregators) ---- */
.vs {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-16);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.vs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
}

.vs-row:last-child {
  border-bottom: none;
}

.vs-row.head {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  background: color-mix(in srgb, var(--bg-tint) 40%, transparent);
}

.vs-row .us {
  color: var(--text);
  font-weight: 600;
}

.vs-row .them {
  color: var(--secondary-text);
}

.vs-row .feat {
  color: var(--secondary-text);
}

.vs-row .yes {
  color: var(--resale-premium);
  font-weight: 700;
}

.vs-row .no {
  color: var(--secondary-text);
}

/* ---- Phone mock (stand-in for the live-feed screenshot) ---- */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #3a3a3f, #17171a);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg-tint) 0%, var(--bg-edge) 70%);
  padding: 16px 12px 20px;
}

.phone-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--secondary-text);
  margin-bottom: 12px;
  padding: 0 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf4e;
  box-shadow: 0 0 0 3px rgba(47, 191, 78, 0.18);
}

.feed-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-14);
  padding: 12px;
  margin-bottom: 10px;
}

.thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--r-12);
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e9e9ef, #d3d3dd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

@media (prefers-color-scheme: dark) {
  .thumb {
    background: linear-gradient(135deg, #2c2c31, #232327);
  }
}

.feed-meta {
  min-width: 0;
  flex: 1;
}

.feed-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hype-row {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.hype-row.high {
  color: var(--hype-high);
}

.hype-row.ultra {
  color: var(--hype-ultra);
}

.feed-sub {
  font-size: 12px;
  color: var(--secondary-text);
}

.feed-sub .price {
  color: var(--price);
  font-weight: 700;
}

.mock-note {
  text-align: center;
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 12px;
}

/* ---- Waitlist ---- */
.waitlist-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-16);
  padding: 28px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.waitlist-card h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 800;
}

.waitlist-card > p {
  color: var(--secondary-text);
  margin: 0;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--r-14);
  border: 1px solid var(--card-border);
  background: var(--bg-edge);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Honeypot — visually removed, never seen by real users, still submittable by
   bots. Kept off-screen (NOT display:none, so bots that skip hidden fields
   still fill it) and out of the tab order + hidden from assistive tech. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  margin-top: 14px;
  font-size: 15px;
  min-height: 1.2em;
}

.form-msg.ok {
  color: var(--resale-premium);
  font-weight: 600;
}

.form-msg.err {
  color: var(--hype-ultra);
  font-weight: 600;
}

.badge-note {
  margin-top: 22px;
  color: var(--secondary-text);
  font-size: 14px;
}

/* App Store badge placeholder — swap for the official SVG badge when the app
   is live on the App Store (see site/README.md). */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--r-12);
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 600;
}

.appstore-badge .apple {
  font-size: 20px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 34px 0 48px;
  margin-top: 24px;
  color: var(--secondary-text);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 70ch;
}

/* ---- Legal / prose pages ---- */
.prose-wrap {
  padding: 48px 0 24px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-16);
  padding: 40px clamp(20px, 5vw, 48px);
  box-shadow: var(--card-shadow);
}

.prose h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.prose h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}

.prose h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--hype-high);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--hype-high);
  background: color-mix(in srgb, var(--bg-tint) 40%, transparent);
  border-radius: var(--r-10);
  color: var(--secondary-text);
}

.prose blockquote p {
  margin: 0;
  color: var(--secondary-text);
}

.back-link {
  display: inline-block;
  margin: 0 auto 20px;
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 15px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.support-grid .prop {
  box-shadow: none;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero {
    padding: 48px 0 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero .lede {
    max-width: none;
  }
  .phone {
    order: -1;
  }
  .props {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }
  .footer-row {
    flex-direction: column;
  }
  .vs-row {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    font-size: 13px;
    padding: 12px 14px;
  }
}
