:root {
  --bright-green: #17C759;
  --deep-green:   #008C73;
  --gold:         #D9A600;
  --ink:          #0c1f1a;
  --muted:        #5b6f69;
  --bg:           #f4faf7;
  --card:         #ffffff;
  --line:         rgba(0, 140, 115, 0.12);
  --brand-grad:   linear-gradient(135deg, #17C759 0%, #008C73 100%);
  --shadow-sm:    0 2px 8px rgba(0, 70, 56, 0.06);
  --shadow-md:    0 12px 40px rgba(0, 70, 56, 0.12);
  --shadow-lg:    0 30px 80px rgba(0, 70, 56, 0.20);
  --radius:       20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(0, 140, 115, 0.38);
  outline-offset: 3px;
}
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.svg-defs { position: absolute; }

/* Wordmark */
.wordmark { font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .go   { color: var(--deep-green); }
.wordmark .fuel { color: var(--bright-green); }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(244, 250, 247, 0.78);
  border-bottom: 1px solid var(--line);
}
header nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 50px; height: 50px; }
.brand .wordmark { font-size: 31px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--deep-green); }
/* The "Get the app" button keeps white text over its gradient (beats .nav-links a) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* Language switcher (EN | FR) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1; }
.lang-switch a.active { background: var(--brand-grad); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--deep-green); }

/* Hero eyebrow pill */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--deep-green); background: rgba(0,140,115,0.10); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bright-green); box-shadow: 0 0 0 4px rgba(23,199,89,0.18); animation: pulse 2s infinite; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(0,140,115,0.08); color: var(--deep-green); }
.btn-ghost:hover { background: rgba(0,140,115,0.14); }
@media (max-width: 720px) { .nav-links > a:not(.btn) { display: none; } }

/* App Store badge */
.badge-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px;
  transition: transform .15s, box-shadow .15s;
}
.badge-store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge-store svg { width: 30px; height: 30px; flex: none; }
.badge-store > span { text-align: left; }
.badge-store .small { display: block; font-size: 12px; opacity: 0.85; line-height: 1.1; }
.badge-store .big { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

/* Device frame (real screenshots) */
.device {
  position: relative;
  background: #0b0f0e; border-radius: 46px; padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.06);
}
.device .scr {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622;
  border-radius: 38px; overflow: hidden; background: #0f201b;
}
.device .scr picture { display: contents; }
.device .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.device .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  color: #fff; padding: 24px;
}
.device .ph svg { width: 64px; height: 64px; opacity: 0.95; }
.device .ph .pt { font-weight: 600; font-size: 18px; }
.device .ph .ps { font-size: 13px; opacity: 0.8; max-width: 22ch; }

