:root {
  color: #162033;
  background: #f7fbff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: #f7fbff;
  color: #162033;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(42px, 11vw, 86px);
  font-weight: 650;
  line-height: 0.95;
  margin: 0;
}

h2,
p {
  margin: 0;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}

.travel-gate {
  min-height: 100vh;
  min-height: 100dvh;
}

.travel-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.97) 0%, rgba(247, 251, 255, 0.8) 40%, rgba(247, 251, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(196, 226, 255, 0.36)),
    url("/assets/travel-hero-bg.jpeg") center / cover no-repeat;
  display: flex;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding:
    calc(54px + env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    calc(56px + env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  position: relative;
}

.travel-hero::after {
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, transparent 66%, rgba(247, 251, 255, 0.94));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.travel-copy {
  color: #122033;
  display: grid;
  gap: 20px;
  width: min(100%, 650px);
}

.kicker,
.notes span,
.panel-kicker {
  border: 1px solid rgba(106, 137, 176, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #55708e;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  width: fit-content;
}

.lead {
  color: #52687f;
  font-size: clamp(18px, 3.8vw, 25px);
  line-height: 1.5;
  max-width: 560px;
}

.notes {
  color: #5f7892;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notes span {
  padding: 8px 12px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.plane-button {
  animation: plane-float 7.5s ease-in-out infinite;
  background: transparent;
  bottom: clamp(96px, 19vh, 240px);
  filter: drop-shadow(0 18px 26px rgba(55, 86, 118, 0.18));
  opacity: 0.84;
  padding: 0;
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  width: clamp(122px, 15vw, 210px);
}

.plane-button img {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  width: 100%;
}

.plane-button-pressed {
  opacity: 0.98;
  transform: translateY(-1px) scale(0.985);
}

.login-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(102, 132, 170, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(51, 85, 118, 0.11);
  display: grid;
  gap: 14px;
  max-width: min(390px, calc(100% - 36px));
  padding: 20px;
  position: absolute;
  right: clamp(20px, 7vw, 104px);
  top: clamp(56px, 14vh, 130px);
}

.login-panel[hidden] {
  display: none;
}

.login-panel h2 {
  font-size: 22px;
  line-height: 1.2;
}

.login-panel button,
#setup-button,
#add-button,
#logout-button {
  background: #162033;
  border-radius: 8px;
  color: #f7fbff;
  display: block;
  font-weight: 650;
  padding: 12px 14px;
  width: 100%;
}

#message,
li {
  color: #5f7892;
  line-height: 1.5;
}

ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

body[data-page="setup"],
body[data-page="account"] {
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(189, 223, 255, 0.72), transparent 330px),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  display: flex;
  justify-content: center;
}

body[data-page="setup"] main,
body[data-page="account"] main {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(102, 132, 170, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(51, 85, 118, 0.11);
  display: grid;
  gap: 14px;
  max-width: 390px;
  padding: 22px;
  width: calc(100% - 36px);
}

body[data-page="setup"] h1,
body[data-page="account"] h1 {
  font-size: 28px;
  line-height: 1.1;
}

@keyframes plane-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(-9px, -11px, 0) rotate(0deg);
  }
}

@media (max-width: 720px) {
  .travel-hero {
    align-items: flex-start;
    padding-top: calc(74px + env(safe-area-inset-top));
  }

  .travel-copy {
    gap: 16px;
    max-width: 92%;
  }

  .plane-button {
    bottom: clamp(92px, 20vh, 170px);
    right: clamp(18px, 7vw, 42px);
    width: clamp(112px, 34vw, 152px);
  }

  .login-panel {
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 18px;
    right: 18px;
    top: auto;
  }
}
