/* ================================================================
   BEAGLE ZANZIBAR. The fair way to get around Zanzibar.
   Static build. No build step, no external requests.
   ================================================================ */

:root {
  --cream: #FAF7F2;
  --cream-alt: #F3EDE5;
  --sand: #E8DDD3;
  --sand-dark: #D4C9BC;
  --dark: #1A1714;
  --charcoal: #2A2722;
  --text: #3A3834;
  --text-muted: #8B8580;
  --text-light: #B0A9A1;
  --green: #25D366;
  --green-dark: #1DA851;
  --green-glow: rgba(37, 211, 102, 0.15);
  --white: #FEFEFE;

  /* Fraunces and Sora are used when the reader already has them;
     otherwise the serif and sans fallbacks carry the same feel. */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-w: 1200px;
  --max-w-narrow: 700px;
  --max-w-wide: 1400px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-section: clamp(4rem, 8vw, 7rem);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-lg: 0 16px 50px rgba(26, 23, 20, 0.12);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.35;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-variation-settings: 'opsz' 144; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-variation-settings: 'opsz' 72; letter-spacing: -0.015em; }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; }

.subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 520px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow { max-width: var(--max-w-narrow); }

.section { padding: var(--pad-section) 0; }
.section--alt { background: var(--cream-alt); }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.06);
}
.nav__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--charcoal); }
.nav__learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero__bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 22%, black 48%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 22%, black 48%);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero .container {
  max-width: var(--max-w-wide);
  width: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}
.hero__karibu {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}
.hero h1 {
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-dark);
  padding: 0 0.08em;
}
.hero .subtitle { margin-bottom: 2rem; }
.hero__trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.hero__decor {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-glow);
  filter: blur(100px);
  top: -100px;
  right: -150px;
  z-index: 0;
}

/* --- Eyebrow label --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

/* --- Section image --- */
.section-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Three messages layout --- */
.messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}

/* --- Steps --- */
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 2rem 0 2rem 5rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-glow);
  border-radius: 50%;
  border: 2px solid var(--green);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.625rem - 1px);
  top: 5.5rem;
  bottom: 0;
  width: 2px;
  background: var(--sand);
}
.step h4 { margin-bottom: 0.5rem; color: var(--charcoal); }
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}
.step-example {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--cream-alt);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--sand);
}

/* Driver cut callout */
.driver-cut {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--green-glow);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius);
}
.driver-cut__stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1;
  flex-shrink: 0;
  font-variation-settings: 'opsz' 72;
}
.driver-cut p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.2rem;
}

/* --- Pay your way --- */
.pay { margin-top: 3.5rem; }
.pay h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-variation-settings: 'opsz' 36;
  margin-bottom: 0.75rem;
}
.pay > .subtitle { margin-bottom: 1.75rem; }
.pay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 760px;
}
.pay__card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.pay__icon {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  display: block;
}
.pay__card h4 { margin-bottom: 0.4rem; }
.pay__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Closing call to action --- */
.cta {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
  text-align: center;
}
.cta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding: 2.5rem 0;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--sand-dark);
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.footer__links a:hover { color: var(--green); }
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
  .hero__bg { display: none; }
  .hero__content { max-width: 100%; }

  .messages-grid { grid-template-columns: 1fr; }
  .pay__grid { grid-template-columns: 1fr; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem var(--pad-x);
    border-bottom: 1px solid var(--sand);
    gap: 1rem;
  }

  .btn { width: 100%; justify-content: center; }

  .footer__row { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .footer__copy { text-align: center; }

  .section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .step { padding-left: 4.25rem; }
}