/* Hero */
.hero { position: relative; padding: 76px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 82% 0%, rgba(23,199,89,0.10), transparent 70%),
    radial-gradient(50% 50% at 0% 30%, rgba(0,140,115,0.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 22px; }
h1 .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 32ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Both hero CTAs share one size: equal height, width, and radius */
.cta-row > a { height: 56px; min-width: 210px; padding-block: 0; border-radius: 14px; justify-content: center; box-sizing: border-box; }
.hero .device { width: 300px; margin-inline: auto; }
.hero .phone-stage { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lede { max-width: 46ch; }
  .hero .phone-stage { order: -1; }
}

/* Trust bar: data freshness / source / coverage */
.trustbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 32px; padding: 18px 0; }
.trust { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink); }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--deep-green); }
.trust .live { width: 8px; height: 8px; border-radius: 50%; background: var(--bright-green); box-shadow: 0 0 0 4px rgba(23,199,89,0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 620px) { .trustbar-inner { flex-direction: column; gap: 12px; } }

/* Sections */
section.block { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Screens gallery */
.gallery { background: #fff; border-block: 1px solid var(--line); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; max-width: 860px; margin-inline: auto; }
.screen-item .device { width: 100%; }
.screen-item .cap { text-align: center; margin-top: 18px; }
.screen-item .cap .t { font-weight: 600; font-size: 16px; }
.screen-item .cap .s { color: var(--muted); font-size: 14px; }
/* On desktop the map is the hero phone, so it is hidden in the grid. On mobile
   it joins the carousel (and the hero phone is hidden) so the map shows once. */
.screen-item--map { display: none; }
/* Mobile / tablet: horizontal swipe carousel, one screen in focus at a time
   (full-width slides, smaller centered phone, so no second screen is visible). */
@media (max-width: 880px) {
  .hero .phone-stage { display: none; }
  .screen-item--map { display: block; }
  .screens {
    display: flex; max-width: none; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding: 6px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen-item { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
  .screen-item .device { width: min(240px, 66vw); margin-inline: auto; }
}
@media (max-width: 460px) {
  .screen-item .device { width: min(220px, 70vw); }
  .screen-item .cap { margin-top: 12px; }
  .screen-item .cap .s { font-size: 13px; }
}
.gallery-note { text-align: center; color: var(--muted); font-size: 13px; margin: 30px auto 0; max-width: 540px; }
/* Carousel pagination dots (mobile only; gallery is a grid on desktop). */
.screen-dots { display: none; }
@media (max-width: 880px) {
  .screen-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .screen-dot { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .screen-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(0,140,115,0.25); transition: background .2s, transform .2s; }
  .screen-dot.is-active::before { background: var(--deep-green); transform: scale(1.4); }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico { width: 52px; height: 52px; border-radius: 15px; background: rgba(23,199,89,0.12); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }

/* How it works */
.how { background: #fff; border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* CTA */
.cta-section { padding: 40px 0 80px; }
.cta { margin: 0 auto; max-width: 1120px; background: var(--brand-grad); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 50% 0%, rgba(255,255,255,0.18), transparent 70%); }
.cta h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; margin-bottom: 14px; position: relative; }
.cta p { font-size: 18px; opacity: 0.92; margin-bottom: 30px; position: relative; }
.cta .badge-store { background: #fff; color: var(--ink); position: relative; }
.cta-btn { background: #fff; color: var(--deep-green); height: 54px; padding: 0 28px; border-radius: 14px; font-size: 16px; position: relative; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Waitlist / coming-soon */
.waitlist { display: flex; flex-direction: column; gap: 12px; max-width: 470px; }
/* Offset anchor jumps to #notify so the sticky header (68px, 60px on mobile) does not cover the form. */
#notify { scroll-margin-top: 92px; }
.wl-label { align-self: flex-start; margin-bottom: -6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.wl-row { display: flex; gap: 10px; }
.wl-input { flex: 1 1 230px; min-width: 0; height: 54px; padding: 0 18px; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.wl-input::placeholder { color: #9aaaa4; }
.wl-input:focus { border-color: var(--bright-green); box-shadow: 0 0 0 4px rgba(23,199,89,0.15); }
.wl-btn { flex: 0 0 auto; height: 54px; border-radius: 14px; padding: 0 24px; font-size: 16px; white-space: nowrap; }
.wl-btn:disabled { cursor: wait; opacity: 0.72; transform: none; box-shadow: var(--shadow-sm); }
.hp { position: absolute; left: -5000px; }
.cf-turnstile { width: 100%; }
.wl-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.wl-msg { margin: 0; font-size: 14px; color: #d24c3d; }
.wl-msg:empty { display: none; }
/* "Coming soon" App Store badge. A status badge in the style of the real Apple
   badge (black pill, Apple logo, two-line text), not a download link yet. */
.appstore-badge { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border-radius: 12px; padding: 9px 18px; line-height: 1; }
.appstore-badge .ab-logo { width: 21px; height: 28px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.appstore-badge .ab-small { font-size: 11px; font-weight: 400; letter-spacing: 0.01em; }
.appstore-badge .ab-big { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 480px) { .wl-row { flex-direction: column; } .wl-input { flex: none; width: 100%; } .wl-btn { width: 100%; } }

/* Thank-you page */
.thanks { max-width: 560px; margin: 0 auto; text-align: center; padding: 96px 24px; }
.thanks-badge { width: 76px; height: 76px; border-radius: 50%; background: rgba(23,199,89,0.12); display: grid; place-items: center; margin: 0 auto 24px; }
.thanks-badge svg { width: 38px; height: 38px; color: var(--deep-green); }
.thanks h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin-bottom: 12px; }
.thanks p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.thanks .btn-primary { height: 52px; border-radius: 14px; padding: 0 26px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.72); }
.foot-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.foot-brand .brand { margin-bottom: 18px; gap: 16px; }
.foot-brand .brand .mark { width: 60px; height: 60px; }
.foot-brand .brand .wordmark { font-size: 38px; }
.foot-tag { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 42ch; line-height: 1.6; }
.foot-tag a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px; }
.foot-tag a:hover { color: #fff; }
.foot-col h4 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.foot-bottom p:last-child { text-align: right; }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .foot-bottom p:last-child { text-align: left; }
}

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal { padding: 56px 0 80px; }
.legal-head { max-width: 780px; margin: 0 auto 28px; }
.legal-head h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.legal-head .updated { color: var(--muted); font-size: 14px; }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 auto 36px; max-width: 780px; box-shadow: var(--shadow-sm); }
.legal-toc h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { margin-left: 18px; columns: 2; column-gap: 28px; }
.legal-toc li { margin-bottom: 7px; }
.legal-toc a { color: var(--deep-green); font-size: 14px; }
.legal-toc a:hover { text-decoration: underline; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { color: #28342f; font-size: 16px; line-height: 1.7; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--deep-green); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.callout { background: rgba(217,166,0,0.10); border: 1px solid rgba(217,166,0,0.35); border-radius: 14px; padding: 16px 18px; margin: 20px 0; font-size: 15px; color: #6b5400; line-height: 1.6; }
.callout strong { color: #6b5400; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Mobile tightening ---------- */
@media (max-width: 560px) {
  header nav { height: 60px; }
  .brand .mark { width: 38px; height: 38px; }
  .brand .wordmark { font-size: 23px; }
  .nav-links { gap: 8px; }
  /* The form is immediately below the header on phones. Keeping its duplicate
     CTA in the nav made the brand, button, and language control overflow. */
  .nav-links > .btn { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch a {
    display: grid; min-width: 38px; min-height: 38px; padding: 0 9px;
    place-items: center;
  }

  .hero { padding: 28px 0 40px; }
  .hero-grid { gap: 28px; }
  .hero .phone-stage { order: 0; }   /* text + email form first on phones, phone below */
  .hero .device { width: 188px; }
  h1 { font-size: clamp(34px, 10vw, 42px); margin-bottom: 14px; }
  .lede { margin-bottom: 22px; }

  .trustbar-inner { padding: 14px 0; }

  section.block { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 16px; }

  .features { gap: 14px; }
  .feature { padding: 20px; }
  .feature .ico { width: 44px; height: 44px; margin-bottom: 12px; }
  .feature .ico svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 18px; margin-bottom: 6px; }

  .gallery-note { margin-top: 20px; }

  .cta { padding: 40px 22px; border-radius: 24px; }
  .cta-section { padding: 28px 0 48px; }
  .cta h2 { margin-bottom: 10px; }
  .cta p { font-size: 16px; margin-bottom: 22px; }
}

@media (max-width: 360px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .brand { gap: 9px; }
  .brand .wordmark { font-size: 21px; }
  h1 { font-size: 33px; }
  .trust { width: 100%; align-items: flex-start; }
  .foot-top { gap: 26px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
