/*
  PocketRev marketing site - shared stylesheet.
  Used by index.html, terms.html and privacy.html.
*/

:root {
  --blue: #1F73E8;
  --blue-deep: #0B4FB8;
  --blue-light: #5AA0FF;
  --ink: #0E1726;
  --muted: #6B7280;
  --line: #E6E9EF;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --radius: 16px;
  --maxw: 1040px;
  --shadow: 0 8px 30px rgba(15, 23, 38, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3, p, ul {
  margin-top: 0;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  flex-shrink: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 80px 20px 64px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(31, 115, 232, 0.10), rgba(11, 79, 184, 0.0) 70%),
    var(--bg-soft);
}

.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -1.4px;
  margin: 0 0 16px;
}

.tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 12px;
}

.subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 28px;
  text-align: center;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.55;
  cursor: default;
  user-select: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--blue-deep);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn[aria-disabled="true"] {
  background: var(--muted);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 64px 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 64px 20px;
}

.step {
  text-align: center;
}

.step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer .nav {
  gap: 20px;
}

.site-footer .nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer .nav a:hover {
  color: var(--blue);
}

.site-footer small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.legal h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal p {
  margin: 0 0 16px;
  color: var(--ink);
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 56px 20px 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 20px;
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .features {
    padding: 40px 20px;
  }

  .legal {
    padding: 32px 16px;
  }

  .legal h1 {
    font-size: 28px;
  }

  .legal h2 {
    font-size: 20px;
  }
}

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