:root {
  --story-blue: #0072ff;
  --story-pink: #ed45bd;
  --story-orange: #ff6c33;
  --story-ink: #111216;
  --story-muted: #606773;
  --story-line: #e5e7eb;
}

.ainy-story {
  overflow: clip;
  background: #fff;
  color: var(--story-ink);
  font-feature-settings: "kern" 1, "palt" 1;
  font-kerning: normal;
}

.home-route .app-header {
  display: none;
}

.header-inner {
  width: min(calc(100% - 64px), 1240px);
  min-height: 64px;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--story-line);
  border-radius: 10px;
}

.header-journey-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-journey-nav a,
.header-download {
  color: #252930;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.header-journey-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-journey-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--story-blue);
  scale: 0 1;
  transform-origin: right center;
  transition: scale 180ms ease;
}

.header-journey-nav a:hover::after,
.header-journey-nav a:focus-visible::after {
  scale: 1 1;
  transform-origin: left center;
}

.header-download {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--story-blue);
  color: #fff;
}

.header-download.is-disabled { cursor: default; }

.app-store-download {
  min-height: 40px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  line-height: 0;
  text-decoration: none;
}

.app-store-download.is-disabled { cursor: default; }
.app-store-download:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(0, 114, 255, 0.28);
  outline-offset: 5px;
}

.app-store-badge {
  width: auto;
  height: 48px;
}

.landing-hero {
  overflow: clip;
  border-bottom: 1px solid var(--story-line);
  background: #fff;
}

.hero-shell {
  width: min(calc(100% - 64px), 1320px);
  min-height: min(690px, 100svh);
  margin: 0 auto;
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: 26px;
}

.hero-copy {
  position: relative;
  z-index: 8;
  width: auto;
  margin: 0;
  padding: 0 0 18px;
  text-align: left;
}

.hero-copy h1,
.feature-copy h3,
.campaign-download h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-break: strict;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy h1 {
  font-size: clamp(52px, 4.6vw, 68px);
  line-height: 1.17;
}

.hero-copy h1 em {
  color: var(--story-blue);
  font-style: normal;
}

.hero-mobile-break { display: none; }

