/* Keep the main action in view on the separate desktop and mobile crops. */
.cg-landing {
  --cg-ink: #1f3342;
  --cg-white: #fff;
  --cg-cream: #f7f2eb;
  --cg-black: #0e0e0e;
  --cg-yellow: #e2f925;
  --cg-cyan: #29c4f8;
  --cg-gutter: clamp(1.25rem, 5vw, 5.5rem);
  color: var(--cg-ink);
  background: var(--cg-cream);
  overflow: clip;
}
.cg-shell {
  width: min(calc(100% - 2 * var(--cg-gutter)), 85rem);
  margin-inline: auto;
}
.cg-hero {
  background: var(--cg-ink);
  color: var(--cg-white);
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: clamp(31rem, 39.5vw, 44rem);
}
.cg-media {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 55%;
  z-index: 0;
  /* The cut corner echoes the open edge of the CarAge wordmark. */
  clip-path: polygon(2.75rem 0, 100% 0, 100% 100%, 0 100%, 0 2.75rem);
}
[dir="rtl"] .cg-media { clip-path: polygon(0 0, calc(100% - 2.75rem) 0, 100% 2.75rem, 100% 100%, 0 100%); }
.cg-film,
.cg-slide,
.cg-slide picture,
.cg-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
}
.cg-film {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.cg-slide { opacity: 0; }
.cg-slide[hidden] { display: none; }
.cg-slide[data-under] { z-index: 1; opacity: 1; }
.cg-slide[data-active] { z-index: 2; opacity: 1; }
.cg-slide img { object-fit: cover; object-position: 59% 51%; }
.cg-slide:nth-child(2) img { object-position: center 5%; }
.cg-slide:nth-child(3) img { object-position: center 48%; }
.cg-film-bar {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  padding: 2.6rem clamp(1rem, 2.7vw, 3.25rem) clamp(.65rem, 1.35vw, 1.4rem);
  background: linear-gradient(to bottom, transparent, rgb(5 13 19 / .70));
  pointer-events: none;
}
.cg-film-caption {
  align-self: end;
  padding-block: .75rem;
  color: white;
  font: 540 1rem/1.3 var(--display-face);
  text-shadow: 0 1px 4px rgb(0 0 0 / .65);
}
.cg-film-controls { display: flex; flex: none; align-items: center; }
.cg-film-controls[hidden] { display: none; }
.cg-film-step, .cg-film-toggle {
  display: grid;
  position: relative;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 0;
  color: white;
  background: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.cg-film-step::after {
  content: '';
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / .83);
  box-shadow: 0 1px 4px rgb(0 0 0 / .55);
  transition: transform .22s ease, background .22s;
}
.cg-film-step[aria-current="true"]::after {
  background: var(--cg-cyan);
  transform: scaleX(1.75);
}
.cg-film-toggle {
  margin-inline-start: .15rem;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .55));
}
.cg-film-toggle::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  height: 16px;
  width: 1px;
  background: rgb(255 255 255 / .45);
}
.cg-film-toggle .cg-pause, .cg-film-toggle[data-playing="true"] .cg-play { display: none; }
.cg-film-toggle[data-playing="true"] .cg-pause { display: block; }
.cg-hero .cg-film-controls button:focus-visible { outline-offset: -4px; border-radius: 4px; }
.cg-hero-body {
  position: relative;
  align-self: center;
  pointer-events: none;
  z-index: 1;
  padding-block: clamp(4.4rem, 6vw, 6.5rem);
}
.cg-hero-copy { max-width: 42%; pointer-events: auto; }
.cg-market-label { display: block; font-size: .94rem; line-height: 1.35; font-weight: 580; color: #b9d9e8; margin-block-end: 1.1rem; }
.cg-hero h1 {
  font-size: clamp(3.1rem, 4.9vw, 5.65rem);
  font-weight: 570;
  line-height: .99;
  letter-spacing: var(--script-tracking, -.069em);
  text-wrap: balance;
  color: var(--cg-white);
}
.cg-hero :is(button,a):focus-visible { outline-color: var(--cg-yellow); }
.cg-hero h1 em { color: var(--cg-cyan); font-style: normal; }
.cg-hero-copy > p {
  font-size: clamp(1.03rem, 1.24vw, 1.22rem);
  line-height: 1.53;
  text-wrap: pretty;
}
.cg-hero-copy > p {
  color: var(--cg-cream);
  max-width: 41ch;
  margin-block: 1.5rem 1.65rem;
}
.cg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.65rem; }
.cg-actions a { pointer-events: auto; }
.cg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.35rem;
  min-height: 48px;
  border-radius: 4px;
  color: var(--cg-black);
  background: var(--cg-cyan);
  font-weight: 680;
  transition: background .18s, transform .18s;
  line-height: 1.2;
}
.cg-button:active { transform: scale(.96); }
.cg-hero-link, .cg-line-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 640;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: .32em;
  text-decoration-thickness: 1px;
}
.cg-hero-link { color: var(--cg-white); text-decoration-color: #98b1c0; }
.cg-line-link { text-decoration-color: #839ba7; }
.cg-faq { padding-block: clamp(3.75rem, 6.1vw, 6.5rem); }
.cg-faq h2, .cg-app h2 {
  font-size: clamp(2.5rem, 4.1vw, 4.6rem);
  letter-spacing: var(--script-tracking, -.065em);
  font-weight: 590;
  line-height: 1.03;
  text-wrap: balance;
}
.cg-app {
  --cg-app-field: var(--cg-cyan);
  position: relative;
  isolation: isolate;
  background: var(--cg-ink);
  color: var(--cg-white);
}
.cg-app::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 49%;
  z-index: -1;
  background: var(--cg-app-field);
}
.cg-app-layout { display: grid; grid-template-columns: 51.15% 48.85%; align-items: center; }
.cg-app-copy { padding-block: clamp(3.5rem, 6vw, 6rem); padding-inline-end: min(5vw, 4.5rem); }
.cg-app h2 { font-size: clamp(3rem, 4.95vw, 5.65rem); line-height: 1; color: var(--cg-cream); }
.cg-app h2 em { display: block; color: var(--cg-cyan); font-style: normal; }
.cg-booking-steps {
  margin: 1.6rem 0 0;
  padding-inline-start: 1.65rem;
  max-width: 39ch;
  color: var(--cg-cream);
}
.cg-booking-steps li { padding-block: .45rem; padding-inline-start: .35rem; line-height: 1.48; }
.cg-booking-steps li::marker { color: var(--cg-cyan); font: 650 1em var(--display-face); }
.cg-app .stores { margin-top: 1.75rem; }
.cg-app .store { background: #091e29; color: #fff; border: 1px solid #7994a3; min-height: 50px; }
.cg-screens {
  padding: clamp(1.9rem, 4vw, 4rem) 0 clamp(1.9rem, 4vw, 4rem) clamp(1rem, 2.5vw, 2.75rem);
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 1.65vw, 1.65rem);
}
[dir="rtl"] .cg-screens { padding-inline: 0 clamp(1rem, 2.5vw, 2.75rem); }
.cg-phone {
  flex: 0 1 42%;
  max-width: 12.8rem;
  min-width: 0;
  display: block;
  overflow: hidden;
  border: clamp(3px, .32vw, 5px) solid var(--cg-black);
  border-radius: clamp(15px, 1.65vw, 25px);
  background: var(--cg-black);
  box-shadow: 0 10px 0 #0c62812b;
  cursor: zoom-in;
}
.cg-phone img { width: 100%; height: auto; aspect-ratio: 472/1024; }
.cg-phone-booking { margin-bottom: clamp(1.7rem, 3.8vw, 3.75rem); }
.cg-phone-services { margin-top: clamp(1.7rem, 3.8vw, 3.75rem); }
.cg-faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: min(8vw, 8rem); }
.cg-faq .cg-line-link { margin-top: 1rem; }
.cg-faq .question summary { font-size: clamp(1.05rem, 1.35vw, 1.28rem); letter-spacing: var(--script-tracking, -.015em); }
.cg-landing [id] { scroll-margin-block-start: 6rem; }
.cg-partners { background: var(--cg-cream); padding-block-start: clamp(3rem, 6.5vw, 6.75rem); }
.cg-partners-layout { display: grid; grid-template-columns: 1fr 1fr; background: #e9e2d8; align-items: stretch; }
.cg-partners-photo { display: block; min-width: 0; position: relative; }
.cg-partners-photo img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 50%; }
.cg-partners-copy { align-self: center; padding: clamp(2rem, 5.1vw, 5.15rem); }
.cg-partners h2 { font-size: clamp(2.35rem, 3.75vw, 4.4rem); line-height: 1.04; letter-spacing: var(--script-tracking, -.055em); text-wrap: balance; }
.cg-partners p { max-width: 44ch; margin-block: 1.05rem 1.35rem; font-size: 1.06rem; line-height: 1.6; }
.cg-partners .cg-button { background: var(--cg-ink); color: #fff; }
@media (hover: hover) {
  .cg-partners .cg-button:hover { background: #0b2532; color: var(--cg-cyan); }
}
@media (max-width: 760px) {
  .cg-market-label { margin-block-end: .55rem; }
  .cg-partners-layout { grid-template-columns: minmax(0, 1fr); }
  .cg-partners-photo { aspect-ratio: 1.95; }
  .cg-partners-photo img { object-position: 50% 48%; }
  .cg-partners-copy { padding: clamp(1.3rem, 5.7vw, 3rem); }
}
@media (hover: hover) {
  .cg-button:hover { background: var(--cg-yellow); }
  .cg-hero-link:hover { text-decoration-color: #fff; }
  .cg-line-link:hover { color: #00617d; text-decoration-color: currentColor; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .cg-hero { min-height: 29rem; }
  .cg-media { width: 50%; }
  .cg-hero-body { padding-block: 3rem; }
  .cg-hero-copy { max-width: 47%; }
  .cg-hero h1 { font-size: clamp(3.2rem, 6vw, 3.85rem); }
  .cg-hero-copy > p { max-width: 29ch; }
  .cg-app-layout { grid-template-columns: 48% 52%; }
  .cg-app::after { width: 52%; }
}
@media (max-width: 760px) {
  .cg-hero { display: flex; flex-direction: column; min-height: 0; }
  .cg-media { position: relative; width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .cg-film-bar { padding: 1.9rem .65rem .25rem var(--cg-gutter); padding-inline: var(--cg-gutter) .65rem; }
  .cg-film-caption { font-size: .92rem; }
  .cg-media, [dir="rtl"] .cg-media { clip-path: none; }
  .cg-slide:nth-child(n) img { object-position: center; }
  .cg-hero-body { padding-block: clamp(1.4rem, 5vw, 2rem) clamp(1.75rem, 6vw, 2.65rem); }
  .cg-hero-copy { max-width: 100%; }
  .cg-hero h1 { font-size: clamp(2.9rem, 10.6vw, 4.85rem); letter-spacing: var(--script-tracking, -.058em); line-height: .99; }
  .cg-hero-copy > p { max-width: 43ch; margin-block: .9rem 1.1rem; }
  .cg-faq { padding-block: 3rem; }
  .cg-faq h2 { font-size: clamp(2.3rem, 8vw, 3.65rem); }
  .cg-app::after { display: none; }
  .cg-app-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .cg-app-copy { width: min(100% - 2 * var(--cg-gutter), 85rem); margin-inline: auto; padding: 2.7rem 0; }
  .cg-app h2 { font-size: clamp(3.35rem, 10vw, 4.5rem); }
  .cg-booking-steps { margin-block-start: 1.1rem; }
  .cg-app .stores { margin-top: 1.3rem; }
  .cg-screens, [dir="rtl"] .cg-screens { padding: 1.65rem var(--cg-gutter); background: var(--cg-app-field); gap: clamp(.8rem, 4vw, 1.65rem); }
  .cg-phone { flex-basis: 39%; max-width: 11.25rem; }
  .cg-faq { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .cg-faq .cg-line-link { margin-top: .25rem; }
}
@media (max-width: 600px) {
  .cg-media { aspect-ratio: 1.35; }
  .cg-hero [data-film-slide] img { object-position: center; }
}
@media (min-width: 590px) and (max-width: 920px) and (max-height: 540px) and (orientation: landscape) {
  .cg-hero { display: grid; min-height: clamp(19rem, 78svh, 26rem); }
  .cg-media { position: absolute; width: 51%; height: 100%; aspect-ratio: auto; }
  .cg-hero-body { padding-block: 1.6rem; }
  .cg-hero-copy { max-width: 48%; }
  .cg-hero h1 { font-size: clamp(2.35rem, 5vw, 3.35rem); }
  .cg-hero-copy > p { font-size: 1rem; line-height: 1.45; margin-block: .65rem .8rem; }
  .cg-actions { gap: .4rem 1rem; }
  .cg-film-bar { padding-inline: .65rem .3rem; }
}
@media (max-width: 365px) {
  .cg-hero h1 { font-size: 2.85rem; }
  .cg-app .stores { gap: .45rem; }
  .cg-app .store { min-width: 0; padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-film-step::after, .cg-button { transition: none; }
}
