/*
 * karta.az: landing page and fleet application.
 * Builds on /assets/css/karta.css. Mobile first; wider layouts are added at
 * 640px, 960px and 1024px (the laptop tour). Each section sits on its own
 * background band so the page reads as a series of distinct screens.
 */

:root {
  --stone: #f1eee8;
  --midnight: #2b313b;
}

html,
body {
  overscroll-behavior-y: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* ---- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: box-shadow 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: inset 0 -1px 0 var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 68px;
}

/* The wordmark sits in the lower third of the logo, under the emblem's cards;
   lift the image so the wordmark lines up with the button labels. */
.header-inner .brand-logo img {
  height: 40px;
  transform: translateY(-14%);
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: none;
}

@media (max-width: 379px) {
  .header-login {
    display: none;
  }
}

@media (min-width: 960px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    height: 80px;
  }

  .header-inner .brand-logo img {
    height: 48px;
  }

  .header-actions {
    gap: 10px;
  }

  .site-nav {
    display: flex;
    gap: 2px;
  }

  .site-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 150ms ease;
  }

  .site-nav a:hover {
    background: rgba(16, 16, 14, 0.05);
    color: var(--ink);
  }
}

/* ---- Hero: a full first screen ----------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 68px);
  padding: 48px 0 112px;
  text-align: center;
}

.hero-inner {
  display: grid;
  justify-items: center;
}

.hero-title {
  max-width: 13ch;
  font-size: clamp(3rem, 1.4rem + 6.6vw, 7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.hero-title .highlight {
  white-space: nowrap;
}

.hero-lede {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateX(-50%);
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  animation: nudge 1.8s var(--ease-in-out) infinite;
}

.hero-scroll:hover {
  color: var(--ink);
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@media (max-width: 479px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - 80px);
  }
}

.js [data-enter] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.js .is-ready [data-enter] {
  opacity: 1;
  transform: none;
  transition:
    opacity 800ms ease,
    transform 900ms var(--ease-out);
}

.js .is-ready [data-enter="2"] {
  transition-delay: 90ms;
}

.js .is-ready [data-enter="3"] {
  transition-delay: 180ms;
}

.js .is-ready [data-enter="4"] {
  transition-delay: 600ms;
}

.js .is-ready .hero-scroll[data-enter] {
  transform: translateX(-50%);
}

.js .hero-scroll[data-enter] {
  transform: translate3d(-50%, 16px, 0);
}

/* ---- Showcase: a guided tour of the owner panel inside a laptop -------- */

.showcase {
  --open: 1;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--stone);
}

.showcase-grid {
  display: grid;
  gap: 28px;
  width: min(100% - 2 * var(--gutter), 1400px);
  margin-inline: auto;
}

.tour {
  display: grid;
  align-content: center;
  gap: 14px;
}

.tour-captions {
  display: grid;
}

.tour-caption h2,
.tour-caption h3 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tour-caption > p {
  max-width: 36ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.tour-caption:not([data-tour-step="0"]),
.tour-steps {
  display: none;
}

/* Below 1024px the demo sits in a plain app window, without the laptop. */
.macbook {
  position: relative;
}

.macbook-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f6f7f5;
  box-shadow: var(--shadow-lg);
  container: demo-screen / inline-size;
}

.macbook-notch,
.macbook-deck,
.macbook-lid-back {
  display: none;
}

