/* FindTransitSchedules landing page */

:root {
  --ink: #21184F;
  --brand: #453B9E;
  --accent: #FCBA2B;
  --muted: #5B5680;
  --subtle: #8A85A8;
  --line: #E6E3F2;
  --wash: #FAFAFD;
  --white: #FFFFFF;

  --walk: #5C667D;
  --taxi: #0369A1;
  --bus: #B45309;

  --font-sans: 'Onest', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }

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

img { display: block; }

@keyframes fts-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fts-pop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fts-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.page { display: flex; flex-direction: column; width: 100%; min-height: 100vh; overflow-x: hidden; background: var(--white); }

.page > main { flex: 1 0 auto; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.mono { font-family: var(--font-mono); }

/* Shared type */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.section { padding-top: 88px; padding-bottom: 40px; }

.findtransit-slot {
  width: 100%;
  max-width: 970px;
  margin: 28px auto;
  display: flex;
  justify-content: center;
}

@media (max-width: 991px) {
  .findtransit-slot { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition: background-color .15s, color .15s;
}

.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }

.btn--sm { height: 42px; padding: 0 20px; border-radius: 10px; font-size: 15px; }

.btn--lg {
  height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}

.btn--glow { box-shadow: 0 16px 36px -14px rgba(69, 59, 158, .8); }

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

/* Notice */
.notice {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 24px;
}

.notice a { color: var(--accent); text-decoration: underline; }
.notice a:hover { color: var(--white); }

/* Nav */
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.nav__brand { display: flex; }
.nav__brand img { height: 32px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  flex-wrap: wrap;
}

.nav__link { color: var(--ink); font-size: 15px; font-weight: 600; }
.nav__link:hover { color: var(--brand); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; }

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}

.hero__kicker-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 34px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
}

/* Route strip */
.route {
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 26px 22px;
  background: var(--wash);
}

.route__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.route__places {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.pin--a { background: var(--ink); }
.pin--b { background: var(--brand); }

.route__place { font-weight: 600; font-size: 16px; }

.route__summary {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.route__summary strong { color: var(--ink); font-weight: 600; }

.legs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 18px 10px;
}

.leg {
  --c: var(--walk);
  --d: .15s;
  min-width: 0;
  animation: fts-rise .5s var(--d) both;
}

.leg--walk   { --c: var(--walk); }
.leg--taxi   { --c: var(--taxi); }
.leg--bus    { --c: var(--bus); }

.leg:nth-child(1) { --d: .15s; }
.leg:nth-child(2) { --d: .33s; }
.leg:nth-child(3) { --d: .51s; }
.leg:nth-child(4) { --d: .69s; }
.leg:nth-child(5) { --d: .87s; }

.leg__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.leg__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 0;
  border-top: 4px solid var(--c);
  transform-origin: left;
  animation: fts-grow .6s var(--d) both;
}

.leg--walk .leg__line { border-top-style: dashed; }

.leg__node {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--c);
  display: grid;
  place-items: center;
  color: var(--c);
  animation: fts-pop .3s var(--d) both;
}

.leg__body { padding: 12px 2px 0; }

.leg__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.leg__line-name { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }

.leg__text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }

.leg__meta {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Mode chip */
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--chip-bg);
  color: var(--chip-fg);
  border: 1px solid var(--chip-border);
}

.chip--walk   { --chip-bg: var(--white);  --chip-fg: #3B4457;      --chip-border: #B4BCCB; }
.chip--taxi   { --chip-bg: var(--taxi);   --chip-fg: var(--white); --chip-border: var(--taxi); }
.chip--bus    { --chip-bg: var(--bus);    --chip-fg: var(--white); --chip-border: var(--bus); }

/* How it works */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 64px;
  align-items: start;
}

.how__intro { position: sticky; top: 24px; }
.how__intro .lead { max-width: 40ch; }

/* Single-column layout: sticky intro would overlap the steps */
@media (max-width: 719px) {
  .how__intro { position: static; }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 20px;
}

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

.step__num--accent { background: var(--accent); color: var(--ink); }

.step__connector {
  flex: 1;
  width: 0;
  min-height: 24px;
  border-left: 3px solid var(--line);
}

.step__body { padding: 6px 0 40px; min-width: 0; }
.step:last-child .step__body { padding-bottom: 0; }

.step__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.step__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Step 1 mock: autocomplete */
.mock-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 12px 30px -20px rgba(33, 24, 79, .35);
}

.mock-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.mock-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(69, 59, 158, .16);
  font-size: 14px;
}

.mock-input__pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EEF1F6;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.mock-input__caret {
  display: block;
  width: 1.5px;
  height: 18px;
  margin-left: -10px;
  background: var(--ink);
}

.mock-menu {
  margin-top: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(33, 24, 79, .12), 0 0 0 1px rgba(33, 24, 79, .06);
  padding: 4px;
}

.mock-option {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.mock-option--active { background: #ECEAF8; }
.mock-option strong { display: block; font-weight: 600; }
.mock-option small { color: var(--muted); font-size: 12px; }

/* Step 2 mock: date/time */
.mock-fields { display: flex; gap: 10px; flex-wrap: wrap; }

.mock-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.mock-field--focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(69, 59, 158, .16);
}

/* Step 3 mock: button */
.mock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

/* Modes */
.modes {
  background: var(--ink);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 60px);
  color: var(--white);
  overflow: hidden;
}

.modes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.modes__title {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 18ch;
  text-wrap: balance;
}

