/* ==========================================================================
   FlyConnect - artwork, sliders and motion
   All imagery here is exported from the Figma file; the crops sit on the
   same backdrop colours the CSS paints, so they drop in seamlessly.
   ========================================================================== */

/* ------------------------------------------------------------- hero art -- */
/* Figma node 184:1095 sits flush to the container's right edge (x 1051 +
   588.5 = 1639.5), not centred in the column. */
.fc-hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* One device rather than the old three-phone composite — see fc_hero_phone().
   The composite was 589 wide; a single 652x1359 capture at 300 comes out 625
   tall, so the hero keeps roughly the height it had. */
.fc-herophone {
  position: relative;
  width: 100%;
  max-width: 300px;
  will-change: transform;
  animation: fc-float 7s ease-in-out infinite;
}

/* A soft halo, so one narrow device does not read as an empty column. Behind
   the phone, and never in the way of a pointer. */
.fc-herophone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.2),
    transparent 72%
  );
  pointer-events: none;
}

.fc-herophone img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.34));
}

@keyframes fc-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-0.4deg);
  }
}

/* --------------------------------------------------- blue artwork panel -- */
/* The phone is oversized and cropped by the panel, exactly as masked in the
   comp. Percentages come straight from the Figma node coordinates. */
.fc-artpanel {
  position: relative;
  background: var(--fc-blue);
  border-radius: var(--fc-radius-lg);
  aspect-ratio: 560 / 575;
  overflow: hidden;
}

.fc-artpanel__phone {
  position: absolute;
  display: block;
  height: auto;
  /* about: node 211:1397 at x 131.97 / y -158, 296x645 inside a 560x575 panel */
  left: 23.6%;
  top: -27.5%;
  width: 52.9%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.26));
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
  transform: translateY(14px);
}

.fc-artpanel.is-visible .fc-artpanel__phone {
  transform: translateY(0);
}

/* faq: node 179:131 at x 124 / y 98, 339x708 inside a 588x641 panel */
.fc-artpanel--faq {
  aspect-ratio: 588 / 641;
}

.fc-artpanel--faq .fc-artpanel__phone {
  left: 21.1%;
  top: 15.3%;
  width: 57.7%;
}


/* -------------------------------------------- survey panel photographic -- */
.fc-survey__panel {
  background-image: url("../img/survey-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ------------------------------------------------------------ ask panel -- */
/* Sits where the FAQ art panel used to. Content-height rather than the
   aspect-ratio the artwork needed, and the FAQ grid centres it. */
.fc-askpanel {
  background: var(--fc-blue);
  border-radius: var(--fc-radius-lg);
  color: #fff;
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.fc-askpanel__title {
  color: #fff;
  margin: 0;
}

.fc-askpanel__copy {
  margin: 0;
  max-width: 42ch;
  color: var(--fc-body-light);
}

.fc-askpanel__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc-askpanel__links li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-askpanel__links i {
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}

.fc-askpanel__links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

.fc-askpanel__links a:hover,
.fc-askpanel__links a:focus-visible {
  border-bottom-color: #fff;
}

.fc-askpanel__cta {
  margin-top: 6px;
}

/* -------------------------------------------------- final CTA slideshow -- */
/* The comp's frame is literally named "Slide-Show": two staggered columns
   masked by the frame, scrolling in opposite directions. The columns used to
   carry app screens; they now carry the eight features. */
.fc-slides {
  position: relative;
  aspect-ratio: 556 / 548;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

/* The trailing padding matches the gap, so the stack's exact half-height is
   one full set of screens — translating -50% loops without a seam. */
.fc-slides__col {
  position: absolute;
  width: 41%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 28px;
  will-change: transform;
}

.fc-slides__col--a {
  left: 5.5%;
  top: -42.2%; /* node 179:185 offset in the comp */
  animation: fc-slide-up 34s linear infinite;
}

/* 41s against column A's 34s. With both columns carrying the same eight
   features, matched durations would park the same card beside itself on a
   fixed cycle; unequal ones keep the pairing drifting. */
.fc-slides__col--b {
  left: 53.5%;
  top: -8.6%; /* node 179:186 offset in the comp */
  animation: fc-slide-down 41s linear infinite;
}

/* Cards are shorter than the phone frames were, so each column prints all
   eight features twice rather than three screens twice — otherwise half the
   stack is shorter than the mask and a gap tracks through on every loop. */
.fc-slidecard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
  border-radius: var(--fc-radius);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
}

.fc-slidecard i {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--fc-blue);
}

.fc-slidecard span {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fc-ink);
}

@keyframes fc-slide-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes fc-slide-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

/* ----------------------------------------------- testimonial carousel --- */
.fc-carousel {
  position: relative;
  margin-top: 60px;
}

.fc-carousel__viewport {
  overflow: hidden;
  padding: 6px 6px 10px;
  margin: -6px -6px -10px;
}

.fc-carousel__track {
  display: flex;
  gap: 30px;
  transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
  will-change: transform;
}

.fc-carousel__slide {
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
}

.fc-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.fc-carousel__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--fc-border-strong);
  background: #fff;
  color: var(--fc-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}

.fc-carousel__btn:hover:not(:disabled) {
  background: var(--fc-blue);
  border-color: var(--fc-blue);
  color: #fff;
}

