/* =========================================================================
   CarTech Homepage v2 — Eight Sleep structure, CarTech skin.
   Mobile-first. Turquoise accent only. IBM Plex Sans Arabic + Inter.
   Class prefix ct2- (old ct- homepage CSS is retired by deploy_v2).
   ========================================================================= */

:root {
  --ct2-ink:   #0A0A0A;
  --ct2-mute:  #6B6B6B;
  --ct2-line:  #ECECEC;
  --ct2-soft:  #F7F6F4;
  --ct2-cream: #FAF8F5;
}

/* ---------- primitives ---------- */
.ct2-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 980px) { .ct2-container { padding: 0 56px; } }

.ct2-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ct2-mute);
  margin: 0 0 16px;
}
html[dir="rtl"] .ct2-eyebrow { letter-spacing: 0; font-family: 'IBM Plex Sans Arabic','Tajawal',sans-serif; font-weight: 500; font-size: 13px; }
.ct2-eyebrow--light { color: rgba(255,255,255,0.65); }

.ct2-h2 {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
  color: var(--ct2-ink);
  margin: 0 0 20px;
}
.ct2-p {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ct2-mute);
  margin: 0 0 28px;
  max-width: 46ch;
}
.ct2-lead { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.ct2-lead .ct2-p { margin-inline: auto; }

.ct2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 100px;
  transition: transform .12s, background-color .18s, color .18s;
  white-space: nowrap;
}
.ct2-btn:active { transform: scale(0.98); }
.ct2-btn--solid { background: #fff; color: var(--ct2-ink); }
.ct2-btn--solid:hover { background: #E8E8E8; color: var(--ct2-ink); }
.ct2-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(8px); }
.ct2-btn--ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.ct2-btn--accent { background: #fff; color: var(--ct2-ink); }
.ct2-btn--accent:hover { background: #E8E8E8; color: var(--ct2-ink); }

/* ============ 1. HERO ============ */
.ct2-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ct2-ink);
  overflow: hidden;
}
.ct2-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct2-hero__video--m { display: block; }
.ct2-hero__video--d { display: none; }
@media (min-width: 768px) {
  .ct2-hero__video--m { display: none; }
  .ct2-hero__video--d { display: block; }
}
.ct2-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,10,0.82) 0%, rgba(5,8,10,0.25) 45%, rgba(5,8,10,0.15) 100%);
}
.ct2-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px clamp(56px, 10svh, 120px);
  text-align: center;
}
.ct2-hero__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 18px;
}
.ct2-hero__sub {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 44ch;
  margin: 0 auto 32px;
}
.ct2-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.ct2-hero__ctas .ct2-btn { width: min(100%, 340px); }
@media (min-width: 768px) {
  .ct2-hero__content { text-align: start; padding-inline: 56px; }
  .ct2-hero__sub { margin-inline: 0; }
  .ct2-hero__ctas { flex-direction: row; }
  .ct2-hero__ctas .ct2-btn { width: auto; }
}

/* ============ 2. REASSURANCE ============ */
.ct2-assure { padding: clamp(72px, 10vw, 140px) 0; background: #fff; }
.ct2-assure__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 980px) { .ct2-assure__grid { grid-template-columns: 1fr 1fr; } }
.ct2-assure__media {
  aspect-ratio: 4 / 3;
  background: var(--ct2-ink);
  border-radius: 8px;
  overflow: hidden;
}
.ct2-assure__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct2-assure__points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ct2-line);
}
.ct2-assure__points li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ct2-line);
}
.ct2-assure__points strong {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ct2-ink);
  min-width: 130px;
}
.ct2-assure__points span { font-size: 14px; color: var(--ct2-mute); }

