/* The homepage (index.ejs) only: the approved design from 09/2026 (Kaya hero with the plan box,
   vibes marquee, Bring Your Own Flight, How Kaya plans, founding partners, the app,
   footer). Self-contained: site.css is not loaded on this page. Live data comes from home.js. */
:root {
  color-scheme: light;
  --navy: #061c38;
  --navy2: #0a2d56;
  --navy3: #122f52;
  --mint: #3eddbf;
  --teal: #0e7c74;
  --blue: #1b55b3;
  --ground: #f4f7f6;
  --paper: #ffffff;
  --ink: #0b1b2b;
  --muted: #4a5d70;
  --line: #e6eef3;
  --soft: #c9d8e6;
  --soft2: #9fb4c8;
  --mintbg: #e3f7f3;
  --display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --gutter: clamp(16px, 5vw, 80px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(6, 28, 56, 0.55);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.btn-navy {
  background: var(--navy2);
  color: #fff;
}
.btn-mint {
  background: var(--mint);
  color: var(--navy);
}
.btn-white {
  background: #fff;
  color: var(--navy);
}

/* hero */
.hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(62, 221, 191, 0.16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  padding-block: 56px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hello {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(62, 221, 191, 0.12);
  border: 1px solid rgba(62, 221, 191, 0.35);
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--mint);
  overflow: hidden;
  position: relative;
  display: block;
}
.avatar img {
  position: absolute;
  width: 168%;
  height: auto;
  max-width: none;
  left: -42%;
  top: 2%;
}
.avatar.lg {
  width: 42px;
  height: 42px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 span {
  color: var(--mint);
}
.lede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--soft);
  max-width: 540px;
}
.left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ask {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}
.ask label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.ask textarea {
  border: 0;
  resize: none;
  font: 500 20px/1.45 var(--display);
  color: var(--ink);
  min-height: 62px;
  field-sizing: content;
  padding: 0;
  background: transparent;
  width: 100%;
}
.ask textarea::placeholder {
  color: var(--ink);
  opacity: 1;
}
.ask textarea:focus::placeholder {
  color: var(--muted);
}
.ask textarea:focus {
  outline: none;
}
.ask:focus-within {
  box-shadow: 0 0 0 3px var(--mint), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ask.drop {
  box-shadow: 0 0 0 3px var(--mint), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ask-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d5e1ea;
  background: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn.on {
  background: var(--mint);
  border-color: var(--mint);
}
.icon-btn[hidden] {
  display: none;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.quota {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  min-height: 20px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.2s;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.14);
}
.chip[aria-pressed='true'],
.chip.typing {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}

.stage {
  position: relative;
  height: 620px;
}
.routes {
  position: absolute;
  left: -40px;
  top: 70px;
  width: 600px;
  height: 520px;
  opacity: 0.6;
}
.route {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 2.4s ease forwards;
}
.route.r2 {
  animation-delay: 0.6s;
}
.route.r3 {
  animation-delay: 1.2s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
}
.pulse.p2 {
  animation-delay: 0.8s;
}
.pulse.p3 {
  animation-delay: 1.6s;
}
.pulse.p4 {
  animation-delay: 2.4s;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  offset-path: path('M70 200 Q150 120 230 300 Q300 120 400 170 Q520 250 470 410');
  offset-rotate: auto 45deg;
  animation: fly 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes fly {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  6%,
  94% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
.kaya {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 400px;
  max-width: none;
  height: auto;
  animation: fadein 1s ease 0.2s both, float 7s ease-in-out 1.2s infinite;
}
.bubble {
  position: absolute;
  right: 330px;
  top: 50px;
  background: #fff;
  color: var(--ink);
  border-radius: 20px 20px 4px 20px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  width: 210px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  animation: pop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 1.2s both;
}
.bubble span,
.hand {
  font-family: var(--hand);
  font-size: 27px;
  color: var(--teal);
  font-weight: 700;
}
.badge {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 14px 16px;
  width: 270px;
  animation: float 6s ease-in-out infinite;
}
.badge b {
  display: block;
  font-size: 15px;
}
.badge small {
  font-size: 13px;
}
/* Low on the left, stacked above the light badge: the plane's route crosses the middle of the
   stage, and a badge there hid it mid-flight. */
.badge.dark {
  left: 0;
  bottom: 124px;
  background: rgba(10, 45, 86, 0.94);
  border: 1px solid rgba(62, 221, 191, 0.35);
}
.badge.dark small {
  color: var(--soft2);
}
.badge.light {
  left: 30px;
  bottom: 36px;
  background: #fff;
  color: var(--ink);
  animation-delay: 1.5s;
}
.badge.light small {
  color: var(--muted);
}

/* marquee */
.marquee {
  background: var(--navy2);
  padding-block: 24px;
  overflow: hidden;
}
.track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 40s linear infinite;
}
.track span {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.track i {
  color: var(--mint);
  font-style: normal;
  font-size: 22px;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* sections */
section.block {
  padding-block: clamp(72px, 9vw, 120px);
}
section[id] {
  scroll-margin-top: 80px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
h2.big {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2.big span {
  color: var(--blue);
}
.body {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 560px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.link {
  font-weight: 700;
  color: var(--navy2);
  padding: 15px 8px;
}

.flight {
  background: #fff;
}
.pass-stage {
  position: relative;
  min-height: 470px;
}
.pass {
  position: absolute;
  left: 0;
  top: 40px;
  width: min(460px, 100%);
  background: var(--navy2);
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 40px 70px -30px rgba(6, 28, 56, 0.6);
  transform: rotate(-2deg);
}
.pass .iata {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  line-height: 1;
}
.pass small {
  color: var(--soft2);
  font-size: 13px;
}
.pass-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}
.pass-meta small {
  display: block;
  font-size: 12px;
}
.addon {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 20px 40px -20px rgba(6, 28, 56, 0.35);
}
.addon b {
  display: block;
  font-size: 15px;
}
.addon small {
  color: var(--muted);
  font-size: 13px;
}
.addon .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic.i1 {
  background: #e3f7f3;
}
.ic.i2 {
  background: #e6eefb;
}
.ic.i3 {
  background: #fff1e6;
}
.a1 {
  right: 0;
  top: 0;
}
.a2 {
  right: 20px;
  top: 300px;
}
.a3 {
  left: 110px;
  bottom: 0;
}
.inview .pass {
  animation: passin 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.inview .addon {
  animation: pop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.inview .a1 {
  animation-delay: 0.6s;
}
.inview .a2 {
  animation-delay: 0.9s;
}
.inview .a3 {
  animation-delay: 1.2s;
}
@keyframes passin {
  from {
    opacity: 0.2;
    transform: translateX(-40px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: rotate(-2deg);
  }
}

.steps-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.bar {
  height: 6px;
  background: #dde7ee;
  border-radius: 999px;
  overflow: hidden;
  margin-block: 48px 28px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--teal);
  transform-origin: left;
  animation: fillbar 8s ease-in-out infinite;
}
@keyframes fillbar {
  0% {
    transform: scaleX(0);
  }
  70%,
  100% {
    transform: scaleX(1);
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.step {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step .n {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  background: var(--navy2);
  color: var(--mint);
  animation: stepon 8s ease-in-out infinite;
}
.step:nth-child(2) .n {
  animation-delay: 1.4s;
}
.step:nth-child(3) .n {
  animation-delay: 2.8s;
}
.step:nth-child(4) .n {
  animation-delay: 4.2s;
}
@keyframes stepon {
  0% {
    background: var(--ground);
    color: var(--navy2);
  }
  8%,
  100% {
    background: var(--navy2);
    color: var(--mint);
  }
}
.step h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}
.step p {
  margin: 0;
  color: var(--muted);
}

.partner {
  background: var(--mintbg);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 72px);
}
.partner h2.big {
  color: var(--ink);
}
.partner .body {
  color: #2c4257;
}
.perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.perk {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.perk b {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--navy2);
  min-width: 92px;
  font-variant-numeric: tabular-nums;
}
.perk span {
  color: #2c4257;
}

.app {
  background: var(--navy);
  color: #fff;
}
.app h2.big {
  color: #fff;
}
.app .hand {
  font-size: clamp(46px, 5.4vw, 72px);
  color: var(--mint);
  letter-spacing: 0;
}
.app .body {
  color: var(--soft);
}
.app .free {
  color: var(--soft2);
}
.phone {
  width: 300px;
  max-width: 100%;
  height: 540px;
  border-radius: 48px;
  background: var(--navy2);
  border: 10px solid var(--navy3);
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
}
.phone .who {
  gap: 8px;
}
.phone .who b {
  font-size: 15px;
}
.msg {
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.msg.me {
  align-self: flex-end;
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
  border-radius: 16px 16px 4px 16px;
}
.msg.k {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px 16px 16px 16px;
}
.mini {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--teal);
}
.mini em.low {
  color: var(--blue);
}
.mini b {
  font-size: 14px;
}
.mini small {
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  z-index: 80;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
.load {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.d1 {
  animation-delay: 0.1s;
}
.d2 {
  animation-delay: 0.2s;
}
.d3 {
  animation-delay: 0.3s;
}
.d4 {
  animation-delay: 0.4s;
}
/* Content below the first screen waits just out of place (never dimmed, so it always reads at full
   contrast) and fades up from 35% as it scrolls into view. */
.reveal.pre {
  transform: translateY(34px);
}
.reveal.inview {
  animation: revealin 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes revealin {
  from {
    opacity: 0.35;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stage {
    height: 460px;
    order: -1;
    margin-bottom: -120px;
  }
  .routes {
    left: 0;
    top: 0;
    transform: scale(0.8);
    transform-origin: top left;
  }
  .kaya {
    width: 260px;
    right: 0;
    bottom: 60px;
  }
  .bubble {
    right: 230px;
    top: 60px;
    width: 180px;
    font-size: 15px;
  }
  .badge {
    display: none;
  }
}
@media (max-width: 800px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .stage {
    height: 330px;
    margin-bottom: -90px;
  }
  .routes {
    transform: scale(0.55);
  }
  .kaya {
    width: 190px;
    bottom: 40px;
  }
  .bubble {
    right: 170px;
    top: 40px;
    width: 150px;
    padding: 10px 12px;
  }
  .bubble span {
    font-size: 22px;
  }
  .pass-stage {
    min-height: 560px;
  }
  .pass {
    position: relative;
    top: 0;
  }
  .addon {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 12px;
  }
  .pass-stage {
    display: flex;
    flex-direction: column;
  }
  .ask textarea {
    font-size: 18px;
    min-height: 80px;
  }
  .hello {
    font-size: 11px;
    letter-spacing: 1px;
  }
}
/* the handoff to /plan (home.js): a quick fade and lift, never under reduced motion */
body.handoff main,
body.handoff .ivc-foot {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .route {
    stroke-dashoffset: 0;
  }
  .plane {
    display: none;
  }
  .reveal.pre {
    transform: none;
    opacity: 1;
  }
}
