/* Landing page + legal pages (index.html, privacy.html, terms.html) -
   self-contained rather than sharing style.css, since this page has a
   different job (persuade, not operate). Uses the same Holo Gold palette
   and Geist type as the logged-in app so the two feel like one product. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #0E1014;
  --bg-2: #111317;
  --surface: #15181D;
  --surface-2: #1B1F25;
  --surface-3: #232830;
  --border: #262B33;
  --divider: #1F242B;
  --text: #E7E9EE;
  --text-soft: #B7BDC8;
  --text-muted: #8B93A1;
  --text-faint: #5E6674;
  --accent: #D9A441;
  --accent-ink: #0B0D10;
  --accent-bg: #2A2415;
  --accent-line: #5A4520;
  --success: #3DD68C;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* One soft gold glow behind the top of the page - nothing fixed or tiling. */
body {
  background:
    radial-gradient(ellipse 1100px 680px at 72% -260px, rgba(217, 164, 65, 0.09), transparent 65%),
    var(--bg);
}

.home-screen { position: relative; }

a { color: inherit; text-decoration: none; }

p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #E4B254; }

.btn-secondary { background: var(--surface-3); color: var(--text); }
.btn-secondary:hover { background: #2A3038; }

.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--text-faint); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-trial { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.btn-trial:hover { background: var(--accent-bg); }

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.section {
  max-width: calc(var(--wrap) + 80px);
  margin: 0 auto;
  padding: 110px 40px 0;
}

.section-head { display: flex; flex-direction: column; gap: 16px; }

.section-head h2 {
  margin: 0;
  max-width: 720px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.accent-text { color: var(--accent); }

.back-to-top {
  display: block;
  width: max-content;
  margin: 40px 0 0 auto;
  font-size: 12px;
  color: var(--text-faint);
  transition: color 0.15s ease;
}
.back-to-top:hover { color: var(--text-soft); }

/* ---------------------------------------------------------------------
   Nav
   --------------------------------------------------------------------- */
.site-nav {
  position: relative;
  z-index: 10;
  max-width: calc(var(--wrap) + 80px);
  margin: 0 auto;
  padding: 0 40px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.nav-logo { width: auto; height: 32px; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; white-space: nowrap; }

.nav-link {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%238B93A1' stroke-width='1.5'%3E%3Cpath d='M2 4l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--text-faint); }
.lang-select option { background: var(--surface); color: var(--text); }

.nav-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  max-width: calc(var(--wrap) + 80px);
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy { max-width: 580px; display: flex; flex-direction: column; gap: 24px; }

.hero-trial-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  transition: box-shadow 0.15s ease;
}
.hero-trial-badge:hover { box-shadow: inset 0 0 0 1px var(--accent); }

.hero-title {
  margin: 0;
  font-size: 60px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -2.4px;
  text-wrap: balance;
}

.hero-sub { margin: 0; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--text-soft); }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* the YouTube overview video, next to Take a Tour */
.btn-youtube { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }

.hero-login-hint { margin: 0; font-size: 14px; color: var(--text-muted); }
.hero-login-hint a { color: var(--accent); }
.hero-login-hint a:hover { text-decoration: underline; }

/* The match panel: two raw photos on the left - one Pokemon, one Magic -
   and both cards matched and renamed on the right, split by a gold line.
   Pokemon: real cropped photos (img/hero-card-*); Magic: Scryfall's scans
   (img/mtg-*). */
.hero-visual { flex: none; width: 540px; }

.match-panel {
  position: relative;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 62% 30%, rgba(217, 164, 65, 0.13), transparent 55%),
    radial-gradient(ellipse at 80% 72%, rgba(194, 96, 58, 0.12), transparent 55%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--divider);
}

