/* CMRide preview — elegant premium dark-green (logo-matched) */
:root{
  --bg:#07140f;
  --bg2:#0c1f17;
  --card:#102820;
  --line:#1c3a2e;
  --fg:#f4f7f5;
  --mut:#a7b8af;
  --accent:#0B6E4F;
  --accent-hover:#0e8a63;
  --accent-soft:rgba(11,110,79,.18);
  --warn:#C1121F;
  --cream:#f0ebe3;
  --r:16px;
  /* aliases kept for existing demo hooks */
  --driver:#1B4965;
  --accent-2:#C1121F;
  --chip-selected:var(--accent-soft);
  --chip-idle:var(--card);
  --sim-banner-bg:rgba(193,18,31,.14);
  --sim-banner-fg:#f0c4c7;
  --phone-w:320px;
  --phone-h:640px;
  --pad:1.25rem;
  --max:1100px;
  --font-display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --font-body:system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--fg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--accent-hover)}
a:hover{color:var(--cream)}
button{
  font:inherit;
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--fg);
  border-radius:999px;
  padding:.4rem .85rem;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
button:hover{
  border-color:var(--accent);
  color:var(--cream);
}
button[aria-pressed="true"]{
  background:var(--accent-soft);
  border-color:var(--accent);
  color:var(--cream);
  font-weight:600;
}

/* Sticky simulation badge — soft warn tint */
.sim-badge{
  display:inline-flex;
  align-items:center;
  padding:.3rem .7rem;
  border-radius:999px;
  background:var(--sim-banner-bg);
  color:var(--sim-banner-fg);
  border:1px solid rgba(193,18,31,.35);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.sim-badge--sticky{
  position:fixed;
  top:.85rem;
  right:.85rem;
  z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}

/* Header */
.site-header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.85rem 1.25rem;
  padding:1rem var(--pad);
  border-bottom:1px solid var(--line);
  background:rgba(7,20,15,.92);
  backdrop-filter:blur(12px);
  position:sticky;
  top:0;
  z-index:50;
}
.logo-placeholder,.site-logo-text{
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.01em;
  color:var(--cream);
  font-family:var(--font-display);
}
.site-logo{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:inherit;
}
.site-logo img{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:12px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  color:inherit;
  text-decoration:none;
  font-weight:600;
  font-family:var(--font-display);
  color:var(--cream);
  letter-spacing:.01em;
}
.brand span{font-size:1.05rem}
.brand-logo{
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  display:block;
  box-shadow:0 4px 18px rgba(0,0,0,.35);
  border:1px solid var(--line);
}
.logo-placeholder{display:none}
.controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  margin-left:auto;
}
.lang-controls,.city-controls{display:inline-flex;gap:.3rem}
.header-demo-link{
  text-decoration:none;
  padding:.45rem .95rem;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:.875rem;
  font-weight:600;
  transition:background .15s ease;
}
.header-demo-link:hover{
  background:var(--accent-hover);
  color:#fff;
}

/* Hero */
.hero{
  max-width:var(--max);
  margin:0 auto;
  padding:4rem var(--pad) 3.5rem;
  text-align:center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(11,110,79,.22) 0%, transparent 70%);
}
.hero-logo{
  width:min(180px,42vw);
  height:auto;
  margin:0 auto 1.5rem;
  border-radius:22px;
  box-shadow:0 16px 48px rgba(0,0,0,.45);
  border:1px solid var(--line);
}
.hero h1{
  margin:.5rem 0 .75rem;
  font-family:var(--font-display);
  font-size:clamp(2rem,5.5vw,3.15rem);
  line-height:1.12;
  font-weight:600;
  color:var(--cream);
  letter-spacing:-.01em;
}
.hero-lead{
  color:var(--mut);
  max-width:34rem;
  margin:0 auto 1.75rem;
  font-size:1.05rem;
}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.8rem 1.5rem;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  letter-spacing:.01em;
  transition:background .15s ease,box-shadow .15s ease;
  box-shadow:0 8px 24px rgba(11,110,79,.35);
}
.cta:hover{
  background:var(--accent-hover);
  color:#fff;
}
.store-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.6rem;
  margin-top:1.5rem;
}
.store-badge{
  display:inline-flex;
  padding:.5rem .95rem;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--mut);
  font-size:.8125rem;
  background:var(--bg2);
  opacity:.9;
  cursor:not-allowed;
  user-select:none;
}

/* Sections */
.section-title{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad) 1.35rem;
  font-family:var(--font-display);
  font-size:clamp(1.35rem,3vw,1.75rem);
  font-weight:600;
  color:var(--cream);
  letter-spacing:-.01em;
}
.features,.demo,.gallery{
  padding:3rem 0 3.5rem;
}
.features{border-top:1px solid var(--line);background:var(--bg2)}
.demo{border-top:1px solid var(--line)}
.gallery{border-top:1px solid var(--line);background:var(--bg2)}

