/* Next Up's public site: nextup.horse, /privacy and /support.
   Brand kit: purple #8B5CF6 for the mark and accents, black #111014 and
   off-white #FAF9FC for the rest; the system font. Everything is styled here,
   because the site's security policy allows no inline styles. */

:root {
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-soft: #efe9fe;
  --black: #111014;
  --off-white: #faf9fc;
  --bg: var(--off-white);
  --surface: #ffffff;
  --text: var(--black);
  --muted: #5f5b6b;
  --line: #e2dfe9;
  --ink: var(--purple-deep); /* small purple text */
  --live: #157a3c;
  --live-soft: #e2f3e7;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--black);
    --surface: #1d1b23;
    --text: #ffffff;
    --muted: #aaa5b6;
    --line: #33303c;
    --ink: #c4b1fd;
    --purple-soft: #2a2140;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 16px;
}

h3 {
  font-size: 21px;
  margin: 0 0 6px;
}

/* ---- top bar */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
}

.top .brand img {
  display: block;
  height: 80px;
  width: auto;
  margin-left: -16px;
}

.top-links {
  display: flex;
  gap: 22px;
}

.top-links a {
  color: rgb(255 255 255 / 0.85);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.top-links a:hover {
  color: #fff;
}

/* ---- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  z-index: -2;
}

/* Dark on the words' side, the horse clear on the other, and a purple glow
   from the brand. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 0% 100%, rgb(139 92 246 / 0.45), transparent 70%),
    linear-gradient(90deg, rgb(17 16 20 / 0.94) 0%, rgb(17 16 20 / 0.78) 42%, rgb(17 16 20 / 0.2) 75%, rgb(17 16 20 / 0.35) 100%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  min-height: min(760px, 88vh);
}

.hero .eyebrow {
  color: #c4b1fd;
}

.hero h1 {
  font-size: clamp(46px, 8.5vw, 92px);
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--purple);
}

.hero .lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.86);
  max-width: 32em;
  margin: 0 0 30px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Black, in the shape of the stores' own badges, but without Apple's or
   Google's logos: those badges may only be used once the app is on the
   stores, and then they replace these. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px 8px 12px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.35);
  color: #fff;
}

.store small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}

.store-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.store svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* ---- the phone: the app's live class screen (made-up riders) in an iPhone
   frame from Mockuuups Studio */

.phone-shot {
  justify-self: center;
  width: 280px;
  height: auto;
  filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.55)) drop-shadow(0 0 70px rgb(139 92 246 / 0.4));
}

/* ---- alerts */

.alerts {
  padding: 96px 0 40px;
}

.alerts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.alerts p.body {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
  max-width: 28em;
}

.notes {
  display: grid;
  gap: 12px;
}

.note {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgb(17 16 20 / 0.35);
  animation: rise 0.8s both;
}

.note:nth-child(2) {
  animation-delay: 0.15s;
  margin-left: 24px;
}

.note:nth-child(3) {
  animation-delay: 0.3s;
  margin-left: 48px;
}

.note img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.note strong {
  display: block;
  font-size: 16px;
}

.note span {
  color: var(--muted);
  font-size: 14px;
}

.note time {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.soon {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* ---- how it works */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 64px;
  align-items: center;
}

.how-phone {
  justify-self: center;
  width: 380px;
  height: auto;
  /* The photo stops at the wrist; fade it out rather than show the cut. */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
}

.how {
  padding: 72px 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
}

.steps li .num {
  grid-row: span 2;
  margin-bottom: 0;
}

.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---- photo and words side by side */

.split {
  padding: 48px 0;
}

.split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.split.reverse .photo {
  order: 2;
}

.photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The brand's forward chevron, over the photo's corner. */
.photo::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background: var(--purple);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: 0.92;
}

.split p.body {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 22px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 600;
}

.ticks li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--purple)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* ---- for shows and marshals: a dark band, the gate in three stages */