@media (min-width: 1024px) {
  .showcase-grid {
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
  }

  .tour-steps {
    display: grid;
    gap: 4px;
    margin-top: 26px;
  }

  .tour-steps button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.975rem;
    font-weight: 520;
    text-align: left;
    cursor: pointer;
    transition:
      background-color 200ms ease,
      color 200ms ease,
      box-shadow 200ms ease;
  }

  .tour-steps button span {
    color: var(--muted-soft);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
  }

  .tour-steps button:hover {
    color: var(--ink);
  }

  .tour-steps button.is-active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
  }

  .tour-steps button.is-active span {
    color: var(--brand);
  }

  /* The laptop: MacBook Air in Midnight, built from a few 3D planes. The
     eye sits a little above the hinge, so a closed lid reads as a thin
     aluminium slab and the open one shows a sliver of keyboard deck. */
  .macbook {
    width: min(100%, calc((100svh - 230px) * 1.62));
    justify-self: end;
    padding-bottom: 44px;
    perspective: 4200px;
    perspective-origin: 50% 82%;
  }

  .macbook::after {
    position: absolute;
    z-index: -1;
    right: 2%;
    bottom: 0;
    left: 2%;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(20, 24, 32, 0.34), transparent 70%);
    content: "";
    filter: blur(6px);
  }

  .macbook-hull {
    display: grid;
    margin: 0 6%;
    transform-style: preserve-3d;
  }

  .macbook-hull > * {
    grid-area: 1 / 1;
  }

  .macbook-lid {
    position: relative;
    padding: 1.3% 1.3% 1.8%;
    border-radius: 18px 18px 6px 6px;
    background: #060607;
    box-shadow:
      0 0 0 2px #3a414d,
      0 0 0 3px #1f242c;
    transform: rotateX(calc((1 - var(--open)) * -90deg));
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
  }

  .macbook-lid-back {
    position: absolute;
    display: block;
    inset: -3px;
    border-radius: 21px 21px 9px 9px;
    background: linear-gradient(180deg, #4b5362 0%, var(--midnight) 42%, #22272f 100%);
    pointer-events: none;
    transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
  }

  .macbook-screen {
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 8px 8px 3px 3px;
    background: #000000;
    box-shadow: none;
    backface-visibility: hidden;
  }

  .macbook-screen::after {
    position: absolute;
    z-index: 20;
    inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%);
    content: "";
    pointer-events: none;
  }

  .macbook-notch {
    position: absolute;
    z-index: 21;
    top: 0;
    left: 50%;
    display: block;
    width: 10%;
    height: 3.3%;
    border-radius: 0 0 9px 9px;
    background: #060607;
    transform: translateX(-50%);
  }

  .macbook-notch::after {
    position: absolute;
    top: 32%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b4a66, #10151f 70%);
    content: "";
    transform: translateX(-50%);
  }

  /* Same box as the lid, laid flat in front of the hinge. */
  .macbook-deck {
    position: relative;
    display: block;
    border-radius: 12px 12px 22px 22px;
    background: linear-gradient(180deg, #171a20 0%, #2b313b 10%, #353c48 100%);
    pointer-events: none;
    transform: translateY(100%) rotateX(90deg);
    transform-origin: 50% 0;
    transform-style: preserve-3d;
  }

  .macbook-keys,
  .macbook-trackpad {
    position: absolute;
    left: 50%;
    display: block;
    border-radius: 12px;
    transform: translateX(-50%);
  }

  .macbook-keys {
    top: 9%;
    width: 84%;
    height: 44%;
    background:
      repeating-linear-gradient(90deg, transparent 0 5.6%, rgba(0, 0, 0, 0.35) 5.6% 6.2%),
      repeating-linear-gradient(0deg, transparent 0 15.6%, rgba(0, 0, 0, 0.35) 15.6% 16.6%),
      #1c2027;
  }

  .macbook-trackpad {
    top: 60%;
    width: 38%;
    height: 30%;
    background: #2f3540;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  /* The front edge hangs down from the deck, facing the viewer. */
  .macbook-front {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    height: clamp(12px, 1.2vw, 17px);
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #5d6575 0%, #3b424e 22%, var(--midnight) 60%, #1b1f26 100%);
    transform: rotateX(-90deg);
    transform-origin: 50% 0;
  }

  .macbook-front span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 13%;
    height: 50%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #171a20, #2d333d);
    transform: translateX(-50%);
  }

  .js .macbook:not(.is-open) .demo {
    pointer-events: none;
  }

  /* Pinned tour: the lid opens slowly, then scrolling steps through the panel. */
  .js .showcase.is-tour {
    height: 760svh;
    padding: 0;
  }

  .js .showcase.is-tour .showcase-pin {
    position: sticky;
    top: 80px;
    display: grid;
    align-items: center;
    height: calc(100svh - 80px);
  }

  .js .showcase.is-tour .tour-caption {
    display: block;
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 20px, 0);
    transition:
      opacity 450ms ease,
      transform 650ms var(--ease-out);
  }

  .js .showcase.is-tour .tour-caption.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* ---- Demo: the owner panel ----------------------------------------------- */

.demo {
  --demo-line: #e6ebe8;
  --demo-soft: #f3f6f4;
  --demo-accent: #0c805e;
  --demo-accent-soft: #e6f4ee;
  --demo-muted: #66716c;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  background: #f6f7f5;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

@media (min-width: 1024px) {
  .demo {
    position: absolute;
    inset: 0;
    min-height: 0;
    font-size: clamp(8px, 1.42cqi, 14px);
    opacity: clamp(0, calc((var(--open) - 0.55) * 2.6), 1);
  }
}

.demo button {
  cursor: pointer;
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 0.8em;
  overflow-x: auto;
  padding: 0.8em;
  border-bottom: 1px solid var(--demo-line);
  background: #ffffff;
  scrollbar-width: none;
}

.demo-nav::-webkit-scrollbar {
  display: none;
}

.demo-brand {
  display: flex;
  flex: none;
  align-items: center;
}

.demo-brand img {
  width: auto;
  height: 2.6em;
}

.demo-menu {
  display: flex;
  gap: 0.2em;
}

.demo-link {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.8em;
  border: 0;
  border-radius: 0.7em;
  background: transparent;
  color: #3e4843;
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.demo-link svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.demo-link:hover {
  background: var(--demo-soft);
  color: var(--ink);
}

.demo-link.is-active {
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-weight: 600;
}

.demo-nav-foot {
  display: none;
}

.demo-badge {
  display: inline-block;
  margin-right: 0.35em;
  padding: 0.18em 0.6em;
  border-radius: var(--radius-pill);
  background: var(--highlight-soft);
  color: #6e5200;
  font-weight: 700;
}

.demo-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  min-width: 0;
  overflow: hidden;
  padding: 1.3em;
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
}

.demo-crumb {
  color: var(--demo-muted);
  font-size: 0.82em;
}

.demo-title {
  font-size: 1.65em;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.85em;
  border: 1px solid var(--demo-line);
  border-radius: 0.8em;
  background: #ffffff;
  font-size: 0.9em;
  font-weight: 600;
}

.demo-switch svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--demo-muted);
}

