/* One Two Run: the brand's midnight blue, orange, steel and cyan, slanted like the logo. */
@font-face { font-family: Inter; src: url('fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/InterTight-ExtraBold.ttf') format('truetype'); font-weight: 800 900; font-display: swap; }

:root {
  --night: #071a28;
  --midnight: #102d43;
  --panel: #0d2536;
  --line: rgba(201, 216, 227, .16);
  --steel: #c9d8e3;
  --ink: #eef4f8;
  --soft: #a9bdcb;
  --orange: #ff7800;
  --amber: #ffbf36;
  --cyan: #00d9ef;
  --display: 'Inter Tight', Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--night);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--cyan); text-underline-offset: 2px; }

a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; }

h2, h3 { font-style: italic; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.small { color: var(--soft); font-size: .86em; }

.lead { font-size: 1.12em; }

/* Home: the art runs behind the words on a wide screen, and over them on a phone. */

.hero { position: relative; overflow: hidden; background: var(--midnight); }

.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy .lead { margin: 0 0 22px; }

.hero-copy .small { margin: 16px 0 0; }

.hero h1 { margin: 0; }

.tagline {
  margin: 14px 0 12px;
  color: var(--amber);
  font: italic 800 clamp(1.3rem, 2.4vw, 1.75rem)/1.15 var(--display);
}

@media (min-width: 900px) {
  .hero { min-height: min(84vh, 860px); display: flex; align-items: center; }
  .hero-art { position: absolute; inset: 0; }
  .hero-art img { object-position: 100% 28%; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 40, .82), rgba(7, 26, 40, .5) 42%, transparent 62%);
  }
  /* Narrower, the boat comes in under the words. */
  @media (max-width: 1199px) {
    .hero::after { background: linear-gradient(90deg, rgba(7, 26, 40, .94), rgba(7, 26, 40, .78) 52%, transparent 74%); }
  }
  .hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 56px 24px;
  }
  .hero-copy > * { max-width: 470px; }
  .hero h1 { width: min(460px, 100%); }
  .hero h1 img { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)); }
}

