:root {
  --primary: #0f6fbd;
  --primary-dark: #021b4d;
  --primary-light: #e8f2fc;
  --accent-gold: #fdba21;
  --success: #00a550;
  --background: #f8fafc;
  --background-secondary: #eef4ff;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(2, 27, 77, 0.12);
  --max-width: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--background);
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.header-text p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  max-width: 240px;
  line-height: 1.4;
}

.menu-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: default;
  color: var(--primary-dark);
  opacity: 0.6;
}

.menu-btn svg {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f52ba 50%, #3b82f6 100%);
  padding: 24px 20px 80px;
  overflow: hidden;
  min-height: 340px;
}

.hero-bg {
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 55%;
  opacity: 0.35;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 280px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--accent-gold);
  border-radius: 999px;
  background: rgba(253, 186, 33, 0.12);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
}

.trust-badge svg {
  flex-shrink: 0;
}

.hero h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero h2 .gold {
  color: var(--accent-gold);
}

.hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(253, 186, 33, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn svg {
  flex-shrink: 0;
}

/* Popular Searches */
.searches-card {
  margin: -48px 16px 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  z-index: 2;
}

.searches-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.search-list {
  list-style: none;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.search-item:hover {
  color: var(--primary);
}

.search-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.search-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.search-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Features */
.features {
  padding: 8px 20px 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  text-align: center;
  padding: 16px 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
}

.feature h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Partners */
.partners {
  padding: 0 20px 24px;
}

.partners-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 12px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.partner-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 24px 20px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--background-secondary);
}

.footer-logo {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 8px;
}

.footer p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-stores {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.header-brand-link {
  text-decoration: none;
  color: inherit;
}

.header-brand-link:hover .header-text h1 {
  color: var(--primary);
}

/* Legal pages (privacy, terms) */
.legal-page {
  padding: 20px 16px 24px;
}

.legal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.legal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
}

.legal-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-section ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.legal-section li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-link {
  color: var(--primary);
  text-decoration: none;
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-steps {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-steps li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--text-inverse);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-cta:hover {
  opacity: 0.92;
}

.legal-nav {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (min-width: 481px) {
  body {
    background: var(--background-secondary);
  }

  .page {
    box-shadow: 0 0 40px rgba(2, 27, 77, 0.08);
  }
}