.hero-file {
  position: absolute;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.hero-file-before { left: 32px; color: var(--text-faint); }
.hero-file-after { left: 320px; top: 22px; line-height: 1.5; color: var(--accent); }

.hero-card {
  position: absolute;
  width: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.hero-card img { display: block; width: 100%; }

.unmatched-cards .hero-card-a { left: 26px; top: 76px; transform: rotate(-9deg); z-index: 1; }
.unmatched-cards .hero-card-b { left: 124px; top: 112px; transform: rotate(5deg); z-index: 2; }

.reveal-divider {
  position: absolute;
  left: 304px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  z-index: 3;
  background: linear-gradient(rgba(217, 164, 65, 0), var(--accent), rgba(217, 164, 65, 0));
}
.reveal-handle {
  position: absolute;
  left: -8px;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

/* --r keeps each card's tilt while it floats */
.matched-card .hero-card {
  width: 138px;
  box-shadow: 0 0 0 1px var(--accent), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(217, 164, 65, 0.16);
  transform: rotate(var(--r));
  animation: hero-float 6s ease-in-out infinite;
}
.matched-card .hero-card-pk { --r: -5deg; left: 322px; top: 74px; z-index: 4; }
.matched-card .hero-card-mtg { --r: 6deg; left: 382px; top: 128px; z-index: 5; animation-delay: -3s; }

.match-pills {
  position: absolute;
  left: 318px;
  top: 340px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.match-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--success);
  background: rgba(14, 16, 20, 0.94);
  box-shadow: inset 0 0 0 1px var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.match-pill span { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); }
.match-pill em { font-style: normal; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-soft); }

/* Same game colours as the switch inside the app */
.game-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.game-dot-pokemon { background: #E8C547; }
.game-dot-magic { background: #C2603A; }

@keyframes hero-float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .matched-card .hero-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   Stats strip
   --------------------------------------------------------------------- */
.stat-strip {
  max-width: calc(var(--wrap) + 80px);
  margin: 64px auto 0;
  padding: 0 40px;
}
.stat-strip-inner { display: flex; background: var(--surface); border-radius: 14px; }
.stat-item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 22px 28px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-num { font-size: 28px; font-weight: 600; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Features - one surface, split into a 3-column grid by hairlines
   --------------------------------------------------------------------- */
.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border-radius: 16px;
}
.feature-card { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 34px; }
.feature-card:not(:nth-child(3n + 1)) { border-left: 1px solid var(--divider); }
.feature-card:nth-child(n + 4) { border-top: 1px solid var(--divider); }

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 19px; height: 19px; }

.feature-card h3 { margin: 6px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Spotlights (auto-rename, eBay connect) - text beside a before/after demo,
   alternating sides
   --------------------------------------------------------------------- */
.spot-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
#ebay-connect .spot-grid { grid-template-columns: 0.9fr 1.1fr; }
#ebay-connect .rename-demo { order: -1; }

.spot-text { display: flex; flex-direction: column; gap: 20px; }
.spot-text .section-head h2 { max-width: 600px; }

.rename-spotlight-body { display: flex; flex-direction: column; gap: 20px; }
.rename-spotlight-body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-soft); }
.rename-spotlight-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-3);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}

.rename-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border-radius: 16px;
}
.rename-demo code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.rename-demo code::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rename-before {
  color: var(--text-muted);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--divider);
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.rename-after {
  color: var(--accent);
  font-weight: 500;
  background: #1D1A12;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.rename-arrow { align-self: center; font-size: 18px; line-height: 1; color: var(--accent); }
.rename-gap { height: 1px; margin: 6px 0; background: var(--divider); }

/* ---------------------------------------------------------------------
   Magic: The Gathering - text and points beside a fanned hand of cards
   --------------------------------------------------------------------- */
.magic-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.magic-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.magic-points li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--text); }
.magic-points strong { font-weight: 600; }
.magic-point-body { color: var(--text-muted); }
.magic-check { flex: none; display: inline-flex; margin-top: 2px; color: var(--accent); }

.magic-fan-panel {
  position: relative;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(194, 96, 58, 0.13), transparent 62%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--divider);
}
.magic-fan {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 480px;
  height: 340px;
  transform: translateX(-50%);
  transform-origin: top center;
}
.magic-fan-card {
  position: absolute;
  width: 165px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--r));
  transition: transform 0.25s ease;
}
.magic-fan-card img { display: block; width: 100%; }
.magic-fan-card:hover { transform: rotate(var(--r)) translateY(-14px); }
.magic-fan-card:nth-child(1) { --r: -14deg; left: 0; top: 65px; }
.magic-fan-card:nth-child(2) { --r: -8deg; left: 63px; top: 55px; }
.magic-fan-card:nth-child(3) { --r: -2deg; left: 126px; top: 45px; }
.magic-fan-card:nth-child(4) { --r: 4deg; left: 189px; top: 45px; }
.magic-fan-card:nth-child(5) { --r: 10deg; left: 252px; top: 55px; }
.magic-fan-card:nth-child(6) { --r: 16deg; left: 315px; top: 65px; }

