/* Taxi App — 04 How it works */

@keyframes cw-taxi-app-how-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-taxi-app-how {
  background: #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-taxi-app-how__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cw-taxi-app-how__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-taxi-app-how__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #f7d046;
}

.cw-taxi-app-how__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-taxi-app-how__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #f7d046;
}

.cw-taxi-app-how__leads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-taxi-app-how__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.72);
}

.cw-taxi-app-how__tracker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 24px;
  padding: 16px 18px;
}

.cw-taxi-app-how__tracker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-taxi-app-how__tracker-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 231, 0.55);
}

.cw-taxi-app-how__tracker-nav {
  display: flex;
  gap: 8px;
}

.cw-taxi-app-how__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.cw-taxi-app-how__nav-btn--prev {
  border: 1px solid rgba(243, 239, 231, 0.25);
  background: transparent;
  color: #f3efe7;
}

.cw-taxi-app-how__nav-btn--next {
  border: 0;
  background: #f7d046;
  color: #141210;
}

.cw-taxi-app-how__nav-btn:focus-visible {
  outline: 2px solid #f7d046;
  outline-offset: 2px;
}

.cw-taxi-app-how__flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cw-taxi-app-how__flow-step {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: #f3efe7;
  font: inherit;
  min-width: 0;
}

.cw-taxi-app-how__flow-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(243, 239, 231, 0.12);
  transition: background 0.3s;
}

.cw-taxi-app-how__flow-step.is-done .cw-taxi-app-how__flow-bar {
  background: rgba(247, 208, 70, 0.4);
}

.cw-taxi-app-how__flow-step.is-current .cw-taxi-app-how__flow-bar {
  background: #f7d046;
}

.cw-taxi-app-how__flow-title {
  font-size: clamp(10px, 1.1vw, 12.5px);
  line-height: 1.25;
  color: rgba(243, 239, 231, 0.5);
  transition: color 0.25s;
}

.cw-taxi-app-how__flow-step.is-current .cw-taxi-app-how__flow-title {
  color: #f3efe7;
}

.cw-taxi-app-how__flow-step:focus-visible {
  outline: 2px solid #f7d046;
  outline-offset: 2px;
  border-radius: 4px;
}

.cw-taxi-app-how__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.cw-taxi-app-how__panel {
  border: 1px solid rgba(243, 239, 231, 0.12);
  border-radius: 26px;
  padding: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  transform: translateY(0);
  min-width: 0;
}

.cw-taxi-app-how__panel.is-active {
  border-color: #f7d046;
  background: rgba(247, 208, 70, 0.06);
  transform: translateY(-6px);
}

.cw-taxi-app-how__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cw-taxi-app-how__panel-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cw-taxi-app-how__panel-state {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(243, 239, 231, 0.08);
  color: rgba(243, 239, 231, 0.55);
  flex: none;
}

.cw-taxi-app-how__panel.is-active .cw-taxi-app-how__panel-state {
  background: #f7d046;
  color: #141210;
}

.cw-taxi-app-how__panel-action {
  background: rgba(243, 239, 231, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(243, 239, 231, 0.4);
}

.cw-taxi-app-how__panel.is-active .cw-taxi-app-how__panel-action {
  color: #f7d046;
  animation: cw-taxi-app-how-in 0.3s ease both;
}

.cw-taxi-app-how__panel-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(243, 239, 231, 0.68);
}

@media (max-width: 900px) {
  .cw-taxi-app-how__flow {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}