.hero-copy p {
  margin: 22px 0 0;
  color: #444a54;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.story-download { margin-top: 26px; }

.hero-visual {
  position: relative;
  min-height: 590px;
  isolation: isolate;
}

.hero-route {
  position: absolute;
  z-index: 1;
  top: 30%;
  right: -26%;
  width: 123%;
  max-width: none;
  transform: rotate(-9deg);
}

.hero-map {
  position: absolute;
  z-index: 3;
  top: -14%;
  right: -8%;
  width: auto;
  height: 130%;
  max-height: none;
  object-fit: contain;
}

.hero-device {
  position: absolute;
  z-index: 6;
  top: 14%;
  left: 4%;
  width: min(33%, 240px);
  height: auto;
}

.product-phone > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.experience-section { background: #fff; }

.experience-grid {
  width: min(calc(100% - 64px), 1180px);
  margin: 0 auto;
  border-top: 1px solid var(--story-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-grid-secondary { border-bottom: 1px solid var(--story-line); }

.feature {
  position: relative;
  min-width: 0;
  min-height: 680px;
  padding: 54px 44px 0;
  overflow: hidden;
}

.feature:nth-child(2) { border-left: 1px solid var(--story-line); }

.feature-copy {
  position: relative;
  z-index: 10;
}

.feature-copy h3 {
  font-size: clamp(31px, 2.7vw, 40px);
  line-height: 1.34;
}

.feature-visual {
  position: absolute;
  inset: 152px 20px 0;
  isolation: isolate;
}

.product-phone {
  overflow: hidden;
  border: 6px solid #111216;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 29, 42, 0.06);
}

.product-phone-island::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 11px;
  left: 50%;
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #050506;
  transform: translateX(-50%);
}

.brand-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
}

.brand-orb-pink {
  top: 10%;
  left: 1%;
  width: 138px;
  height: 138px;
  background: #fde8f7;
}

.brand-orb-orange {
  right: 3%;
  bottom: 8%;
  width: 152px;
  height: 152px;
  background: #ffded0;
}

.brand-orb-blue {
  top: 1%;
  right: -10%;
  width: 214px;
  height: 214px;
  background: #eaf3ff;
}

.register-screen {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 5%;
  width: min(68%, 348px);
  height: auto;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
}

.register-screen img {
  width: 100%;
  height: auto;
}

.register-pin {
  position: absolute;
  z-index: 4;
  top: 43%;
  left: 6%;
  width: 74px;
  height: auto;
}

.history-map {
  position: absolute;
  z-index: 1;
  top: -8%;
  right: -4%;
  left: auto;
  width: 82%;
  object-fit: contain;
  transform: none;
}

.history-screen {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: 1%;
  width: min(58%, 300px);
  height: auto;
}

.seat-screen {
  position: absolute;
  z-index: 2;
  right: 10%;
  bottom: -4%;
  width: min(78%, 400px);
  max-height: 505px;
  object-fit: contain;
}

.video-moment {
  position: absolute;
  z-index: 1;
  top: 30%;
  left: 0;
  width: 66%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--story-blue);
  border-radius: 14px;
  object-fit: cover;
  transform: rotate(-3deg);
}

.video-screen {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 1%;
  width: min(51%, 258px);
  height: auto;
}

.campaign-download {
  position: relative;
  min-height: 500px;
  padding: 70px 24px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.closing-confetti {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.closing-lockup {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.closing-lockup > img {
  width: 62px;
  height: 62px;
  border: 1px solid var(--story-line);
  border-radius: 16px;
  object-fit: contain;
}

.campaign-download h2 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.24;
}

.campaign-download h2 span { color: var(--story-blue); }
.campaign-download .app-store-badge { height: 50px; }

.campaign-legal {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  min-height: 92px;
  margin: 52px auto 0;
  padding: 22px 0 18px;
  border-top: 1px solid var(--story-line);
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #747a84;
}

.campaign-legal nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  font-size: 10px;
  font-weight: 600;
}

.campaign-legal a { text-decoration: none; }
.campaign-legal a:hover { color: var(--story-blue); }

.campaign-legal p {
  margin: 0;
  color: #959aa3;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.ainy-story.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 440ms ease, transform 680ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.ainy-story.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .hero-shell {
    grid-template-columns: minmax(330px, 0.8fr) minmax(410px, 1.2fr);
    min-height: 680px;
    padding: 34px 0 24px;
  }

  .hero-copy h1 { font-size: clamp(44px, 5vw, 56px); }
  .hero-visual { min-height: 560px; }
  .hero-map { top: -18%; right: -5%; width: auto; height: 145%; }
  .hero-device { top: 16%; left: 5%; width: min(34%, 210px); height: auto; }
  .feature { min-height: 610px; padding: 46px 32px 0; }
  .feature-visual { inset: 140px 14px 0; }
  .register-screen { height: auto; }
  .history-screen,
  .video-screen { height: auto; }
  .seat-screen { max-height: 440px; }
}

@media (max-width: 767px) {
  .header-inner { width: calc(100% - 32px); }
  .brand img { width: 33px; height: 33px; border-radius: 9px; }
  .header-journey-nav { display: none; }
  .header-download { min-height: 38px; padding: 0 15px; font-size: 11px; }
  .hero-shell {
    width: 100%;
    min-height: 750px;
    padding: calc(38px + env(safe-area-inset-top)) 20px 12px;
    display: block;
  }

  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(36px, 10.4vw, 43px); line-height: 1.2; }
  .hero-mobile-break { display: initial; }
  .hero-copy p { margin-top: 14px; font-size: 12px; line-height: 1.7; }
  .story-download { margin-top: 19px; }
  .story-download .app-store-badge { height: 42px; }

  .hero-visual {
    min-height: 460px;
    margin: 8px -20px 0;
  }

  .hero-route {
    top: 32%;
    right: -39%;
    width: 150%;
    transform: rotate(-11deg);
  }

  .hero-map {
    top: -15%;
    right: 0;
    width: auto;
    height: 138%;
    max-height: none;
  }

  .hero-device {
    top: 16%;
    left: 8%;
    width: min(37%, 146px);
    height: auto;
  }

  .experience-grid {
    width: 100%;
    display: block;
  }

  .experience-grid-secondary { border-bottom: 0; }

  .feature {
    min-height: 590px;
    padding: 42px 20px 0;
    border-bottom: 1px solid var(--story-line);
  }

  .feature:nth-child(2) { border-left: 0; }
  .feature-copy h3 { font-size: clamp(29px, 8.1vw, 35px); line-height: 1.32; }
  .feature-visual { inset: 132px 12px 0; }

  .register-screen {
    right: 7%;
    width: min(70%, 290px);
    height: auto;
    border-radius: 30px 30px 0 0;
  }

  .register-pin { top: 38%; left: 5%; width: 64px; }
  .brand-orb-pink { top: 7%; width: 112px; height: 112px; }
  .history-map { top: -8%; right: 5%; left: auto; width: 84%; max-height: none; }
  .history-screen { top: 17%; left: 0; width: min(60%, 224px); height: auto; }
  .brand-orb-orange { right: 1%; width: 128px; height: 128px; }
  .seat-screen { right: 7%; width: min(82%, 360px); max-height: 460px; }
  .brand-orb-blue { width: 174px; height: 174px; }
  .video-moment { top: 28%; left: 0; width: 68%; }
  .video-screen { right: -1%; width: min(53%, 198px); height: auto; }

  .product-phone { border-width: 5px; border-radius: 32px; }
  .product-phone-island::before { top: 9px; height: 18px; }

  .campaign-download {
    min-height: 450px;
    padding: 44px 16px 0;
  }

  .closing-lockup { gap: 17px; }
  .closing-lockup > img { width: 52px; height: 52px; border-radius: 14px; }
  .campaign-download h2 { font-size: clamp(32px, 8.8vw, 39px); line-height: 1.27; }
  .campaign-download .app-store-badge { height: 47px; }
  .campaign-legal { margin-top: 36px; padding: 19px 0 16px; gap: 8px; }
  .campaign-legal nav { gap: 8px 18px; font-size: 9px; }
  .campaign-legal p { max-width: 340px; font-size: 7px; }
}

@media (max-width: 360px) {
  .hero-shell { min-height: 700px; padding-right: 16px; padding-left: 16px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-visual { min-height: 440px; margin-right: -16px; margin-left: -16px; }
  .feature { min-height: 560px; padding-right: 16px; padding-left: 16px; }
  .feature-copy h3 { font-size: 28px; }
  .register-screen { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ainy-story.is-enhanced [data-reveal],
  .ainy-story.is-enhanced [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-journey-nav a::after { transition: none; }
}
