/*
 * RouteRooster public website stylesheet
 * Brand tokens sourced from android/core/designsystem/theme/
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Brand tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Surfaces — dark theme (RrPalette.kt) */
  --night:          #000B1D;   /* RrPalette.Night */
  --surface:        #171C26;   /* RrPalette.Surface */
  --surface-raised: #1E2531;   /* RrPalette.SurfaceElevated */
  --stroke:         #313948;   /* RrPalette.Stroke */
  --muted:          #A9B1C1;   /* RrPalette.Muted */
  --text:           #F4F6FA;   /* RrPalette.OnSurface */

  /* Primary brand — Amber (RrPalette.Amber) */
  --amber:     #F7A928;
  --amber-bg:  #2A2113;
  --amber-on:  #1B1200;

  /* Teal — live / active accent (RrPalette.Teal) */
  --teal:      #26C6A2;
  --teal-bg:   #0D2E27;

  /* Semantic (RrPalette semantic group) */
  --success:   #76D17A;
  --warning:   #FFC14D;
  --danger:    #FF6B5F;

  /* Shape radii (RouteRoosterShapes.kt) */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 9999px;

  /* Spacing (Spacing.kt) */
  --sp-xxs: 4px;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  16px;
  --sp-lg:  20px;
  --sp-xl:  24px;
  --sp-xxl: 32px;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--night);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ─── Accessibility ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--sp-md);
  background: var(--amber);
  color: var(--amber-on);
  font-weight: 700;
  font-size: 0.875rem;
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-xs);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--sp-md); }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 11, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-md);
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  background: var(--amber);
  color: var(--amber-on);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.6875rem 1.375rem;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.6875rem 1.375rem;
  border: 1.5px solid var(--stroke);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ─── Store Badges ───────────────────────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}
.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-md);
  padding: 10px 18px;
  min-width: 158px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}
.badge-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #111;
  transform: translateY(-1px);
}
.badge-icon { flex-shrink: 0; display: flex; }
.badge-text { display: flex; flex-direction: column; gap: 1px; }
.badge-sub  { font-size: 0.625rem; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.65); line-height: 1; }
.badge-store { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.25; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-brand {
  margin-bottom: var(--sp-xxl);
}
.hero-logo {
  display: block;
  height: auto;
  max-height: 88px;
  max-width: min(380px, 80vw);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(247,169,40,0.6);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: var(--sp-xl);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-lg);
}
.hero h1 .accent { color: var(--amber); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto var(--sp-xxl);
  line-height: 1.65;
}
.hero .badge-row { justify-content: center; }

.hero-trust {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xl);
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ─── Features ───────────────────────────────────────────────────────────────── */
.features {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-label {
  display: inline-block;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { gap: var(--sp-xl); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(247,169,40,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.feature-card.teal-accent:hover {
  border-color: rgba(38,198,162,0.4);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--amber-bg);
  border: 1px solid rgba(247,169,40,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--amber);
  flex-shrink: 0;
}
.feature-icon.teal {
  background: var(--teal-bg);
  border-color: rgba(38,198,162,0.35);
  color: var(--teal);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-xs);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-sm);
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
}
.pill-free { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(247,169,40,0.35); }
.pill-pro  { background: var(--teal-bg);  color: var(--teal);  border: 1px solid rgba(38,198,162,0.35); }
.pill-android { background: var(--surface-raised); color: var(--muted); border: 1px solid var(--stroke); }

/* ─── Social proof ───────────────────────────────────────────────────────────── */
.social-proof {
  padding: clamp(28px, 5vw, 48px) 0;
  background: var(--night);
  border-top: 1px solid rgba(247,169,40,0.3);
  border-bottom: 1px solid rgba(247,169,40,0.3);
  text-align: center;
}
.social-proof p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--amber);
  letter-spacing: -0.01em;
}

