/* site.css — layout for the marketing pages. Loaded after theme.css.
   Colour tokens updated to the official CI manual palette — see theme.css header note. */

/* Thin-line topographic/coastline motif, per CI "design direction" (p.19): "thin line
   illustrations inspired by maps, compasses, coastlines, and topographic contours." Built as an
   inline SVG data-URI so no external asset is needed. */
:root {
  --ctw-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M-20 60 Q100 20 200 60 T420 60'/%3E%3Cpath d='M-20 120 Q100 80 200 120 T420 120'/%3E%3Cpath d='M-20 180 Q100 140 200 180 T420 180'/%3E%3Cpath d='M-20 240 Q100 200 200 240 T420 240'/%3E%3Cpath d='M-20 300 Q100 260 200 300 T420 300'/%3E%3Ccircle cx='330' cy='90' r='60'/%3E%3Ccircle cx='330' cy='90' r='90'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 73, 104, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand img.brand-mark { width: 30px; height: 30px; display: block; }

/* Official logo-lockup tagline (CI manual cover / logo sheet) */
.brand-tagline {
  margin: 0.5rem 0 0;
  color: var(--ctw-coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ctw-primary);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  /* Deep Ocean Blue -> Atlantic Teal. The teal tail is what carries the CI's 20% share and
     reads as "ocean into nature" rather than a flat corporate navy. */
  background: linear-gradient(155deg, var(--ctw-primary-dark) 0%, var(--ctw-primary) 45%, #0d5f74 78%, var(--ctw-teal) 100%);
  color: #fff;
  padding: 6rem 0 6.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ctw-topo);
  background-size: 500px 500px;
  background-repeat: repeat;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 88% -8%, rgba(230, 122, 122, 0.20), transparent 62%),
    radial-gradient(560px 380px at 2% 108%, rgba(74, 155, 161, 0.30), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ── Hero art ─────────────────────────────────────────────────────────────────
   Now holds the real illustrated marketing badge from the CI manual. Previously an original
   thin-line compass drawing, which existed only because that export was unavailable. */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
/* The real illustrated marketing badge (docs/logo detailed.png), sitting on the navy hero.
   Replaces the .compass-mark line-art it was standing in for. Capped at 425px because that is
   the source's native size and upscaling a raster only softens it — raise this the moment a
   larger export exists.

   drop-shadow (not box-shadow) because the artwork is a transparent circle: box-shadow would
   draw a square behind it. The chips stay positioned against .hero-art, so they are unaffected. */
.hero-badge {
  width: min(425px, 82vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.38));
}
.compass-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 50rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.chip-1 { top: 6%; left: -4%; }
.chip-2 { bottom: 10%; right: -6%; }
.chip-3 { top: 46%; right: -10%; }

/* ── Store badges ────────────────────────────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ctw-r-md);
  padding: 0.65rem 1.15rem;
  position: relative;
}
.store-badge:hover { text-decoration: none; color: #fff; transform: translateY(-1px); }
.store-badge i { font-size: 1.7rem; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-text small { font-size: 0.68rem; opacity: 0.85; }
.store-badge .sb-text strong { font-size: 1rem; letter-spacing: -0.01em; }
.store-badge.is-pending { cursor: default; }
.store-badge.is-pending:hover { transform: none; }
.store-badge .sb-ribbon {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  background: var(--ctw-coral);
  color: var(--ctw-on-coral);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 50rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ── Feature grid ────────────────────────────────────────────────────────── */
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card .fc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ctw-r-md);
  background: var(--ctw-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
/* Icon colour mix follows the CI's 60/20/10 weighting across the 6 cards:
   3 navy, 2 teal, 1 coral — rather than an even split that would over-use the accent. */
.feature-card:nth-child(2) .fc-icon,
.feature-card:nth-child(5) .fc-icon { background: var(--ctw-teal); }
.feature-card:nth-child(4) .fc-icon { background: var(--ctw-coral); color: var(--ctw-on-coral); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { margin: 0; font-size: 0.92rem; }

/* ── Role strip (traveller / business owner) ─────────────────────────────
   Two roles at first release — driver flow/portal is a later addition, not
   part of the first release, so only these two ship here. */
.role-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 620px) { .role-strip { grid-template-columns: 1fr; } }
.role-card { border-top: 4px solid var(--ctw-primary); text-align: left; }
.role-card.role-business { border-top-color: var(--ctw-coral); }
.role-card .role-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ctw-on-surface-variant); }

/* ── Why section ─────────────────────────────────────────────────────────── */
.why-section { background: var(--ctw-surface-low); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list .wi-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ctw-teal-tint);
  color: var(--ctw-teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.why-list h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.why-list p { margin: 0; font-size: 0.92rem; }

/* ── Download CTA band ───────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ctw-primary), var(--ctw-primary-dark));
  color: #fff;
  text-align: center;
  border-radius: var(--ctw-r-xl);
  padding: 3.5rem 2rem;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ctw-topo);
  background-size: 420px 420px;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
.cta-band .store-badges { justify-content: center; margin-top: 1.75rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ctw-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

/* ── Coming-soon page ────────────────────────────────────────────────────── */
.coming-soon-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(155deg, var(--ctw-primary-dark), var(--ctw-primary) 45%, #0d5f74 78%, var(--ctw-teal));
  color: #fff;
}
.coming-soon-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ctw-topo);
  background-size: 500px 500px;
  pointer-events: none;
}
.coming-soon-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.coming-soon-main .container-narrow { max-width: 620px; }
.cs-logo { width: 64px; height: 64px; margin: 0 auto 1.5rem; display: block; }
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.coming-soon-main h1 { color: #fff; margin-bottom: 0.75rem; }
.coming-soon-main p.lead { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; margin-bottom: 2rem; }


.cs-footer {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.cs-footer a { color: rgba(255, 255, 255, 0.7); }

/* ── POPIA / legal page ──────────────────────────────────────────────────── */
.legal-page { padding: 3rem 0 5rem; }
.legal-page .updated { color: var(--ctw-on-surface-variant); font-size: 0.9rem; margin-top: -0.5rem; }
.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ctw-outline-variant);
}
/* The 4-column retention table can't compress to a phone width. Give it its own
   horizontal scroll container so the *page* never scrolls sideways. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
.legal-page table { border-collapse: collapse; width: 100%; margin: 0; font-size: 0.92rem; }
.legal-page .table-scroll table { min-width: 640px; }

/* Belt and braces: nothing on a legal page should be able to push the page wide. */
.legal-page { overflow-x: hidden; }
.legal-page p, .legal-page li, .legal-page td, .legal-page th { overflow-wrap: anywhere; }
.legal-page th, .legal-page td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ctw-outline-variant);
  vertical-align: top;
}
.legal-page th { background: var(--ctw-surface-high); color: var(--ctw-primary); }
.legal-page .draft-notice {
  background: var(--ctw-coral-tint);
  color: var(--ctw-coral-dark);
  border-radius: var(--ctw-r-md);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.legal-page .fill-in {
  background: rgba(255, 214, 10, 0.25);
  border-bottom: 2px dashed #b8860b;
  padding: 0 0.2rem;
  font-weight: 700;
}