.demo-view {
  display: grid;
  align-content: start;
  gap: 1em;
  animation: demo-in 320ms var(--ease-out);
}

.demo-card {
  padding: 1.05em 1.15em;
  border: 1px solid var(--demo-line);
  border-radius: 1em;
  background: #ffffff;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.5em;
}

.demo-card-head h4 {
  font-size: 1em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.demo-stats {
  display: grid;
  gap: 0.8em;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  color: inherit;
  font: inherit;
  text-align: left;
}

.demo-label {
  color: var(--demo-muted);
  font-size: 0.85em;
  font-weight: 500;
}

.demo-value {
  font-size: 1.5em;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.demo-note {
  color: var(--demo-muted);
  font-size: 0.8em;
}

.demo-stat--warn {
  border-color: #f3d5d9;
  background: linear-gradient(180deg, #ffffff, #fff6f7);
  transition: border-color 150ms ease;
}

.demo-stat--warn:hover {
  border-color: #e6aab3;
}

.demo-stat--warn .demo-value {
  color: #c0283a;
}

.demo-spark {
  width: 100%;
  height: 2.2em;
  margin-top: 0.3em;
}

.demo-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--demo-accent);
  font-size: 0.85em;
  font-weight: 600;
}

.demo-text-button:hover {
  text-decoration: underline;
}

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1em;
  width: 100%;
  padding: 0.65em 0.5em;
  border: 0;
  border-top: 1px solid #eef2ef;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95em;
  text-align: left;
  transition: background-color 120ms ease;
}

.demo-row:hover {
  background: #f6f8f7;
}

.demo-row > :nth-child(2),
.demo-row > :nth-child(4) {
  display: none;
}

.demo-row--compact > :nth-child(2) {
  display: block;
}

.demo-who {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  font-weight: 560;
  white-space: nowrap;
}

.demo-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.72em;
  font-weight: 700;
}

.demo-avatar--green {
  background: #14a97c;
}

.demo-avatar--yellow {
  background: var(--card-yellow);
  color: #2a1c02;
}

.demo-avatar--red {
  background: var(--card-red);
}

.demo-avatar--blue {
  background: var(--card-blue);
}

.demo-avatar--black {
  background: #34353a;
}

.demo-amount {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-amount--neg {
  color: #c0283a;
}

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

.demo-table {
  padding: 0.4em 0.7em 0.5em;
}

.demo-table-head {
  display: none;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.demo-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5em;
  max-width: 18em;
  height: 2.7em;
  padding: 0 0.8em;
  border: 1px solid var(--demo-line);
  border-radius: 0.75em;
  background: #ffffff;
}

.demo-search svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--demo-muted);
}

.demo-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.95em;
}

.demo-search:focus-within {
  border-color: var(--ink);
}

.demo-count {
  color: var(--demo-muted);
  font-size: 0.85em;
}

.demo-empty {
  padding: 1em 0.5em;
  color: var(--demo-muted);
  font-size: 0.9em;
}

.demo-fleet {
  display: grid;
  gap: 0.9em;
}

.demo-big {
  margin-top: 0.1em;
  font-size: 2.2em;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.demo-commission {
  display: grid;
  gap: 0.7em;
}

.demo-commission .demo-card-head {
  margin: 0;
}

.demo-commission > .demo-muted {
  font-size: 0.88em;
}

.demo-seg {
  display: inline-flex;
  justify-self: start;
  padding: 0.25em;
  border-radius: var(--radius-pill);
  background: #eef1ef;
}

.demo-seg button {
  padding: 0.45em 1em;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--demo-muted);
  font-size: 0.85em;
  font-weight: 600;
}

.demo-seg .is-on {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 16, 14, 0.12);
}

.demo-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding-top: 0.6em;
  border-top: 1px solid #eef2ef;
}

