/* Transferzy landing.
   Look: airport wayfinding. Signal yellow, black ink, heavy sans, a Dubai skyline in the hero.
   System fonts only, no external requests. */

:root {
  --signal: #ffce1f;
  --ink: #101114;
  --ink-soft: #25272c;
  --paper: #fff;
  --muted: #50535b;
  --muted-on-ink: #c4c7cf;
  --line: rgba(16, 17, 20, .16);
  --line-on-ink: rgba(255, 255, 255, .18);
  --danger: #b3261e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scrollbar-color: var(--ink) var(--signal);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 1rem/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

h1 {
  font-size: clamp(2.75rem, 8.2vw, 5.25rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

a { color: inherit; text-underline-offset: .2em; }

[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--signal); }
.where ::selection, .site-footer ::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--signal);
  font-weight: 800;
}
.skip:focus { top: 1rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: .7rem;
  background: var(--ink);
  color: var(--signal);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s ease-out, color .15s ease-out;
}
.btn:hover { background: #2a2d35; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 2.75rem; padding: 0 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 3.75rem; padding: 0 2rem; font-size: 1.2rem; }
.btn--wide { width: 100%; min-height: 3.5rem; font-size: 1.1rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--signal); }

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.btn:hover .icon { transform: translateX(3px); }

/* Header */

.site-header { background: var(--signal); }

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.2rem, 4.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -.03em;
  text-decoration: none;
}

.logo-mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .6rem;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 10h14v3h-5.5v10h-3V13H9z' fill='%23ffce1f'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.nav { display: none; margin-left: auto; gap: 1.75rem; }

.nav a {
  padding: .4rem 0;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .25s var(--ease);
}
.nav a:hover { background-size: 100% 3px; }

.bar > .btn { margin-left: auto; }

@media (min-width: 720px) {
  .bar { gap: 2rem; }
  .nav { display: flex; }
  .bar > .btn { margin-left: 0; }
}

/* Hero: headline, order form, Dubai skyline */

.hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--signal);
}

.hero-grid { display: grid; gap: 2.5rem; }

.hero-copy, .order { min-width: 0; }
.order { max-width: 34rem; }

.lead {
  max-width: 30rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Skyline (1600x560 artwork, so its height is 35% of its width).
   Narrow screens: full bleed between the text and the form.
   Wide screens: behind the hero, pinned to the bottom of the window until the form ends,
   and never taller than the space left under the text in the first viewport. */
.skyline {
  display: block;
  width: calc(100% + 2.5rem);
  height: auto;
  margin-inline: -1.25rem;
  pointer-events: none;
}

@media (min-width: 1060px) {
  .hero { padding-bottom: 0; }
  .hero-grid {
    --sky-h: max(14rem, min(calc(min(100vw - 2.5rem, 72rem) * .35), calc(100vh - 27rem)));
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 4rem;
    align-items: start;
    min-height: calc(var(--sky-h) + 20rem);
  }
  .hero-copy { grid-area: 1 / 1; z-index: 1; }
  .order { grid-area: 1 / 2; z-index: 1; margin-bottom: 4.5rem; }
  .skyline {
    grid-area: 1 / 1 / 2 / -1;
    align-self: end;
    position: sticky;
    bottom: 0;
    width: 100%;
    height: var(--sky-h);
    margin: 0;
    object-fit: contain;
    object-position: 50% 100%;
  }
}

/* Order form card */

#order { scroll-margin-top: 1rem; }

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 1.5rem 2.5rem -1.25rem rgba(16, 17, 20, .55);
}

.card-title {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  line-height: 1.05;
}

.group { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }

.group legend {
  padding: 0;
  margin-bottom: .9rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

@media (min-width: 480px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field label { font-size: .95rem; font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); }

.control {
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem .85rem;
  border: 2px solid var(--ink);
  border-radius: .6rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  transition: background-color .15s ease-out;
}
.control::placeholder { color: #6b6e76; opacity: 1; }
.control:hover, .control:focus-visible { background-color: #fffbe8; }
.control:focus-visible { outline-offset: 2px; }
.control[aria-invalid="true"] { border-color: var(--danger); }
.control:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px #fffbe8 inset;
}

select.control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101114' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .85rem center / 1rem no-repeat;
}
select.control:hover, select.control:focus-visible { background-color: #fffbe8; }

textarea.control { min-height: 5.5rem; resize: vertical; }

input[type="date"], input[type="time"] { text-align: left; }
.control::-webkit-date-and-time-value { text-align: left; }

.error { color: var(--danger); font-size: .9rem; font-weight: 600; }

.submit { display: grid; gap: .75rem; }
.fineprint { font-size: .85rem; color: var(--muted); text-align: center; }

/* Preview confirmation */

.done { display: grid; gap: 1.1rem; justify-items: start; }
.done:focus { outline: none; }
.done .card-title { margin-bottom: 0; }

.tag {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-size: .8rem;
  font-weight: 800;
}

.done-text { max-width: 36ch; color: var(--muted); }

.recap { display: grid; width: 100%; }
.recap > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.recap dt { color: var(--muted); font-weight: 600; }
.recap dd { font-weight: 700; overflow-wrap: anywhere; }

/* Road divider */

.road { position: relative; height: 1.75rem; background: var(--ink); }
.road::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 2.25rem, transparent 2.25rem 4.5rem);
}

/* How it works: a route with three stops */

.how { padding: clamp(4rem, 9vw, 7rem) 0; }
.how h2 { max-width: 20ch; }

.route {
  display: grid;
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}

.stop { position: relative; padding-left: 4.5rem; counter-increment: stop; }

.stop::before {
  content: counter(stop);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  font-size: 1.25rem;
  font-weight: 900;
}
.stop:last-child::before { background: var(--ink); color: var(--signal); }

.stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: -2rem;
  left: calc(1.5rem - 2px);
  width: 4px;
  background: var(--ink);
}

.stop h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stop p { max-width: 34ch; margin-top: .4rem; color: var(--muted); }

@media (min-width: 860px) {
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .stop { padding: 4.5rem 0 0; }
  .stop:not(:last-child)::after {
    top: calc(1.5rem - 2px);
    right: -2.5rem;
    bottom: auto;
    left: 3rem;
    width: auto;
    height: 4px;
  }
}

/* Where we go */

.where { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--ink); color: #fff; }

.places { margin-top: 2.5rem; border-top: 1px solid var(--line-on-ink); }
.places > div {
  display: grid;
  gap: .5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-on-ink);
}
.places dt {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--signal);
}
.places dd { max-width: 34ch; color: var(--muted-on-ink); }

@media (min-width: 860px) {
  .places > div {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }
}

/* Closing call to action */

.close { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--signal); }
.close-grid { display: grid; gap: 1.75rem; justify-items: start; }

@media (min-width: 720px) {
  .close-grid { grid-template-columns: 1fr auto; align-items: center; }
}

/* Footer */

.site-footer {
  padding: 1.75rem 0;
  background: var(--ink);
  color: var(--muted-on-ink);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }

/* 404 */

.notfound { padding: clamp(3rem, 10vw, 7rem) 0; background: var(--signal); }
.notfound .lead { margin: 1.5rem 0 2rem; }
