@import url("./tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header (app tab bar / primary bar) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(13, 58, 122, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-foreground);
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-foreground);
}

/* ── Buttons (app: accent + primary outline) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--muted);
}

.nav-links .btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn-disabled:hover {
  transform: none;
}

/* ── Hero (login-style blue band + light body) ── */
.hero {
  padding-bottom: 56px;
}

.hero-blue {
  background: var(--primary);
  padding: 40px 0 72px;
  border-radius: 0 0 28px 28px;
}

.hero-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.18);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-foreground);
  margin-bottom: 14px;
}

.hero-intro p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-body {
  margin-top: -40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

.hero-copy h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--foreground);
}

.hero-copy p {
  color: var(--muted-foreground);
  font-size: 15px;
}

/* Phone mockup — TripCard style */
.phone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
}

.trip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-right: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.trip-card:last-child {
  margin-bottom: 0;
}

.route {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.route > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.from {
  background: var(--secondary);
}

.dot.to {
  background: var(--accent);
}

.route-line {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 4px 0;
}

.route strong {
  font-weight: 600;
  color: var(--foreground);
}

.trip-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.trip-meta span:last-child {
  color: var(--primary);
  font-weight: 600;
}

/* ── Sections ── */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--foreground);
}

.section-title p {
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--muted);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  text-align: center;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 17px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted-foreground);
}

.download-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-box h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-box p {
  color: var(--muted-foreground);
  margin-bottom: 24px;
  font-size: 15px;
}

.download-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-weight: 600;
  font-size: 18px;
}

.contact-card p {
  color: var(--muted-foreground);
  font-size: 14px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  margin-top: 16px;
  background: var(--card);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-grid strong {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--primary);
}

/* ── Legal pages ── */
.legal-page {
  padding: 40px 0 64px;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--muted-foreground);
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 22px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.legal-section p,
.legal-section li {
  color: var(--muted-foreground);
  font-size: 15px;
}

.legal-section ul {
  padding-right: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--secondary);
}

.hero-mail-btn {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}

.hero-mail-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-blue {
    padding-bottom: 56px;
  }

  .hero-body {
    margin-top: -24px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}
