/* Rwala — shared styles for the hub and the three product pages.
   Lifted verbatim from the original index.html so nothing shifts, then extended
   with the pieces a multi-page site needs: product cards and a nav that still
   works on a phone.

   The four utility pages (privacy-policy, track, pay, pay-success,
   delete-account) keep their own inline styles and are untouched. */

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

:root {
  --orange: #E8673A;
  --orange-dark: #C94E24;
  --orange-light: #FDF0EB;
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --gray: #64748B;
  --gray-light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  /* Velaphi's own orange. A shade deeper than Rwala's, used only on its page
     and its card, so the product reads as part of the family without being a
     different brand. */
  --velaphi: #E64A00;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--orange); }
/* The page you are on, so the nav says where you are without a script. */
.nav-links a.is-current { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--orange); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* HERO */
.hero {
  padding: 8rem 2rem 5rem;
  max-width: 1100px; margin: 0 auto;
}
.hero-narrow { max-width: 760px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange-light); color: var(--orange-dark);
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; font-size: 0.6rem; }
.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; }
.hero-narrow p { margin-left: auto; margin-right: auto; max-width: 560px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-narrow .hero-buttons { justify-content: center; }

.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 0.85rem 1.75rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white); color: var(--navy);
  padding: 0.85rem 1.75rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--orange); transform: translateY(-1px); }

/* SECTION */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--orange-light);
  color: var(--orange-dark); font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 6px; margin-bottom: 1rem;
}
.section-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 560px; }

/* PRODUCT CARDS — the hub's main job */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.product {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px;
  padding: 2rem; border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.product:hover {
  border-color: var(--orange); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.07);
}
.product-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.15rem; }
.product-for {
  font-size: 0.75rem; font-weight: 600; color: var(--orange-dark);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.85rem;
}
.product p { font-size: 0.95rem; color: var(--gray); flex: 1; }
.product-go {
  margin-top: 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--orange);
}
.product-velaphi .product-name { color: var(--velaphi); }
.product-velaphi .product-for { color: var(--velaphi); }
.product-velaphi .product-go { color: var(--velaphi); }
.product-velaphi:hover { border-color: var(--velaphi); }

/* STATS */
.stats { background: var(--navy); color: var(--white); padding: 3rem 2rem; }
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* STEPS */
.how { background: var(--gray-light); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step { background: var(--white); border-radius: 16px; padding: 2rem; border: 1px solid var(--border); }
.step-number {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* DARK PANEL — drivers, and Velaphi's "why" */
.panel-dark { background: var(--navy); color: var(--white); }
.panel-dark .section-tag { background: rgba(232,103,58,0.2); color: #F4A07A; }
.panel-dark .section-title { color: var(--white); }
.panel-dark .section-sub { color: rgba(255,255,255,0.6); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.perk {
  background: rgba(255,255,255,0.06); border-radius: 12px;
  padding: 1.25rem; border: 1px solid rgba(255,255,255,0.08);
}
.perk-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.perk h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.perk p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.panel-cta { margin-top: 2rem; }

/* DOWNLOAD / CLOSING BAND */
.download { text-align: center; background: var(--orange-light); }
.download .section-title { margin: 0 auto 1rem; }
.download .section-sub { margin: 0 auto 2.5rem; }
.download-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--navy); color: var(--white);
  padding: 0.85rem 1.75rem; border-radius: 12px;
  font-size: 0.9rem; font-weight: 500;
  transition: transform 0.15s, background 0.2s;
}
.store-btn:hover { background: var(--navy-mid); transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn-label { text-align: left; }
.store-btn-sub { font-size: 0.7rem; opacity: 0.7; display: block; }
.store-btn-main { font-size: 1rem; font-weight: 700; }
.coming-soon { font-size: 0.85rem; color: var(--gray); margin-top: 1rem; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 3rem 2rem 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand { font-size: 1.75rem; font-weight: 700; color: var(--orange); margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

@media (max-width: 768px) {
  nav { padding: 0 1rem; height: 56px; gap: 0.75rem; }
  .nav-logo { font-size: 1.25rem; }
  /* The original hid the nav entirely below 768px. That was survivable when the
     links were anchors within one page; with four pages it would leave a phone
     with no way between products, and most of these users are on a phone. So
     the links stay, smaller, and scroll sideways if they must. */
  .nav-links {
    gap: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { display: none; }

  .hero { padding: 5.5rem 1.25rem 3rem; text-align: center; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }

  section { padding: 3rem 1.25rem; }
  .section-title { font-size: 1.75rem; }
  .products { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .stats-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
