/**
 * Express Taxi - public site
 *
 * One stylesheet for both languages. Whatever has a side is written with
 * logical properties (margin-inline, inset-inline-start…), so the Arabic
 * pages mirror the French ones without a second set of rules.
 *
 *  1. Tokens          6. Hero              11. Download band
 *  2. Base            7. Sections          12. Page heading
 *  3. Buttons         8. Steps             13. Contact
 *  4. Header          9. Features          14. Legal pages (privacy, terms)
 *  5. Footer         10. Drivers, FAQ      15. Motion
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --ink: #14141a;
  --ink-2: #1d1d25;
  --ink-3: #2b2b36;
  --amber: #ffb800;
  --amber-bright: #ffc933;
  --amber-deep: #8a5a00;
  --amber-100: #fff1c7;
  --amber-50: #fff9e8;
  --paper: #faf7f0;
  --paper-2: #f2ede1;
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5e68;
  --line: rgba(20, 20, 26, 0.1);
  --on-dark: #f6f3ec;
  --on-dark-muted: #a8a7b4;
  --line-dark: rgba(255, 255, 255, 0.11);
  --danger: #b42318;
  --success: #12714a;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(20, 20, 26, 0.04), 0 18px 40px -22px rgba(20, 20, 26, 0.28);
  --header-height: 72px;

  --font-latin: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-latin);
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tracking-display: -0.03em;
  --leading-display: 1.05;

  /* 1 on a left-to-right page, -1 on a right-to-left one: for the few transforms that have a side. */
  --flip: 1;

  --checker: repeating-conic-gradient(var(--amber) 0 25%, var(--ink) 0 50%);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
}

html[dir='rtl'] {
  --flip: -1;
  --font-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', system-ui, sans-serif;
  /* Arabic letters join: spacing them apart breaks the word. */
  --tracking-display: 0;
  --leading-display: 1.35;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[dir='rtl'] body {
  line-height: 1.85;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 2000;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  inset-block-start: 12px;
}

/* The taxi stripe: two rows of amber and ink squares. */
.checker {
  height: 24px;
  background: var(--checker) 0 0 / 24px 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}

/* A scrap of the stripe in front of each small heading. */
.eyebrow::before {
  content: '';
  width: 24px;
  height: 12px;
  border-radius: 3px;
  background: var(--checker) 0 0 / 12px 12px;
}

html[dir='rtl'] .eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--amber);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.1rem;
  transition: gap 0.2s ease;
}

.arrow-link:hover {
  gap: 0.75rem;
}

html[dir='rtl'] .arrow-link i,
html[dir='rtl'] .mobile-menu__nav i {
  transform: scaleX(-1);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 1.2rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
}

.btn-pill--lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-pill--amber {
  background: var(--amber);
  color: var(--ink);
}

.btn-pill--amber:hover {
  background: var(--amber-bright);
  box-shadow: 0 10px 24px -12px rgba(255, 184, 0, 0.9);
}

.btn-pill--ink {
  background: var(--ink);
  color: var(--white);
}

.btn-pill--ink:hover {
  background: var(--ink-3);
  box-shadow: 0 12px 26px -14px rgba(20, 20, 26, 0.8);
}

/* The App Store and Google Play buttons */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 176px;
  padding: 0.62rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
}

.store-btn > i {
  font-size: 1.75rem;
  line-height: 1;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: start;
}

.store-btn__text small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.72;
}