/* ─── CTA section ────────────────────────────────────────────────────────────── */
.cta-section {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}
.cta-section h2 .accent { color: var(--amber); }
.cta-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto var(--sp-xxl);
  line-height: 1.65;
}
.cta-section .badge-row { justify-content: center; }
.cta-tier-note {
  margin-top: var(--sp-xl);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.cta-tier-note strong { color: var(--text); font-weight: 600; }
.cta-tier-note .pro { color: var(--teal); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--night);
  border-top: 1px solid var(--stroke);
  padding: var(--sp-xxl) 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xl);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; align-items: flex-start; }
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
}
.footer-tagline { font-size: 0.8125rem; color: var(--muted); margin-top: var(--sp-xs); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-md) var(--sp-xl); justify-content: center; }
@media (min-width: 768px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a { color: var(--muted); font-size: 0.9375rem; transition: color 0.15s; }
.footer-nav a:hover { color: var(--amber); }
.footer-divider { width: 100%; border: none; border-top: 1px solid var(--stroke); }
.footer-legal { font-size: 0.8125rem; color: var(--muted); line-height: 1.7; max-width: 700px; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--text); }

/* ─── Sub-page header ────────────────────────────────────────────────────────── */
.page-header {
  padding: clamp(32px, 5vw, 56px) 0 var(--sp-xxl);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: var(--sp-xxl);
}
.page-header h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-sm);
}
.page-header h1 .accent { color: var(--amber); }
.page-meta { font-size: 0.875rem; color: var(--muted); }
.page-meta a { color: var(--amber); }

/* ─── Legal content ──────────────────────────────────────────────────────────── */
.legal-wrap { padding: 0 0 clamp(48px, 8vw, 96px); }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em;
  margin: var(--sp-xxl) 0 var(--sp-md); padding-top: var(--sp-xl);
  border-top: 1px solid var(--stroke); color: var(--text);
}
.legal-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body h3 {
  font-size: 1.0625rem; font-weight: 600; margin: var(--sp-xl) 0 var(--sp-sm);
}
.legal-body p { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--sp-md); line-height: 1.75; }
.legal-body ul, .legal-body ol {
  font-size: 0.9375rem; color: var(--muted); margin: 0 0 var(--sp-md) var(--sp-xl);
  line-height: 1.75;
}
.legal-body li { margin-bottom: var(--sp-xs); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--amber); text-decoration: underline; }
.legal-body a:hover { color: var(--text); }
.legal-body table { width: 100%; border-collapse: collapse; margin: var(--sp-md) 0 var(--sp-xl); font-size: 0.875rem; }
.legal-body th { background: var(--surface-raised); color: var(--text); font-weight: 600; text-align: left; padding: var(--sp-sm) var(--sp-md); border: 1px solid var(--stroke); }
.legal-body td { padding: var(--sp-sm) var(--sp-md); border: 1px solid var(--stroke); color: var(--muted); vertical-align: top; }
.info-box {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-md) var(--sp-xl);
  margin: var(--sp-lg) 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}
.info-box strong { color: var(--text); }

/* ─── Support / FAQ ──────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--stroke);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--sp-sm); color: var(--text); }
.faq-item p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; }

.contact-card {
  max-width: 600px;
  margin: var(--sp-xxl) auto 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  text-align: center;
}
.contact-card h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: var(--sp-sm); }
.contact-card p  { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; margin-bottom: var(--sp-md); }
.contact-card a  { color: var(--amber); font-weight: 600; }

/* ─── 404 page ───────────────────────────────────────────────────────────────── */
.not-found-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 130px);
  text-align: center;
  padding: var(--sp-xxl) var(--gutter);
}
.error-code {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.35;
  margin-bottom: var(--sp-md);
}
.not-found-wrap h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: var(--sp-md); }
.not-found-wrap p  { font-size: 1rem; color: var(--muted); max-width: 380px; margin-bottom: var(--sp-xxl); line-height: 1.65; }
