/* ===== Variables & Reset ===== */
:root {
  --primary: #16A34A;
  --primary-hover: #15803D;
  --primary-light: #DCFCE7;
  --dark: #0F172A;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-400: #94A3B8;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  --amber: #D97706;
  --amber-bg: #FEF3C7;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
  --max-width: 1120px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.logo span { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-switcher .active { color: var(--primary); font-weight: 700; }

.lang-switcher a { color: var(--gray-600); transition: color 0.2s; }
.lang-switcher a:hover { color: var(--primary); }

.lang-sep { color: var(--border); user-select: none; }

.btn-signin {
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #F0FDF4 0%, var(--gray-50) 60%, #ECFDF5 100%);
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.875rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.hero-content h1 .highlight { color: var(--primary); }

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.no-card-mention {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.hero-visual { display: flex; justify-content: center; }

/* ===== App Mockup ===== */
.app-mockup {
  width: 100%;
  max-width: 460px;
  background: #0F172A;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  font-size: 0.875rem;
}

.m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: #1E293B;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.m-logo {
  color: #F8FAFC;
  font-size: 0.9375rem;
  font-weight: 700;
}

.m-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.175rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-body {
  display: grid;
  grid-template-columns: 1fr 120px;
}

.m-form {
  padding: 1.125rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.m-field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.3rem;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.m-origin { background: var(--primary); }
.m-dest   { background: #3B82F6; }

.m-field-text {
  font-size: 0.8125rem;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-vline {
  width: 2px;
  height: 0.625rem;
  background: rgba(255,255,255,0.1);
  margin: 0 0 0.3rem 0.875rem;
}

.m-result {
  margin-top: 0.875rem;
  padding: 0.875rem;
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-sm);
}

.m-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.m-cost-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1;
}

.m-cost-badge {
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.175rem 0.5rem;
  border-radius: 100px;
}

.m-meta {
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.m-cta {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.m-map {
  display: flex;
  align-items: stretch;
  padding: 0.75rem 0.375rem;
  background: #0A1628;
}

.m-map svg { width: 100%; }

/* ===== Section base ===== */
section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.65;
}

.section-header { margin-bottom: 3rem; }

.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ===== Trip Examples ===== */
.trip-examples { background: var(--white); }

.trips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.trip-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.trip-route {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.trip-vehicle {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.cost-row.standard { background: var(--gray-100); }
.cost-row.optimized { background: var(--primary-light); }

.cost-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.cost-row.optimized .cost-label {
  color: var(--primary);
  font-weight: 600;
}

.cost-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.cost-row.optimized .cost-value { color: var(--primary); }

.trip-savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--amber-bg);
  border-radius: var(--radius-sm);
}

.savings-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
}

.savings-numbers { text-align: right; }

.savings-amount {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}

.savings-percent {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  opacity: 0.8;
}

.trips-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-align: center;
}

/* ===== Benefits ===== */
.benefits { background: var(--gray-50); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--dark);
}

.benefit-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== How it works ===== */
.how-it-works { background: var(--white); }

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

.step {
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

/* Arrow connector between steps (desktop only) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 0.75rem;
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--dark);
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== Pricing ===== */
.pricing { background: var(--gray-50); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
  color: var(--dark);
}

.plan-price {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.plan-price.free { color: var(--primary); }

.plan-period {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.plan-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-cta-primary {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.plan-cta-primary:hover { background: var(--primary-hover); }

.plan-cta-outline {
  display: block;
  text-align: center;
  border: 2px solid var(--border);
  color: var(--gray-700);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.plan-cta-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-footer { text-align: center; }

.pricing-footer p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* ===== Final CTA ===== */
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, #15803D 100%);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 0;
}

.cta-final .section-title { color: var(--white); }

.cta-final .section-subtitle {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 2.5rem;
}

.cta-final .btn-white { margin-bottom: 3rem; }

.stores-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  opacity: 0.75;
  cursor: default;
}

.store-icon { font-size: 1.75rem; line-height: 1; }

.store-text { text-align: left; }

.store-soon {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.store-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span { color: #4ADE80; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

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

.footer-copy { font-size: 0.875rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.375rem; }
  .section-title { font-size: 1.875rem; }
}

@media (max-width: 767px) {
  section { padding: 3.5rem 0; }

  .hero { padding: 3rem 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual { order: -1; }

  .app-mockup { max-width: 100%; }

  .hero-content h1 { font-size: 2rem; }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .hero-cta-group { align-items: center; text-align: center; }

  .section-title { font-size: 1.625rem; }

  .trips-grid { grid-template-columns: 1fr; }

  .benefits-grid { grid-template-columns: 1fr; gap: 1rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner { flex-direction: column; text-align: center; }

  .footer-links { justify-content: center; gap: 1rem; }
}