/* Feature grid */
.features-grid{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
  display:grid;
  grid-template-columns:1fr;
  gap:1.15rem;
}
@media (min-width:560px){
  .features-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:900px){
  .features-grid{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:1100px){
  .features-grid{grid-template-columns:repeat(4,1fr)}
}
.feature-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:border-color .15s ease,transform .15s ease;
}
.feature-card:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
}
.feature-thumb{
  display:block;
  background:#050d0a;
  aspect-ratio:16/9;
  overflow:hidden;
}
.feature-thumb img,
.feature-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.feature-card h3{
  margin:0;
  padding:.9rem 1.1rem;
  font-size:.95rem;
  font-weight:600;
  color:var(--cream);
  font-family:var(--font-display);
}

/* Demo / phone */
.demo{text-align:center}
.phone{
  width:var(--phone-w);
  height:var(--phone-h);
  max-width:calc(100vw - 2rem);
  border:2px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  background:#050d0a;
  margin:0 auto;
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(11,110,79,.15);
}
#demo-root{
  width:100%;
  height:100%;
  color:var(--fg);
}

/* Gallery */
.gallery-track{
  display:flex;
  gap:1.1rem;
  padding:0 var(--pad) .5rem;
  max-width:var(--max);
  margin:0 auto;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.gallery-item{
  flex:0 0 min(280px,80vw);
  margin:0;
  scroll-snap-align:start;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}
.gallery-item img,
.gallery-item video{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#050d0a;
}
.gallery-item figcaption{
  padding:.75rem .95rem;
  font-size:.875rem;
  color:var(--mut);
}
@media (min-width:900px){
  .gallery-track{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:visible;
  }
  .gallery-item{flex:none}
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:2.75rem var(--pad);
  text-align:center;
  color:var(--mut);
  font-size:.875rem;
  background:var(--bg);
}
.site-footer .disclaimer{max-width:40rem;margin:.65rem auto 0;line-height:1.55}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .feature-card{transition:none}
  .feature-card:hover{transform:none}
}

/* ===== Demo state machine ===== */
#demo-root{
  display:flex;
  flex-direction:column;
  background:var(--bg);
}
.demo-screen{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:100%;
}
.demo-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  padding:.65rem .75rem;
  border-bottom:1px solid var(--line);
  background:var(--card);
  flex-shrink:0;
}
.demo-city{
  font-size:.8125rem;
  font-weight:600;
  color:var(--cream);
}
.demo-sim{font-size:.65rem}
.demo-body{
  flex:1;
  overflow:auto;
  padding:.85rem .75rem;
  text-align:left;
}
.demo-screen-title{
  margin:0 0 .75rem;
  font-size:1rem;
  font-family:var(--font-display);
  color:var(--cream);
  font-weight:600;
}
.demo-caption{
  margin:.5rem 0 0;
  color:var(--mut);
  font-size:.8125rem;
}
.demo-nav{
  display:flex;
  gap:.35rem;
  padding:.55rem .65rem;
  border-top:1px solid var(--line);
  background:var(--card);
  flex-shrink:0;
}
.demo-nav button{
  flex:1;
  font-size:.75rem;
  padding:.4rem .35rem;
  border-radius:10px;
}
.demo-nav button:disabled{
  opacity:.4;
  cursor:not-allowed;
}
.demo-next{
  background:var(--accent) !important;
  border-color:var(--accent) !important;
  color:#fff !important;
}
.demo-next:hover{
  background:var(--accent-hover) !important;
}
.demo-stepmeta{
  padding:.25rem .65rem .55rem;
  font-size:.65rem;
  color:var(--mut);
  background:var(--card);
  text-align:center;
}

/* Map vignette + car */
.demo-map-vignette{
  position:relative;
  height:220px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 60%, #143528 0%, #07140f 70%),
    linear-gradient(180deg,#0c1f17,#07140f);
}
.demo-map-grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(167,184,175,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,184,175,.1) 1px, transparent 1px);
  background-size:28px 28px;
  opacity:.7;
}
.demo-pin{
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  border:2px solid #fff;
  z-index:2;
}
.demo-pin--pickup{
  top:28%;
  left:22%;
  background:var(--accent);
}
.demo-pin--dropoff{
  top:62%;
  left:72%;
  background:var(--accent-2);
}
.car{
  position:absolute;
  top:30%;
  left:24%;
  width:12px;
  height:12px;
  border-radius:3px;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(11,110,79,.35);
  z-index:3;
  animation:demo-car-drive 6s ease-in-out infinite alternate;
}
@keyframes demo-car-drive{
  0%{transform:translate(0,0)}
  50%{transform:translate(90px,40px)}
  100%{transform:translate(140px,70px)}
}
.demo-map--static .car{
  animation:none !important;
  transform:translate(70px,35px);
}
@media (prefers-reduced-motion:reduce){
  .car{animation:none !important; transform:translate(70px,35px)}
}