.store-btn__text strong {
  font-family: var(--font-latin);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.store-btn--soon {
  cursor: default;
}

.store-btn__soon {
  position: absolute;
  inset-block-start: -0.75rem;
  inset-inline-end: -0.5rem;
  padding: 0.1rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.store-buttons--ink .store-btn {
  background: var(--ink);
  color: var(--white);
}

.store-buttons--ink .store-btn__soon {
  border-color: var(--amber);
  background: var(--white);
}

.store-buttons--outline .store-btn {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1030;
  border-bottom: 1px solid transparent;
  background: var(--ink);
  color: var(--on-dark);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-dark);
  background: rgba(20, 20, 26, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
}

.brand__name {
  font-family: var(--font-latin);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand__name span {
  color: var(--amber);
}

.site-nav {
  display: none;
  gap: 0.15rem;
  margin-inline: auto;
}

.site-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: auto;
}

.site-header__cta {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
}

/* On the narrowest phones the language pill keeps its globe only: the menu lists the languages in full. */
@media (max-width: 379.98px) {
  .lang-switch span {
    display: none;
  }
}

@media (min-width: 576px) {
  .site-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 992px) {
  .site-nav {
    display: flex;
  }

  .site-header__actions {
    margin-inline-start: 0;
  }

  .site-header .menu-toggle {
    display: none;
  }
}

/* The menu of small screens */

.mobile-menu {
  --bs-offcanvas-width: min(88vw, 380px);
  --bs-offcanvas-bg: var(--ink);
  --bs-offcanvas-color: var(--on-dark);
  display: flex;
  flex-direction: column;
  border: 0 !important;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: 1.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-menu__nav a i {
  font-size: 1rem;
  color: var(--amber);
}

.mobile-menu__nav a.is-active {
  color: var(--amber);
}

.mobile-menu__foot {
  display: grid;
  gap: 1.25rem;
  margin-top: auto;
  padding: 1.25rem;
}

.lang-list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-list__item {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-dark-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.lang-list__item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.lang-list__item.is-current {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.site-footer__brand p {
  max-width: 24rem;
  margin-top: 1.1rem;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.site-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.site-footer__col h2 {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

.site-footer__col a:not(.store-btn) {
  transition: color 0.2s ease;
}

.site-footer__col a:not(.store-btn):hover {
  color: var(--amber);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
}

@media (min-width: 576px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand,
  .site-footer__download {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
    gap: 3rem;
  }

  .site-footer__brand,
  .site-footer__download {
    grid-column: auto;
  }

  .site-footer__download .store-buttons {
    flex-direction: column;
  }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

/* A street grid seen from above, fading out away from the phone. */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: rotate(calc(var(--flip) * -14deg));
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at var(--glow-x, 68%) 48%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 46% 42% at var(--glow-x, 68%) 48%, #000 15%, transparent 78%);
}

html[dir='rtl'] .hero::before,
html[dir='rtl'] .page-hero::before {
  --glow-x: 32%;
}

/* The glow of a taxi light behind the phone. */
.hero::after {
  content: '';
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -6%;
  z-index: -1;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.24), rgba(255, 184, 0, 0.06) 45%, transparent 68%);
  transform: translateY(-50%);
}

.hero__inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding-block: 3.5rem 4.5rem;
}

.hero__title {
  margin-block: 1.5rem 1.4rem;
  font-size: clamp(2.5rem, 5.2vw + 0.6rem, 4.5rem);
  line-height: 1.02;
  color: var(--white);
  text-wrap: balance;
}

html[dir='rtl'] .hero__title {
  font-size: clamp(2.1rem, 4.2vw + 0.6rem, 3.7rem);
  line-height: 1.32;
}

.hero__title span {
  display: block;
  color: var(--amber);
}

.hero__text {
  max-width: 35rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.2rem);
  color: var(--on-dark-muted);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__points i {
  color: var(--amber);
}

@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 2rem;
    padding-block: 5rem 6rem;
  }
}

/* The phone */

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 300 / 600;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(150deg, #44444f, #0b0b0f 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 30px 60px -30px rgba(255, 184, 0, 0.25);
  transform: rotate(calc(var(--flip) * 3deg));
  font-family: var(--font-body);
}

.phone__island {
  position: absolute;
  inset-block-start: 21px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #0b0b0f;
  transform: translateX(-50%);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #ece6d9;
  color: var(--text);
}

.phone__map {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 66%;
  transform: scaleX(var(--flip));
}

.phone__halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.4s ease-out infinite;
}

.phone__eta {
  position: absolute;
  inset-block-start: 56px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.phone__eta i {
  color: var(--amber);
}

.phone__sheet {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 10px 14px 16px;
  border-radius: 24px 24px 0 0;
  background: var(--white);
  box-shadow: 0 -12px 30px rgba(20, 20, 26, 0.14);
  font-size: 0.78rem;
  line-height: 1.4;
}

.phone__grabber {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 99px;
  background: #e1dcd0;
}

.phone__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1faa6b;
  animation: pulse 1.8s ease-out infinite;
}

.driver {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  background: var(--paper);
}

.driver__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
}

