/* ============================================================
   swaprlab.com — marketing site styles.
   Built on the Swapr design system tokens (see styles.css).
   Dark canvas, one yellow, heavy system type, flat hairline cards.
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-accent); text-decoration: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--space-lg); }

/* ---- Wordmark ---- */
.wordmark {
  font-weight: var(--weight-black);
  color: var(--accent);
  letter-spacing: var(--tracking-wordmark);
  line-height: 0.9;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--text-body); font-weight: var(--weight-heavy);
  border-radius: var(--radius-pill); padding: 14px 24px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(var(--press-scale)); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { background: var(--surface-card); }
.btn ion-icon { font-size: 20px; }

/* ---- Top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 11, 0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 27px; }
.brand .wordmark { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a:not(.btn) { color: var(--text-muted); font-weight: var(--weight-semibold); font-size: var(--text-label); }
.nav-links a:not(.btn):hover { color: var(--text-primary); }
.nav .btn { padding: 9px 18px; font-size: var(--text-label); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(125% 80% at 50% 4%, #1e1e1e 0%, var(--surface-app) 58%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl);
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: var(--text-small); font-weight: var(--weight-bold);
  color: var(--text-muted); margin-bottom: var(--space-lg);
}
.livedot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--swapr-success);
  box-shadow: 0 0 14px rgba(0, 200, 83, 0.7); }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: var(--weight-heavy);
  letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 var(--space-md);
}
.hero h1 .y { color: var(--accent); }
.hero .lead { font-size: var(--text-subhead); color: var(--text-muted); margin: 0 0 var(--space-xl); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.hero-note { margin-top: var(--space-md); font-size: var(--text-small); color: var(--text-muted); }

/* ---- Phone mock ---- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 600px;
  border-radius: 48px; background: var(--surface-app); border: 9px solid #1d1d1d;
  overflow: hidden; box-shadow: var(--shadow-modal);
}
.notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #000; border-radius: var(--radius-pill); z-index: 5; }
.swcard { position: absolute; inset: 18px; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-default); background: var(--surface-card); display: flex; flex-direction: column; }
.swcard .photo { flex: 1; background-size: cover; background-position: center; position: relative; }
.swcard .scrim { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 2%, rgba(0,0,0,0.45) 36%, rgba(0,0,0,0) 70%); }
.value-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: var(--accent); color: var(--text-on-accent);
  font-weight: var(--weight-heavy); font-size: var(--text-small);
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.swcard .info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; }
.swcard .info h3 { margin: 0; font-size: var(--text-heading); font-weight: var(--weight-heavy); }
.swcard .info p { margin: 2px 0 0; color: var(--text-muted); font-size: var(--text-small); }
.stamp {
  position: absolute; top: 26px; right: 18px; z-index: 4;
  font-weight: var(--weight-black); font-size: 26px; letter-spacing: 1px; line-height: 1;
  color: var(--swapr-success); border: 5px solid var(--swapr-success);
  border-radius: var(--radius-sm); padding: 6px 12px; transform: rotate(12deg);
}

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 36ch; margin: 0 auto var(--space-2xl); }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: var(--weight-heavy);
  letter-spacing: -0.02em; margin: 0 0 10px; }
.section-head p { color: var(--text-muted); font-size: var(--text-subhead); margin: 0; }
.kicker { color: var(--accent); font-weight: var(--weight-bold); font-size: var(--text-small);
  letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 10px; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.step { background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); }
.step .icon {
  width: 64px; height: 64px; border-radius: var(--radius-pill);
  background: rgba(255, 200, 61, 0.12); border: 1px solid rgba(255, 200, 61, 0.3);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md);
}
.step .icon ion-icon { font-size: 30px; color: var(--accent); }
.step .num { font-family: var(--font-mono); color: var(--accent); font-weight: var(--weight-bold);
  font-size: var(--text-small); }
.step h3 { margin: 6px 0; font-size: var(--text-heading); font-weight: var(--weight-heavy); }
.step p { margin: 0; color: var(--text-muted); }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.feature { background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-lg); }
.feature ion-icon { font-size: 26px; color: var(--accent); }
.feature h3 { margin: 12px 0 6px; font-size: var(--text-subhead); font-weight: var(--weight-bold); }
.feature p { margin: 0; color: var(--text-muted); font-size: var(--text-label); }

/* ---- Match band ---- */
.match-band { background: var(--surface-well); border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default); text-align: center; }
.match-band .display { font-size: clamp(34px, 5vw, 52px); font-weight: var(--weight-black);
  letter-spacing: -0.03em; margin: 0; }
.match-band .display .y { color: var(--accent); }
.match-band p { color: var(--text-muted); font-size: var(--text-subhead); margin: 10px 0 0; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: var(--weight-heavy);
  letter-spacing: -0.025em; margin: 0 0 var(--space-md); }
.cta-band h2 .y { color: var(--accent); }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border-default); padding: var(--space-2xl) 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: var(--text-small); }
.foot-brand img { width: 22px; height: 23px; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot-links a { color: var(--text-muted); font-weight: var(--weight-semibold); font-size: var(--text-label); }
.foot-links a:hover { color: var(--text-primary); }

/* ---- Legal / long-form pages ---- */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: var(--text-title); font-weight: var(--weight-heavy);
  letter-spacing: -0.02em; margin: 0 0 4px; }
.legal .updated { color: var(--text-muted); font-size: var(--text-small); margin: 0 0 var(--space-xl); }
.legal h2 { color: var(--accent); font-size: var(--text-subhead); font-weight: var(--weight-bold);
  margin: var(--space-xl) 0 var(--space-sm); }
.legal p, .legal li { color: #d6d6d6; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .back { display: inline-block; color: var(--text-muted); font-weight: var(--weight-bold);
  font-size: var(--text-label); margin-bottom: var(--space-lg); }
.legal .back:hover { color: var(--text-primary); }
.legal .legal-foot { margin-top: var(--space-2xl); border-top: 1px solid var(--border-default);
  padding-top: var(--space-md); color: var(--text-muted); font-size: var(--text-small); }

/* ---- Entrance animation ---- */
.fade-up { animation: swapr-fade-up var(--dur-slow) var(--ease-out) both; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-2xl); padding-top: 48px; }
  .hero-text { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
  .btn, * { transition: none !important; }
}
