/* ===== Design tokens (per Marie's spec) ===== */
:root {
  --gradient: linear-gradient(90deg, #C85103 0%, #A42200 100%);
  --orange: #C85103;
  --orange-dark: #A42200;
  --heading: #C24705;
  --black: #000000;
  --blush: #F7EBE4;
  --beige: #FDF9F3;
  --gray-bg: #E7E7EA;

  --font: 'Poppins', sans-serif;
  --size-title: 30px;
  --size-subtitle: 24px;
  --size-body: 16px;
}

/* Real, designed dark theme — kicks in automatically based on the
   visitor's device/browser preference. Overrides the same tokens
   used everywhere else, so no other rule needs to change. */
@media (prefers-color-scheme: dark) {
  :root {
    --beige: #211C16;
    --blush: #362920;
    --gray-bg: #2E241C;
    --black: #F3E8DB;
    --heading: #C24705;
    --orange-dark: #C24705;
  }
}

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

html {
  color-scheme: light dark;
}

body {
  font-family: var(--font);
  font-size: var(--size-body);
  color: var(--black);
  background: var(--beige);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.store-buttons a img { height: 48px; width: auto; }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== 1. HERO ===== */
.hero {
  background: var(--gradient);
  color: #fff;
  padding: 40px 6vw 80px;
  position: relative;
}

.logo-wrap { text-align: center; margin-bottom: 32px; }
.logo-img { height: 40px; width: auto; margin: 0 auto; }
@media (min-width: 860px) { .logo-img { height: 52px; } }

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr 1fr; text-align: left; }
}

.headline-img { max-width: 320px; margin: 0 auto 24px; }
@media (min-width: 860px) { .headline-img { max-width: 760px; margin: 0 0 24px; } }

.subtext {
  font-size: 18px;
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto 32px;
  color: #fff;
}
@media (min-width: 860px) {
  .subtext { font-size: var(--size-subtitle); margin: 0 0 32px; }
}

.hero-copy .store-buttons { justify-content: center; }
@media (min-width: 860px) { .hero-copy .store-buttons { justify-content: flex-start; } }

.hero-media { position: relative; display: flex; justify-content: center; padding-top: 20px; }
.hero-media .photo {
  width: 90%;
  max-width: none;
  position: relative;
  z-index: 2;
}
@media (min-width: 860px) { .hero-media .photo { width: 95%; } }

.sim-frame {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}
@media (min-width: 860px) {
  .sim-frame { right: 0; top: 0; width: 50%; }
}

/* ===== 2. PRESENTATION VIDEO ===== */
.presentation {
  background: var(--gray-bg);
  padding: 80px 6vw;
}
.presentation-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.presentation-title {
  font-size: var(--size-title);
  font-weight: 700;
  color: var(--heading);
}
.presentation-title--left { text-align: left; }
.presentation-title--right { text-align: right; }

.video-frame { display: flex; justify-content: center; }
.video-placeholder {
  width: 320px;
  aspect-ratio: 9/16;
  border-radius: 28px;
  background: #d5d5da;
  border: 2px dashed #a9a9b0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b72;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
@media (prefers-color-scheme: dark) {
  .video-placeholder {
    background: #40312A;
    border-color: #5C4A3F;
    color: #C4B3A6;
  }
}

@media (min-width: 720px) {
  .presentation-inner { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== 3. FEATURES GRID ===== */
.features { padding: 90px 6vw; background: var(--beige); }
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  text-align: center;
}
@media (min-width: 860px) {
  .features-inner { grid-template-columns: repeat(3, 1fr); }
}

.feature h3 {
  font-size: var(--size-subtitle);
  font-weight: 700;
  color: var(--heading);
  margin: 24px 0 12px;
}
.feature p { font-size: var(--size-body); color: var(--black); max-width: 320px; margin: 0 auto; }

.feature-img-wrap {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 8px;
}
.feature-img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.feature--center { position: relative; }
.stop-scene {
  position: relative;
  height: 90px;
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stop-scene__sign {
  height: 80px;
  opacity: 0;
  transform: scale(0.4);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.stop-scene__sign.bounce-in { opacity: 1; transform: scale(1); }

.stop-scene__car {
  position: absolute;
  height: 46px;
  left: -140px;
  bottom: 6px;
  transition: left 1s ease-out;
}
.stop-scene__car.drive-in { left: calc(50% - 90px); }

/* ===== 4. VISION + STATS + TESTIMONIALS ===== */
.vision { padding: 90px 6vw; background: var(--beige); }
.vision-inner { max-width: 1200px; margin: 0 auto; }

.vision-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
@media (min-width: 860px) {
  .vision-top { grid-template-columns: 1.3fr 1fr; align-items: center; }
}

.vision-copy h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.15;
}
.vision-copy p { font-size: 18px; color: var(--black); line-height: 1.7; max-width: 520px; text-align: justify; }

.stat-card {
  background: var(--blush);
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  aspect-ratio: 1.43 / 1;
  align-self: center;
  box-shadow: 0 2px 16px rgba(164, 34, 0, 0.08);
}
.stat-number {
  font-size: 88px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 20px;
}
@media (min-width: 860px) { .stat-number { font-size: 104px; } }
.stat-card p { font-size: 18px; color: var(--black); line-height: 1.5; }

.testimonials-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 860px) {
  .testimonials-row { flex-direction: row; align-items: center; gap: 16px; }
}
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  flex: 1;
}
@media (min-width: 860px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--blush);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(164, 34, 0, 0.08);
}
.testimonial h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.testimonial p { font-size: var(--size-body); color: var(--black); line-height: 1.5; }

.arrow-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.arrow-btn img { height: 18px; }

.trust { text-align: center; }
.trust-label {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 20px;
}
.partner-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo { height: 52px; width: auto; }
@media (prefers-color-scheme: dark) {
  .partner-logo {
    background: #F0E4D3;
    padding: 10px 18px;
    border-radius: 12px;
  }
}

/* ===== 5. DAWALAL CTA + FOOTER ===== */
.cta { background: var(--beige); }
.cta-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .cta-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.cta-poster { aspect-ratio: 739 / 1058; }
.cta-poster img { border-radius: 24px; width: 100%; height: 100%; object-fit: cover; }

.cta-card {
  background: var(--blush);
  border-radius: 32px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(164, 34, 0, 0.08);
}
.cta-card h2 {
  font-size: var(--size-title);
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 20px;
}
.cta-card p { font-size: var(--size-body); color: var(--black); line-height: 1.6; margin-bottom: 28px; }
.cta-card .store-buttons { justify-content: center; }

.footer {
  background: var(--gradient);
  color: #fff;
  padding: 40px 6vw;
  border-radius: 40px 40px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr 1fr; text-align: left; align-items: center; }
}

.footer-brand { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.footer-powered { font-size: 16px; opacity: 0.9; white-space: nowrap; }
.jarama-logo { height: 38px; width: auto; }

.footer-legal { text-align: center; }
.footer-legal p { font-size: 13px; line-height: 1.7; opacity: 0.9; }
.footer-legal a { text-decoration: underline; }
.footer-legal a:hover { opacity: 0.8; }
.footer-links { margin-top: 6px; }

.footer-social { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 860px) { .footer-social { align-items: flex-end; } }
.footer-social span { font-size: 13px; }

.social-icons-row { display: flex; gap: 14px; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icon img { height: 30px; width: 30px; }

@media (min-width: 860px) {
  .footer-social { flex-direction: row; justify-content: flex-end; gap: 12px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .stop-scene__sign, .stop-scene__car { transition: none; }
}