.driver__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.driver__info strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.driver__info small {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.driver__info small i {
  color: var(--amber);
}

.driver__info > span {
  overflow: hidden;
  font-size: 0.68rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver__plate {
  margin-inline-start: auto;
  padding: 0.18rem 0.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  direction: ltr;
}

.trip-line {
  position: relative;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-inline: 0.15rem;
}

/* The dotted line that joins the departure to the destination. */
.trip-line::before {
  content: '';
  position: absolute;
  inset-block: 0.85rem;
  inset-inline-start: calc(0.15rem + 4px);
  border-inline-start: 1.5px dashed rgba(20, 20, 26, 0.35);
}

.trip-line__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.trip-line__dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}

.trip-line__dot--end {
  border-color: var(--amber);
  border-radius: 3px;
  background: var(--amber);
}

.phone__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
}

.phone__price strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
}

/* The two labels that float beside the phone */

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.75);
  animation: float 6s ease-in-out infinite;
}

html[dir='rtl'] .float-chip {
  padding: 0.55rem 0.55rem 0.55rem 0.9rem;
}

.float-chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--amber);
  font-size: 0.95rem;
}

.float-chip--price {
  inset-block-start: 23%;
  inset-inline-start: max(0px, calc(50% - 262px));
}

.float-chip--verified {
  inset-block-end: 33%;
  inset-inline-end: max(0px, calc(50% - 258px));
  animation-delay: -3s;
}

/* On a narrow screen the labels can't stand beside the phone: they stay on its map, clear of the text below. */
@media (max-width: 991.98px) {
  .float-chip--verified {
    inset-block-end: 45%;
  }
}

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6rem);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin-block: 1rem;
  font-size: clamp(1.9rem, 3vw + 0.7rem, 3.1rem);
  text-wrap: balance;
}