/* ---------------------------------------------------------------------
   How it works
   --------------------------------------------------------------------- */
.how-it-works { margin-top: 110px; padding-bottom: 60px; background: var(--bg-2); }
.how-it-works > .section { padding-top: 100px; }

.steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.steps li:first-child { border-top-color: var(--accent); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.scan-examples { margin-top: 80px; }
.scan-examples-label { margin: 0 0 20px; font-size: 15px; color: var(--text-soft); }
.scan-examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scan-example { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.scan-example img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
}
.scan-example figcaption { font-size: 14px; color: var(--text-soft); }

/* ---------------------------------------------------------------------
   Pricing
   --------------------------------------------------------------------- */
.pricing { padding-top: 100px; }
.pricing-top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.pricing-top .section-head h2 { max-width: 460px; }

.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.pricing-features li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.pricing-check { flex: none; display: flex; margin-top: 3px; color: var(--accent); }

.pricing-cards { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 26px 26px;
  border-radius: 16px;
  background: var(--surface);
}
.pricing-card-featured { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
}
.pricing-badge-alt { color: var(--accent); background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); }

.pricing-name { margin: 0; font-size: 15px; font-weight: 600; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.price-amount { font-size: 40px; font-weight: 600; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.price-period { font-size: 14px; color: var(--text-muted); }
.pricing-blurb { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.pricing-cta { margin-top: auto; width: 100%; }

.pricing-trial-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  border-radius: 14px;
  background: var(--surface);
}
.pricing-trial-hint { margin: 0; font-size: 15px; color: var(--text-soft); }

/* ---------------------------------------------------------------------
   Final call to action
   --------------------------------------------------------------------- */
.final-cta {
  max-width: calc(var(--wrap) + 80px);
  margin: 0 auto;
  padding: 90px 40px 0;
}
.final-cta-panel {
  padding: 72px 40px;
  border-radius: 22px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, 0.16), transparent 60%), var(--surface);
}
.final-cta h2 {
  margin: 0 auto;
  max-width: 720px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1.4px;
  text-wrap: balance;
}
.final-cta p { margin: 18px auto 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.final-cta .hero-cta-row { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------------------
   Footer (also used by privacy.html / terms.html)
   --------------------------------------------------------------------- */
.site-footer {
  max-width: calc(var(--wrap) + 80px);
  margin: 60px auto 0;
  padding: 0 40px;
}
.footer-decor { display: none; }
.footer-cols {
  display: flex;
  gap: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--divider);
}
.footer-brand { order: -1; margin-right: auto; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.footer-logo { width: auto; height: 32px; display: block; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; scroll-margin-top: 140px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); transition: border-color .15s ease, transform .15s ease; }
.footer-social-link:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.footer-social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }

