/* Matches apps/app/lib/core/theme/app_colors.dart + app_theme.dart */
:root {
  --primary: #5b4bdb;
  --primary-dark: #4338ca;
  --secondary: #0ea5e9;
  --surface: #f8fafc;
  --surface-dark: #0f172a;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius-sm: 12px;
  --radius-md: 16px;
  --primary-soft: rgba(91, 75, 219, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(720px, calc(100% - 48px));
}

.center {
  text-align: center;
}

/* Header — matches AppBar (surface, no elevation) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Buttons — matches FilledButton / OutlinedButton in AppTheme */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  padding: 0 22px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.btn-ghost {
  min-height: auto;
  padding: 10px 14px;
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
}

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

.btn-inverse:hover {
  background: #f5f3ff;
}

/* Cards — matches CardTheme in AppTheme */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-brand {
  display: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}

.hero-tagline {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.store-badge-play {
  background: var(--surface-dark);
  color: #fff;
  transition: opacity 0.15s ease;
}

.store-badge-play:hover {
  opacity: 0.9;
}

.store-badge-soon {
  background: var(--border);
  color: var(--text-secondary);
  cursor: default;
}

.hero-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-inverse-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-inverse-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  justify-self: center;
  width: min(100%, 380px);
}

.hero-card-inner {
  text-align: center;
}

.hero-card-inner .brand-logo-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.mock-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.mock-qr-link {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mock-qr-link:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.mock-qr {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.mock-caption {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 0;
}

.split {
  display: grid;
  gap: 24px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.feature-list li + li {
  margin-top: 12px;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-card {
  margin-top: 28px;
  text-align: center;
}

.pricing-label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.pricing-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.pricing-copy {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* CTA — matches splash screen (flat primary) */
.cta-band {
  padding: 72px 0;
  background: var(--primary);
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-row .brand-logo {
  width: 32px;
  height: 32px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.footer-tagline,
.footer-legal {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.footer-tagline {
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

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

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }
}

/* Legal pages — matches LegalDocumentScreen in the app */
.legal-page {
  padding: 48px 0 72px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-effective {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 0 24px;
}

.legal-document {
  padding: 28px;
}

.legal-document section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-document h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.legal-document p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document a {
  color: var(--primary);
  font-weight: 500;
}

.legal-document a:hover {
  color: var(--primary-dark);
}

.footer-links a[aria-current="page"] {
  color: var(--primary);
}

.legal-page .contact-actions {
  margin-top: 24px;
}