.section-head .section-title:last-child {
  margin-bottom: 0;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.section--dark .eyebrow,
.page-hero .eyebrow {
  color: var(--amber);
}

.section--dark .eyebrow::before,
.page-hero .eyebrow::before {
  background-image: repeating-conic-gradient(var(--amber) 0 25%, rgba(255, 255, 255, 0.9) 0 50%);
}

.section--dark .section-title {
  color: var(--white);
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

/* ==========================================================================
   8. Steps
   ========================================================================== */

.steps {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The road that joins the three steps: from each number down to the next one. */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-block: 56px -1.5rem;
  inset-inline-start: 27px;
  border-inline-start: 2px dashed rgba(20, 20, 26, 0.28);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.step__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 8px var(--paper);
  color: var(--amber);
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.step__card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.step__card h3 {
  margin-block: 1.1rem 0.6rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

html[dir='rtl'] .step__card h3,
html[dir='rtl'] .bento__card h3,
html[dir='rtl'] .fleet__card h3 {
  line-height: 1.5;
}

.step__card p {
  color: var(--muted);
}

@media (min-width: 992px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  /* Side by side, the road runs across, behind the three numbers. */
  .step:not(:last-child)::before {
    content: none;
  }

  .steps::before {
    content: '';
    position: absolute;
    inset-block-start: 28px;
    inset-inline: calc(100% / 6);
    border-block-start: 2px dashed rgba(20, 20, 26, 0.28);
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 1.75rem;
  }

  .step__card {
    width: 100%;
    padding: 2rem;
  }
}

/* ==========================================================================
   9. Features
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 12;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.bento__card h3 {
  margin-block: 1.2rem 0.6rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.bento__card p {
  color: var(--muted);
}

.bento__card--price,
.bento__card--nearby {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 0;
}

.bento__card--price h3,
.bento__card--nearby h3 {
  margin-top: 0;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  line-height: 1.15;
}

html[dir='rtl'] .bento__card--price h3,
html[dir='rtl'] .bento__card--nearby h3 {
  line-height: 1.45;
}

/* The price: the one amber card of the page */

.bento__card--price {
  background: var(--amber);
  color: var(--ink);
}

.bento__card--price::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 220px;
  height: 220px;
  background: repeating-conic-gradient(rgba(20, 20, 26, 0.1) 0 25%, transparent 0 50%) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(circle at var(--corner-x, 100%) 0, #000, transparent 72%);
  mask-image: radial-gradient(circle at var(--corner-x, 100%) 0, #000, transparent 72%);
}

html[dir='rtl'] .bento__card--price::after {
  --corner-x: 0%;
}

.bento__card--price h3,
.bento__card--price p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

.bento__card--price p {
  color: rgba(20, 20, 26, 0.78);
  font-size: 1.05rem;
}

.fare {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 2.25rem;
}

.fare__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  border-radius: 14px;
  background: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 8px 18px -12px rgba(20, 20, 26, 0.6);
}

.fare__chip--total {
  background: var(--ink);
  color: var(--amber);
}

/* A sign and the amount it applies to stay together: a line never ends on a "+". */
.fare__term {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.fare__op {
  font-family: var(--font-latin);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

/* The drivers nearby: the one dark card */

.bento__card--nearby {
  justify-content: flex-end;
  min-height: 420px;
  background: var(--ink);
  color: var(--on-dark);
}

/* The radar fades out behind the text. */
.bento__card--nearby::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, var(--ink) 48%, transparent);
}

.bento__card--nearby h3 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.bento__card--nearby p {
  position: relative;
  z-index: 1;
  color: var(--on-dark-muted);
}

.radar {
  position: absolute;
  inset-block-start: -70px;
  inset-inline-end: -40px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
}

.radar__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.radar__ring:nth-child(2) {
  inset: 17%;
}

.radar__ring:nth-child(3) {
  inset: 34%;
  background: rgba(255, 184, 0, 0.07);
}

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 184, 0, 0.34), transparent 26%);
  animation: sweep 5s linear infinite;
}

.radar__car,
.radar__me {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.radar__car {
  inset-block-start: var(--y);
  left: var(--x);
  width: 34px;
  height: 34px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: 0 0 0 5px rgba(255, 184, 0, 0.18);
}

.radar__me {
  inset-block-start: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .bento__card {
    grid-column: span 6;
  }

  .bento__card--price,
  .bento__card--nearby {
    grid-column: span 12;
  }
}

@media (min-width: 992px) {
  .bento__card {
    grid-column: span 3;
  }

  .bento__card--price {
    grid-column: span 7;
  }

  .bento__card--nearby {
    grid-column: span 5;
  }
}

/* The vehicle categories: what can be ordered, never what it costs */

.fleet {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.fleet__intro .section-lead {
  margin-bottom: 1.75rem;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-list i {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.85rem;
  -webkit-text-stroke: 0.5px currentColor;
}

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* auto-fill, not auto-fit: a single category keeps the size of a tile instead of stretching across. */
@media (min-width: 576px) {
  .fleet__grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
  }
}

.fleet__card {
  padding: 0.9rem 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(20, 20, 26, 0.04), 0 26px 46px -22px rgba(20, 20, 26, 0.38);
}

.fleet__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--amber);
  font-size: 3.25rem;
  line-height: 1;
}

.fleet__media img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.fleet__card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.fleet__card p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .fleet {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
}

/* ==========================================================================
   10. Drivers, questions
   ========================================================================== */

.drivers {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.drivers::before {
  content: '';
  position: absolute;
  inset-block-end: -30%;
  inset-inline-end: -10%;
  z-index: -1;
  width: min(700px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.17), transparent 65%);
}

.drivers__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.drivers__steps {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.drivers__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.drivers__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 184, 0, 0.5);
  border-radius: 14px;
  color: var(--amber);
  font-family: var(--font-latin);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.drivers__steps h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--white);
}

.drivers__steps p {
  color: var(--on-dark-muted);
}

.drivers__visual {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.request-card {
  width: min(100%, 360px);
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(255, 255, 255, 0.05);
  transform: rotate(calc(var(--flip) * -2.5deg));
}

.request-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.request-card__head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.request-card__near {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--amber-100);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.request-card .trip-line {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.98rem;
}

.request-card .trip-line::before {
  inset-block: 1.75rem;
  inset-inline-start: calc(1rem + 4px);
}

.request-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.request-card__meta strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.request-card__accept {
  display: block;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--amber);
  font-weight: 800;
  text-align: center;
}