.demo-rule strong {
  font-size: 1.3em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.demo-rule em {
  margin-left: 0.3em;
  padding: 0.12em 0.5em;
  border-radius: var(--radius-pill);
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-size: 0.75em;
  font-style: normal;
  font-weight: 600;
}

.demo-save {
  justify-self: start;
  padding: 0.6em 1.15em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.85em;
  font-weight: 600;
}

.demo-toast {
  padding: 0.5em 0.8em;
  border-radius: 0.6em;
  background: var(--highlight-soft);
  color: #6e5200;
  font-size: 0.8em;
  font-weight: 560;
}

.demo-soon {
  padding: 0.25em 0.7em;
  border-radius: var(--radius-pill);
  background: #eef1ef;
  color: var(--demo-muted);
  font-size: 0.72em;
  font-weight: 650;
}

.demo-transfer-item {
  margin-top: 0.5em;
  padding: 0.65em 0.85em;
  border: 1px solid #eef2ef;
  border-radius: 0.7em;
  color: #3e4843;
  font-size: 0.9em;
}

.demo-drawer {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 1.3em;
  border-left: 1px solid var(--demo-line);
  background: #ffffff;
  box-shadow: -24px 0 48px -28px rgba(16, 16, 14, 0.35);
  animation: demo-drawer-in 320ms var(--ease-out);
}

.demo-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.demo-drawer-head h4 {
  font-size: 1.25em;
  font-weight: 650;
}

.demo-close {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border: 0;
  border-radius: 0.65em;
  background: var(--demo-soft);
  color: var(--ink);
}

.demo-close svg {
  width: 1.1em;
  height: 1.1em;
}

.demo-details {
  margin-top: 1em;
}

.demo-details div {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.75em 0;
  border-bottom: 1px solid #eef2ef;
}

.demo-details dt {
  color: var(--demo-muted);
}

.demo-details dd {
  font-weight: 600;
  text-align: right;
}

@keyframes demo-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes demo-drawer-in {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Vehicles, operations and reports pages of the demo. */
.demo-toolbar {
  flex-wrap: wrap;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.demo-chips button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.85em;
  border: 1px solid var(--demo-line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #3e4843;
  font-size: 0.85em;
  font-weight: 560;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.demo-chips button span {
  color: var(--demo-muted);
  font-size: 0.9em;
}

.demo-chips button.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.demo-chips button.is-on span {
  color: rgba(255, 255, 255, 0.7);
}

.demo-plate {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.35em;
  padding: 0.15em 0.5em 0.15em 0.3em;
  border: 1px solid #d5dbd8;
  border-radius: 0.35em;
  background: #ffffff;
  font-size: 0.88em;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.demo-plate::before {
  width: 0.35em;
  height: 1em;
  border-radius: 1px;
  background: var(--card-blue);
  content: "";
}

.demo-status {
  justify-self: start;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-pill);
  font-size: 0.78em;
  font-weight: 620;
  white-space: nowrap;
}

.demo-status--line,
.demo-status--done {
  background: var(--demo-accent-soft);
  color: #0a6b4f;
}

.demo-status--idle {
  background: #eef1ef;
  color: #56605b;
}

.demo-status--service,
.demo-status--pending {
  background: #fff3d6;
  color: #8a5a00;
}

.demo-kind {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 560;
  white-space: nowrap;
}

.demo-dot {
  width: 0.55em;
  height: 0.55em;
  flex: none;
  border-radius: 50%;
}

.demo-dot--ride {
  background: #14a97c;
}

.demo-dot--payout {
  background: var(--card-blue);
}

.demo-dot--fee {
  background: #8b948f;
}

.demo-dot--topup {
  background: var(--card-yellow);
}

.demo-driver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Compact rows: the essentials only. */
.demo-row.demo-row--vehicle {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.demo-row.demo-row--vehicle > :nth-child(2),
.demo-row.demo-row--vehicle > :nth-child(3) {
  display: none;
}

.demo-row.demo-row--vehicle > :nth-child(4) {
  display: block;
}

.demo-row.demo-row--op {
  grid-template-columns: minmax(0, 1fr) auto;
}

.demo-row.demo-row--op > :nth-child(1),
.demo-row.demo-row--op > :nth-child(3),
.demo-row.demo-row--op > :nth-child(5) {
  display: none;
}

.demo-row.demo-row--op > :nth-child(2),
.demo-row.demo-row--op > :nth-child(4) {
  display: flex;
}

.demo-downloads {
  display: flex;
  gap: 0.4em;
}

.demo-outline-button {
  padding: 0.5em 0.95em;
  border: 1px solid var(--demo-line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.85em;
  font-weight: 600;
  transition: border-color 150ms ease;
}

.demo-outline-button:hover {
  border-color: #b6c0bb;
}

.demo-note--up {
  color: #0a6b4f;
  font-weight: 600;
}

.demo-report-grid {
  display: grid;
  gap: 0.8em;
}

.demo-chart .demo-card-head {
  margin-bottom: 1.4em;
}

.demo-bars {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: end;
  gap: 0.6em;
  height: 10.5em;
}

.demo-bars li {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 0.45em;
  height: 100%;
}

.demo-bars li > span:last-child {
  color: var(--demo-muted);
  font-size: 0.72em;
  white-space: nowrap;
}

.demo-bar {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 2.6em;
  border-radius: 0.45em 0.45em 0.2em 0.2em;
  background: linear-gradient(180deg, #19b386 0%, #0c805e 100%);
  transform-origin: 50% 100%;
  animation: demo-bar-in 700ms var(--ease-out) both;
}

.demo-bars--month .demo-bar {
  max-width: 4.2em;
}

.demo-bar::after {
  position: absolute;
  bottom: calc(100% + 0.35em);
  left: 50%;
  padding: 0.2em 0.45em;
  border-radius: 0.35em;
  background: var(--ink);
  color: #ffffff;
  content: attr(data-value);
  font-size: 0.7em;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 150ms ease;
}

.demo-bars li:hover .demo-bar::after,
.demo-bar--week-6::after,
.demo-bar--month-4::after {
  opacity: 1;
}

.demo-bar--week-6,
.demo-bar--month-4 {
  background: var(--ink);
}

.demo-bar--week-1 { height: 66%; }
.demo-bar--week-2 { height: 73%; }
.demo-bar--week-3 { height: 62%; }
.demo-bar--week-4 { height: 80%; }
.demo-bar--week-5 { height: 91%; }
.demo-bar--week-6 { height: 100%; }
.demo-bar--week-7 { height: 73%; }
.demo-bar--month-1 { height: 82%; }
.demo-bar--month-2 { height: 91%; }
.demo-bar--month-3 { height: 99%; }
.demo-bar--month-4 { height: 100%; }

.demo-bars li:nth-child(2) .demo-bar { animation-delay: 60ms; }
.demo-bars li:nth-child(3) .demo-bar { animation-delay: 120ms; }
.demo-bars li:nth-child(4) .demo-bar { animation-delay: 180ms; }
.demo-bars li:nth-child(5) .demo-bar { animation-delay: 240ms; }
.demo-bars li:nth-child(6) .demo-bar { animation-delay: 300ms; }
.demo-bars li:nth-child(7) .demo-bar { animation-delay: 360ms; }

.demo-leaders .demo-row:first-of-type {
  border-top: 0;
}

@keyframes demo-bar-in {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* The full panel layout once the screen is wide enough for a sidebar. */
@container demo-screen (min-width: 640px) {
  .demo {
    grid-template-columns: 15.5em minmax(0, 1fr);
    grid-template-rows: none;
  }

  .demo-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4em;
    overflow: visible;
    padding: 1.4em 1em;
    border-right: 1px solid var(--demo-line);
    border-bottom: 0;
  }

  .demo-brand {
    padding: 0 0.4em;
  }

  .demo-menu {
    flex-direction: column;
  }

  .demo-link.is-active::before {
    position: absolute;
    top: 0.5em;
    bottom: 0.5em;
    left: -1em;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--demo-accent);
    content: "";
  }

  .demo-nav-foot {
    display: block;
    margin-top: auto;
    padding: 0 0.4em;
    color: var(--demo-muted);
    font-size: 0.8em;
  }

  .demo-main {
    padding: 1.6em 1.8em;
  }

  .demo-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-table-head,
  .demo-row:not(.demo-row--compact) {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  }

  .demo-table-head {
    display: grid;
    gap: 1em;
    padding: 0.6em 0.5em;
    color: var(--demo-muted);
    font-size: 0.72em;
    font-weight: 650;
    letter-spacing: 0.08em;
  }

  .demo-row > :nth-child(2),
  .demo-row > :nth-child(4) {
    display: block;
  }

  .demo-row > :nth-child(3) {
    justify-self: start;
  }

  .demo-row--compact > :nth-child(2) {
    justify-self: end;
  }

  .demo-fleet {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "balance commission"
      "transfer commission";
    align-items: start;
  }

  .demo-balance {
    grid-area: balance;
  }

  .demo-commission {
    grid-area: commission;
  }

  .demo-transfer {
    grid-area: transfer;
  }

  .demo-drawer {
    width: 21em;
  }

  .demo-table-head.demo-table-head--vehicle,
  .demo-row.demo-row--vehicle {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
  }

  .demo-table-head.demo-table-head--op,
  .demo-row.demo-row--op {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  }

  .demo-row.demo-row--vehicle > :nth-child(n),
  .demo-row.demo-row--op > :nth-child(n) {
    display: block;
  }

  .demo-row.demo-row--op > :nth-child(2) {
    display: flex;
  }

  .demo-row.demo-row--vehicle > :nth-child(1) {
    display: inline-flex;
  }

  .demo-row.demo-row--vehicle > .demo-amount,
  .demo-row.demo-row--op > .demo-amount {
    justify-self: start;
  }

  .demo-report-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}


/* ---- Sections ----------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 136px) 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

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

.section-head h2,
.trust-intro h2,
.faq-intro h2 {
  font-size: clamp(2.2rem, 1.35rem + 3.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.046em;
}

.section-lede {
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 900ms var(--ease-out),
    transform 1000ms var(--ease-out);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Cards arrive one after another, row by row, as they scroll into view. */
.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.97);
  transition:
    opacity 700ms var(--ease-out),
    transform 950ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 140ms);
}

.js [data-stagger] > .is-in {
  opacity: 1;
  transform: none;
}

/* ---- Features bento ----------------------------------------------------- */

.bento {
  display: grid;
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 12px 12px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tile-copy {
  padding: 0 12px;
}

.tile h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.975rem;
}

.tile-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px 16px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-muted);
}

.mock-table {
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-md);
}