/* ============ 3. PILLARS ============ */
.ct2-pillars { padding: clamp(72px, 10vw, 140px) 0; background: var(--ct2-soft); }
.ct2-pillars__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 420px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ct2-pillars__track::-webkit-scrollbar { display: none; }
@media (min-width: 980px) {
  .ct2-pillars__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 56px;
    gap: 24px;
  }
}
.ct2-pillar {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}
.ct2-pillar__media { aspect-ratio: 4 / 3; background: var(--ct2-ink); }
.ct2-pillar__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct2-pillar__body { padding: 28px 24px 32px; }
.ct2-pillar__num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ct2-mute);
  display: block;
  margin-bottom: 10px;
}
.ct2-pillar__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--ct2-ink);
}
.ct2-pillar__p { font-size: 15px; line-height: 1.75; color: var(--ct2-mute); margin: 0; }

/* ============ 4. STATS ============ */
.ct2-stats {
  background: var(--ct2-ink);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
}
.ct2-stats__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 980px) { .ct2-stats__row { grid-template-columns: repeat(4, 1fr); } }
.ct2-stat strong {
  display: block;
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 44px);
  color: #fff;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.ct2-stat span { font-size: 14px; color: rgba(255,255,255,0.65); }

/* ============ 5. STORIES ============ */
.ct2-stories { padding: clamp(72px, 10vw, 140px) 0; background: var(--ct2-cream); }
.ct2-stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 980px) { .ct2-stories__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.ct2-story__media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ct2-soft);
  margin-bottom: 20px;
}
.ct2-story__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct2-story__q {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ct2-ink);
  margin: 0 0 10px;
  border: 0;
  padding: 0;
}
.ct2-story__by { font-size: 13px; color: var(--ct2-mute); margin: 0; }

/* ============ 6. REVIEWS ============ */
.ct2-reviews { padding: clamp(56px, 8vw, 96px) 0; background: #fff; text-align: center; border-top: 1px solid var(--ct2-line); }
.ct2-reviews__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.ct2-reviews__stars { color: var(--ct2-ink); font-size: 22px; letter-spacing: 0.1em; }
.ct2-reviews__score strong {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--ct2-ink);
}
.ct2-reviews__count { font-size: 14px; color: var(--ct2-mute); margin: 0; }

/* ============ 7. FINAL CTA ============ */
.ct2-final {
  background: var(--ct2-ink);
  color: #fff;
  padding: clamp(96px, 14vw, 180px) 0;
  text-align: center;
}
.ct2-final__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 300;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.16;
  color: #fff;
  margin: 0 0 20px;
}
.ct2-final__p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 42ch;
  margin: 0 auto 36px;
}
.ct2-final .ct2-btn { min-width: min(100%, 340px); height: 60px; }
.ct2-final__note { margin: 20px 0 0; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- retire leftover Odoo default homepage cruft ---------- */
#wrap > .ct2-hero { margin-top: 0; }

/* =========================================================================
   v2.1 — sections added for the nav anchors (#how #features #cars #faq).
   These four menu items used to point at anchors that did not exist, so the
   links did nothing. Each now has a real section on the homepage.
   ========================================================================= */

/* ---- shared: dark ghost button on light ground ---- */
.ct2-btn--dark {
  background: transparent;
  color: var(--ct2-ink);
  border: 1px solid var(--ct2-ink);
  backdrop-filter: none;
}
.ct2-btn--dark:hover { background: var(--ct2-ink); color: #fff; }

/* ============ 2b. HOW IT WORKS ============ */
.ct2-how { padding: clamp(72px, 10vw, 140px) 0; background: #fff; }
.ct2-how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
  counter-reset: step;
}
@media (min-width: 860px) { .ct2-how__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); } }
.ct2-how__step { padding-top: 24px; border-top: 1px solid var(--ct2-line); }
.ct2-how__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ct2-mute);
  margin-bottom: 18px;
}
.ct2-how__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.35;
  color: var(--ct2-ink);
  margin: 0 0 12px;
}
.ct2-how__p { font-size: 15px; line-height: 1.85; color: var(--ct2-mute); margin: 0; }
.ct2-how__figure { margin: clamp(48px, 7vw, 88px) 0 0; }
.ct2-how__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.ct2-how__figure figcaption {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ct2-mute);
  text-align: center;
}