.modes__lead { color: #C7C2E3; max-width: 36ch; }

.modes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  font-weight: 600;
}

.mode::before {
  content: "";
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

/* Features */
.features__title { margin-bottom: 48px; max-width: 20ch; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
}

.feature {
  border-top: 2px solid var(--ink);
  padding: 22px 0 40px;
  min-width: 0;
}

.feature__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 14px;
}

.feature__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.feature__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Print */
.print-section { padding-top: 40px; padding-bottom: 40px; }

.print {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 64px;
  align-items: center;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
}

.print__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.print .lead { max-width: 42ch; }

.sheet {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 30px 60px -24px rgba(33, 24, 79, .45), 0 0 0 1px rgba(33, 24, 79, .06);
  padding: 24px;
  transform: rotate(2deg);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.sheet__head img { height: 16px; width: auto; }

.sheet__date { font-family: var(--font-mono); font-size: 9px; color: var(--subtle); }

.sheet__title { margin: 14px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.3; }

.sheet__meta {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.sheet__rows { display: flex; flex-direction: column; }

.sheet__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #EEF1F6;
  align-items: start;
}

.sheet__num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--subtle);
  padding-top: 2px;
}

.sheet__step { min-width: 0; }

.sheet__step .chip {
  height: 14px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 7.5px;
  margin-right: 6px;
  vertical-align: middle;
}

.sheet__text { font-size: 10px; line-height: 1.35; }

.sheet__time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink);
  white-space: nowrap;
}

/* Install */
.install-section { padding-top: 48px; padding-bottom: 40px; }

.install {
  position: relative;
  background: var(--brand);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.install__copy,
.install__art { position: relative; z-index: 1; }

.install__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 16ch;
  text-wrap: balance;
}

.install__lead {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.55;
  color: #DDD9F3;
  max-width: 40ch;
  text-wrap: pretty;
}

.install__actions {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.install__alt { font-size: 14px; color: #DDD9F3; line-height: 1.35; }
.install__alt a { color: var(--white); text-decoration: underline; }
.install__alt a:hover { color: var(--accent); }

.install__art { display: flex; justify-content: center; }

.install__badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -20px rgba(33, 24, 79, .6);
}

.install__badge img { width: 76px; height: 97px; }

.install__ring {
  position: absolute;
  right: -8%;
  bottom: -40%;
  width: 60%;
  padding-top: 60%;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .06);
}

/* Footer */
.footer {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__top img { height: 26px; width: auto; }

.footer__links { display: flex; gap: 10px 26px; flex-wrap: wrap; }

.footer__link { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer__link:hover { color: var(--brand); }
.footer__links .footer__link img { display: inline-block; width: 29px; height: 14px; margin-left: 4px; vertical-align: middle; }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--subtle);
}

.fdbc-img-holder {
  background: transparent;
}

.fdbck-header-holder {
  background: var(--ink);
}

/* Project pages outside the landing page */
.htu-thank-you,
.htu-intro,
.htu-settings { padding-top: 72px; padding-bottom: 36px; }
.htu-thank-you { margin-top: 36px; padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--wash); }
.htu-thank-you .h2,
.htu-intro .h2,
.htu-settings .h2 { max-width: 22ch; }
.htu-intro { padding-top: 40px; }
.htu-settings { padding-top: 48px; padding-bottom: 80px; }
.htu-home-link { margin-top: 28px; font-weight: 600; }

@media (max-width: 700px) {
  .htu-thank-you,
  .htu-intro,
  .htu-settings { padding-top: 40px; padding-bottom: 28px; }
}

/* Shared framework pages rendered in the project layout */
.legal-page { padding-top: 72px; padding-bottom: 96px; }
.legal-page__header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-page__header h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.035em; }

/* Exit survey */
.exit-survey {
  width: 100%;
  padding-top: 64px;
  padding-bottom: 72px;
}

.exit-survey__card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(33, 24, 79, .07);
}

.exit-survey__header { margin-bottom: 36px; }
.exit-survey__header h1,
.exit-survey__success h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.exit-survey__header > p:last-child,
.exit-survey__success > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.exit-survey__question { margin: 0 0 30px; padding: 0; border: 0; }
.exit-survey__question legend { width: 100%; margin-bottom: 16px; font-size: 17px; font-weight: 700; }
.exit-survey__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.exit-survey__option:hover { border-color: var(--brand); background: var(--wash); }
.exit-survey__option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.exit-survey__textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.exit-survey__textarea[hidden] { display: none; }
.exit-survey__textarea:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.exit-survey__submit { min-width: 150px; cursor: pointer; }
.exit-survey__alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; background: #FFF5E7; color: #7A4100; }
.exit-survey__success { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.exit-survey__mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #E9F7EF; color: #267248; font-size: 26px; font-weight: 700; }

@media (max-width: 600px) {
  .exit-survey { padding-top: 36px; padding-bottom: 44px; }
  .exit-survey__card { padding: 26px 20px; border-radius: 18px; }
  .exit-survey__header { margin-bottom: 28px; }
}
.legal-page__content { max-width: 78ch; padding-top: 28px; color: var(--muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-page__content h2,
.legal-page__content h3 { margin: 32px 0 12px; color: var(--ink); line-height: 1.2; }
.legal-page__content ul,
.legal-page__content ol { padding-left: 24px; }
.legal-page__content a { text-decoration: underline; }
.notice:empty { display: none; }