.mock-table-head,
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
}

.mock-table-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 560;
}

.mock-table-head span:last-child,
.mock-row .amount {
  justify-self: end;
}

.mock-row + .mock-row {
  border-top: 1px solid #f0eee9;
}

.pill {
  justify-self: start;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill--ok {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.pill--warn {
  background: #fdecee;
  color: #b4232f;
}

.mock-rules {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-md);
}

.mock-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 560;
}

.mock-rules .ui-seg {
  font-size: 0.8125rem;
}

.mock-rules-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0eee9;
}

.mock-rules-line strong {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.mock-rules-line--limit strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.mock-rules .ui-meter {
  height: 6px;
}

.mock-payout {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 6px 0 52px;
}

.mock-bankcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 78%;
  aspect-ratio: 1.586;
  margin-left: 4%;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, #2e3036 0%, #16171a 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: rotate(-7deg);
}

.mock-bankcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-bankcard-top svg {
  width: 20px;
  height: 20px;
}

.mock-bankcard-number {
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.mock-payout-toast {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84%;
  font-size: 0.75rem;
}

.mock-timeline {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.mock-timeline li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
}

.mock-timeline-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--muted);
}

.mock-timeline-icon svg {
  width: 17px;
  height: 17px;
}

.mock-timeline-icon--in {
  background: var(--brand-soft);
  color: var(--brand);
}