@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  /* The ocean at the top of the art is where the logo goes. */
  .hero-art { position: relative; display: block; width: 100%; aspect-ratio: 5 / 6; max-height: 78vh; }
  .hero-art img { position: absolute; inset: 0; object-position: 50% 55%; }
  .hero-copy { display: contents; }
  .hero h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    width: min(74%, 340px);
    transform: translateX(-50%);
  }
  .hero h1 img { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
  .tagline, .hero-copy .lead, .hero-copy .stores, .hero-copy .small { margin-inline: 16px; }
  .tagline { margin-top: 22px; }
  .hero-copy .small { margin-bottom: 28px; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 186px;
  padding: 10px 20px 10px 16px;
  border-radius: 8px;
  background: linear-gradient(#ff9326, var(--orange) 60%, #e85f00);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: filter .1s, transform .1s;
}

.store small { display: block; font-size: .64em; font-weight: 600; }

.store svg { flex: none; width: 26px; height: 26px; fill: currentColor; }

a.store:hover { filter: brightness(1.08); }

a.store:active { transform: translateY(2px); }

.store.is-soon {
  background: rgba(13, 37, 54, .88);
  box-shadow: inset 0 0 0 1px rgba(201, 216, 227, .34);
  color: var(--steel);
}

/* Screenshots */

.screens { max-width: 1180px; margin: 0 auto; padding: 44px 24px 0; }

.screens ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.screens img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 26px rgba(0, 0, 0, .4);
}

.screens .small { margin: 14px 0 0; text-align: center; }

/* On a phone the screenshots scroll sideways, one at a time. */
@media (max-width: 899px) {
  .screens { padding: 32px 0 0; }
  .screens ul {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 58%;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 21% 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .screens ul::-webkit-scrollbar { display: none; }
  .screens li { scroll-snap-align: center; }
  .screens .small { margin: 4px 16px 0; }
}

/* Sections */

.block { max-width: 1180px; margin: 0 auto; padding: 72px 24px 0; }

@media (max-width: 899px) {
  .block { padding: 56px 16px 0; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* The arrow out of the logo. */
.eyebrow::before {
  content: "";
  width: 9px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.block h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); }

.intro { max-width: 680px; margin: 14px 0 0; color: var(--soft); font-size: 1.06em; }

.block h3 { margin: 0; font-size: 1.32rem; }

.block p { color: var(--soft); }

.block .eyebrow { color: var(--cyan); }

/* The run */

.legs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
  counter-reset: leg;
}

.legs li {
  counter-increment: leg;
  padding-top: 14px;
  border-top: 3px solid var(--orange);
}

.legs h3::before { content: counter(leg); margin-right: .4em; color: var(--orange); }

.legs p { margin: 8px 0 0; font-size: .95em; }

.after { margin: 22px 0 0; }

@media (max-width: 899px) {
  .legs { grid-template-columns: 1fr; gap: 20px; }
}

/* Evolutions: each row keeps one scale, so that you see it grow. */

.evolutions { display: grid; gap: 14px; margin-top: 30px; }

.evolution {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.evolution p { margin: 6px 0 0; font-size: .95em; }

.steps { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; }

.steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.steps img {
  width: calc(var(--w) * var(--scale) * 1px);
  max-width: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
}

.steps span {
  color: var(--amber);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.plane { --scale: .5; }

.tall { --scale: .34; }

@media (max-width: 899px) {
  .evolution { grid-template-columns: 1fr; gap: 16px; padding: 18px 12px; }
  .evolution > div { padding: 0 6px; }
  .plane { --scale: .225; }
  .tall { --scale: .27; }
}

@media (max-width: 359px) {
  .plane { --scale: .19; }
}

/* Helpers */

.helpers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.helpers li,
.escorts {
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.helpers li { padding: 20px; }

.helpers img { width: 92px; height: 96px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }

.helpers h3 { font-size: 1.16rem; }

.helpers p { margin: 6px 0 0; font-size: .95em; }

.escorts {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 14px;
  padding: 20px 26px;
}

.escorts ul { display: flex; align-items: center; gap: 18px; }

.escorts img { height: 96px; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }

.escorts p { margin: 6px 0 0; font-size: .95em; }

@media (max-width: 899px) {
  .helpers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .helpers li { padding: 16px 14px; }
  .helpers img { width: 72px; height: 76px; }
  .escorts { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}

/* Bosses and badges */

.bosses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
  text-align: center;
}

.bosses img { width: min(168px, 100%); margin: 0 auto 8px; }

.bosses h3 { font-size: 1.06rem; }

@media (max-width: 899px) {
  .bosses { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .bosses img { width: 132px; }
}

.medals {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 26px;
}

@media (max-width: 899px) {
  .medals { grid-template-columns: repeat(5, 1fr); gap: 4px; }
}

/* The deal */

.deal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0 0;
}

.deal dt { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.14rem; }

.deal dd { margin: 6px 0 0; color: var(--soft); font-size: .95em; }

@media (max-width: 899px) {
  .deal { grid-template-columns: 1fr; gap: 16px; }
}

/* Last call */

.last {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 72px;
  padding: 54px 16px;
  background: var(--midnight);
}

.last img { width: min(420px, 84%); }

.last .stores { justify-content: center; }

/* Support and privacy */

.bar { padding: 22px 16px 4px; text-align: center; }

.bar img { display: inline-block; width: 200px; }

.doc { max-width: 760px; margin: 0 auto; padding: 18px 24px 8px; }

.doc h1 { margin: 12px 0 8px; font-size: 2.2rem; font-style: italic; }

.doc h2 { margin: 30px 0 6px; font-size: 1.26rem; }

.doc p, .doc li { color: #d3e0e9; }

.doc p { margin: 0 0 12px; }

.doc p.small { color: var(--soft); }

.doc ul { margin: 0 0 12px; padding-left: 1.2em; list-style: disc; }

.doc hr { margin: 44px 0 20px; border: 0; border-top: 1px solid var(--line); }

.summary {
  margin: 20px 0 8px;
  padding: 2px 20px 8px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.summary h2 { margin-top: 14px; }

/* Footer */

.foot {
  padding: 34px 16px 30px;
  color: var(--soft);
  text-align: center;
}

.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }

.foot nav a { color: var(--steel); font-weight: 600; }

.foot nav a[aria-current="page"] { color: var(--amber); }

.maker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
}

.maker small { display: block; color: var(--soft); font-size: .75em; font-weight: 600; }

.foot p { margin: 14px 0 0; font-size: .85em; }
