/* Ves website: built from the "Website" and "Contact Us" sheets in the Ves design project.
   The design is desktop-only; the phone layout (under 1000px and under 700px) is ours.
   Desktop sizes are scaled down from the design to usual web sizes (user, 2026-10-22). */

@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url('/fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url('/fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 900; font-display: swap; src: url('/fonts/lato-900.woff2') format('woff2'); }

:root {
  --red: #EA4237;
  --cream: #F4EFE4;
  --ink: #1B1B1F;
  --shell: #F2F4F4;
  --grey: #5E6671;
  --line: #DADFE4;
  --lead: clamp(18px, 1vw + 12px, 24px);
  --h2: clamp(32px, 4vw, 60px);
  --card-shadow: 0 1px 2px rgba(27,27,31,.06), 0 12px 32px rgba(27,27,31,.08);
  --phone-shadow: 0 12px 30px rgba(0,0,0,.18), 0 40px 100px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Lato', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid rgba(27,27,31,.08); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--red); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand:hover { color: var(--red); }
.nav-links { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 32px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 22px; background: var(--red); color: #fff; text-decoration: none; font-size: 16px; font-weight: 900; white-space: nowrap; flex: none; }
.btn:hover { color: #fff; filter: brightness(1.05); }

@media (max-width: 820px) {
  .nav-in { padding: 12px 16px; gap: 16px; justify-content: space-between; }
  .nav-links { display: none; }
  .brand { font-size: 26px; gap: 8px; }
  .brand svg { width: 34px; height: 34px; }
  .btn { height: 40px; padding: 0 18px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); color: var(--red); padding: clamp(40px, 6vw, 80px) 16px 0; overflow: hidden; }
.hero-text { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 1.6vw, 24px); }
.hero h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1; font-weight: 900; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.hero h1 img { display: inline-block; height: .763em; width: auto; vertical-align: -.04em; margin: 0 .04em; }
.lead { font-size: var(--lead); line-height: 1.3; font-weight: 700; margin: 0; text-wrap: pretty; }
.hero .lead { max-width: 620px; color: var(--ink); }
.store-badge { display: block; }
/* The hero's badge sits on cream: a soft shadow lifts it off the page. */
.hero .store-badge img { filter: drop-shadow(0 4px 12px rgba(27,27,31,.22)) drop-shadow(0 1px 2px rgba(27,27,31,.12)); }
.store-badge img { display: block; height: clamp(48px, 4vw, 56px); width: auto; }

/* The stage scales with the phone width (--p); 390 is the phone's design width. */
.stage { --p: clamp(260px, 26vw, 340px); position: relative; max-width: 1100px; margin: clamp(40px, 4vw, 56px) auto 0; height: calc(var(--p) * 1.59); }
.stage .toy { position: absolute; height: auto; pointer-events: none; z-index: 0; }
.toy-metro { right: calc(50% + var(--p) * .282); top: calc(var(--p) * .282); width: calc(var(--p) * 1.026); mix-blend-mode: multiply; transform: scaleX(-1); }
.toy-bus { right: calc(50% + var(--p) * .5); top: calc(var(--p) * .897); width: calc(var(--p) * .718); filter: drop-shadow(0 8px 12px rgba(27,27,31,.18)); }
.toy-tram { left: calc(50% + var(--p) * .282); top: calc(var(--p) * .897); width: calc(var(--p) * 1.026); mix-blend-mode: multiply; transform: scaleX(-1); }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: var(--p); z-index: 1; }

/* Floating trip card: sized in em so it scales with the phone (16px at a 390px phone). */
.trip-card { position: absolute; z-index: 2; font-size: calc(var(--p) / 24.375); left: min(calc(50% + var(--p) * .313), calc(100% - var(--p) * .97)); top: calc(var(--p) * .385); width: 22.875em; transform: rotate(2deg); filter: drop-shadow(0 1.5em 3em rgba(27,27,31,.35)); }
.trip-card-in { padding: .875em 1em 1em; border-radius: 1.5em; display: flex; flex-direction: column; gap: .75em; color: #fff; background: #000; }
.tc-head { display: flex; align-items: center; gap: .5em; font-size: 1.25em; letter-spacing: -.02em; }
.tc-head svg { width: 1.1em; height: 1.1em; flex: none; }
.tc-head b { font-weight: 700; }
.tc-head b.tc-min { font-weight: 900; }
/* S1's badge as in the app: FGC line colour, white text, square corners. */
.tc-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 1.2em; padding: 0 .3em; border-radius: 3px; background: #F37021; color: #fff; font-size: .9em; font-weight: 900; letter-spacing: .02em; box-shadow: 0 2px 4px #F3702159; }
.tc-row { display: flex; align-items: center; gap: .75em; }
.tc-dur { flex: none; display: flex; align-items: baseline; gap: .125em; font-variant-numeric: tabular-nums; }
.tc-dur span:first-child { font-size: 1.75em; font-weight: 900; letter-spacing: -.02em; }
.tc-dur span:last-child { font-size: .875em; font-weight: 700; }
.tc-div { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); }
.tc-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-times { display: flex; gap: .25em; height: 1em; margin-bottom: .375em; font-size: .875em; line-height: 1em; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-times > div { position: relative; }
.tc-times .t1 { position: absolute; top: 0; left: 0; transform: translateX(calc(-2ch - .12em)); white-space: nowrap; }
.tc-times .arrow { position: absolute; left: 0; top: 1.15em; width: 0; height: 0; margin-left: -.285em; border-left: .285em solid transparent; border-right: .285em solid transparent; border-top: .285em solid #8A929B; }
.tc-times .t2 { position: absolute; top: 0; right: 0; white-space: nowrap; }
.tc-segs { display: flex; align-items: center; gap: .25em; height: .625em; }
.tc-segs .walk { height: 3px; border-radius: 2px; background: #CFD4D9; }
.tc-segs .ride { height: .625em; border-radius: .25em; }

@media (max-width: 699px) {
  .stage { --p: min(60vw, 260px); height: calc(var(--p) * 1.75); }
}

/* ---------- Feature panels ---------- */
.panel-wrap { background: var(--shell); padding: 24px clamp(12px, 3vw, 40px); }
.panel-wrap.first { padding-top: clamp(32px, 4vw, 64px); }
.panel-wrap.last { padding-bottom: clamp(32px, 4vw, 64px); }
.panel { padding: clamp(48px, 7vw, 96px) clamp(20px, 3vw, 24px); border-radius: clamp(24px, 2.5vw, 36px); overflow: hidden; box-shadow: var(--card-shadow); }
.panel.red { background: var(--red); color: var(--cream); }
.panel.cream { background: var(--cream); color: var(--red); }
.panel-in { max-width: 1100px; margin: 0 auto; padding: 0 clamp(0px, 2vw, 40px); display: flex; align-items: center; justify-content: center; gap: clamp(48px, 8vw, 120px); }
.panel.flip .panel-in { flex-direction: row-reverse; }
.panel-text { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.panel-text .lead { max-width: 520px; }
/* --fit: the heading's longest line in em; on narrow screens the type shrinks so its lines stay as written. */
.panel h2 { font-size: min(var(--h2), calc((100vw - 80px) / var(--fit, .01))); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; margin: 0; white-space: nowrap; }
.panel h2.wrap { white-space: normal; text-wrap: balance; }
.spacer { display: none; }
.panel .shot { flex: none; width: clamp(260px, 24vw, 340px); }

.shot img, .phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 10.8% / 5%; background: #F4F4F4; box-shadow: var(--phone-shadow); }

@media (max-width: 999px) {
  .panel-in, .panel.flip .panel-in { flex-direction: column; align-items: stretch; gap: 40px; }
  .panel h2 { white-space: normal; text-wrap: balance; }
  .panel br.desk { display: none; }
  .spacer { display: none; }
  .panel .shot { width: min(72vw, 340px); align-self: center; }
}

/* ---------- Networks ---------- */
.networks { background: #fff; padding: clamp(56px, 7vw, 96px) 24px; border-radius: clamp(24px, 2.5vw, 36px); overflow: hidden; box-shadow: var(--card-shadow); }
.networks-in { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 4.5vw, 56px); text-align: center; }
.eyebrow { font-size: clamp(13px, 1vw, 15px); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.logos { --ls: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 40px); }
/* 4 + 2 on desktop and tablet; 2 per row on phones. */
.logo-row { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 56px); }
.logos img { display: block; width: auto; height: calc(var(--h) * var(--ls) * 1px); }
@media (max-width: 699px) {
  .logos { --ls: .8; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; align-items: center; gap: 28px 32px; }
  .logo-row { display: contents; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: clamp(48px, 5vw, 72px) 24px 40px; overflow: hidden; }
.footer-in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(24px, 3vw, 40px); }
.footer-links a { color: var(--cream); text-decoration: none; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--red); }
.footer .store-row { display: flex; justify-content: center; margin-top: calc(-1 * clamp(12px, 2vw, 32px)); }
.footer .store-badge img { height: clamp(48px, 4vw, 56px); }
.wordmark { font-size: clamp(140px, 24vw, 320px); line-height: .8; font-weight: 900; letter-spacing: -.06em; text-align: center; margin: 0 -.04em; }
.made { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.made-line { display: flex; align-items: center; gap: 8px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; }
.made-line svg { width: 1.1em; height: 1.1em; }
.copy { font-size: 14px; font-weight: 700; color: #C9CDD2; }

/* ---------- Inner pages (contact, legal) ---------- */
.page { background: var(--shell); color: var(--ink); padding: clamp(32px, 6vw, 80px) 16px clamp(64px, 9vw, 128px); }
.page-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page h1 { margin: 0 0 8px; padding-left: 4px; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.card { background: #fff; border-radius: 20px; box-shadow: 0 6px 18px rgba(27,27,31,.12), 0 1px 3px rgba(27,27,31,.08); padding: clamp(20px, 3vw, 32px); }
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 28px); }
.intro img { width: clamp(80px, 9vw, 112px); height: auto; flex: none; }
.intro p { flex: 1 1 240px; min-width: 0; margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--grey); text-wrap: pretty; }

.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-size: 15px; font-weight: 700; color: var(--grey); padding-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { height: 44px; display: flex; align-items: center; padding: 0 20px; border-radius: 22px; font-size: 16px; font-weight: 700; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.chip input:checked + span { background: var(--red); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-family: inherit; font-size: 17px; color: var(--ink); outline: none; }
.input::placeholder { color: #8A929B; }
.input:focus { border-color: var(--red); }
input.input { height: 52px; padding: 0 16px; }
textarea.input { padding: 14px 16px; line-height: 1.45; resize: vertical; min-height: 160px; }
.send { height: 56px; border: 0; border-radius: 28px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(234,66,55,.3); }
.send:disabled { opacity: .4; cursor: default; }
.send svg { width: 1em; height: 1em; }
.form-error { margin: 0; font-size: 15px; font-weight: 700; color: var(--red); }
.sent h2 { margin: 0 0 10px; font-size: clamp(24px, 2.5vw, 30px); font-weight: 900; letter-spacing: -.01em; }
.sent p { margin: 0; font-size: 18px; line-height: 1.4; color: var(--grey); }
.link-btn { margin-top: 20px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--red); cursor: pointer; }

.legal { font-size: clamp(17px, 1vw + 8px, 19px); line-height: 1.6; }
/* Legal pages: a wide reading column, like transitapp.com/privacy-policy (~1080px). */
.page-in.wide { max-width: 1080px; }
.page-in.wide .card { padding: clamp(20px, 4vw, 56px); }
.legal h2 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin: 40px 0 12px; font-weight: 900; letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .effective { color: var(--grey); font-style: italic; }
.legal a { color: var(--red); }
.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92em; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #EEF0F2; }
.legal th { font-weight: 900; color: var(--grey); border-bottom-width: 2px; }
/* Phones keep the hero's three lines: the type shrinks to fit "Public transport" (6.75em wide) instead of wrapping. */
@media (max-width: 699px) { .hero h1 { font-size: min(40px, calc((100vw - 32px) / 6.9)); } }
/* Phones: each table row becomes a stacked block, the column name above each value. */
@media (max-width: 699px) {
  .table-scroll { overflow: visible; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; min-width: 0; width: auto; }
  .legal thead { display: none; }
  .legal tr { padding: 14px 0; border-bottom: 2px solid #EEF0F2; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: .8em; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
}

/* ---------- Data credits ---------- */
.credit { display: flex; gap: 24px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid #EEF0F2; }
.credit:last-of-type { border-bottom: 0; }
.credit-logo { flex: none; width: 160px; height: 56px; display: flex; align-items: center; }
.credit-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.credit-text { flex: 1; min-width: 0; }
.credit-text p { margin: 0; }
.legal ul ul { margin: 6px 0 0; }
@media (max-width: 699px) {
  .credit { flex-direction: column; gap: 10px; }
  .credit-logo { height: 40px; width: auto; max-width: 160px; }
  .credit-logo:empty { display: none; }
}
/* Phones: a little more air between title lines (user, 2026-10-22). */
@media (max-width: 699px) {
  .hero h1 { line-height: 1.1; }
  .panel h2 { line-height: 1.12; }
}