.drivers__perks {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 360px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark);
  font-weight: 500;
}

.drivers__perks li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.drivers__perks i {
  color: var(--amber);
  -webkit-text-stroke: 0.6px currentColor;
}

@media (min-width: 992px) {
  .drivers__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }
}

/* Questions */

.faq {
  display: grid;
  gap: 2.5rem;
}

.faq__intro .section-lead {
  margin-bottom: 1.75rem;
}

.faq__list {
  display: grid;
  gap: 0.8rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq__item[open] {
  border-color: transparent;
  box-shadow: var(--shadow), 0 0 0 2px var(--ink);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary i {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 0.9rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq__item[open] summary i {
  background: var(--amber);
  transform: rotate(45deg);
}

.faq__item p {
  max-width: 44rem;
  padding: 0 1.4rem 1.35rem;
  color: var(--muted);
}

.faq__item p a,
.legal-section a,
.panel__foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 992px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }

  .faq__intro {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 2rem);
  }
}

/* ==========================================================================
   11. Download band
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--amber);
  color: var(--ink);
}

/* The stripe again, large and faint, on both edges. */
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  inset-block: 0;
  z-index: -1;
  width: min(38%, 420px);
  background: repeating-conic-gradient(rgba(20, 20, 26, 0.09) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
}