/* ============ 3b. FEATURES BENTO ============ */
.ct2-features { padding: clamp(72px, 10vw, 140px) 0; background: #fff; }
.ct2-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ct2-line);
  border: 1px solid var(--ct2-line);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 640px) { .ct2-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ct2-features__grid { grid-template-columns: repeat(3, 1fr); } }
.ct2-feat { background: #fff; padding: clamp(28px, 3.4vw, 44px); }
.ct2-feat__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ct2-ink);
  margin: 0 0 12px;
  position: relative;
  padding-inline-start: 18px;
}
.ct2-feat__h::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3DDDD6;
}
.ct2-feat__p { font-size: 15px; line-height: 1.85; color: var(--ct2-mute); margin: 0; }

/* ============ 5b. SUPPORTED CARS ============ */
.ct2-cars { padding: clamp(72px, 10vw, 140px) 0; background: var(--ct2-soft); }
.ct2-cars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) { .ct2-cars__grid { grid-template-columns: 1fr 1fr; } }
.ct2-cars__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.ct2-cars__list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  border-top: 1px solid var(--ct2-line);
}
.ct2-cars__list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--ct2-line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ct2-ink);
}
.ct2-cars__note { font-size: 14px; line-height: 1.8; color: var(--ct2-mute); margin: 0 0 24px; }

/* ============ 6b. FAQ ============ */
.ct2-faq { padding: clamp(72px, 10vw, 140px) 0; background: #fff; }
.ct2-faq__inner { max-width: 860px; }
.ct2-faq__list { border-top: 1px solid var(--ct2-line); }
.ct2-faq__item { border-bottom: 1px solid var(--ct2-line); }
.ct2-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.5;
  color: var(--ct2-ink);
  transition: color .18s;
}
.ct2-faq__q::-webkit-details-marker { display: none; }
.ct2-faq__q:hover { color: #0B8F87; }
.ct2-faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--ct2-mute);
  transition: transform .22s ease;
}
.ct2-faq__item[open] .ct2-faq__q::after { transform: rotate(45deg); }
.ct2-faq__a { padding: 0 0 26px; }
.ct2-faq__a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ct2-mute);
  max-width: 68ch;
}
.ct2-faq__more { margin: 36px 0 0; font-size: 15px; color: var(--ct2-mute); text-align: center; }
.ct2-faq__more a { color: var(--ct2-ink); text-decoration: underline; text-underline-offset: 3px; }

/* anchor offset so the fixed nav never covers a section heading */
#how, #features, #cars, #faq, #pillars { scroll-margin-top: 96px; }

/* buy + WhatsApp side by side in the closing section */
.ct2-final__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
@media (min-width: 620px) {
  .ct2-final__ctas { flex-direction: row; justify-content: center; }
}
.ct2-final__ctas .ct2-btn { min-width: min(100%, 300px); }

/* ============ 2a. COMFORT — full-bleed lifestyle video, text over it (same build as the hero) ============
   Desktop uses a landscape cut with a blurred fill (v_comfort_d), mobile the portrait original. */
.ct2-comfort {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ct2-ink);
  overflow: hidden;
}
.ct2-comfort__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct2-comfort__video--m { display: block; }
.ct2-comfort__video--d { display: none; }
.ct2-comfort__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,10,0.82) 0%, rgba(5,8,10,0.25) 45%, rgba(5,8,10,0.1) 100%);
}
.ct2-comfort__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px clamp(56px, 10svh, 120px);
  text-align: center;
}
.ct2-comfort__h {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
@media (min-width: 768px) {
  .ct2-comfort__video--m { display: none; }
  .ct2-comfort__video--d { display: block; }
  .ct2-comfort__content { text-align: start; padding-inline: 56px; }
}