.mock-timeline-icon--out {
  background: #e7efff;
  color: var(--card-blue);
}

.mock-timeline-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.mock-timeline-text strong {
  font-weight: 620;
}

.mock-timeline-text span {
  color: var(--muted-soft);
  font-size: 0.72rem;
}

.mock-topup {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 236px;
  padding: 20px 18px 18px;
  border: 6px solid #141413;
  border-radius: 30px;
  background: #ffffff;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-lg);
}

.mock-topup-amount {
  margin-top: 4px;
  color: #c0283a;
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mock-topup-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.mock-topup-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

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

  .tile--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .tile--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
  }

  .tile--wide .tile-copy {
    padding: 20px 20px 20px 24px;
  }

  .tile--wide .tile-visual {
    height: 100%;
    min-height: 320px;
  }

  .tile--wide h3 {
    font-size: 1.7rem;
  }
}

/* ---- Audiences: a panel for owners, a wallet for drivers and couriers --- */

.roles {
  background: var(--stone);
}

.audience {
  display: grid;
  gap: 20px;
}

.audience-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.audience-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 380px;
  padding: 44px 24px 0;
  overflow: hidden;
}

.audience-card--owner .audience-visual {
  background: linear-gradient(180deg, #e6f3ec 0%, #f4faf7 100%);
}

.audience-card--wallet .audience-visual {
  background: linear-gradient(180deg, #fff1c2 0%, #fffaeb 100%);
}

.audience-copy {
  padding: 30px 32px 38px;
}

.audience-copy h3 {
  margin-top: 0;
  font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.3rem);
  letter-spacing: -0.038em;
}

.audience-copy > p {
  max-width: 440px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
}

.audience-copy .ticks {
  margin-top: 22px;
}

.ticks {
  display: grid;
  gap: 11px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.45;
}

.ticks li::before,
.ticks li::after {
  position: absolute;
  content: "";
}

.ticks li::before {
  top: 0.05em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
}

.ticks li::after {
  top: calc(0.05em + 5px);
  left: 7.5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(40deg);
}

.phone {
  width: 262px;
  padding: 10px 10px 0;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(180deg, #4a5261 0%, var(--midnight) 30%, #1d2128 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 40px 60px -30px rgba(16, 20, 28, 0.55);
}

.phone-screen {
  position: relative;
  height: 330px;
  padding: 46px 16px 0;
  overflow: hidden;
  border-radius: 35px 35px 0 0;
  background: #f6f7f5;
  font-size: 0.75rem;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 82px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: #0b0c0f;
  transform: translateX(-50%);
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.wallet-action {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 620;
}

.wallet-action--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.wallet-list-title {
  margin-top: 16px;
  font-weight: 650;
}

.wallet-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #eceae4;
}

.wallet-list li:first-child {
  margin-top: 6px;
}

.phone-tabs {
  display: none;
}

@media (min-width: 960px) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .audience-visual {
    height: 420px;
  }

  .audience-copy {
    padding: 34px 40px 44px;
  }
}

/* ---- Dark panel: trust -------------------------------------------------- */

.section-dark {
  margin-inline: clamp(8px, 1.4vw, 18px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--night);
  color: var(--on-night);
}

.trust {
  margin-block: clamp(24px, 3vw, 40px);
}

.trust h2 {
  max-width: 13ch;
  color: #ffffff;
}

.trust .section-lede {
  color: var(--on-night-muted);
}

.trust-grid {
  display: grid;
  gap: 48px;
}

.trust-intro {
  display: grid;
  gap: 16px;
  align-content: start;
}

.penny {
  margin-top: 20px;
  color: var(--highlight);
  font-size: clamp(4.6rem, 2.8rem + 8vw, 9rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.penny-note {
  color: var(--on-night-muted);
  font-size: 0.95rem;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-item {
  padding: 26px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
}

.trust-item h3 {
  color: #ffffff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.trust-item p {
  margin-top: 8px;
  color: var(--on-night-muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .trust-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
  }

  .trust-list {
    gap: 16px;
  }

  .trust-item {
    padding: 30px;
  }
}

/* ---- Steps -------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 30px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--ink);
  font-weight: 650;
}

.step h3 {
  margin-top: 30px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

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

/* ---- FAQ ---------------------------------------------------------------- */

.faq {
  background: var(--stone);
}

.faq-grid {
  display: grid;
  gap: 40px;
}

.faq-intro {
  display: grid;
  gap: 14px;
  align-content: start;
}

.faq-contact {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-night);
}

.faq-contact-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.faq-contact p:not(.faq-contact-title) {
  color: var(--on-night-muted);
}

.faq-contact .btn {
  margin-top: 12px;
  background: #ffffff;
  color: var(--ink);
}

.faq-contact .btn:hover {
  background: #eeece6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 250ms ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 22px 24px;
  font-size: 1.08rem;
  font-weight: 580;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq-num {
  width: 1.8em;
  color: var(--muted-soft);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.8px 12px no-repeat,
    var(--surface-muted);
  transition:
    transform 300ms var(--ease-out),
    background-color 200ms ease;
}

.faq-item[open] .faq-icon {
  background:
    linear-gradient(#ffffff, #ffffff) center / 12px 1.8px no-repeat,
    linear-gradient(#ffffff, #ffffff) center / 1.8px 12px no-repeat,
    var(--ink);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
}

@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 380ms var(--ease-out),
      content-visibility 380ms allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
  }
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 72px;
  }

  .faq-intro {
    position: sticky;
    top: 116px;
  }

  .faq-item summary {
    padding: 26px 26px 26px 28px;
    font-size: 1.2rem;
  }

  .faq-answer {
    padding: 0 28px 28px calc(28px + 0.85rem * 1.8 + 18px);
    font-size: 1.02rem;
  }
}

/* ---- Closing call to action --------------------------------------------- */

.cta {
  padding: clamp(80px, 10vw, 128px) 0;
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) clamp(24px, 6vw, 84px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--highlight);
  color: var(--ink);
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta-panel h2 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}

.cta-copy > p {
  margin-top: 18px;
  color: #4a4228;
  font-size: 1.12rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.cta-actions .btn-ghost {
  border-color: rgba(16, 16, 14, 0.22);
  background: transparent;
}

.cta-actions .btn-ghost:hover {
  border-color: rgba(16, 16, 14, 0.5);
}

.cta-card {
  display: none;
}

@media (min-width: 760px) {
  .cta-card {
    position: absolute;
    top: 50%;
    right: 6%;
    display: block;
    width: min(38%, 400px);
    transform: translateY(-50%) rotate(-8deg);
  }
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: var(--night);
  color: var(--on-night);
}

.footer-main {
  display: grid;
  gap: 40px;
}

.footer-brand .brand-logo img {
  height: 54px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 20px;
  color: var(--on-night-muted);
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-title {
  margin-bottom: 4px;
  color: rgba(246, 245, 241, 0.45);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-nav a {
  color: var(--on-night);
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 150ms ease;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  color: rgba(246, 245, 241, 0.5);
  font-size: 0.875rem;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(246, 245, 241, 0.7);
}

.footer-top svg {
  width: 16px;
  height: 16px;
}

.footer-top:hover {
  color: #ffffff;
}

@media (min-width: 760px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr));
    gap: 48px;
  }
}

/* ---- Fleet application (/request) --------------------------------------- */

.page-apply {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.apply {
  flex: 1;
  padding: 4px 0 40px;
}

.apply-grid {
  display: grid;
  gap: 14px;
}

.apply-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  container-type: inline-size;
}

/* Sized to the panel so the title always sets on two lines:
   "Fleet-inizi / KARTA-ya qoşun." (the longer line is about 7.6em wide). */
.apply-aside h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 12.8cqi, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}

.apply-intro {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.15rem;
}

.apply-steps {
  display: grid;
  max-width: 440px;
  margin-top: 34px;
}

.apply-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}

