* { box-sizing: border-box; }
body { margin: 0; font-family: "Arial Light", Arial, Helvetica, sans-serif; font-weight: 300; color: #666666; background: #ffffff; line-height: 1.6; font-size: 15px; }
header { background: linear-gradient(#003a9b, #00a8ff); padding: 24px 16px; text-align: center; }
header .app-icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin: 0 auto 8px; }
header a { color: #ffffff; text-decoration: none; font-size: 22px; }
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }
h1 { font-size: 20px; font-weight: normal; margin-top: 0; }
h2 { font-size: 16px; font-weight: normal; margin-top: 28px; color: rgb(68, 153, 237); }
a { color: #02B0FE; }
.badge { display: inline-block; background: #02B0FE; color: #ffffff; text-decoration: none; padding: 10px 20px; border-radius: 8px; }
.confirm { background: #fff3c4; padding: 0 4px; }
footer { border-top: 4px solid #02B0FE; text-align: center; padding: 16px; font-size: 13px; }
footer a { margin: 0 8px; }
footer .footer-credit { white-space: nowrap; }
.features { list-style: none; padding: 0; margin: 20px 0 28px; }
.features li { padding: 8px 0 8px 18px; border-bottom: 1px solid #eeeeee; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #02B0FE; }

/* Homepage only. Other pages keep the styles above. */
body.home {
  background: #f3f8fd;
}
body.home main {
  max-width: none;
  margin: 0;
  padding: 0;
}
body.home footer {
  background: #ffffff;
}

body.home .hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  padding: 32px 20px 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% -10%, rgba(70, 228, 255, 0.32), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 90%, rgba(0, 168, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #003a9b 0%, #0054bf 48%, #0086de 100%);
}
body.home .hero-art,
body.subpage .hero-art {
  position: absolute;
  inset: 0 0 48px 0;
  pointer-events: none;
  z-index: 0;
}
body.home .hero-sky,
body.subpage .hero-sky {
  width: 100%;
  height: 100%;
  display: block;
}
body.home .flight-path,
body.subpage .flight-path {
  fill: none;
  stroke: #46E4FF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 11;
  animation: home-dash 16s linear infinite;
}
body.home .flight-dot,
body.subpage .flight-dot {
  fill: #46E4FF;
}
body.home .sky-plane,
body.subpage .sky-plane {
  fill: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0, 20, 80, 0.25));
}
body.home .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0 28px;
  animation: home-rise 0.7s ease both;
}
body.home .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
}
body.home .app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: block;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(0, 20, 70, 0.32);
}
body.home .brand span {
  color: #ffffff;
  letter-spacing: 0.04em;
}
body.home .hero h1 {
  margin: 0 auto 26px;
  color: #ffffff;
  font-size: clamp(34px, 5vw + 14px, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 20, 80, 0.22);
  text-wrap: balance;
}
body.home .hero h1 span {
  color: #46E4FF;
  display: block;
}
body.home .hero-wave,
body.subpage .hero-wave {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin: 0 -20px;
  width: calc(100% + 40px);
}

body.home .badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
body.home .badge img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
body.home .brand:focus-visible,
body.home .badge:focus-visible,
body.subpage .brand:focus-visible {
  outline: 3px solid #46E4FF;
  outline-offset: 3px;
}

body.home .features-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}
body.home .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
body.home .card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(2, 176, 254, 0.1);
  box-shadow: 0 6px 20px rgba(0, 58, 155, 0.06);
  animation: home-rise 0.55s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.home .card:nth-child(1) { animation-delay: 0.05s; }
body.home .card:nth-child(2) { animation-delay: 0.1s; }
body.home .card:nth-child(3) { animation-delay: 0.15s; }
body.home .card:nth-child(4) { animation-delay: 0.2s; }
body.home .card:nth-child(5) { animation-delay: 0.25s; }
body.home .card:nth-child(6) { animation-delay: 0.3s; }
body.home .card:nth-child(7) { animation-delay: 0.35s; }
body.home .card:nth-child(8) { animation-delay: 0.4s; }
body.home .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #02B0FE;
}
body.home .icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
body.home .card:nth-child(1) .icon { background: #003a9b; }
body.home .card:nth-child(2) .icon { background: #004db3; }
body.home .card:nth-child(3) .icon { background: #02B0FE; }
body.home .card:nth-child(4) .icon { background: #0076e0; }
body.home .card:nth-child(5) .icon { background: #0086de; }
body.home .card:nth-child(6) .icon { background: #0054bf; }
body.home .card:nth-child(7) .icon { background: linear-gradient(135deg, #0177c8, #02B0FE); }
body.home .card:nth-child(8) .icon { background: #003a9b; }
body.home .card h2 {
  color: #003a9b;
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 6px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
body.home .card p {
  margin: 0;
  color: #666666;
  font-size: 14.5px;
  line-height: 1.45;
}

body.home .cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 20px 56px;
  background: linear-gradient(160deg, #003a9b 0%, #004fc0 100%);
}
body.home .cta-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
body.home .cta-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
body.home .cta-path {
  stroke-width: 2.5;
}
body.home .cta h2 {
  position: relative;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 16, 60, 0.25);
}
body.home .cta .badge {
  position: relative;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes home-dash {
  to { stroke-dashoffset: -190; }
}

@media (hover: hover) and (pointer: fine) {
  body.home .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 58, 155, 0.14);
  }
  body.home .badge:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 16, 60, 0.28));
  }
}


/* Narrow screens use a portrait flight path so the airplane stays on-canvas. */
body.home .hero-sky-mobile,
body.subpage .hero-sky-mobile {
  display: none;
}

/* Mobile only: icon to the left of title + description.
   Scoped below the 640px 2-column breakpoint so tablet/desktop stay stacked. */
@media (max-width: 639px) {
  body.home .hero-sky-desktop,
  body.subpage .hero-sky-desktop {
    display: none;
  }
  body.home .hero-sky-mobile,
  body.subpage .hero-sky-mobile {
    display: block;
  }
  body.home .feature-grid {
    gap: 12px;
  }
  body.home .card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 3px;
    align-items: start;
    padding: 14px 16px;
  }
  body.home .icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 1px;
  }
  body.home .card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding-top: 2px;
  }
  body.home .card p {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 640px) {
  body.home .hero {
    padding-top: 40px;
  }
  body.home .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }
  body.home .hero-wave {
    height: 56px;
  }
  body.home .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  body.home .card {
    padding: 22px 22px 20px;
  }
  body.home .cta h2 {
    font-size: 32px;
  }
  body.home .cta {
    padding: 56px 20px 64px;
  }
}

@media (min-width: 1024px) {
  body.home .hero {
    padding-top: 52px;
  }
  body.home .hero-inner {
    padding: 12px 0 40px;
  }
  body.home .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }
  body.home .hero-wave {
    height: 72px;
  }
  body.home .features-wrap {
    padding: 12px 24px 64px;
  }
  body.home .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  body.home .cta h2 {
    font-size: 36px;
  }
}


/* Compact header for support, privacy, terms, and 404. */
body.subpage .hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  padding: 16px 20px 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% -10%, rgba(70, 228, 255, 0.32), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 90%, rgba(0, 168, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #003a9b 0%, #0054bf 48%, #0086de 100%);
}
body.subpage .hero-art {
  inset: 0 0 28px 0;
}
body.subpage .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 4px 0 14px;
  animation: home-rise 0.7s ease both;
}
body.subpage .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
}
body.subpage .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 20, 70, 0.28);
}
body.subpage .brand span {
  color: #ffffff;
  letter-spacing: 0.04em;
}
body.subpage .hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw + 12px, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 20, 80, 0.22);
}
body.subpage .hero-wave {
  height: 32px;
  margin: 0 -20px;
  width: calc(100% + 40px);
}
body.subpage .hero-wave path {
  fill: #ffffff;
}
body.subpage .flight-path {
  stroke-width: 2.5;
}

@media (min-width: 640px) {
  body.subpage .hero {
    padding-top: 20px;
  }
  body.subpage .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  body.subpage .brand {
    font-size: 20px;
    gap: 12px;
    margin-bottom: 10px;
  }
  body.subpage .hero-inner {
    padding: 6px 0 18px;
  }
  body.subpage .hero-wave {
    height: 40px;
  }
  body.subpage .hero-art {
    inset: 0 0 36px 0;
  }
}

@media (min-width: 1024px) {
  body.subpage .hero {
    padding-top: 24px;
  }
  body.subpage .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  body.subpage .hero-inner {
    padding: 8px 0 22px;
  }
  body.subpage .hero-wave {
    height: 48px;
  }
  body.subpage .hero-art {
    inset: 0 0 40px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hero-inner,
  body.home .card,
  body.home .flight-path,
  body.home .badge,
  body.subpage .hero-inner,
  body.subpage .flight-path {
    animation: none !important;
    transition: none !important;
  }
  body.home .card:hover,
  body.home .badge:hover {
    transform: none;
  }
}