.fc-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.fc-carousel__dots {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-carousel__dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--fc-border-strong);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* The dot stays small, but its hit area is padded out to a comfortable
   touch target (WCAG 2.5.8 asks for at least 24x24 CSS px). */
.fc-carousel__dots button::after {
  content: "";
  position: absolute;
  inset: -18px -8px;
}

.fc-carousel__dots button[aria-current="true"] {
  width: 28px;
  background: var(--fc-blue);
}

/* ------------------------------------------------------ motion opt-out --- */
@media (prefers-reduced-motion: reduce) {
  .fc-herophone,
  .fc-slides__col--a,
  .fc-slides__col--b {
    animation: none !important;
  }

  .fc-carousel__track {
    transition: none;
  }

  .fc-artpanel__phone {
    transform: none;
    transition: none;
  }
}

/* ========================================================== contact form == */
.fc-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 515px) minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.fc-contact__title {
  margin-top: 30px;
}

.fc-contact__copy {
  margin-top: 25px;
}

.fc-contact__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.fc-contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--fc-body);
}

.fc-contact__list i {
  color: var(--fc-blue);
  font-size: 1rem;
  margin-top: 4px;
  flex: 0 0 auto;
}

.fc-contact__list a:hover {
  color: var(--fc-blue);
}

.fc-contact__card {
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  box-shadow: var(--fc-shadow);
  padding: 40px;
}

/* ---------------------------------------------------------- form fields -- */
.fc-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fc-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.fc-field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fc-ink);
  margin-bottom: 9px;
}

.fc-field label span[aria-hidden] {
  color: var(--fc-blue);
}

.fc-field__opt {
  font-weight: 400;
  color: var(--fc-body);
}

.fc-field input,
.fc-field select,
.fc-field textarea {
  width: 100%;
  height: 56px;
  border: 1px solid var(--fc-border-strong);
  border-radius: 10px;
  background: #fff;
  padding: 0 18px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fc-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-field textarea {
  height: auto;
  min-height: 138px;
  padding: 16px 18px;
  line-height: 1.6;
  resize: vertical;
}

.fc-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  /* chevron drawn inline so there is no extra network request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b6670' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.fc-field input::placeholder,
.fc-field textarea::placeholder {
  color: #9aa4ae;
}

.fc-field input:focus,
.fc-field select:focus,
.fc-field textarea:focus {
  border-color: var(--fc-blue);
  box-shadow: 0 0 0 3px rgba(0, 132, 189, 0.14);
}

/* Only flag a bad value once the visitor has actually touched the field. */
.fc-field input.is-invalid,
.fc-field textarea.is-invalid {
  border-color: #d2453c;
  box-shadow: 0 0 0 3px rgba(210, 69, 60, 0.12);
}

.fc-field__error {
  display: none;
  margin: 7px 0 0;
  font-size: 0.8125rem;
  color: #c0392b;
}

.fc-field__error.is-shown {
  display: block;
}

.fc-form .fc-btn {
  width: 100%;
  margin-top: 4px;
}

.fc-alert {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #97271f;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ======================================================== thank-you page == */
.fc-thanks {
  padding: 190px 0 100px;
  min-height: 68vh;
  display: flex;
  align-items: center;
}

.fc-thanks__card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
  padding: 60px 50px;
}

.fc-thanks__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--fc-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 132, 189, 0.32);
}

.fc-thanks__title {
  margin-top: 26px;
}

.fc-thanks__body {
  margin: 22px auto 0;
  max-width: 520px;
}

.fc-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

.fc-btn--quiet {
  background: #fff;
  color: var(--fc-ink);
  border: 1px solid var(--fc-border-strong);
}

.fc-btn--quiet:hover {
  background: var(--fc-bg);
  color: var(--fc-ink);
  border-color: var(--fc-blue);
}

.fc-thanks__meta {
  margin: 34px 0 0;
  font-size: 0.9375rem;
  color: var(--fc-body);
}

.fc-thanks__meta a {
  color: var(--fc-blue);
  font-weight: 600;
}

/* ============================================================ footer QR == */
.fc-footer__qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-footer__qr img {
  display: block;
  width: 120px;
  height: 120px;
  /* a QR must stay crisp — never smooth it */
  image-rendering: pixelated;
}

.fc-footer__qr span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fc-ink);
  letter-spacing: -0.01em;
}

.fc-footer__qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  color: var(--fc-ink);
}

/* ========================================================== /get page === */
.fc-hero--get .fc-hero__grid {
  padding-bottom: 90px;
}

/* Scanning a QR on the device you are holding makes no sense, so this block
   is desktop-only (hidden under 768px in responsive.css). */
.fc-get__scan {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 16px 22px 16px 16px;
  max-width: 480px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.fc-get__scan img {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  image-rendering: pixelated;
}

.fc-get__scan p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-body-light);
}

.fc-get__scan strong {
  display: block;
  color: #fff;
}

.fc-get__points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fc-get__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fc-body-light);
  font-size: 1rem;
}

.fc-get__points i {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.fc-get__cta {
  margin-top: 60px;
  padding: 44px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-sm);
}

.fc-get__cta .fc-hero__stores {
  justify-content: center;
  margin-top: 26px;
}

.fc-get__back {
  margin: 26px 0 0;
  font-size: 0.9375rem;
}

.fc-get__back a {
  color: var(--fc-body);
}

.fc-get__back a:hover {
  color: var(--fc-blue);
}