.apply-steps li:last-child {
  padding-bottom: 0;
}

.apply-steps li:not(:last-child)::before {
  position: absolute;
  top: 40px;
  bottom: 4px;
  left: 17.5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.apply-step-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.apply-steps li.is-current .apply-step-dot {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.apply-step-text {
  padding-top: 6px;
}

.apply-step-text strong {
  display: block;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.apply-step-text span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  text-wrap: balance;
}

.apply-emblem {
  position: absolute;
  z-index: -1;
  right: -44px;
  top: -58px;
  width: 144px;
  opacity: 0.35;
  pointer-events: none;
  transform: rotate(-10deg);
}

.apply-emblem img {
  width: 100%;
}

.apply-card {
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
}

.apply-card h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.4rem);
  letter-spacing: -0.035em;
}

.page-apply .container {
  width: min(100% - 2 * var(--gutter), 1320px);
}

.apply-card .field-label {
  font-size: 0.95rem;
}

.apply-card .input {
  height: 60px;
  font-size: 1.05rem;
}

.apply-card .btn-lg {
  --btn-h: 60px;
  font-size: 1.05rem;
}

.apply-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.apply-actions {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.apply-alt {
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.apply-alt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.apply-alt a:hover {
  text-decoration-color: var(--ink);
}

.apply-success {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.apply-success:focus {
  outline: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
}

.success-mark svg {
  width: 30px;
  height: 30px;
}

.success-mark path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw-check 600ms var(--ease-out) 150ms forwards;
}

.apply-success p {
  max-width: 440px;
  color: var(--muted);
}

.apply-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.js .apply-aside,
.js .apply-card {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.js .is-ready .apply-aside,
.js .is-ready .apply-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 800ms var(--ease-out);
}

.js .is-ready .apply-card {
  transition-delay: 90ms;
}

@media (max-width: 959px) {
  .apply-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    margin-top: 26px;
  }

  .apply-steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface);
  }

  .apply-steps li:last-child {
    padding-bottom: 12px;
  }

  .apply-steps li:not(:last-child)::before,
  .apply-step-text span {
    display: none;
  }

  .apply-step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .apply-step-text {
    padding-top: 0;
  }

  .apply-step-text strong {
    font-size: 0.875rem;
    line-height: 1.25;
  }
}

