:root {
  --blue: #0568ff;
  --blue-strong: #0054dc;
  --ink: #07142d;
  --body: #40506a;
  --muted: #697790;
  --paper: #f7faff;
  --line: #d9e4f2;
  --white: #fff;
  --night: #03132f;
  --radius: 24px;
  --display: "Futura", "Avenir Next", "Geist", system-ui, sans-serif;
  --ui: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.faq-page {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

.faq-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.faq-skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 16px;
  min-height: 44px;
  padding: 11px 16px;
  transform: translateY(-180%);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.faq-skip:focus { transform: none; }

.faq-hero {
  min-height: 430px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(4, 18, 46, .88) 0%, rgba(4, 18, 46, .74) 38%, rgba(4, 18, 46, .34) 72%, rgba(4, 18, 46, .56) 100%),
    linear-gradient(180deg, rgba(4, 18, 46, .12) 0%, rgba(4, 18, 46, .26) 60%, var(--paper) 100%),
    url("landing/v9/photos/main-street-dusk.webp") center 38% / cover no-repeat,
    var(--night);
}

.faq-hero-inner {
  display: flex;
  min-height: 430px;
  align-items: center;
  padding: 128px 0 54px;
}

.faq-hero-copy { position: relative; width: min(1000px, 100%); }
.faq-hero h1,
.faq-section h2 {
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

.faq-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(52px, 3.55vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}

.faq-hero-copy > p:not(.faq-search-status) {
  max-width: 590px;
  margin: 12px 0 20px;
  color: rgba(247, 250, 255, .88);
  font-size: 19px;
  line-height: 1.4;
}

.faq-search {
  width: min(570px, 100%);
  margin: 0;
}

.faq-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.faq-search > div { position: relative; }
.faq-search input {
  width: 100%;
  height: 64px;
  padding: 0 54px 0 64px;
  border: 1px solid rgba(219, 231, 246, .68);
  border-radius: 16px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(6, 20, 47, .18);
  font: 500 17px/1 var(--ui);
  appearance: none;
}

.faq-search input::placeholder { color: var(--body); opacity: 1; }
.faq-search > div > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 25px;
  width: 20px;
  height: 20px;
  transform: translateY(-56%);
  border: 2px solid #74839b;
  border-radius: 50%;
  pointer-events: none;
}

.faq-search > div > span::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  transform: rotate(48deg);
  border-radius: 2px;
  background: #74839b;
  content: "";
}

.faq-search-status {
  position: absolute;
  bottom: -28px;
  left: 0;
  min-height: 20px;
  margin: 0;
  color: var(--body);
  opacity: 1;
  font-size: 14px;
  font-weight: 650;
}

.faq-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 62px 0 110px;
}

.faq-directory {
  position: sticky;
  top: 104px;
  padding: 2px 30px 2px 26px;
  border-right: 1px solid var(--line);
}

.faq-directory nav,
.faq-directory-mobile nav { display: grid; }
.faq-directory a,
.faq-directory-mobile a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.25;
  text-decoration: none;
}

.faq-directory a::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -26px;
  width: 4px;
  transform: scaleY(0);
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.faq-directory a[aria-current="true"] {
  color: var(--blue);
  font-weight: 750;
}

