/* Tracer — marketing site (Google Maps–inspired palette) */
:root {
  --bg-page: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-muted: #f1f3f4;
  --bg-card: #ffffff;
  --text: #202124;
  --text-muted: #5f6368;
  /* Google blue */
  --accent: #1a73e8;
  --accent-hover: #1557b0;
  --accent-tint: #e8f0fe;
  /* Map-adjacent accents */
  --water: #aecbfa;
  --park: #ceead6;
  --border: #dadce0;
  --border-light: #e8eaed;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.28), 0 2px 6px rgba(60, 64, 67, 0.08);
  --shadow-lg: 0 4px 24px rgba(32, 33, 36, 0.1), 0 8px 32px rgba(32, 33, 36, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  /* Dark footer (Maps-style chrome) */
  --footer-bg: #202124;
  --footer-text: #e8eaed;
  --footer-muted: #9aa0a6;
  --footer-link: #8ab4f8;
  --error: #d93025;
  --error-bg: #fce8e6;
  --success: #137333;
  --success-bg: #e6f4ea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-link:hover {
  color: var(--text);
  text-decoration: none;
}

.logo-link svg,
.logo-link img {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.logo-link img {
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.25rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-page);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.25rem 6rem;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 75%;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(174, 203, 250, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 60%, rgba(206, 234, 214, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 99, 104, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 99, 104, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-map-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.78) 0 24%, rgba(0, 0, 0, 0.9) 56%, #000 90%);
}

.hero-trace-svg {
  width: min(104vw, 1320px);
  height: min(76vh, 560px);
  opacity: 0.62;
  animation: trace-drift 10s ease-in-out infinite alternate;
}

@keyframes trace-drift {
  0% {
    transform: translate(-10px, 8px);
  }
  100% {
    transform: translate(10px, -8px);
  }
}

.trace-path-muted {
  fill: none;
  stroke: rgba(26, 115, 232, 0.12);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-path-active {
  fill: none;
  stroke: rgba(26, 115, 232, 0.94);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.trace-puck {
  fill: rgba(26, 115, 232, 0.98);
  stroke: rgba(26, 115, 232, 0.28);
  stroke-width: 7;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 1;
}

.hero-centered {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-muted);
  max-width: 52ch;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-store-actions {
  justify-content: center;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-store {
  min-width: 205px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}

.btn-store-with-icon {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  /* Keep label before icon even on RTL pages; icon stays to the right of the text. */
  direction: ltr;
  justify-content: flex-start;
}

.btn-store-with-icon > .btn-store-text {
  order: 1;
}

.btn-store-with-icon > .btn-store-icon {
  order: 2;
  margin-left: 0.7rem;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.btn-store-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 11px;
}

.btn-store-top {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
}

.btn-store-main {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  text-decoration: none;
}

@media (max-width: 540px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .hero-map-bg {
    mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.76) 0 30%, rgba(0, 0, 0, 0.9) 62%, #000 94%);
  }

  .hero-trace-svg {
    width: 125vw;
    height: 300px;
    opacity: 0.52;
  }

  .btn-store {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .btn-store-with-icon {
    justify-content: center;
  }

  .btn-store-with-icon .btn-store-text {
    align-items: center;
    text-align: center;
  }
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-head strong {
  color: var(--text);
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-alt .step-card {
  background: var(--bg-page);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Diff */
.diff-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diff-item {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.diff-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.diff-item span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Waitlist */
.waitlist-section {
  padding: 4rem 1.25rem 5rem;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--accent-tint) 100%);
}

.waitlist-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.waitlist-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: 14px;
}

.waitlist-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.waitlist-box > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

@media (min-width: 480px) {
  .waitlist-form {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .waitlist-form input {
    flex: 1;
    min-width: 200px;
  }

  .waitlist-form button {
    flex-shrink: 0;
  }
}

.waitlist-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.waitlist-form input[type="email"] {
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text);
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form button[type="submit"] {
  padding: 0.875rem 1.25rem;
}

.form-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.form-hint code {
  font-size: 0.85em;
  background: var(--bg-muted);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--text);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(19, 115, 51, 0.25);
}

.form-message.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(217, 48, 37, 0.25);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid #3c4043;
  background: var(--footer-bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-muted);
  font-size: 0.9375rem;
}

.footer-brand strong {
  color: var(--footer-text);
}

.footer-brand img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--footer-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--footer-link);
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 1.25rem 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page p,
.legal-page ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}
