/*
  Travoa home page. Loads after styles.css and reuses its tokens, header,
  buttons and footer: the same "Mobility" look as the app (ink on white, grey
  fills instead of outlines, Manrope titles, Inter text, colour for state).
*/

/* ── Layout ──────────────────────────────────────────────────────────────── */
.home-wide { max-width: calc(1160px + 2 * var(--gutter)); }

@media (min-width: 1080px) {
  .home-wide { max-width: calc(1160px + 2 * var(--gutter)); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home section[id] { scroll-margin-top: var(--s-3); }

@media (min-width: 768px) {
  .home section[id] { scroll-margin-top: var(--header-h); }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.home .site-header { position: sticky; top: 0; z-index: 10; }

.home .site-header__inner {
  flex-wrap: nowrap;
  min-height: var(--header-h);
  padding-block: 10px;
}

.home-nav { display: none; }

@media (min-width: 900px) {
  .home-nav {
    display: flex;
    gap: var(--s-1);
    margin-left: auto;
  }

  .home-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }

  .home-nav a:hover { background: var(--fill); color: var(--ink); }
}

.home-nav__cta {
  flex: none;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* ── Buttons (extends .btn from styles.css) ──────────────────────────────── */
.btn--lg {
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--r-lg);
  font-size: 16px;
}

.btn--fill { background: var(--fill); color: var(--ink); }
.btn--fill:hover { background: var(--fill-strong); }

.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: var(--fill-strong); }

.btn .icon { width: 20px; height: 20px; }

/* ── Type ────────────────────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 12px;
  color: var(--text-hint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.section__lede {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.fine {
  margin: 16px 0 0;
  color: var(--text-hint);
  font-size: 14px;
}

/* ── Phone frames (the app's own screenshots) ────────────────────────────── */
.phone {
  flex: none;
  width: 220px;
  padding: 7px;
  border-radius: 34px;
  background: #0b0b0b;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 27px;
  background: var(--fill);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-block: 40px 56px; overflow: hidden; }

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--fill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  text-wrap: balance;
}

.hero__lede {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin: 16px 0 0;
  color: var(--text-hint);
  font-size: 14px;
}

.hero__art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: 8px 40px;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 40px 0 0;
  border-radius: var(--r-xxl);
  background: var(--card-alt);
}

.phone--front { position: relative; width: 220px; transform: translateX(46px); }
.phone--back {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 190px;
  transform: translateX(-118%) rotate(-4deg);
  opacity: 0.96;
}

@media (max-width: 639px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .hero { padding-block: 64px 88px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .phone--front { width: 290px; transform: translateX(70px); }
  .phone--back { top: 70px; width: 250px; }
}

/* ── Promise strip ───────────────────────────────────────────────────────── */
.promises { border-block: 1px solid var(--divider); }

.promises__list {
  display: grid;
  gap: 20px;
  margin-block: 0;
  padding-block: 28px;
  list-style: none;
}

.promises__list li { display: flex; gap: 14px; align-items: flex-start; }

.promises__list .icon {
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: var(--r-md);
  background: var(--fill);
}

.promises__list span { display: flex; flex-direction: column; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.promises__list strong { color: var(--ink); font-size: 16px; }

@media (min-width: 640px) { .promises__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .promises__list { grid-template-columns: repeat(4, 1fr); } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding-block: 64px; }
.section--alt { background: var(--card-alt); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow { color: #a6a6a6; }
.section--ink .section__lede { color: #cfcfcf; }

@media (min-width: 900px) { .section { padding-block: 96px; } }

.section__head { margin-bottom: 40px; }
.section__more { margin: 32px 0 0; }

/* Rider steps: a swipeable row on phones, a grid on wide screens. */
.steps-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72%);
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: none;
}

.steps-row::-webkit-scrollbar { display: none; }

.step { scroll-snap-align: start; }

.step .phone { margin: 0 auto 24px; }

.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.step p { margin: 0; color: var(--text-2); font-size: 15px; }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .steps-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .step .phone { width: 100%; max-width: 230px; }
}

/* Split: copy beside phones (stacked on phones). */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--flip .split__copy { order: 0; }
}

.split__art { display: flex; align-items: flex-start; justify-content: center; }

.duo { gap: 20px; }
.duo .phone:nth-child(2) { margin-top: 48px; }

@media (max-width: 479px) {
  .duo .phone { width: 46%; padding: 5px; border-radius: 26px; }
  .duo .phone img { border-radius: 21px; }
}

.ticks {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ticks--ink li { color: #d9d9d9; }
.ticks--ink li::before {
  background-color: var(--on-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}

/* ── Fare card ───────────────────────────────────────────────────────────── */
.fare-card {
  padding: 32px;
  border-radius: var(--r-xxl);
  background: var(--card-alt);
}

.fare-card__formula {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.fare-card__caption { margin: 4px 0 24px; color: var(--text-2); font-size: 16px; }

.fare-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.fare-table th,
.fare-table td {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 16px;
}

.fare-table thead th {
  border-top: 0;
  padding-top: 0;
  color: var(--text-hint);
  font-size: 13px;
  font-weight: 600;
}

.fare-table th:first-child { text-align: left; }
.fare-table tbody th { font-weight: 500; color: var(--text-2); }
.fare-table td { font-weight: 700; }

/* ── Safety list ─────────────────────────────────────────────────────────── */
.feature-list {
  display: grid;
  gap: 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li { display: flex; gap: 16px; align-items: flex-start; }

.feature-list .icon {
  width: 20px;
  height: 20px;
  padding: 11px;
  box-sizing: content-box;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.feature-list span { display: flex; flex-direction: column; color: var(--text-2); font-size: 15px; }
.feature-list strong { color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* ── Privacy tiles ───────────────────────────────────────────────────────── */
.tiles {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--fill);
}

.tile h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.tile p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── Colleges ────────────────────────────────────────────────────────────── */
.section--ink .hero__actions { margin-top: 36px; }

.campus-card {
  padding: 32px;
  border-radius: var(--r-xxl);
  background: #1a1a1a;
}

.campus-card__label {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.campus-card__body { margin: 0; color: #cfcfcf; font-size: 16px; }

.section--ink :focus-visible { outline-color: var(--on-ink); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: calc(760px + 2 * var(--gutter)); }

.faq__list { display: grid; gap: 10px; }

.faq details {
  border-radius: var(--r-lg);
  background: var(--fill);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: var(--r-lg);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-med) var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-2);
  font-size: 16px;
}

/* ── Closing call to action ──────────────────────────────────────────────── */
.cta { padding-block: 32px 80px; }

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 56px;
  border-radius: var(--r-xxl);
  background: var(--card-alt);
}

.cta__mark { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 28%; }
.cta .section__lede { margin-inline: auto; }
.cta .btn { margin-top: 28px; }

@media (max-width: 639px) {
  .cta__inner { width: calc(100% - 2 * var(--gutter)); padding-inline: 20px; }
  .cta .btn { width: 100%; }
}

/* ── Motion preferences ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.not-found { min-height: 48vh; }