.marshals {
  position: relative;
  overflow: hidden;
  margin: 48px 0 0;
  padding: 88px 0;
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(139 92 246 / 0.35), transparent 70%),
    var(--black);
  color: #fff;
}

.marshals .eyebrow {
  color: #c4b1fd;
}

.marshals .body {
  max-width: 38em;
  margin: 0;
  font-size: 19px;
  color: rgb(255 255 255 / 0.78);
}

.stages {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stages li {
  padding: 24px 22px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.stages p {
  margin: 0;
  color: rgb(255 255 255 / 0.7);
}

.stage-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.stage-dot.on-course {
  background: var(--purple);
  box-shadow: 0 0 0 6px rgb(139 92 246 / 0.3);
}

.stage-dot.standby {
  background: #c4b1fd;
  box-shadow: 0 0 0 6px rgb(196 177 253 / 0.2);
}

.stage-dot.gate {
  background: #6fd897;
  box-shadow: 0 0 0 6px rgb(111 216 151 / 0.2);
}

.marshals-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgb(139 92 246 / 0.16);
  border: 1px solid rgb(139 92 246 / 0.4);
}

.marshals-cta p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.button-light {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
}

/* ---- call to action */

.cta {
  padding: 56px 0 96px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 56px 40px;
  background: var(--purple);
  color: #fff;
  text-align: center;
}

.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgb(255 255 255 / 0.08);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}

.cta-box::before {
  left: -70px;
  top: -60px;
}

.cta-box::after {
  right: -60px;
  bottom: -80px;
}

.cta-box h2 {
  position: relative;
  margin-bottom: 12px;
}

.cta-box p {
  position: relative;
  margin: 0;
  font-size: 19px;
  color: rgb(255 255 255 / 0.9);
}

.cta-box a {
  color: #fff;
  font-weight: 700;
}

/* ---- footer */

.foot {
  background: var(--black);
  color: rgb(255 255 255 / 0.7);
  font-size: 15px;
}

.foot .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
}

.foot .logo {
  height: 44px;
  width: auto;
  margin-left: -8px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
  align-items: center;
}

.foot a {
  color: #fff;
}

.foot p {
  grid-column: 1 / -1;
  margin: 0;
}

.foot .credits {
  font-size: 13px;
  color: rgb(255 255 255 / 0.5);
}

/* ---- plain pages (privacy, support) */

.page-head {
  background: var(--black);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page h1 {
  font-size: clamp(38px, 6vw, 56px);
  margin: 0 0 10px;
}

.page h2 {
  font-size: 24px;
  margin: 40px 0 8px;
}

.page h3 {
  margin-top: 28px;
}

.page .lead {
  font-size: 20px;
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

/* ---- motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .note {
    animation: none;
  }
}

/* ---- phones */

@media (max-width: 860px) {
  .hero-inner,
  .alerts-grid,
  .split .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    padding-top: 24px;
    gap: 40px;
    min-height: 0;
  }

  .hero-photo {
    object-position: 70% 30%;
  }

  .phone-shot {
    width: 240px;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-phone {
    width: 280px;
  }

  .hero-shade {
    background:
      radial-gradient(80% 50% at 0% 100%, rgb(139 92 246 / 0.4), transparent 70%),
      linear-gradient(180deg, rgb(17 16 20 / 0.55) 0%, rgb(17 16 20 / 0.82) 45%, rgb(17 16 20 / 0.96) 100%);
  }

  .top-links a:first-child {
    display: none;
  }

  .top .brand img {
    height: 62px;
    margin-left: -12px;
  }

  .steps,
  .stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .marshals {
    padding: 64px 0;
  }

  .split.reverse .photo {
    order: 0;
  }

  .photo {
    aspect-ratio: 4 / 3;
  }

  .note:nth-child(2),
  .note:nth-child(3) {
    margin-left: 0;
  }

  .alerts {
    padding-top: 64px;
  }

  .cta-box {
    padding: 44px 24px;
  }

  .foot .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot nav {
    justify-content: flex-start;
  }
}