.footer-legal-bar {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-copyright { margin: 0; font-size: 13px; color: var(--text-muted); }
.footer-disclaimer { margin: 0; max-width: 900px; font-size: 12px; line-height: 1.6; color: var(--text-faint); }

/* ---------------------------------------------------------------------
   Legal pages (Privacy Policy, Terms of Service) - plain, readable prose
   --------------------------------------------------------------------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; line-height: 1.7; }
.legal-content h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.8px; }
.legal-updated { margin: 0 0 32px; font-size: 13.5px; color: var(--text-muted); }
.legal-content h2 { margin: 40px 0 14px; font-size: 18px; font-weight: 600; }
.legal-content p { margin: 0 0 16px; font-size: 15px; color: var(--text-soft); }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 10px; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.legal-content li strong { color: var(--text); }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-content code {
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-3);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: 100%; max-width: 540px; }
  .spot-grid, #ebay-connect .spot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  #ebay-connect .rename-demo { order: 0; }
  .rename-demo { max-width: 560px; }
  .magic-fan-panel { max-width: 560px; }
  .pricing-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .nav-links { gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:not(:nth-child(3n + 1)) { border-left: none; }
  .feature-card:nth-child(n + 4) { border-top: none; }
  .feature-card:nth-child(even) { border-left: 1px solid var(--divider); }
  .feature-card:nth-child(n + 3) { border-top: 1px solid var(--divider); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-cards { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
  .footer-brand { flex-basis: 100%; }
}

/* Narrower than the six menu links need (longer in some languages): links
   and language picker fold behind the menu button. The right-hand group is
   display:contents so its children join the nav's own wrapping row and can
   be reordered. */
@media (max-width: 1280px) {
  .site-nav { height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
  .nav-right { display: contents; }
  .nav-brand { order: 1; margin-right: auto; }
  .nav-actions { order: 2; }
  .nav-menu-btn { display: inline-flex; order: 3; }
  .nav-links, .lang-select { display: none; }
  .site-nav.nav-open .nav-links {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 6px;
    border-radius: 12px;
    background: var(--surface);
  }
  .site-nav.nav-open .nav-link { padding: 12px 12px; border-radius: 8px; text-align: left; font-size: 15px; color: var(--text-soft); }
  .site-nav.nav-open .nav-link:hover { background: var(--surface-2); }
  .site-nav.nav-open .lang-select { display: block; order: 5; width: 100%; padding: 11px 12px; font-size: 15px; }
}

/* Phone */
@media (max-width: 820px) {

  .section, .hero, .stat-strip, .final-cta, .site-footer { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 80px; }
  .hero { padding-top: 20px; }
  .hero-copy { gap: 18px; }
  .hero-title { font-size: 38px; letter-spacing: -1.4px; line-height: 1.05; }
  .hero-sub { font-size: 15px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .final-cta .hero-cta-row { flex-direction: row; }
  .final-cta .hero-cta-row .btn { width: auto; }

  .hero-visual { width: 100%; }
  .match-panel { height: 330px; border-radius: 18px; }
  .hero-card { width: 104px; border-radius: 9px; }
  .unmatched-cards .hero-card-a { left: 14px; top: 62px; }
  .unmatched-cards .hero-card-b { left: 82px; top: 86px; }
  .reveal-divider { left: auto; right: 144px; top: 20px; bottom: 20px; }
  .matched-card .hero-card { width: 100px; }
  .matched-card .hero-card-pk { left: auto; right: 36px; top: 54px; }
  .matched-card .hero-card-mtg { left: auto; right: 10px; top: 112px; }
  .match-pills { left: 14px; right: 14px; top: auto; bottom: 14px; flex-direction: row; align-items: stretch; }
  .match-pill { flex: 1; min-width: 0; flex-direction: row; align-items: baseline; gap: 6px; padding: 7px 10px; font-size: 11px; }
  .match-pill span { font-size: 12px; gap: 5px; align-self: center; }
  .match-pill em { display: none; }
  .hero-file { top: 18px; font-size: 10px; }
  .hero-file-before { left: 14px; }
  .hero-file-after { display: none; }

  .stat-strip { margin-top: 32px; }
  .stat-strip-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 16px 18px; }
  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--border); }
  .stat-item:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .stat-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 12px; }

  .section-head h2 { font-size: 30px; letter-spacing: -0.8px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { padding: 24px; }
  .feature-card:nth-child(even) { border-left: none; }
  .feature-card:nth-child(n + 2) { border-top: 1px solid var(--divider); }
  .rename-demo { padding: 20px; }
  .magic-fan-panel { height: 270px; border-radius: 18px; }
  .magic-fan { top: 18px; transform: translateX(-50%) scale(0.66); }
  .magic-fan-card:hover { transform: rotate(var(--r)); }
  .magic-points li { font-size: 14px; gap: 10px; }
  .rename-demo code { font-size: 13px; }

  .how-it-works { margin-top: 80px; }
  .how-it-works > .section { padding-top: 80px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .scan-examples { margin-top: 56px; }
  .scan-examples-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-example img { height: 200px; }

  .pricing-features { grid-template-columns: minmax(0, 1fr); }
  .pricing-cards { margin-top: 40px; }
  .pricing-trial-row { flex-direction: column; align-items: flex-start; }
  .final-cta { padding-top: 64px; }
  .final-cta-panel { padding: 48px 22px; }
  .final-cta h2 { font-size: 30px; letter-spacing: -0.8px; }
  .footer-cols { gap: 32px 40px; }
}
