/* go.downshiftapp.io: the landing page, 404 and cruise share pages.
   Same "night garage" look as downshiftapp.io and the app
   (tokens mirror Downshift/Theme/AppTheme.swift). */
:root {
  color-scheme: dark;
  --bg: #05080F;
  --bg-2: #0A101B;
  --surface: #0F1724;
  --surface-2: #162133;
  --surface-3: #1F2D44;
  --stroke: rgba(255, 255, 255, .08);
  --stroke-2: rgba(255, 255, 255, .16);
  --text: #fff;
  --text-2: #A3AFC2;
  --text-3: #66738A;
  --blue: #2E9BFF;
  --cyan: #5CC8FF;
  --deep: #1554D1;
  --red: #FF2D46;
  --grad-blue: linear-gradient(135deg, #5CC8FF 0%, #2E9BFF 45%, #1554D1 100%);
  --grad-neon: linear-gradient(90deg, #5CC8FF, #2E9BFF 55%, #FF2D46);
  --grad-surface: linear-gradient(180deg, #131D2D, #0C131F);
  --font-display: "Archivo", "SF Pro Display", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
h1, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 4vw, 48px);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background:
    radial-gradient(60vw 60vw at -10% -20%, rgba(46, 155, 255, .32), rgba(21, 84, 209, .1) 50%, transparent 70%),
    radial-gradient(45vw 45vw at 110% 115%, rgba(255, 45, 70, .2), transparent 68%),
    url("/img/streets.svg") center bottom / cover no-repeat,
    var(--bg);
  background-attachment: fixed;
}

/* ------------------------------------------------------------ type */
.display {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .95;
}
.dot { color: var(--blue); }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow.is-live { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.eyebrow.is-live::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(.65); opacity: .6; } }

/* ------------------------------------------------------------ top bar */
.topbar {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--stroke-2), 0 6px 20px -6px rgba(46, 155, 255, .6); }
.brand span { font-family: var(--font-display); font-stretch: 125%; font-weight: 850; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; }
.topbar-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.topbar-link:hover { color: #fff; }

/* ------------------------------------------------------------ landing */
.landing {
  flex: 1;
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px; align-items: center;
  padding: 24px 0 56px;
}
.landing-copy { container-type: inline-size; }
.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; margin-bottom: 28px;
  border-radius: 999px; border: 1px solid var(--stroke-2);
  background: rgba(15, 23, 36, .7);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.announce:hover { border-color: var(--cyan); color: #fff; }
.announce b {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
  padding: 5px 10px; border-radius: 999px; background: var(--grad-neon);
}
.landing h1 { font-size: min(14cqw, 120px); margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 500px; margin-bottom: 34px; }

.get { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 92px; height: 92px; padding: 8px; border-radius: 14px; background: #fff; }
.qr p { font-size: 13px; color: var(--text-2); line-height: 1.4; max-width: 150px; }
.qr b { display: block; color: #fff; font-size: 14px; }

/* Phone stack */
.phones { position: relative; height: 620px; }
.phone {
  --w: 280px;
  position: absolute; left: 50%; top: 50%;
  width: var(--w);
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(145deg, #4a5468 0%, #1a2130 18%, #0b0f17 50%, #1a2130 82%, #3d4659 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 70px -10px rgba(46, 155, 255, .45);
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--w) * .135); }
.phone-front { z-index: 2; transform: translate(-58%, -50%); animation: float 7s ease-in-out infinite; }
.phone-back { --w: 236px; z-index: 1; transform: translate(-2%, -54%) rotate(8deg); filter: brightness(.75); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 11px; border-radius: 16px;
  background: rgba(15, 23, 36, .82); border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-size: 14px; line-height: 1.2; }
.chip small { display: block; font-size: 12px; color: var(--text-2); }
.chip i { width: 10px; height: 10px; margin: 0 6px; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.chip-roam { left: 0; top: 18%; animation-delay: -2s; }
.chip-roam i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.chip-live { right: 0; bottom: 22%; animation-delay: -4s; }
.chip-live i { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ------------------------------------------------------------ store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 20px 0 15px; min-width: 180px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 13px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 10px 30px -8px rgba(46, 155, 255, .6); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.badge small { font-size: 11px; font-weight: 500; }
.store-android small { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.badge strong { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }

/* ------------------------------------------------------------ card (cruise pages, 404) */
.card-wrap { flex: 1; display: grid; place-items: center; padding: 16px 0 48px; }
.card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 480px;
  padding: 34px 30px 30px;
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(46, 155, 255, .2), transparent 60%),
    var(--grad-surface);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 40px 90px -40px #000, 0 0 60px -30px rgba(46, 155, 255, .6);
}
.card h1 { font-size: clamp(32px, 9vw, 44px); margin-bottom: 16px; overflow-wrap: anywhere; }
.when { margin: 0; font-weight: 600; font-size: 17px; }
.facts { margin: 6px 0 0; color: var(--text-2); }
.note {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 45, 70, .1); border: 1px solid rgba(255, 45, 70, .3); color: #FFC2C9;
}
.body { margin: 18px 0 0; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.actions .badge { width: 100%; justify-content: center; }
.button {
  display: block; padding: 15px 16px; border-radius: 14px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 750;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  transition: transform .25s var(--ease), border-color .25s;
}
.button.primary { background: var(--grad-blue); box-shadow: 0 8px 26px -6px rgba(46, 155, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .35); }
.button.secondary { background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.button:hover { transform: translateY(-1px); border-color: var(--cyan); }

/* Show the store for the viewer's platform; desktop sees both and no "open". */
.is-ios .store-android,
.is-android .store-ios,
.is-desktop .open-app { display: none; }
.is-android .badges .store-android { order: -1; }

/* ------------------------------------------------------------ footer */
footer {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 0 28px; border-top: 1px solid var(--stroke);
  color: var(--text-3); font-size: 13px;
}
footer a { color: var(--text-2); transition: color .2s; }
footer a:hover { color: #fff; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; padding-top: 8px; }
  .phones { height: 520px; }
  .phone { --w: min(240px, 62vw); }
  .phone-back { --w: min(200px, 52vw); }
  .qr { display: none; }
}
@media (max-width: 520px) {
  .eyebrow { font-size: 11px; letter-spacing: .2em; }
  .landing .badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .landing .badge { min-width: 0; padding: 0 10px; justify-content: center; gap: 8px; height: 54px; }
  .landing .badge svg { width: 22px; height: 22px; }
  .landing .badge strong { font-size: 16px; }
  .landing .badge small { font-size: 9.5px; }
  .landing .store-android small { font-size: 8.5px; }
  .card { padding: 28px 22px 24px; border-radius: 24px; }
  .chip { padding: 8px 12px 8px 9px; }
  .chip b { font-size: 12.5px; }
  .chip small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