/* Booking */
.demo-kv{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.demo-kv > div{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  padding:.65rem .75rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
}
.demo-kv dt{
  color:var(--mut);
  font-size:.75rem;
  margin:0;
}
.demo-kv dd{
  margin:0;
  font-weight:600;
  font-size:.875rem;
  text-align:right;
  color:var(--cream);
}

/* Assigned driver */
.demo-driver-card{
  display:flex;
  gap:.85rem;
  padding:.85rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  align-items:flex-start;
}
.demo-driver-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.15rem;
  flex-shrink:0;
}
.demo-driver-meta{margin:0;font-size:.8125rem;color:var(--mut)}
.demo-driver-meta p{margin:.15rem 0}
.demo-driver-name{color:var(--cream) !important;font-weight:700;font-size:.95rem !important}

/* Navigation progress */
.demo-enroute{
  margin:.25rem 0 .75rem;
  font-size:.8125rem;
  color:var(--accent-hover);
  font-weight:600;
}
.demo-progress{
  height:8px;
  border-radius:999px;
  background:var(--line);
  overflow:hidden;
}
.demo-progress-bar{
  height:100%;
  width:0%;
  background:var(--accent);
  border-radius:999px;
  transition:width .1s linear;
}
.demo-progress-label{
  margin:.4rem 0 0;
  font-size:.75rem;
  color:var(--mut);
  text-align:right;
}
@media (prefers-reduced-motion:reduce){
  .demo-progress-bar{transition:none}
}

/* Stub screens */
.demo-stub{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:180px;
}
.demo-stub .demo-caption{max-width:14rem}

/* ===== Demo steps 5–8 ===== */
.demo-pay-methods{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  margin:.75rem 0;
}
.demo-pay-btn{
  width:100%;
  border-radius:12px;
  padding:.7rem .85rem;
  font-weight:600;
  text-align:left;
  background:var(--card);
}
.demo-pay-btn[data-method="mtn"]{border-color:#ffcc00}
.demo-pay-btn[data-method="orange"]{border-color:#ff7900}
.demo-pay-status{
  margin-top:.75rem;
  padding:.85rem;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--card);
  min-height:3rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  text-align:center;
}
.demo-pay-status--busy{
  flex-direction:row;
  color:var(--mut);
  font-size:.875rem;
}
.demo-pay-ok{
  margin:0;
  color:var(--accent-hover);
  font-weight:700;
}
.demo-pay-disclaimer{
  margin:0;
  color:var(--mut);
  font-size:.75rem;
}
.demo-spinner{
  width:18px;
  height:18px;
  border:2px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:demo-spin .7s linear infinite;
  flex-shrink:0;
}
@keyframes demo-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .demo-spinner{animation:none;border-top-color:var(--accent)}
}

.demo-chat-thread{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  max-height:220px;
  overflow:auto;
  padding:.35rem 0;
  margin-bottom:.5rem;
}
.demo-bubble{
  max-width:85%;
  padding:.55rem .7rem;
  border-radius:12px;
  font-size:.8125rem;
  line-height:1.35;
}
.demo-bubble--driver{
  align-self:flex-start;
  background:var(--card);
  border:1px solid var(--line);
}
.demo-bubble--user{
  align-self:flex-end;
  background:var(--accent-soft);
  border:1px solid var(--accent);
}
.demo-chat-hint{
  margin:.25rem 0 .4rem;
  font-size:.7rem;
  color:var(--mut);
}
.demo-chat-replies{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}
.demo-chat-reply{
  width:100%;
  border-radius:10px;
  font-size:.75rem;
  text-align:left;
  padding:.5rem .65rem;
}
.demo-chat-reply:disabled{opacity:.45;cursor:not-allowed}

.demo-call{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:260px;
  gap:.35rem;
}
.demo-call-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.75rem;
  font-weight:700;
  margin-bottom:.5rem;
}
.demo-call-name{
  margin:0;
  font-weight:700;
  font-size:1.05rem;
  color:var(--cream);
}
.demo-call-label{
  margin:0;
  color:var(--mut);
  font-size:.8125rem;
}
.demo-call-timer{
  margin:.5rem 0 1rem;
  font-variant-numeric:tabular-nums;
  font-size:1.5rem;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--cream);
}
.demo-call-end{
  background:var(--accent-2) !important;
  border-color:var(--accent-2) !important;
  color:#fff !important;
  border-radius:999px;
  padding:.65rem 1.4rem;
  font-weight:700;
}
.demo-call-end:disabled{opacity:.5;cursor:not-allowed}
.demo-call-ended{
  margin:.5rem 0 0;
  color:var(--mut);
  font-size:.8125rem;
}

.demo-number-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  padding:.75rem;
  margin-bottom:.55rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
}
.demo-number-meta{
  display:flex;
  flex-direction:column;
  gap:.15rem;
  min-width:0;
}
.demo-number-label{
  font-size:.7rem;
  color:var(--mut);
}
.demo-number-value{
  font-weight:600;
  font-size:.875rem;
  font-variant-numeric:tabular-nums;
  word-break:break-all;
  color:var(--cream);
}
.demo-copy{
  flex-shrink:0;
  border-radius:10px;
  font-size:.75rem;
  padding:.4rem .65rem;
}

.scene-media{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#050d0a;
}
@media (prefers-reduced-motion: reduce){
  .scene-media{animation:none}
}
