/* AtPace — marketing & legal site. Mirrors the app design system:
   white bg, black text, indigo accent, ATPACE letterspaced wordmark. */

/* Brand wordmark font — same "Future Edge" as the app. */
@font-face {
  font-family: 'Future Edge';
  src: url('/fonts/FutureEdge.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --bg: #fff;
  --light: #f5f5f5;
  --border: #e5e5e5;
  --gray: #6b7280;
  --text-light: #9ca3af;
  --indigo: #6366f1;
  --green: #22c55e;
  --amber: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Future Edge', -apple-system, sans-serif;
  font-size: 20px; font-weight: normal; letter-spacing: 3px;
  color: var(--black); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right a {
  font-size: 14px; color: var(--gray); text-decoration: none; font-weight: 500;
}
.nav-right a:hover { color: var(--black); }
.lang-switch {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 4px 12px; font-size: 12px !important; font-weight: 600 !important;
}

/* ── Hero ───────────────────────────────────────── */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; max-width: 760px; margin: 0 auto 20px;
}
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero p.sub {
  font-size: 18px; color: var(--gray); max-width: 560px; margin: 0 auto 36px;
}
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  transition: opacity 0.15s;
}
.store-badge:hover { opacity: 0.85; }
.store-badge small { display: block; font-size: 10px; font-weight: 400; opacity: 0.7; text-align: left; }
.store-badge.soon { background: var(--light); color: var(--gray); cursor: default; }

/* ── Features ───────────────────────────────────── */
.features { padding: 56px 0 80px; }
.features h2, .section h2 {
  font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.card {
  border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }
.card .icon { font-size: 26px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); }

/* ── Banded section ─────────────────────────────── */
.band { background: var(--light); padding: 64px 0; }
.band .inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; text-align: center; }
.band .stat { min-width: 160px; }
.band .stat b { display: block; font-size: 34px; font-weight: 800; color: var(--indigo); }
.band .stat span { font-size: 14px; color: var(--gray); }

/* ── CTA ────────────────────────────────────────── */
.cta { padding: 80px 0; text-align: center; }
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--gray); margin-bottom: 28px; }

/* ── Footer ─────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; }
.footer-links a:hover { color: var(--black); }
.copyright { font-size: 13px; color: var(--text-light); }

/* ── Legal pages ────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.legal .updated { font-size: 13px; color: var(--text-light); margin-bottom: 36px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; color: #1f2937; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--light); font-weight: 600; }
.legal a { color: var(--indigo); }

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .nav-right a:not(.lang-switch) { display: none; }
}