.cta::before {
  inset-inline-start: 0;
  -webkit-mask-image: linear-gradient(to var(--fade-to, right), #000, transparent);
  mask-image: linear-gradient(to var(--fade-to, right), #000, transparent);
}

.cta::after {
  inset-inline-end: 0;
  -webkit-mask-image: linear-gradient(to var(--fade-from, left), #000, transparent);
  mask-image: linear-gradient(to var(--fade-from, left), #000, transparent);
}

html[dir='rtl'] .cta {
  --fade-to: left;
  --fade-from: right;
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.cta__inner h2 {
  font-size: clamp(2.1rem, 3.6vw + 0.8rem, 3.7rem);
  text-wrap: balance;
}

.cta__inner p {
  max-width: 34rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(20, 20, 26, 0.8);
}

.cta .store-buttons {
  justify-content: center;
}

/* ==========================================================================
   12. Page heading (contact, privacy, terms)
   ========================================================================== */

.page-hero > .container {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.page-hero__title {
  max-width: 20ch;
  margin-block: 1.1rem;
  font-size: clamp(2.2rem, 4vw + 0.6rem, 3.8rem);
  color: var(--white);
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 0.3vw + 1rem, 1.18rem);
  color: var(--on-dark-muted);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.page-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  line-height: 1.5;
}

.page-hero__meta i {
  color: var(--amber);
}

/* ==========================================================================
   13. Contact
   ========================================================================== */

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel__title {
  font-size: 1.6rem;
  line-height: 1.3;
}

.panel__hint {
  margin-block: 0.35rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.notice i {
  font-size: 1.15rem;
  line-height: 1.5;
}

.notice--success {
  background: #e3f5ec;
  color: var(--success);
}

.notice--error {
  background: #fdecea;
  color: var(--danger);
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.field__req {
  color: var(--danger);
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field .form-control,
.field .form-select {
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(20, 20, 26, 0.16);
  border-radius: 14px;
  background-color: var(--paper);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field .form-select {
  padding-inline-end: 2.5rem;
}

.field .form-control::placeholder {
  color: #9b9aa3;
}

/* What is typed left to right keeps its side, but its hint follows the page. */
html[dir='rtl'] .field .form-control[dir='ltr'] {
  text-align: end;
}

.field .form-control:focus,
.field .form-select:focus {
  border-color: var(--ink);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.35);
}

.field .form-control.is-invalid,
.field .form-select.is-invalid {
  border-color: var(--danger);
}

.field textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.field__error,
.field__hint {
  margin-top: 0.4rem;
  font-size: 0.86rem;
}

.field__error {
  color: var(--danger);
  font-weight: 500;
}

.field__hint {
  color: var(--muted);
}

.panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.panel__foot p {
  color: var(--muted);
  font-size: 0.9rem;
}

.side-stack {
  display: grid;
  gap: 1.25rem;
}

.side-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.side-card h2 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.side-card .icon-tile + h2 {
  margin-top: 1.1rem;
}

.side-card p {
  margin-block: 0.45rem 1.1rem;
  color: var(--muted);
}

.side-card--dark {
  border-color: transparent;
  background: var(--ink);
  color: var(--on-dark);
}

.side-card--dark h2,
.side-card--dark .arrow-link {
  color: var(--white);
}

.side-card--dark p {
  color: var(--on-dark-muted);
}

.channels {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.channels li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.channels li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.channels small {
  color: var(--muted);
  font-size: 0.85rem;
}

.channels a {
  font-size: 1.08rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

html[dir='rtl'] .channels a[dir='ltr'] {
  text-align: end;
}

.channels a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   14. Legal pages (privacy, terms)
   ========================================================================== */

.essentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.essentials__item {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.essentials__item p {
  font-weight: 600;
  line-height: 1.5;
}

html[dir='rtl'] .essentials__item p {
  line-height: 1.75;
}

.legal {
  display: grid;
  gap: 2.5rem;
}

.legal__aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.toc {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.toc h2 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.toc ol {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.7rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc a::before {
  content: counter(toc);
  flex: none;
  min-width: 1.1rem;
  font-family: var(--font-latin);
  font-weight: 800;
  color: var(--ink);
}

.toc a:hover {
  background: var(--amber-100);
  color: var(--ink);
}

.legal-section {
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem);
  line-height: 1.25;
}

html[dir='rtl'] .legal-section > h2 {
  line-height: 1.5;
}

.legal-section > h2 span {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 2.1rem;
  height: 2.1rem;
  padding-inline: 0.4rem;
  border-radius: 10px;
  background: var(--amber);
  font-family: var(--font-latin);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-0.15rem);
}

.legal-section h3 {
  margin-block: 1.75rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.legal-section p,
.legal-section li {
  max-width: 46rem;
  color: #3a3942;
  font-size: 1.02rem;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p {
  margin-top: 0.9rem;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  padding-inline-start: 1.3rem;
}

.legal-section li::marker {
  color: var(--amber-deep);
  font-weight: 700;
}

.legal-section strong {
  color: var(--ink);
}

.legal-section .legal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--amber-100);
  color: var(--ink);
  font-weight: 500;
}

.legal-note i {
  line-height: inherit;
}

.legal-controller {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.legal-controller h3 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-controller dl {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.legal-controller dl > div {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.legal-controller dt {
  flex: none;
  color: var(--amber-deep);
}

.legal-controller dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* The table of the data collected: a table on a wide screen, cards on a phone. */

.legal-table {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
  text-align: start;
  vertical-align: top;
}

html[dir='rtl'] .legal-table th,
html[dir='rtl'] .legal-table td {
  line-height: 1.8;
}

.legal-table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal-table thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.legal-table td {
  color: #3a3942;
}

.legal-table td:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .legal-table thead {
    display: none;
  }

  .legal-table table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
  }

  .legal-table tr {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .legal-table tbody tr:last-child {
    border-bottom: 0;
  }

  .legal-table th,
  .legal-table td {
    padding: 0;
    border: 0;
  }

  .legal-table tbody th {
    margin-bottom: 0.3rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    white-space: normal;
  }

  .legal-table td:last-child {
    margin-top: 0.5rem;
  }

  .legal-table td:last-child::before {
    content: attr(data-label) ' · ';
    font-weight: 600;
  }
}

@media (min-width: 992px) {
  .legal {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .legal__aside {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 1.5rem);
  }
}

/* ==========================================================================
   15. Motion
   ========================================================================== */

/* Sections rise into place as they are reached. Only once the scripts run:
   without JavaScript nothing is ever hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* The page lands: the text first, the phone just after. */
.hero__copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero__visual {
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 170, 107, 0.55);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(31, 170, 107, 0);
  }
}

@keyframes halo {
  0% {
    opacity: 0.45;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
