@font-face {
  font-family: "ABC Diatype";
  src: url("./assets/fonts/abc-diatype-regular-trial.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("./assets/fonts/abc-diatype.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "ABC Diatype", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #191d30;
  --page: #f7f7f8;
  background: #fff;
  --bound-blue: #001676;
  --cta: var(--indigo);
  --cta-hover: var(--bound-blue);
  --ink: #171d35;
  --indigo: #354faa;
  --header-height: 4.5rem;
  --control-gray: #f2f2f3;
  --control-surface: #fcfbfa;
  --control-stroke: rgb(13 13 13 / 12%);
  --control-ink: #0d0d0d;
  --control-muted: #53545b;
  --control-hover: rgb(13 13 13 / 3.3%);
  --control-shadow: 0 1px 8px rgb(0 0 0 / 5%);
  --control-inset: inset 0 1px 1.5px rgb(255 255 255 / 70%), inset 0 -1px 1.5px rgb(0 0 0 / 3%);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #536ed2; outline-offset: 4px; }
svg { display: block; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .75rem 1rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { top: .5rem; }

.site-header {
  position: relative;
  z-index: 3;
  background: var(--page);
}
.site-container {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}
.header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: clamp(7.1rem, 9.5vw, 9rem); height: auto; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-menu { position: relative; }
.header-menu summary { list-style: none; cursor: pointer; }
.header-menu summary::-webkit-details-marker { display: none; }
.site-header nav { position: absolute; top: calc(100% + .6rem); right: 0; width: 12rem; padding: .45rem; border-radius: 1rem; background: #fff; box-shadow: 0 8px 28px #171d3514; }
.header-menu:not([open]) nav { display: none; }
.site-header nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: .75rem;
  border-radius: .6rem;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: #5a5a68;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.header-control, .sign-in {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #606167;
  background: var(--control-gray);
}
.sign-in::after { content: ""; position: absolute; inset: -.25rem; border-radius: 50%; }
.header-control:hover, .sign-in:hover { background: #d4d4d8; }
.header-control svg, .sign-in svg, .search-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sign-in svg { width: 20px; height: 20px; }
.dialog-close:hover { background: var(--control-hover); }

.home-page {
  --home-heading-2: clamp(1.4rem, calc(7.3vw - .25rem), 2.1rem);
}
.home-page main h1 { font-size: calc(var(--home-heading-2) + .25rem); }
.home-page main h2 { font-size: var(--home-heading-2); }
.home-page .feature-copy h3 { font-size: 1.125rem; }

.hero {
  --hero-height: clamp(30rem, 64svh, 37rem);
  --hero-trim: 5.5rem;
  --map-lift: 7rem;
  min-height: calc(var(--hero-height) - var(--hero-trim) - var(--map-lift));
  position: relative;
  isolation: isolate;
  padding-block: clamp(1rem, calc(6vh - 1.5rem), 2.75rem) 2.5rem;
  background: linear-gradient(to bottom, var(--page) 0%, #fff 36% 65%, #75D7FA 100%);
}
.hero-content { position: relative; top: .625rem; z-index: 2; text-align: center; }
h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.044em;
  color: var(--indigo);
}
h1 span { display: block; }
h1 span:last-child { color: var(--bound-blue); }
.query-wrap {
  position: relative;
  width: min(100%, 45rem);
  margin: clamp(1.35rem, 3.5vh, 2rem) auto 0;
  text-align: left;
}
.trust-line {
  position: absolute;
  inset: calc(100% + 1.625rem) 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #24864c;
  font-size: .8125rem;
  line-height: 1.25;
  pointer-events: none;
}
.trust-count { display: inline-block; min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; }
.trust-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.trust-roll > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .trust-roll > span { animation: trust-roll-in .85s cubic-bezier(.35, 0, .2, 1) both; }
  .trust-roll::before {
    content: attr(data-previous);
    position: absolute;
    inset: 0;
    animation: trust-roll-out .85s cubic-bezier(.35, 0, .2, 1) both;
  }
}
@keyframes trust-roll-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes trust-roll-out { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.trust-dot { position: relative; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .trust-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: trust-pulse 2s ease-out infinite;
  }
}
@keyframes trust-pulse {
  from { transform: scale(1); opacity: .55; }
  75%, to { transform: scale(2.4); opacity: 0; }
}
.trip-query {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr auto;
  gap: .28rem;
  background: var(--control-gray);
  border: 0;
  border-radius: 5rem;
  padding: .28rem;
  box-shadow: 0 2px 0 #e3e3e5;
}
.query-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 3rem;
  gap: .65rem;
  padding: 0 .92rem;
  border: 0;
  background: white;
  text-align: left;
}
.destination-field { cursor: text; border-radius: 2.5rem 4px 4px 2.5rem; }
.date-field { border-radius: 4px 2.5rem 2.5rem 4px; }
.date-field[aria-expanded="true"] { background-color: var(--control-hover); }
.field-emoji {
  flex: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}
#destination, #date-value { min-width: 0; font-size: .94rem; line-height: 1.25; }
#destination { width: 100%; border: 0; border-radius: 0; padding: 0; outline: none; background: none; color: var(--control-ink); caret-color: var(--control-ink); }
.trip-query .query-field:focus-visible {
  outline: none;
  background-color: #e9edf6;
}
#destination::placeholder, #date-value { color: var(--control-muted); }
.query-input-copy input::placeholder { opacity: 1; }
.query-input-copy { position: relative; display: grid; min-width: 0; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .query-field:hover .query-input-copy input::placeholder,
  .query-field:hover:not([data-selected]) :is([data-date-value], .docked-date-placeholder) {
    opacity: .65;
  }
  .query-field:hover:not(:focus-within):not([aria-expanded="true"]) .query-input-copy::before {
    content: "";
    position: absolute;
    inset-inline-start: -2px;
    inset-block: 0;
    height: 1em;
    margin-block: auto;
    border-inline-start: 1px solid var(--control-ink);
    pointer-events: none;
  }
}
.trip-query #date-field[data-selected] #date-value { color: var(--control-ink); }
#date-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-button, .dialog-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: white;
  background: var(--cta);
  border: 0;
  border-radius: 5rem;
  font-weight: 400;
}
.search-button {
  padding: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.search-button:hover, .dialog-action:hover { background: var(--cta-hover); }
.sign-in:active, .search-button:active, .date-field:active, .dialog-action:active, .dialog-close:active { transform: scale(.97); }
.search-button svg { width: 20px; height: 20px; stroke-width: 2; }

.map-window {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 92%);
  mask-image: linear-gradient(to bottom, transparent 8%, #000 92%);
}

dialog {
  width: min(26rem, calc(100% - 2rem));
  padding: 2.6rem 2rem 2.1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e1e3eb;
  border-radius: 1.5rem;
  box-shadow: 0 20px 70px #14244a26;
}
dialog::backdrop { background: #1824404a; backdrop-filter: blur(3px); }
dialog h2 { margin: 0 1.125rem .8rem 0; font-weight: 500; font-size: 2.1rem; letter-spacing: -.045em; }
dialog p { margin: 0; color: #575d70; font-size: 1rem; line-height: 1.55; }
.dialog-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: var(--control-gray);
  font-size: 1.5rem;
}
.dialog-action { margin-top: 1.5rem; min-height: 44px; padding: 0 1.2rem; font-size: .95rem; }
.app-icon { display: block; padding: .55rem; margin-bottom: 1rem; border-radius: .8rem; background: #071669; }

@media (max-width: 800px) {
  .query-field { padding-inline: .85rem; gap: .6rem; }
  #destination, #date-value { font-size: .9rem; }
}
@media (max-width: 650px) {

  .brand img { width: 7.15rem; }
  .site-header nav a { font-size: .86rem; min-height: 39px; }
  .hero { --hero-height: clamp(27rem, 65svh, 31rem); --hero-trim: 2.5rem; padding-block: 1rem 5rem; }
  h1 { font-size: clamp(1.65rem, 7.3vw, 2.5rem); line-height: 1.04; letter-spacing: -.05em; }
  .query-wrap { max-width: 27rem; margin-top: 1.35rem; }
  .trip-query { grid-template-columns: 1fr auto; padding: .28rem; border-radius: 1.65rem; }
  .query-field { min-height: 2.95rem; padding: .22rem .75rem; gap: .6rem; }
  .destination-field { grid-column: 1 / -1; border-radius: 1.25rem 1.25rem 4px 4px; }
  .date-field { grid-column: 1; border-radius: 4px 4px 1.25rem 1.25rem; }
  #destination { font-size: 1rem; }
  #date-value { font-size: .94rem; white-space: normal; }
  .search-button { height: 2.95rem; width: 2.95rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .sign-in, .dialog-action, .dialog-close { transition: background-color 150ms ease, transform 100ms ease; }
  .trip-query { transition: background-color 150ms ease, box-shadow 150ms ease; }
  .search-button, .query-field { transition: color 150ms ease, background-color 150ms ease, transform 100ms ease; }
  .query-input-copy input::placeholder,
  .query-field :is([data-date-value], .docked-date-placeholder) { transition: opacity 150ms ease; }
  .query-input-copy::before { animation: query-caret-blink 1s step-end infinite; }
  @keyframes query-caret-blink { 50% { opacity: 0; } }
}