@container (min-width: 460px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* On laptops the page is one screen: the two panels fill the space under
   the header, with no footer below them. */
@media (min-width: 960px) {
  .apply {
    display: flex;
    flex-direction: column;
    padding: 8px 0 clamp(16px, 3svh, 32px);
  }

  .apply-grid {
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .apply-card {
    display: grid;
    align-content: center;
    padding-inline: clamp(32px, 4vw, 56px);
  }

  .apply-emblem {
    top: auto;
    right: -40px;
    bottom: -64px;
    width: 240px;
    opacity: 1;
  }
}

/* Short laptop screens (and narrow ones, where the form stacks into one
   column) tighten the vertical rhythm so the page still fits one screen. */
@media (min-width: 960px) and (max-width: 1209px), (min-width: 960px) and (max-height: 740px) {
  .page-apply .header-inner {
    height: 64px;
  }

  .page-apply .header-inner .brand-logo img {
    height: 42px;
  }

  .apply-aside {
    padding: 40px;
  }

  .apply-aside h1 {
    margin-top: 0;
    font-size: clamp(2.2rem, min(12.8cqi, 9svh), 4.6rem);
  }

  .apply-intro {
    margin-top: 12px;
    font-size: 1.05rem;
  }

  .apply-steps {
    margin-top: 22px;
  }

  .apply-steps li {
    padding-bottom: 14px;
  }

  .apply-card {
    padding-block: 36px;
  }

  .apply-form {
    gap: 14px;
    margin-top: 22px;
  }

  .form-grid {
    gap: 14px;
  }

  .apply-card .input {
    height: 54px;
  }

  .apply-card .btn-lg {
    --btn-h: 56px;
  }
}

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

  .js [data-reveal],
  .js [data-stagger] > *,
  .js [data-enter],
  .js .apply-aside,
  .js .apply-card {
    opacity: 1;
    transform: none;
  }

  .success-mark path {
    stroke-dashoffset: 0;
  }
}