.faq-directory a[aria-current="true"]::before { transform: scaleY(1); }
.faq-directory-mobile { display: none; }
.faq-reading { min-width: 0; }
.faq-section { scroll-margin-top: 116px; }
.faq-section + .faq-section { margin-top: 72px; }
.faq-section-head { margin-bottom: 16px; }
.faq-section h2 {
  margin: 0 0 8px;
  font-size: clamp(38px, 3.75vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
}

.faq-section-head p {
  max-width: 820px;
  margin: 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

.faq-items { display: grid; gap: 10px; }
.faq-item {
  scroll-margin-top: 116px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(25, 56, 100, .025);
}

.faq-item[hidden],
.faq-section[hidden] { display: none; }
.faq-item summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 12px 62px 12px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker,
.faq-directory-mobile summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 23px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.faq-item summary::after {
  transform: rotate(90deg);
  transition: opacity .16s ease;
}

.faq-item[open] summary::after { opacity: 0; }
.faq-answer {
  padding: 24px 56px 28px 32px;
  color: rgba(255, 255, 255, .84);
  background:
    linear-gradient(90deg, rgba(3, 19, 47, .99) 0%, rgba(3, 19, 47, .95) 54%, rgba(3, 19, 47, .73) 100%),
    url("about/selected-mockup/about-hero-monorail-night.png") right center / cover no-repeat,
    var(--night);
}

.faq-answer p {
  max-width: 65ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
}

.faq-answer p + p { margin-top: 12px; }
.faq-answer-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq-answer-action:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.faq-no-results {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.faq-directory a:hover,
.faq-directory-mobile a:hover { color: var(--blue); }
.faq-item summary:hover { background: #fbfdff; }
.faq-search input:focus-visible,
.faq-directory a:focus-visible,
.faq-directory-mobile summary:focus-visible,
.faq-directory-mobile a:focus-visible,
.faq-skip:focus-visible {
  outline: 3px solid rgba(5, 104, 255, .38);
  outline-offset: 3px;
}
.faq-item summary:focus-visible {
  outline: 3px solid rgba(5, 104, 255, .38);
  outline-offset: -3px;
}

@media (max-width: 900px) {
  .faq-shell { width: min(720px, calc(100% - 72px)); }
  .faq-hero {
    background:
      linear-gradient(180deg, rgba(4, 18, 46, .16) 0%, rgba(4, 18, 46, .46) 34%, rgba(4, 18, 46, .84) 78%, var(--paper) 100%),
      url("landing/v9/photos/main-street-dusk.webp") center 32% / cover no-repeat,
      var(--night);
  }
  .faq-hero-copy { width: min(610px, 100%); }
  .faq-layout { display: block; padding-top: 24px; }
  .faq-directory { display: none; }
  .faq-directory-mobile {
    position: sticky;
    z-index: 20;
    top: 76px;
    display: block;
    margin: 0 0 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(20, 52, 99, .08);
    backdrop-filter: blur(14px);
  }
  .faq-directory-mobile > summary {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 10px 48px 10px 18px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 730;
  }
  .faq-directory-mobile [data-faq-mobile-current] {
    min-width: 0;
    margin-left: .3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .faq-directory-mobile > summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    transform: translateY(-65%) rotate(45deg);
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
  }
  .faq-directory-mobile[open] > summary::after { transform: translateY(-35%) rotate(225deg); }
  .faq-directory-mobile nav {
    max-height: calc(100vh - 154px);
    overflow-y: auto;
    padding: 4px 18px 14px;
    border-top: 1px solid var(--line);
  }
  .faq-directory-mobile a[aria-current="true"] { color: var(--blue); font-weight: 750; }
  .faq-section { scroll-margin-top: 146px; }
  .faq-item { scroll-margin-top: 152px; }
}

@media (max-width: 560px) {
  .faq-shell { width: calc(100% - 56px); }
  .faq-hero {
    min-height: 500px;
    background:
      linear-gradient(180deg, rgba(4, 18, 46, .18) 0%, rgba(4, 18, 46, .42) 28%, rgba(4, 18, 46, .8) 66%, rgba(4, 18, 46, .96) 86%, var(--paper) 100%),
      url("landing/v9/photos/main-street-dusk.webp") 58% center / cover no-repeat,
      var(--night);
  }
  .faq-hero-inner { min-height: 500px; padding: 132px 0 40px; align-items: flex-end; }
  .faq-hero h1 { font-size: 43px; line-height: 1; }
  .faq-hero-copy > p:not(.faq-search-status) { margin-top: 13px; font-size: 17px; }
  .faq-search input { height: 58px; padding-left: 56px; font-size: 16px; }
  .faq-search > div > span { left: 21px; }
  .faq-layout { padding-bottom: 76px; }
  .faq-directory-mobile { margin-bottom: 42px; }
  .faq-section + .faq-section { margin-top: 60px; }
  .faq-section h2 { font-size: 38px; }
  .faq-section-head p { font-size: 16px; }
  .faq-item { border-radius: 15px; }
  .faq-item summary { min-height: 64px; padding: 12px 54px 12px 16px; font-size: 16px; }
  .faq-item summary::before,
  .faq-item summary::after { right: 19px; }
  .faq-answer {
    padding: 22px 20px 26px;
    background:
      linear-gradient(rgba(3, 19, 47, .95), rgba(3, 19, 47, .95)),
      url("about/selected-mockup/about-hero-monorail-night.png") center / cover no-repeat,
      var(--night);
  }
  .faq-answer p { font-size: 16px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-item summary::after { transition: none; }
}
