/* Spot It All — marketing site styles.
   Tokens mirror the mobile app (mobile/src/design/tokens.js) so the landing
   page matches the in-app "Get Started" screen exactly. */

@font-face {
  font-family: 'Nohemi';
  src: url('./assets/Nohemi-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #efefef;
  --surface: #ffffff;
  --text: #1e1e1e;
  --text-muted: rgba(29, 29, 28, 0.55);
  --primary: #2463eb;
  --ring: 0px 0px 0px 1px #e7e7e7, 0px 1px 2px rgba(35, 35, 35, 0.04),
    0px 2px 4px rgba(35, 35, 35, 0.03);
  --surface-shadow: 0px 1px 2px rgba(35, 35, 35, 0.04),
    0px 2px 4px rgba(35, 35, 35, 0.03);

  /* rarity palette */
  --r-common: #737373;
  --r-uncommon: #00a86b;
  --r-rare: #1960e7;
  --r-epic: #7c3aed;
  --r-legendary: #c5a342;
  --r-exotic: #e11d48;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* ----------------------------------------------------------------------------
   Landing / hero (mirrors AuthIntro.tsx)
---------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  left: 50%;
  bottom: 106px;
  transform: translateX(-50%);
  /* Full screen width on mobile, capped on larger viewports. */
  width: 100vw;
  max-width: 560px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 9vh, 88px) 22px 28px;
}

.eyebrow {
  margin-bottom: 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.headline {
  font-family: 'Nohemi', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 10.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.8px;
  text-align: center;
  color: var(--text);
  margin: 0;
  max-width: 360px;
}

/* card stack */
.cardstack {
  margin-top: clamp(96px, 20vh, 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cardstack__viewport {
  position: relative;
  width: 286px;
  height: calc(286px * 172 / 280 + 44px);
  cursor: pointer;
}

.card {
  position: absolute;
  left: 0;
  width: 286px;
  height: calc(286px * 172 / 280);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--ring);
  overflow: hidden;
}

.card--back {
  top: 40px;
  transform: scale(0.95);
  opacity: 0.84;
  background: #fafafa;
  box-shadow: 0px 0px 0px 1px #e9e9e9, 0px 6px 18px rgba(35, 35, 35, 0.05);
}

.card--front {
  top: 0;
  transition: opacity 0.22s ease;
}

.card__num {
  position: absolute;
  left: 11px;
  top: 9px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.card__rarity {
  position: absolute;
  right: 0;
  top: 0;
  height: 26px;
  min-width: 54px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.card__car {
  position: absolute;
  object-fit: contain;
}

.card__make {
  position: absolute;
  left: 12px;
  bottom: 32px;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  color: var(--text);
}

.card__model {
  position: absolute;
  left: 12px;
  bottom: 13px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.card__xp {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--text);
}

.dots {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: #d6d6d6;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.dot--active {
  width: 28px;
  background: var(--text);
}

/* CTA */
.cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}

.btn-primary {
  height: 52px;
  width: 100%;
  border-radius: 55px;
  background: var(--text);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

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

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.cta__sub {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
}

/* ----------------------------------------------------------------------------
   Footer (shared)
---------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid #e3e3e3;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer__copy {
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   Legal pages (mirrors LegalContent.tsx)
---------------------------------------------------------------------------- */
.legal {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.legal__topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(239, 239, 239, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #e3e3e3;
}

.legal__topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal__topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.legal__title {
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  font-weight: 600;
}

.legal__topbar .spacer {
  width: 64px;
}

.legal__body {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

.legal__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.legal__updated {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.legal__sections {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--ring);
  padding: 18px;
}

.legal-section h2 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.legal-section .blocks {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section p {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.legal__contact {
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  padding: 14px 4px 0;
}

.legal__contact a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
